| 1 |
%%^^A%% um-doc-style.tex -- part of UNICODE-MATH <wspr.io/unicode-math> |
| 2 |
|
| 3 |
\makeatletter |
| 4 |
\input{unicode-math.dtx} |
| 5 |
|
| 6 |
\CheckSum{0} |
| 7 |
\EnableCrossrefs |
| 8 |
\CodelineIndex |
| 9 |
\setcounter{IndexColumns}{2} |
| 10 |
|
| 11 |
\usepackage[svgnames]{xcolor} |
| 12 |
\usepackage[inline]{enumitem} |
| 13 |
\usepackage{refstyle,amsmath,array,booktabs,calc,enumitem,fancyvrb,graphicx,ifthen,longtable,topcapt,url,varioref,underscore} |
| 14 |
\usepackage[slash-delimiter=ascii,nabla=literal]{unicode-math} |
| 15 |
\usepackage{metalogo,hologo} |
| 16 |
|
| 17 |
\usepackage[it]{titlesec} |
| 18 |
|
| 19 |
% fancyvrb |
| 20 |
\fvset{fontsize=\small,xleftmargin=2em} |
| 21 |
|
| 22 |
% longtable |
| 23 |
\setcounter{LTchunksize}{100} |
| 24 |
|
| 25 |
\setmainfont{texgyrepagella}% |
| 26 |
[ |
| 27 |
Extension = .otf , |
| 28 |
UprightFont = *-regular , |
| 29 |
ItalicFont = *-italic , |
| 30 |
BoldFont = *-bold , |
| 31 |
BoldItalicFont = *-bolditalic , |
| 32 |
] |
| 33 |
\setsansfont{Iwona}% |
| 34 |
[ |
| 35 |
Scale=MatchLowercase, |
| 36 |
Extension = .otf, |
| 37 |
UprightFont = *-Regular, |
| 38 |
ItalicFont = *-Italic, |
| 39 |
BoldFont = *-Bold, |
| 40 |
BoldItalicFont = *-BoldItalic, |
| 41 |
] |
| 42 |
\setmonofont{Inconsolatazi4-Regular.otf}% |
| 43 |
[ |
| 44 |
Scale=MatchLowercase, |
| 45 |
BoldFont=Inconsolatazi4-Bold.otf |
| 46 |
] |
| 47 |
|
| 48 |
\setmathfont{texgyrepagella-math.otf} |
| 49 |
\setmathfont[version=xits]{STIXTwoMath-Regular.otf} |
| 50 |
\newfontface\umfont{STIXTwoMath-Regular.otf} |
| 51 |
|
| 52 |
\expandafter\def\csname [email protected]\endcsname{} |
| 53 |
\usepackage{hypdoc} |
| 54 |
\hypersetup{linktocpage} |
| 55 |
|
| 56 |
% work around some issue turning | into "j" inside mathsf in the definition of \Module: |
| 57 |
% (also prettify) |
| 58 |
\def\Module#1{{\footnotesize\color{red}$\langle$\texttt{#1}$\rangle$}} |
| 59 |
|
| 60 |
\linespread{1.1} |
| 61 |
\frenchspacing |
| 62 |
|
| 63 |
\definecolor{niceblue}{rgb}{0.2,0.4,0.8} |
| 64 |
|
| 65 |
\def\theCodelineNo{\textcolor{niceblue}{\sffamily\tiny\arabic{CodelineNo}}} |
| 66 |
|
| 67 |
\newcommand*\name[1]{{#1}} |
| 68 |
\newcommand*\pkg[1]{\textsf{#1}} |
| 69 |
\newcommand*\feat[1]{\texttt{#1}} |
| 70 |
\newcommand*\opt[1]{\texttt{#1}} |
| 71 |
|
| 72 |
\newcommand*\note[1]{\unskip\footnote{#1}} |
| 73 |
|
| 74 |
\let\latin\textit |
| 75 |
\def\eg{\latin{e.g.}} |
| 76 |
\def\Eg{\latin{E.g.}} |
| 77 |
\def\ie{\latin{i.e.}} |
| 78 |
\def\etc{\@ifnextchar.{\latin{etc}}{\latin{etc.}\@}} |
| 79 |
|
| 80 |
\def\STIX{\textsc{stix}} |
| 81 |
\def\MacOSX{Mac~OS~X} |
| 82 |
\def\ascii{\textsc{ascii}} |
| 83 |
\def\OMEGA{Omega} |
| 84 |
|
| 85 |
\newcounter{argument} |
| 86 |
|
| 87 |
\makeatletter |
| 88 |
\g@addto@macro\endmacro{\setcounter{argument}{0}} |
| 89 |
\makeatother |
| 90 |
|
| 91 |
\newcommand*\darg[1]{% |
| 92 |
\stepcounter{argument}% |
| 93 |
{\ttfamily\char`\#\theargument~:~}#1\par\noindent\ignorespaces |
| 94 |
} |
| 95 |
\newcommand*\doarg[1]{% |
| 96 |
\stepcounter{argument}% |
| 97 |
{\ttfamily\makebox[0pt][r]{[}\char`\#\theargument]:~}#1\par\noindent\ignorespaces |
| 98 |
} |
| 99 |
|
| 100 |
\newcommand\codeline[1]{\par{\centering#1\par\noindent}\ignorespaces} |
| 101 |
|
| 102 |
\newcommand\unichar[1]{\textsc{u}+\texttt{\small#1}} |
| 103 |
|
| 104 |
\setlength\parindent{2em} |
| 105 |
|
| 106 |
\def \MakePrivateLetters {% |
| 107 |
\catcode`\@=11\relax |
| 108 |
\catcode`\_=11\relax |
| 109 |
\catcode`\:=11\relax |
| 110 |
} |
| 111 |
|
| 112 |
\makeatother |
| 113 |
|
| 114 |
\endinput |
| 115 |
|
| 116 |
% /© |
| 117 |
% |
| 118 |
% ------------------------------------------------ |
| 119 |
% The UNICODE-MATH package <wspr.io/unicode-math> |
| 120 |
% ------------------------------------------------ |
| 121 |
% This package is free software and may be redistributed and/or modified under |
| 122 |
% the conditions of the LaTeX Project Public License, version 1.3c or higher |
| 123 |
% (your choice): <http://www.latex-project.org/lppl/>. |
| 124 |
% ------------------------------------------------ |
| 125 |
% Copyright 2006-2019 Will Robertson, LPPL "maintainer" |
| 126 |
% Copyright 2010-2017 Philipp Stephani |
| 127 |
% Copyright 2011-2017 Joseph Wright |
| 128 |
% Copyright 2012-2015 Khaled Hosny |
| 129 |
% ------------------------------------------------ |
| 130 |
% |
| 131 |
% ©/ |