summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-12 22:55:50 +0000
committerKarl Berry <karl@freefriends.org>2013-12-12 22:55:50 +0000
commit58e9dc36a6522eda2493956fc1afa754ad91ed75 (patch)
tree5408b6e26e90705c672f1992ebabbf50e04a4ef1 /Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
parent56e6621537fc012c8c61abde2fe8f1ec880f0a8d (diff)
mathastext (12dec13)
git-svn-id: svn://tug.org/texlive/trunk@32394 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex')
-rw-r--r--Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex43
1 files changed, 22 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
index f38273070b8..376eef67d25 100644
--- a/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
+++ b/Master/texmf-dist/doc/latex/mathastext/mathastexttestalphabets.tex
@@ -1,10 +1,12 @@
\def\testfileincipit{Test file to accompany \texttt{mathastext}
-version \texttt{1.3a} of \texttt{2013/09/04.}}
-%%
-%% Package `mathastext', for LaTeX2e.
-%% Author: Jean-Francois Burnol
+version \texttt{1.3b} of \texttt{2013/12/11}}
+%%----------------------------------------------------------------
+%% The mathastext package (version 1.3b of December 10, 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.
@@ -23,6 +25,8 @@ version \texttt{1.3a} of \texttt{2013/09/04.}}
%% *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,
@@ -35,6 +39,8 @@ version \texttt{1.3a} of \texttt{2013/09/04.}}
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}
@@ -176,18 +182,14 @@ 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|.
+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|$((($|: $((($
@@ -196,7 +198,6 @@ 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
@@ -208,9 +209,9 @@ 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{}.}
+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: