From 688cf1a97b5e9414afabf65b39e09326c21d80fa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 25 Jun 2014 15:21:51 +0000 Subject: mathastext (24may14) git-svn-id: svn://tug.org/texlive/trunk@34411 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/mathastext/README | 22 +- .../texmf-dist/doc/latex/mathastext/mathastext.pdf | Bin 372494 -> 383239 bytes .../texmf-dist/doc/latex/mathastext/mathastext.tex | 32 --- .../latex/mathastext/mathastexttestalphabets.pdf | Bin 41503 -> 41580 bytes .../latex/mathastext/mathastexttestalphabets.tex | 256 --------------------- .../mathastext/mathastexttestmathversions.tex | 39 ---- .../mathastext/mathastexttestunicodelinux.tex | 97 -------- .../mathastext/mathastexttestunicodemacos.tex | 99 -------- 8 files changed, 19 insertions(+), 526 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/mathastext/mathastext.tex delete mode 100644 Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex delete mode 100644 Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex delete mode 100644 Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex delete mode 100644 Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex (limited to 'Master/texmf-dist/doc/latex/mathastext') diff --git a/Master/texmf-dist/doc/latex/mathastext/README b/Master/texmf-dist/doc/latex/mathastext/README index 1575a9eaedc..50814553760 100644 --- a/Master/texmf-dist/doc/latex/mathastext/README +++ b/Master/texmf-dist/doc/latex/mathastext/README @@ -1,11 +1,10 @@ -Copyright (C) 2011, 2012, 2013 by Jean-Francois Burnol. -`mathastext' is a LaTeX2e package. +Copyright (C) 2011-2014 Jean-Francois Burnol. +-------------------------------------------+ + mathastext + + + + `Use the text font in math mode' + - + v1.3c 2013/12/14 + + + v1.3d 2014/05/23 + + jfbu (at) free.fr + +-------------------------------------------+ @@ -101,6 +100,11 @@ Examples available there: Installation: ============= + +The fastest way is: unzip -d mathastext.tds.zip, where + could be ~/texmf or, on mac os x, ~/Library/texmf, or +the working repertory of your project. Else, download mathastext.dtx, +possibly also mathastext.ins, and follow these instructions: * with mathastext.ins: run tex on mathastext.ins to generate the package style file mathastext.sty as well as mathastext.tex and some test files. @@ -128,6 +132,18 @@ other options therein. CHANGE LOG +1.3d [2014/05/23] + + * new commands \MTstandardgreek and \MTcustomgreek. + + * The Greek letters, in case of use of one of the package related options, +are left to their defaults in the normal and bold math versions if the +subdued option was also used (this was so far the case only with options +LGRgreek/LGRgreeks). + + * \newmcodes@ of amsmath is left untouched if package lualatex-math +is detected. + 1.3c [2013/12/14] * added a starred variant to \MTversion which tells mathastext to diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf b/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf index 939e9dca396..23b5241071f 100644 Binary files a/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf and b/Master/texmf-dist/doc/latex/mathastext/mathastext.pdf differ diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastext.tex b/Master/texmf-dist/doc/latex/mathastext/mathastext.tex deleted file mode 100644 index 4a0befb79d4..00000000000 --- a/Master/texmf-dist/doc/latex/mathastext/mathastext.tex +++ /dev/null @@ -1,32 +0,0 @@ -\def\MSTpkgdate {2013/12/14} -\def\MSTpkgversion {1.3c} -%%---------------------------------------------------------------- -%% The mathastext package (version 1.3c of December 14, 2013) -%% Copyright (C) 2011, 2012, 2013 by Jean-Francois Burnol -%% Examples of use of mathastext: -%% http://jf.burnol.free.fr/mathastext.html -%% http://jf.burnol.free.fr/showcase.html -%%---------------------------------------------------------------- -%% This is a generated file. Run latex thrice on this file mathastext.tex then -%% run dvipdfmx on mathastext.dvi to produce the documentation mathastext.pdf, -%% with the package source code included. -%% -%% Customize as desired the class options and the two toggles below. -%% -%% See mathastext.dtx for the copyright and the conditions for distribution -%% and/or modification of this work. -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesFile{mathastext.tex}% -[\MSTpkgdate\space v\MSTpkgversion\space - driver file for mathastext documentation (jfB)]% -\PassOptionsToClass{a4paper,fontsize=11pt}{scrdoc} -\chardef\Withdvipdfmx 1 % replace 1 by 0 for using latex/pdflatex -\chardef\NoSourceCode 0 % replace 0 by 1 for no source code -\input mathastext.dtx -%%% Local Variables: -%%% mode: latex -%%% End: -\endinput -%% -%% End of file `mathastext.tex'. diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf index 176c5003408..01c403bbacb 100644 Binary files a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf and b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.pdf differ diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex deleted file mode 100644 index 04e5d6c53b5..00000000000 --- a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex +++ /dev/null @@ -1,256 +0,0 @@ -\def\testfileincipit{Test file to accompany \texttt{mathastext} -version \texttt{1.3c} of \texttt{2013/12/14}} -%%---------------------------------------------------------------- -%% The mathastext package (version 1.3c of December 14, 2013) -%% Copyright (C) 2011, 2012, 2013 by Jean-Francois Burnol -%% Examples of use of mathastext: -%% http://jf.burnol.free.fr/mathastext.html -%% http://jf.burnol.free.fr/showcase.html -%%---------------------------------------------------------------- -%% This file `mathastexttestalphabets.tex' is for testing the extended -%% scope of the math alphabet commands with package `mathastext', via -%% the package command \MTnonlettersobeymathxx. -%% -%% Compile either with latex, pdflatex, lualatex (pdf output) or xelatex. -%% -%% See `mathastext.dtx' for the copyright and conditions of distribution or -%% modification. -%% -\documentclass{article} -\usepackage[hscale=0.66]{geometry} -\usepackage{amsmath} -\usepackage{mathtools}\mathtoolsset{centercolon} -%% WARNING THIS IS INCOMPATIBLE WITH BABEL+FRENCHB -%% BUT WITH MATHASTEXT LOADED THIS IS CORRECTED -%% *IF* \MTnonlettersobeymathxx IS MADE USE OF. -\usepackage{iftex} -\ifXeTeX -\expandafter\def\expandafter\testfileincipit\expandafter - {\testfileincipit\ (compiled with \XeLaTeX)} -\usepackage[no-math]{fontspec} -\setmainfont[ExternalLocation, - Mapping=tex-text, - BoldFont=texgyretermes-bold, - ItalicFont=texgyretermes-italic, - BoldItalicFont=texgyretermes-bolditalic]{texgyretermes-regular} -\setmonofont[ExternalLocation, - Mapping=tex-text]{texgyrecursor-regular} -\setsansfont[ExternalLocation, - Mapping=tex-text]{texgyreheros-regular} -\else -\ifLuaTeX % for pdf output -\expandafter\def\expandafter\testfileincipit\expandafter - {\testfileincipit\ (compiled with \LuaLaTeX)} -\usepackage[no-math]{fontspec} -\setmainfont[Ligatures=TeX]{TeX Gyre Termes} -\setmonofont[Ligatures=TeX]{TeX Gyre Cursor} -\setsansfont[Ligatures=TeX]{TeX Gyre Heros} -\else -\usepackage[utf8]{inputenc} -\usepackage[T1]{fontenc} -\usepackage{tgtermes} -\usepackage{tgcursor} -\usepackage{tgheros} -\fi\fi -\usepackage{metalogo} % must be loaded /after/ [no-math]fontspec -\usepackage[french]{babel} -\usepackage[italic,asterisk]{mathastext} -\MTlettershape{n}\Mathastext[upright] -\MTnonlettersobeymathxx -\MTexplicitbracesobeymathxx -\delimitershortfall-1pt -\begin{document} -\testfileincipit - -\begin{center} - \bfseries Two features of \texttt{mathastext}:\\ -extended scope of the math alphabets and added italic corrections\par -\end{center} - -The package makes -${!}\,{?}\,{,}\,{:}\,{;}\,{+}\,{-}\,{=}\,{(}\,{)}\,{[}\,{]}\,{<}\,{>}\,{\{}\,{\}}$, -the asterisk $*$, and $.\,/\,\vert\,\backslash\,{\#}\,{\$}\,{\%}\,{\&}$ obey the -math alphabet commands (this is the maximal list, some characters may have been -excluded by the corresponding package options). For the characters listed first -the mechanism involves a `mathematical activation'. - -As this process may create incompatibilities, it will be put into action -for -${!}\,{?}\,{,}\,{:}\,{;}\,{+}\,{-}\,{=}\,{(}\,{)}\,{[}\,{]}\,{<}\,{>}$ -only if the user makes use of the package command -\verb|\MTnonlettersobeymathxx| (and the braces necessitate -\verb|\MTexplicitbracesobeymathxx|). - -It could be that one such character has been made `active' in the entire -document by some other package, typically a language definition file for the -\verb|babel| system. Here for example we have used \verb|babel| with the -\verb|french| option, which makes the high punctuation characters !?:; active -throughout the document (extra spacing is put in front of the character when -used in text; no change in math but perhaps for other languages and characters -this could happen, it is up to the language definition file to decide). - -When \verb|mathastext| detects that a character it wants to `mathematically -activate' is already `active', it does not go further except if it seems that -the activation was done by Babel. If the activation was done by Babel, then -\verb|mathastext| replaces the expansion of the active character in math mode by -what is necessary to achieve its goal. It does not additionally mathematically -activate the character; rather it makes sure that the character is \emph{not} -mathematically active. In the present document the colon was made mathematically -active by \verb|mathtools| but this was already canceled in the preamble by -\verb|mathastext| as it was loaded later. And it is better so, because the -combination \verb|babel| (with option \verb|frenchb|) +\verb|mathtools| (with -\verb|centercolon|) makes \verb|$:$| create an infinite loop! - -But even if someone had mathematically activated the colon after the preamble, -or after the loading of \verb|mathastext|, this would be canceled again -automatically for each inline or displayed mathematical formula (if the user -does \verb|\MTnonlettersobeymathxx|). - -The conclusion with \verb|\MTnonlettersobeymathxx| is: if some package has tried -to make the character mathematically active, this will be overruled by -\verb|mathastext|; if some package has made the character globally active, then -the package wins except if it is Babel, as \verb|mathastext| may in the latter -case safely modify the action in math mode (paying attention to the fact that -the character should be usable in \verb|\label| and \verb|\ref| in and outside -of math mode). - -The displayed equations next illustrate the extended scope of the math alphabets -which now apply to $=$, $-$, $($, $)$, $[$, $]$ (but not to the large delimiters -of course). Furthermore, for testing purposes the equations were labeled using -such characters, for example the last one has label \verb|eq=7|, to check that -the mathematical activation of $=$ does not cause problems with -\verb|\label/\ref|. - -\def\testformula{\quad\Biggl\lbrace\biggl(\left(\left[[\sin(a) + \cos(b) - \log(c) = -\sec(d)]\right]\right)\biggr)\Biggr\rbrace} -\begin{equation}\testformula\label{eq:1}\end{equation} -\begin{equation}\mathnormalbold{mathnormalbold:\testformula}\label{eq;2}\end{equation} -\begin{equation}\mathrm{mathrm:\testformula}\label{eq?3}\end{equation} -\begin{equation}\mathbf{mathbf:\testformula}\label{eq!4}\end{equation} -\begin{equation}\mathit{mathit:\testformula}\label{eq(5}\end{equation} -\begin{equation}\mathtt{mathtt:\testformula}\label{eq)6}\end{equation} -\begin{equation}\mathsf{mathsf:\testformula}\label{eq=7}\end{equation} - -Equations above are numbered \ref{eq:1}, \ref{eq;2}, \ref{eq?3}, \ref{eq!4}, and -$\ref{eq(5}$, $\ref{eq)6}$, and $\ref{eq=7}$. - -\def\testline#1{$#1$&$\mathnormalbold{#1}$&$\mathrm{#1}$&$\mathbf{#1}$&$\mathit{#1}$&$\mathtt{#1}$&$\mathsf{#1}$} - -\centerline{\begin{tabular}{ccccccc} -\testline{a!b}\\ -\testline{a?b}\\ -\testline{a,b}\\ -\testline{a;b}\\ -\testline{a:b}\\ -\testline{a:=b}\\ -\testline{a\vcentcolon= b}\\ -\testline{a\colon b}\\ -\testline{a.b}\\ -\testline{a-b}\\ -\testline{a+b}\\ -\testline{a=b}\\ -\testline{ab}\\ -\testline{}\\ -\testline{\mathopen{<} x,y\mathclose{>}}\\ -\testline{\left< x,y\right>}\\ -\testline{a/b}\\ -\testline{a\backslash b}\\ -\testline{a\setminus b}\\ -\testline{a|b}\\ -\testline{a\mid b}\\ -\testline{(a,b)}\\ -\testline{[a,b]}\\ -\testline{\{a,b\}} -\end{tabular}} - -The question mark has been made active by \verb|babel+frenchb|. -\verb|mathastext| has imposed in math mode its ways (now \verb|$\mathbf{???}$| -gives $\mathbf{???}$). As the extra spacing is added by \verb|frenchb| only in -text, we had to use the math alphabet to check that indeed \verb|mathastext| -overruled Babel. - -To double-check we will now make \string? mathematically active: -\verb|\mathcode`?="8000|\mathcode`?="8000. This is a sure cause for disaster -normally with Babel (don't do this at home without \verb|mathastext|!). But here -with \verb|$?$| no bad surprise (infinite loop!) awaits us: just $?$. - -Let's take some other character, for example the opening parenthesis, and make -it catcode active: -\verb|\catcode`(=\active \def ({X}|. -Let's try the input -\verb|( and $($|. -\begingroup -\catcode`(=\active \gdef ({X} -This gives ( and $($. We see that \verb|mathastext| does not attempt to modify -the definition of the active character, as this activation was not done via the -\verb|babel| services. \catcode`\(=12 \mathcode`(="8000 We now revert the -parenthesis to catcode other (but maintain \verb|\def ({X}| as definition of its -active version), and then make it mathematically active using the command -\verb|\mathcode`(="8000|. If we try \verb|$((($| we see that the parenthesis is -not converted into an $X$: $((($. The mathematically active character was -overruled by \verb|mathastext|. - -Issuing \verb|\MTnonlettersdonotobeymathxx|\MTnonlettersdonotobeymathxx\ we do -get the $X$'s from the input \verb|$((($|: $((($ -\endgroup -This shows that \verb|mathastext| now does not modify in math mode the -non-letter \verb|(|. - -\MTversion{upright}\MTnonlettersobeymathxx -We defined in the preamble of the document a \verb|mathastext|-enhanced -math version (named \verb|upright|) having the Latin letters upright in -math mode. Let's switch to -it: \newline -\hbox to\linewidth{\hss\verb|\MTversion{upright}|\hss} - -With a font which is neither italic nor slanted, \verb|mathastext| automatically -inserts italic corrections for better positioning of the subscript: -\verb|$f_i^i$| gives -$f_i^i$. -After \verb|\MTnoicinmath| which turns off this feature\MTnoicinmath{}, the same -input gives $f_i^i$, which is different. -\footnote{last time I tried, this only worked with PDF\LaTeX{}, not with - \LuaLaTeX{} or \XeTeX{}.} - -Again with italic corrections on (\verb|\MTicinmath|)\MTicinmath{} -\verb|$f_{abc}^{def}$| gives $f_{abc}^{def}$, and here is another one: -$f^{f_{abc}^{def}}_u$. Without italic corrections\MTnoicinmath: $f_{abc}^{def}$, -and respectively $f^{f_{abc}^{def}}_u$.\MTicinmath We can also check that the -added italic corrections do not prevent the formation of ligatures when using -the math alphabets, apart from \verb|\mathnormal| (which comes first): -$\mathnormal{ff}$, $\mathrm{ff}$, $\mathit{ff}$, $\mathbf{ff}$, $\mathtt{ff}$ -(no ligature in teletype) and $\mathsf{ff}$. - -\centerline{\begin{tabular}{ccccccc} -\testline{a!b}\\ -\testline{a?b}\\ -\testline{a,b}\\ -\testline{a;b}\\ -\testline{a:b}\\ -\testline{a:=b}\\ -\testline{a\vcentcolon= b}\\ -\testline{a\colon b}\\ -\testline{a.b}\\ -\testline{a-b}\\ -\testline{a+b}\\ -\testline{a=b}\\ -\testline{ab}\\ -\testline{}\\ -\testline{\mathopen{<} x,y\mathclose{>}}\\ -\testline{\left< x,y\right>}\\ -\testline{a/b}\\ -\testline{a\backslash b}\\ -\testline{a\setminus b}\\ -\testline{a|b}\\ -\testline{a\mid b}\\ -\testline{(a,b)}\\ -\testline{[a,b]}\\ -\testline{\{a,b\}} -\end{tabular}} - -\end{document} -\endinput -%% -%% End of file `mathastexttestalphabets.tex'. diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex b/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex deleted file mode 100644 index 41617ee37bc..00000000000 --- a/Master/texmf-dist/doc/latex/mathastext/mathastexttestmathversions.tex +++ /dev/null @@ -1,39 +0,0 @@ -\def\testfileincipit{Test file to accompany \texttt{mathastext} -version \texttt{1.3c} of \texttt{2013/12/14}} -%%---------------------------------------------------------------- -%% The mathastext package (version 1.3c of December 14, 2013) -%% Copyright (C) 2011, 2012, 2013 by Jean-Francois Burnol -%% Examples of use of mathastext: -%% http://jf.burnol.free.fr/mathastext.html -%% http://jf.burnol.free.fr/showcase.html -%%---------------------------------------------------------------- -%% This file `mathastexttestversions.tex' is for testing the enhanced -%% concept of math versions provided by the package `mathastext'. -%% -%% See `mathastext.dtx' for the copyright and conditions of distribution or -%% modification. -%% -\documentclass{article} -\usepackage[T1]{fontenc} -\usepackage{newcent} -\usepackage[subdued]{mathastext} -\Mathastext[newcent] -\renewcommand\familydefault\ttdefault -\Mathastext[courier] -\renewcommand\familydefault\sfdefault -\Mathastext[avantgarde] -\renewcommand\familydefault\rmdefault -\begin{document} -\testfileincipit - -text in NewCentury and $math\ as\ in\ default$,% -\MTversion{courier} text in Courier and $math\ in\ Courier$,% -\MTversion{avantgarde} text in AvantGarde and $math\ in\ AvantGarde$,% -\MTversion[newcent]{courier} text in NewCentury and $math\ in\ -Courier$,\MTversion{bold} text in bold NewCentury and $math\ as\ in\ -bold\ default$,\MTversion[courier]{avantgarde} text in Courier and -$math\ in\ AvantGarde$. -\end{document} -\endinput -%% -%% End of file `mathastexttestmathversions.tex'. diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex b/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex deleted file mode 100644 index 284047b0fa7..00000000000 --- a/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodelinux.tex +++ /dev/null @@ -1,97 +0,0 @@ -\def\testfileincipit{Test file to accompany \texttt{mathastext} -version \texttt{1.3c} of \texttt{2013/12/14}} -%%---------------------------------------------------------------- -%% The mathastext package (version 1.3c of December 14, 2013) -%% Copyright (C) 2011, 2012, 2013 by Jean-Francois Burnol -%% Examples of use of mathastext: -%% http://jf.burnol.free.fr/mathastext.html -%% http://jf.burnol.free.fr/showcase.html -%%---------------------------------------------------------------- -%% This file `mathastexttestunicodelinux.tex' is for testing the use -%% of the package `mathastext' with the unicode engines XeTeX or LuaLaTeX. -%% -%% Fonts available on a Linux machine are used. -%% -%% See `mathastext.dtx' for the copyright and conditions of distribution or -%% modification. -%% -\documentclass{article} -\usepackage[hscale=0.8]{geometry} -\usepackage{multicol} -\usepackage[no-math]{fontspec} -\usepackage{lmodern} -\usepackage{metalogo} -\usepackage{iftex} -\ifXeTeX -\expandafter\def\expandafter\testfileincipit\expandafter - {\testfileincipit\ (compiled with \XeLaTeX)} -\else -\ifLuaTeX -\expandafter\def\expandafter\testfileincipit\expandafter - {\testfileincipit\ (compiled with \LuaLaTeX)} -\fi\fi -\usepackage[subdued,italic,asterisk]{mathastext} -\setmainfont[Color=999999]{Verdana} \Mathastext[Verdana] -\setmainfont[Color=0000FF]{Arial} \Mathastext[Arial] -\setmainfont[Color=00C000]{DejaVu Serif} \Mathastext[DejaVu] -\setmainfont[Color=FF0000]{Andale Mono} \Mathastext[Andale] -\setmainfont[Color=C000C0]{URW Chancery L} \Mathastext[Chancery] -\setmainfont[Color=800080]{URW Palladio L} \Mathastext[Palladio] -\setmainfont[Color=808000]{Liberation Serif} \Mathastext[Liberation] -\MTDeclareVersion{Times}{T1}{ptm}{m}{n} -\begin{document} -\MTversion{normal} -\testfileincipit - -This test uses \verb|mathastext| with its \emph{italic}, \emph{asterisk}, and -\emph{subdued} options. The base document fonts are the Latin Modern ones (in -OpenType format). The other fonts used were chosen from those of a Linux -machine. We also used the Times font in T1 encoding, to illustrate a warning -from the user manual when using different encodings in the various math -versions: here the minus sign has disappeared from the Times math mode block, -precisely for this matter of encoding. - -Furthermore we test if the non-letter characters obey the math alphabet -\verb|\mathbf|. In the normal and bold math versions, this feature -is de-activated, as option \emph{subdued} was used; and if activated we -should then use in these math versions the package \verb|\Mathbf| rather -than \verb|\mathbf| which is there still the original one, which will -use encoding \verb|OT1| in the normal and bold versions, as we loaded -\verb|fontspec| with its option \emph{no-math}. - -Some among the fonts tested have no bold variant or no italic variant. - -\newcommand\TEST[1]{\MTversion{#1}\def\tmpa{#1}% - \def\tmpb{normal}\def\tmpc{bold}% - \ifx\tmpa\tmpb\else\ifx\tmpa\tmpc\else \MTnonlettersobeymathxx - \MTexplicitbracesobeymathxx\fi\fi -\begin{multicols}{2} -\hbox to\columnwidth{\hbox to\columnwidth{\hfil - $abcdefghijklmnopqrstuvwxyz$\hfil}\kern-2.5em{#1}} - \centerline{ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$ } - \centerline{ $0123456789$ } - \centerline{ $!\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\backslash$ } - \centerline{ $\mathbf{!\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\backslash}$ } -\columnbreak - \centerline{ abcdefghijklmnopqrstuvwxyz } - \centerline{ ABCDEFGHIJKLMNOPQRSTUVWXYZ } - \centerline{ 0123456789} - \centerline{ !\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\char92 } - \centerline{\bfseries !\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\char92 } -\end{multicols}} -\begin{multicols}{2} - \centerline{\textbf{math mode}} -\columnbreak - \centerline{ \textbf{text} } -\end{multicols} -\TEST{DejaVu}\TEST{Verdana}\TEST{Andale}\TEST{Palladio} -\TEST{Arial}\TEST{Chancery}\TEST{Liberation} -\TEST{bold}\TEST{normal}\TEST{Times} -\end{document} -\endinput -%% -%% End of file `mathastexttestunicodelinux.tex'. diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex b/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex deleted file mode 100644 index 4adb2080fce..00000000000 --- a/Master/texmf-dist/doc/latex/mathastext/mathastexttestunicodemacos.tex +++ /dev/null @@ -1,99 +0,0 @@ -\def\testfileincipit{Test file to accompany \texttt{mathastext} -version \texttt{1.3c} of \texttt{2013/12/14}} -%%---------------------------------------------------------------- -%% The mathastext package (version 1.3c of December 14, 2013) -%% Copyright (C) 2011, 2012, 2013 by Jean-Francois Burnol -%% Examples of use of mathastext: -%% http://jf.burnol.free.fr/mathastext.html -%% http://jf.burnol.free.fr/showcase.html -%%---------------------------------------------------------------- -%% This file `mathastexttestunicodemacos.tex' is for testing the use -%% of the package `mathastext' with the unicode engines XeTeX or LuaLaTeX. -%% -%% Mac OS X specific fonts are used (10.8.2). -%% -%% See `mathastext.dtx' for the copyright and conditions of distribution or -%% modification. -%% -\documentclass{article} -\usepackage[hscale=0.85]{geometry} -\usepackage{multicol} -\usepackage[no-math]{fontspec} -\usepackage{lmodern} -\usepackage{metalogo} -\usepackage{iftex} -\ifXeTeX -\expandafter\def\expandafter\testfileincipit\expandafter - {\testfileincipit\ (compiled with \XeLaTeX)} -\else -\ifLuaTeX -\expandafter\def\expandafter\testfileincipit\expandafter - {\testfileincipit\ (compiled with \LuaLaTeX)} -\fi\fi -\usepackage[subdued,italic,asterisk]{mathastext} -\setmainfont[Color=FF0000]{Hoefler Text} \Mathastext[Hoefler] -\setmainfont[Color=336633]{American Typewriter}\Mathastext[Typewriter] -\setmainfont[Color=0000FF]{Herculanum} \Mathastext[Herculanum] -\setmainfont[Color=FF00FF]{Didot} \Mathastext[Didot] -\setmainfont[Color=999999]{Comic Sans MS} \Mathastext[Comic] -\MTDeclareVersion{Times}{T1}{ptm}{m}{n} -\begin{document} -\MTversion{normal} -\testfileincipit - -This test uses \verb|mathastext| with its \emph{italic}, \emph{asterisk}, and -\emph{subdued} options. The base document fonts are the Latin Modern ones (in -OpenType format). The other fonts used were chosen from those of a Mac OS -machine. We also used the Times font in T1 encoding, to illustrate a warning -from the user manual when using different encodings in the various math -versions: here the minus sign has disappeared from the Times math mode block, -precisely for this matter of encoding. - -Furthermore we test if the non-letter characters obey the math alphabet -\verb|\mathbf|. In the normal and bold math versions, this feature is -de-activated, as option \emph{subdued} was used; and if activated we -should then use in these math versions the package \verb|\Mathbf| rather -than \verb|\mathbf| which is there still the original one, which will -use encoding \verb|OT1| in the normal and bold versions, as we loaded -\verb|fontspec| with its option \emph{no-math}. - -Some among the fonts tested have no bold variant or no italic variant. - -Note (tested 2013/09/03): for some reason the \verb|Color| specifications in the -\verb|\setmainfont| commands work only -with \XeTeX{}, not with \LuaLaTeX{}; a few months back I had not noticed -such a difference between the two engines. - -\newcommand\TEST[1]{\MTversion{#1}\def\tmpa{#1}% - \def\tmpb{normal}\def\tmpc{bold}% - \ifx\tmpa\tmpb\else\ifx\tmpa\tmpc\else \MTnonlettersobeymathxx - \MTexplicitbracesobeymathxx\fi\fi -\begin{multicols}{2} -\hbox to\columnwidth{\hbox to\columnwidth{\hfil - $abcdefghijklmnopqrstuvwxyz$\hfil}\kern-2.5em{#1}} - \centerline{ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$ } - \centerline{ $0123456789$ } - \centerline{ $!\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\backslash$ } - \centerline{ $\mathbf{!\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\backslash}$ } -\columnbreak - \centerline{ abcdefghijklmnopqrstuvwxyz } - \centerline{ ABCDEFGHIJKLMNOPQRSTUVWXYZ } - \centerline{ 0123456789 } - \centerline{ !\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\char92 } - \centerline{\bfseries !\,?\,*\,,\,.\,:\,;\,+\,-\,=\,(\,)\,[\,]\,/\,\#\,% - \$\,\%\,\&\,<\,>\,|\,\{\,\}\,\char92 } -\end{multicols}} -\begin{multicols}{2} - \centerline{\textbf{math mode}} -\columnbreak - \centerline{ \textbf{text} } -\end{multicols} -\TEST{Didot}\TEST{Comic}\TEST{normal}\TEST{Herculanum} -\TEST{Hoefler}\TEST{Typewriter}\TEST{bold}\TEST{Times} -\end{document} -\endinput -%% -%% End of file `mathastexttestunicodemacos.tex'. -- cgit v1.2.3