From 6526140c3aaadb7911be025979ff82544f921f88 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 26 Nov 2022 21:01:24 +0000 Subject: unimath-plain-xetex (26nov22) git-svn-id: svn://tug.org/texlive/trunk@65110 c570f23f-e606-0410-a88d-b1316a301751 --- .../unimath-plain-xetex-doc.pdf | Bin 44146 -> 47677 bytes .../unimath-plain-xetex-doc.tex | 90 +++++++++++++++++---- 2 files changed, 75 insertions(+), 15 deletions(-) (limited to 'Master/texmf-dist/doc/xetex') diff --git a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf index ed1756eacfa..ec95b6a930c 100644 Binary files a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf and b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.pdf differ diff --git a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex index 093e183bf75..b75d69c651f 100644 --- a/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex +++ b/Master/texmf-dist/doc/xetex/unimath-plain-xetex/unimath-plain-xetex-doc.tex @@ -23,7 +23,6 @@ \def\umpx{unimath-plain-\xetex} \def\biggskip{\vskip24pt plus 8pt minus 4pt} \def\pkg#1{{\tensf #1}} -%\catcode`\@=11 \@sizeat{40pt}\the\sf@size \catcode`\@=12 \font\hugesans="\sansfontname" at 35pt \font\sevenlmmath="Latin Modern Math:script=math,+ssty=0" at 7pt \makefontcmdcompatible{ten} @@ -69,12 +68,22 @@ \paperwd=\dimexpr2\hmarginwd+\hsize\relax \paperht=\dimexpr2\vmarginht+\vsize\relax \special{papersize=\the\paperwd,\the\paperht} -\newcount\seccnt -\seccnt=0 -\long\def\section#1{\penalty-1000\bigskip% - \advance\seccnt1\relax\noindent{\twelvebf% - \hbox to 0pt{\hss\twentybf\the\seccnt\kern12pt}#1}% - \par\medskip\penalty1000} +\long\def\protectedwrite#1#2{\edef\wrt{\write#1{#2}}\wrt} + +\newcount\secno +\secno=0 +\newwrite\tocout +\edef\tocname{\jobname.toc} +\openout\tocout=\tocname +\newread\tocin +\openin\tocin=\tocname +\long\outer\def\section#1{\par\bigskip\penalty-1000% + \noindent \advance\secno by 1\relax + {\twelvebf\hbox to 0pt{\hss\twentybf\the\secno\kern12pt}#1}% + \protectedwrite\tocout{\the\secno\quad + #1\hskip.5em\leaders\hbox to 1.2em{.\hss}\hfill}% + \write\tocout{\hbox to .5em{\hss\the\pageno}\par}% + \par\medskip\penalty1000\relax} \parindent2pc % title @@ -89,13 +98,22 @@ \centerline{Zhang Tingxuan} \medskip -\centerline{2022/11/23\quad Version 0.0γ} +\centerline{2022/11/26\quad Version 0.1} \biggskip \centerline{\bf Abstract} \medskip +{\leftskip=4pc\rightskip=4pc\parindent=1.5pc {\sf\umpx} package provides OpenType math font support in {\it plain \tex\/} -format. The {\sf\umpx} package needs \xetex. +format. The {\sf\umpx} package needs \xetex.\par} + +% TOC +\bigskip +\centerline{\bf Contents} +\medskip +\begingroup\leftskip=4pc\rightskip=4pc\parindent=0pc +\ifeof\tocin\else\closein\tocin\input\tocname\fi +\endgroup\bigskip \section{How to use this package?} Please notice again that you're using {\it plain\/} format but not @@ -211,11 +229,11 @@ in superscript. After loading this package, the primes produced by ``"'"'' will be turned into Unicode primes: $$\vbox{\openup2pt\halign{#\hfil\quad&\quad#\hfil\quad&\quad#\hfil\cr {\it Input} & {yields} & {\it Unicode slot}\cr -"'" & $^{\hbox{\sevenlmmath\charhex2032}}$ & U+2032 \cr -"''" & $^{\hbox{\sevenlmmath\charhex2033}}$ & U+2033 \cr -"'''" & $^{\hbox{\sevenlmmath\charhex2034}}$ & U+2034 \cr -"''''" & $^{\hbox{\sevenlmmath\charhex2057}}$ & U+2057 \cr -"'''''" & $^{\hbox{\sevenlmmath\charhex2032 +"$'$" & $^{\hbox{\sevenlmmath\charhex2032}}$ & U+2032 \cr +"$''$" & $^{\hbox{\sevenlmmath\charhex2033}}$ & U+2033 \cr +"$'''$" & $^{\hbox{\sevenlmmath\charhex2034}}$ & U+2034 \cr +"$''''$" & $^{\hbox{\sevenlmmath\charhex2057}}$ & U+2057 \cr +"$'''''$" & $^{\hbox{\sevenlmmath\charhex2032 \hskip-.15em\charhex2032 \hskip-.15em\charhex2032 \hskip-.15em\charhex2032 @@ -243,6 +261,48 @@ of "\betweenprimeskip" is just like change any math skip, for example, \begintt \betweenprimeskip=-1mu \endtt -This line should also written {\it after} loading the package. +This line should also be written {\it after} loading the package. + +\section{Using multiple math fonts} +You can use more than one OpenType math fonts in math mode. +This is the method to set multiple math fonts: +$$\vbox{% + \hbox{"\def\mathalphafontname{"\"}"}% + \hbox{"\def\mathdelimiterfontname{"\"}"}% + \hbox{"\def\mathordfontname{"\"}"}% + \hbox{"\def\mathopfontname{"\"}"}% + \hbox{"\def\mathbinfontname{"\"}"}% + \hbox{"\def\mathaccentfontname{"\"}"}% +}$$ +Such definitions should be written {\tenit before} "\input"ing the package. +For example, +\begintt +\def\mathfontname{XITS Math} +\def\mathalphafontname{TeX Gyre Pagella Math} +\input unimath-plain-xetex +\endtt +Then your math font will be set as XITS Math and the font of variable family +(numbers, Latin and Greek letters) will be set as \TeX\ Gyre Pagella Math. + +"\mathalphafontname" will influence the font of numbers ("0"--"9"), Latin +letters ("A"--"Z", "a"--"z") and Greek letters ("\alpha" and so on). + +"\mathdelimiterfontname" will influence the font of math delimiters, +including some open symbols, close symbols and some ordinary symbols +which can be used as delimiters like "\{", "\}", "\vert" and so on. +Horizontal delimiters (or very long accents) are also influenced by +"\mathdelimiterfontname". + +"\mathordfontname" will influence the font of non-delimiter ordinary +symbols, punctuations and ``"!"''. For example, ``","'', ``":"'' and +"\colon"'s font will be influenced by it. + +"\mathopfontname" will influence the font of large operators like "\sum". + +"\mathbinfontname" will influence the font of binary operators and relations +like ``"+"'' and ``"="''. + +"\mathaccentfontname" will influence the font of math accents like "\dot". +\closeout\tocout \bye \ No newline at end of file -- cgit v1.2.3