diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/fontspec/fontspec-doc-style.sty')
-rw-r--r-- | Master/texmf-dist/source/latex/fontspec/fontspec-doc-style.sty | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-style.sty b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-style.sty index 115d52a3b18..f5030a2bc90 100644 --- a/Master/texmf-dist/source/latex/fontspec/fontspec-doc-style.sty +++ b/Master/texmf-dist/source/latex/fontspec/fontspec-doc-style.sty @@ -1,11 +1,15 @@ + + \ProvidesPackage{fontspec-doc-style} +\input{fontspec.dtx} +\ExplSyntaxOff + \usepackage{fontspec,booktabs,calc,caption,color,enumitem,flafter,fancyvrb,hologo,graphicx, ifthen,url,varioref,varwidth,microtype,tocloft,framed,xparse,docmute} %% Various labelling commands: \newcommand*\name[1]{{#1}} -\newcommand*\pkg[1]{\textsf{#1}} \newcommand*\opt[1]{\texttt{#1}} \newcommand*\feat[1]{\texttt{#1}} @@ -18,14 +22,12 @@ \newcommand\note[1]{\unskip\footnote{#1}} -\def\MacOSX{Mac~OS~X} +\def\MacOSX{macOS} \def\AAT{\textsc{aat}} \def\ATSUI{\textsc{atsui}} \newcommand\NFSS{\textsc{nfss}} -\newcommand\XeTeX{\hologo{XeTeX}} \newcommand\XeLaTeX{\hologo{XeLaTeX}} -\newcommand\LuaTeX{\hologo{LuaTeX}} \newcommand\LuaLaTeX{\hologo{LuaLaTeX}} % ToC formatting: @@ -75,20 +77,6 @@ \linespread{1.05} % Pagella needs more space between lines \frenchspacing % Remove ugly extra space after punctuation -\usepackage[ - bookmarks=true, - colorlinks=true, - linkcolor=niceblue, - urlcolor=niceblue, - citecolor=niceblue, - pdftitle={The fontspec package}, - pdfsubject={Advanced font selection for XeLaTeX/LuaLaTeX}, - pdfauthor={Will Robertson}, - pdfkeywords={xetex, xelatex, luatex, lualatex, unicode, opentype, aat} - ]{hyperref} - - - %% ToC \def\@dotsep{1000} \setcounter{tocdepth}{2} @@ -123,6 +111,9 @@ %% EXAMPLES +\newif\ifshowexamples +\showexamplestrue + \newsavebox\X \newsavebox\Y @@ -147,9 +138,11 @@ \def\prefix{#4} \refstepcounter{example}% \label{ex:\filename}% - \IfFileExists{zzz-\theexample-\prefix-\filename.tex}{}{% - \immediate\write18{rm -f zzz-\theexample-* ;}% - }% + \ifshowexamples + \IfFileExists{zzz-\theexample-\prefix-\filename.tex}{}{% + \immediate\write18{rm -f zzz-\theexample-* ;}% + }% + \fi \VerbatimEnvironment \begin{VerbatimOut}{zzz-\theexample-\prefix-\filename.tex}} % text in the environment @@ -182,12 +175,14 @@ \csname prog@\prefix\endcsname "\unexpanded\expandafter{\XXcmd}"; printf '\@percentchar s' '\unexpanded\expandafter{\XXcmd}' > zzz-\theexample-\prefix-\filename-test.tex; }% - \immediate\write18{\unexpanded\expandafter{\1}}% + \ifshowexamples + \immediate\write18{\unexpanded\expandafter{\1}}% + \fi }% \savebox\Y{% \IfFileExists{zzz-\theexample-\prefix-\filename.pdf} {\includegraphics{zzz-\theexample-\prefix-\filename.pdf}} - {\color{red}\itshape ---Graphic not generated---}% + {\color{red}\itshape ---Example graphic not generated---}% } % TYPESETTING \rule[0.5\baselineskip]{\columnwidth}{1pt}% @@ -286,3 +281,10 @@ \catcode `\_= 11 \renewcommand\partname{Part} + + +% /© +% +% (COPYRIGHT GOES HERE) +% +% ©/ |