summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/mathfont
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-08-01 21:17:25 +0000
committerKarl Berry <karl@freefriends.org>2018-08-01 21:17:25 +0000
commit4e5c03e428307ce7c8ff8b7b6cb1d2abc9cd83b9 (patch)
treea5b2f068407065ba9374d24f5645ee8033abaf38 /Master/texmf-dist/source/latex/mathfont
parentc70a9d62d23e2c3bd11719ef5af274c9a0c8471c (diff)
mathfont (1aug18)
git-svn-id: svn://tug.org/texlive/trunk@48329 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/mathfont')
-rw-r--r--Master/texmf-dist/source/latex/mathfont/mathfont.drv45
-rw-r--r--Master/texmf-dist/source/latex/mathfont/mathfont.dtx97
-rw-r--r--Master/texmf-dist/source/latex/mathfont/mathfont.ins68
3 files changed, 83 insertions, 127 deletions
diff --git a/Master/texmf-dist/source/latex/mathfont/mathfont.drv b/Master/texmf-dist/source/latex/mathfont/mathfont.drv
deleted file mode 100644
index e3779195c84..00000000000
--- a/Master/texmf-dist/source/latex/mathfont/mathfont.drv
+++ /dev/null
@@ -1,45 +0,0 @@
-%%
-%% This is file `mathfont.drv',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% mathfont.dtx (with options: `driver')
-%%
-%% Copyright 2018 by Conrad Kosowsky
-%%
-%% This file may be distributed and modified under the terms
-%% of the LaTeX Public Project License, version 1.3c or any later version.
-%% The most recent version of this license is available online at
-%%
-%% https://www.latex-project.org/lppl/.
-%%
-%% This work has the LPPL status "maintained," and the current maintainer
-%% is the package author, Conrad Kosowsky. He can be reached at
-%% kosowsky.latex@gmail.com. The work consists of the file mathfont.dtx,
-%% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
-%% all other files created through the configuration process such as
-%% mathfont.pdf, mathfont.idx, and mathfont.ind. For more
-%% information, see the original mathfont.dtx file.
-%%
-\ProvidesFile{mathfont.drv}
-\documentclass[12pt]{ltxdoc}
-\makeatletter
-\usepackage[margin=72.27pt]{geometry}
-\usepackage[factor=600,stretch=14,shrink=14,step=1]{microtype}
-\usepackage{booktabs}
-\usepackage{graphicx}
-\hyphenpenalty=10
-\exhyphenpenalty=5
-\pretolerance=50
-\finalhyphendemerits=500
-\c@IndexColumns=2
-\EnableCrossrefs
-\CodelineIndex
-\begin{document}
- \DocInput{mathfont.dtx}\eject
- \PrintIndex
-\end{document}
-\endinput
-%%
-%% End of file `mathfont.drv'.
diff --git a/Master/texmf-dist/source/latex/mathfont/mathfont.dtx b/Master/texmf-dist/source/latex/mathfont/mathfont.dtx
index b47c2ebd517..0f39863b248 100644
--- a/Master/texmf-dist/source/latex/mathfont/mathfont.dtx
+++ b/Master/texmf-dist/source/latex/mathfont/mathfont.dtx
@@ -16,7 +16,7 @@
% This work has the LPPL status "maintained," and the current maintainer
% is the package author, Conrad Kosowsky. He can be reached at
% kosowsky.latex@gmail.com. The work consists of the file mathfont.dtx,
-% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+% the derived files mathfont.sty and mathfont_greek.tex, and
% all other files created through the configuration process such as
% mathfont.pdf, mathfont.idx, and mathfont.ind.
%
@@ -26,6 +26,11 @@
% \fi
%
% \iffalse
+%
+% The installation and driver files are incorporated into mathfont.dtx,
+% so we do not need to generate them saparately. The <batchfile> and
+% <driver> tags are for reference.
+%
%<*batchfile>
\begingroup
\input docstrip.tex
@@ -43,16 +48,15 @@ The most recent version of this license is available online at
This work has the LPPL status "maintained," and the current maintainer
is the package author, Conrad Kosowsky. He can be reached at
kosowsky.latex@gmail.com. The work consists of the file mathfont.dtx,
-the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
+the derived files mathfont.sty and mathfont_greek.tex, and
all other files created through the configuration process such as
mathfont.pdf, mathfont.idx, and mathfont.ind. For more
information, see the original mathfont.dtx file.
\endpreamble
\generate{
- \file{mathfont.ins}{\from{mathfont.dtx}{batchfile}}
- \file{mathfont.drv}{\from{mathfont.dtx}{driver}}
- \file{mathfont.sty}{\from{mathfont.dtx}{package}}}
+ \file{mathfont.sty}{\from{mathfont.dtx}{package}}
+ \file{mathfont_greek.tex}{\from{mathfont.dtx}{greek}}}
\bgroup
\catcode`\ =\active
\def {\space}
@@ -69,8 +73,8 @@ information, see the original mathfont.dtx file.
******************************************^^J^^J}
\egroup\endgroup
%</batchfile>
+%
%<*driver>
-\ProvidesFile{mathfont.drv}
\documentclass[12pt]{ltxdoc}
\makeatletter
\usepackage[margin=72.27pt]{geometry}
@@ -90,9 +94,10 @@ information, see the original mathfont.dtx file.
\end{document}
%</driver>
%<*package>
+%
% \fi
%
-% \CheckSum{2256}
+% \CheckSum{2257}
%
% \makeatother\CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -182,9 +187,9 @@ information, see the original mathfont.dtx file.
% \renewcommand\topfraction{0.9}
%
% {\large
-% \centerline{\Large Package \textsf{mathfont} v.\ 1.1b Documentation}\par
+% \centerline{\Large Package \textsf{mathfont} v.\ 1.2 Documentation}\par
% \centerline{Conrad Kosowsky}\par
-% \centerline{July 2018}\par
+% \centerline{August 2018}\par
% \centerline{\ttfamily kosowsky.latex@gmail.com}\par}
%
% \bigskip
@@ -201,7 +206,7 @@ information, see the original mathfont.dtx file.
%
% The \textsf{mathfont} package uses \textsf{fontspec} as a back end to load fonts for use in math mode, and it provides two ways to do this: (1) changing the default font for certain classes of math mode characters; and (2) defining new commands that change the font locally for the so-called ``math alphabet'' characters. (The math alphabet characters are all Latin letters, all Arabic numerals, and any Greek letters that \textsf{mathfont} has set the font for.) The package can change the math font for Latin and Greek letters, Arabic numerals, and unicode alphanumeric symbols to any unicode OpenType or TrueType font. Tables~1 and 2 display the individual classes of characters that \textsf{mathfont}'s default font-change command acts on, and currently, \textsf{mathfont} does not support font changes for any mathematical symbols beyond those in both tables, although it does provide control sequences to typeset several ancient Greek characters that are typically unavailable.
%
-% The package can be loaded with the standard |\usepackage| syntax. The only valid option for \textsf{mathfont} is ``|packages|,'' and this option determines when \textsf{mathfont} resets two \LaTeX\ internal commands used in declaring math characters. During loading, \textsf{mathfont} redefines two \LaTeX\ internal macros so that \LaTeX can declare math symbols from unicode fonts. The |\mathfont| command works only with these redefinitions, and the package will issue an error if the user calls the command without them. If the user loads the package without the |packages| option, \textsf{mathfont} will reset these two \LaTeX\ kernel macros just before the user loads another package, and at that point, the user will not be able to call the |\mathfont| control sequence any more. The advantage of this behavior is that it makes \textsf{mathfont} less likely to disturb the functionality of other packages, particularly those that define any math symbols. With |packages|, \textsf{mathfont} does nto reset the kernel automatically, so users can call |\mathfont| any time in the document preamble. The command |\restoremathinternals| manually restores the kernal, and users who load \textsf{mathfont} without |packages| should use this command to avoid clashes with other packages. In any event, it is best practice to include all |\mathfont| commands immediately after loading the package.
+% The package can be loaded with the standard |\usepackage| syntax. The only valid option for \textsf{mathfont} is ``|packages|,'' and this option determines when \textsf{mathfont} resets two \LaTeX\ internal commands used in declaring math characters. During loading, \textsf{mathfont} redefines two \LaTeX\ internal macros so that \LaTeX\ can declare math symbols from unicode fonts. The |\mathfont| command works only with these redefinitions, and the package will issue an error if the user calls the command without them. If the user loads the package without the |packages| option, \textsf{mathfont} will reset these two \LaTeX\ kernel macros just before the user loads another package, and at that point, the user will not be able to call the |\mathfont| control sequence any more. The advantage of this behavior is that it makes \textsf{mathfont} less likely to disturb the functionality of other packages, particularly those that define any math symbols. With |packages|, \textsf{mathfont} does nto reset the kernel automatically, so users can call |\mathfont| any time in the document preamble. The command |\restoremathinternals| manually restores the kernal, and users who load \textsf{mathfont} without |packages| should use this command to avoid clashes with other packages. In any event, it is best practice to include all |\mathfont| commands immediately after loading the package.
%
% The functionality of \textsf{mathfont} is most closely related to that of the \textsf{mathspec} package by Andrew Gilbert Moschou. These two packages incorporate the use of individual unicode characters into math mode, and their symbol declaration process is similar. Both use \textsf{fontspec} as a back end. Both create font-changing commands for math mode characters. However, the functionality differs in two crucial respects: \textsf{mathfont} is compatible with Lua\LaTeX, and its local math-font-changing mechanisms provide a slightly greater level of flexibility than what users can achieve with \textsf{mathspec}. Further, as far as I am aware, this package is the first to provide robust support for the unicode alphanumeric symbols listed in Table~2, even in the context of fonts without built-in math support. (Please let me know if this is incorrect!) In this way \textsf{mathfont}, like \textsf{mathspec}, is significantly more versatile than the \textsf{unicode-math} package, although its impact is less far-reaching. Unlike the \textsf{mathastext} package, \textsf{mathfont} preserves \TeX's traditional mathematics spacing.
%
@@ -390,7 +395,7 @@ information, see the original mathfont.dtx file.
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{mathfont}[2018/06/14 v. 1.1b Package mathfont]
+\ProvidesPackage{mathfont}[2018/08/01 v. 1.2 Package mathfont]
\newif\if@packages
\DeclareOption{packages}{\@packagestrue}
\DeclareOption*{\PackageError{mathfont}
@@ -480,7 +485,7 @@ information, see the original mathfont.dtx file.
just before your \string#1, so\MessageBreak
we should be all good now.}}
\def\M@XeTeXLuaTeXError{\PackageError{mathfont}
- {!!FATAL ERROR!! : Missing XeTeX or LuaTeX}
+ {!!FATAL ERROR!! : Missing\MessageBreak XeTeX or LuaTeX}
{This package requires either\MessageBreak
XeLaTeX or LuaLaTeX. Please\MessageBreak
retypeset this document with\MessageBreak
@@ -749,7 +754,7 @@ information, see the original mathfont.dtx file.
\def\@mathcal##1{\process@tokens{##1}{cal}}}
\def\define@frak{%
\M@CommandInitializeInfo{fraktur}
- \def\mathcal{\check@mmode\mathfrak\@mathfrak}
+ \def\mathfrak{\check@mmode\mathfrak\@mathfrak}
\def\@mathfrak##1{\process@tokens{##1}{frak}}}
\def\define@bcal{%
\M@CommandInitializeInfo{bold calligraphic}
@@ -1260,8 +1265,72 @@ information, see the original mathfont.dtx file.
% \end{macrocode}
%
% \iffalse
+%
%</package>
+%<*greek>
+\documentclass[12pt]{article}
+\usepackage[margin=72.27pt]{geometry}
+\usepackage{booktabs}
+\usepackage{mathfont}
+\mathfont[greekupper,greeklower=roman]{Symbola}
+\usepackage{shortvrb}
+\MakeShortVerb{|}
+\pagestyle{empty}
+\begin{document}
+
+
+\topskip=0pt
+
+\centering
+
+\vbox to 0pt{}\vfil\nointerlineskip
+
+
+Greek Characters Provided by \textsf{mathfont}, Rendered in Symbola\par\penalty10000\smallskip
+\begin{tabular}{llllllll}
+\toprule
+\multicolumn{4}{c}{Modern Greek Characters} & \multicolumn{4}{c}{Ancient Greek Characters}\\
+\cmidrule(r{3pt}){1-4}\cmidrule(l{3pt}){5-8}
+\multicolumn{2}{c}{Capital} & \multicolumn{2}{c}{Minuscule} & \multicolumn{2}{c}{Capital} & \multicolumn{2}{c}{Minuscule}\\
+\midrule
+|\Alpha| & $\Alpha$ & |\alpha| & $\alpha$ & |\Heta| & $\Heta$ & |\heta| & $\heta$ \\
+|\Beta| & $\Beta$ & |\beta| & $\beta$ & |\Sampi| & $\Sampi$ & |\sampi| & $\sampi$ \\
+|\Gamma| & $\Gamma$ & |\gamma| & $\gamma$ & |\Diagamma| & $\Diagamma$ & |\diagamma| & $\diagamma$ \\
+|\Delta| & $\Delta$ & |\delta| & $\delta$ & |\Koppa| & $\Koppa$ & |\koppa| & $\koppa$ \\
+|\Epsilon| & $\Epsilon$ & |\epsilon| & $\epsilon$ & |\Stigma| & $\Stigma$ & |\stigma| & $\stigma$ \\
+|\Zeta| & $\Zeta$ & |\zeta| & $\zeta$ & |\Sho| & $\Sho$ & |\sho| & $\sho$ \\
+|\Eta| & $\Eta$ & |\eta| & $\eta$ & |\San| & $\San$ & |\san| & $\san$ \\
+|\Theta| & $\Theta$ & |\theta| & $\theta$ & |\varSampi | & $\varSampi$ & |\varsampi| & $\varsampi$ \\
+|\Iota| & $\Iota$ & |\iota| & $\iota$ & |\varDiagamma| & $\varDiagamma$ & |\vardiagamma| & $\vardiagamma$ \\
+|\Kappa| & $\Kappa$ & |\kappa| & $\kappa$ & |\varKoppa| & $\varKoppa$ & |\varkoppa| & $\varkoppa$ \\
+|\Lambda| & $\Lambda$ & |\lambda| & $\lambda$ & & & & \\
+|\Mu| & $\Mu$ & |\mu| & $\mu$ & & & & \\
+|\Nu| & $\Nu$ & |\nu| & $\nu$ & & & & \\
+|\Xi| & $\Xi$ & |\xi| & $\xi$ & & & & \\
+|\Omicron| & $\Omicron$ & |\omicron| & $\omicron$ & & & & \\
+|\Pi| & $\Pi$ & |\pi| & $\pi$ & & & & \\
+|\Rho| & $\Rho$ & |\rho| & $\rho$ & & & & \\
+|\Sigma| & $\Sigma$ & |\sigma| & $\sigma$ & & & & \\
+|\Tau| & $\Tau$ & |\tau| & $\tau$ & & & & \\
+|\Upsilon| & $\Upsilon$ & |\upsilon| & $\upsilon$ & & & & \\
+|\Phi| & $\Phi$ & |\phi| & $\phi$ & & & & \\
+|\Chi| & $\Chi$ & |\chi| & $\chi$ & & & & \\
+|\Psi| & $\Psi$ & |\psi| & $\psi$ & & & & \\
+|\Omega| & $\Omega$ & |\omega| & $\omega$ & & & & \\
+|\varTheta| & $\varTheta$ & |\varbeta| & $\varbeta$ & & & & \\
+ & & |\varepsilon| & $\varepsilon$ & & & & \\
+ & & |\vartheta| & $\vartheta$ & & & & \\
+ & & |\varrho| & $\varrho$ & & & & \\
+ & & |\varsigma| & $\varsigma$ & & & & \\
+ & & |\varphi| & $\varphi$ & & & & \\
+\bottomrule
+\end{tabular}
+
+
+\end{document}
+%</greek>
+%
% \fi
%
% \Finale
-\endinput
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/source/latex/mathfont/mathfont.ins b/Master/texmf-dist/source/latex/mathfont/mathfont.ins
deleted file mode 100644
index fd559decbc6..00000000000
--- a/Master/texmf-dist/source/latex/mathfont/mathfont.ins
+++ /dev/null
@@ -1,68 +0,0 @@
-%%
-%% This is file `mathfont.ins',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% mathfont.dtx (with options: `batchfile')
-%%
-%% Copyright 2018 by Conrad Kosowsky
-%%
-%% This file may be distributed and modified under the terms
-%% of the LaTeX Public Project License, version 1.3c or any later version.
-%% The most recent version of this license is available online at
-%%
-%% https://www.latex-project.org/lppl/.
-%%
-%% This work has the LPPL status "maintained," and the current maintainer
-%% is the package author, Conrad Kosowsky. He can be reached at
-%% kosowsky.latex@gmail.com. The work consists of the file mathfont.dtx,
-%% the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
-%% all other files created through the configuration process such as
-%% mathfont.pdf, mathfont.idx, and mathfont.ind. For more
-%% information, see the original mathfont.dtx file.
-%%
-\begingroup
-\input docstrip.tex
-\keepsilent
-\preamble
-
-Copyright 2018 by Conrad Kosowsky
-
-This file may be distributed and modified under the terms
-of the LaTeX Public Project License, version 1.3c or any later version.
-The most recent version of this license is available online at
-
- https://www.latex-project.org/lppl/.
-
-This work has the LPPL status "maintained," and the current maintainer
-is the package author, Conrad Kosowsky. He can be reached at
-kosowsky.latex@gmail.com. The work consists of the file mathfont.dtx,
-the derived files mathfont.ins, mathfont.drv, and mathfont.sty, and
-all other files created through the configuration process such as
-mathfont.pdf, mathfont.idx, and mathfont.ind. For more
-information, see the original mathfont.dtx file.
-
-\endpreamble
-\generate{
- \file{mathfont.ins}{\from{mathfont.dtx}{batchfile}}
- \file{mathfont.drv}{\from{mathfont.dtx}{driver}}
- \file{mathfont.sty}{\from{mathfont.dtx}{package}}}
-\bgroup
-\catcode`\ =\active
-\def {\space}
-\message{^^J^^J
-******************************************^^J
-* *^^J
-* To finish the installation, move the *^^J
-* following file into a directory *^^J
-* searchable by TeX once mathfont.dtx *^^J
-* finishes compiling: *^^J
-* *^^J
-* mathfont.sty *^^J
-* *^^J
-******************************************^^J^^J}
-\egroup\endgroup
-\endinput
-%%
-%% End of file `mathfont.ins'.