diff options
Diffstat (limited to 'macros/xetex/plain/unimath-plain-xetex/doc/unimath-plain-xetex-doc.tex')
-rw-r--r-- | macros/xetex/plain/unimath-plain-xetex/doc/unimath-plain-xetex-doc.tex | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/macros/xetex/plain/unimath-plain-xetex/doc/unimath-plain-xetex-doc.tex b/macros/xetex/plain/unimath-plain-xetex/doc/unimath-plain-xetex-doc.tex index 5140d0a2b5..093e183bf7 100644 --- a/macros/xetex/plain/unimath-plain-xetex/doc/unimath-plain-xetex-doc.tex +++ b/macros/xetex/plain/unimath-plain-xetex/doc/unimath-plain-xetex-doc.tex @@ -11,6 +11,8 @@ \def\monofontname{Source Code Pro} \def\mathfontname{Erewhon Math} \input unimath-plain-xetex +\unicodeprimesoff +\betweenprimeskip=-1mu\relax \def\xetex{X\kern-.125em\lower.5ex\hbox{\char"018E}\kern-.1667em% T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX} @@ -23,6 +25,7 @@ \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} \def\ttverbatim{\begingroup @@ -34,6 +37,7 @@ {\catcode`\|=0 |catcode`|\=12 % | is temporary escape character |obeylines % end of line is active |gdef|ttfinish#1^^M#2\endtt{#1|vbox{#2}|endgroup$$}} +\def\charhex{\char"} \catcode`\"=\active {\obeylines \gdef"{\ttverbatim \spaceskip.5em \let^^M=\ \let"=\endgroup}} \def\<#1>{$\langle${\it#1\/}$\rangle$} @@ -85,7 +89,7 @@ \centerline{Zhang Tingxuan} \medskip -\centerline{2022/11/06\quad Version 0.0β} +\centerline{2022/11/23\quad Version 0.0γ} \biggskip \centerline{\bf Abstract} @@ -199,4 +203,46 @@ You can also input Unicode math characters in your document's source file. For example, "$∫_a^b y\,dx$" yields $∫_a^b y\,dx$ and "$$∫_a^b y\,dx.$$" yields $$∫_a^b y\,dx.$$ + + +\section{Primes ($'$)} +The package changed ``"'"'' command in math mode, which yields prime(s) +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 + \hskip-.15em\charhex2032 + \hskip-.15em\charhex2032 + \hskip-.15em\charhex2032 + \hskip-.15em\charhex2032}}$ + & $(\hbox{U+2032})\times5$\cr +$\vdots$ & $\vdots$ & $\vdots$ \cr +$(\hbox{"'"})\times N$ & $(^{\hbox{\sevenlmmath\charhex2032}})\times N$ & +$(\hbox{U+2032})\times N$\hbox to 20pt{\quad$(N>4)$\hss} \cr +}}$$ +However, some OpenType math fonts don't contain some of the characters above. +For example, there is no U+2032, U+2033 or U+2034 in Erewhon Math. +When using such fonts, you can ``turn off'' the Unicode primes easily +by inputing the following line {\it after} loading the package: +\begintt +\unicodeprimesoff +\endtt +Then when you input ``"'"'' $n$ times you will get $n$ primes, +and each prime's Unicode character slot is U+2032, even when $n\leq 4$. + +If the primes contain more than one single prime encoded U+2032, +a negative math skip will inserted between every two single primes. +This math skip is defined as "\betweenprimeskip" and its default value +is "-2.7mu", which is proper for Latin Modern Math. To change the value +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. + \bye
\ No newline at end of file |