summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/base
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-10-03 22:27:53 +0000
committerKarl Berry <karl@freefriends.org>2013-10-03 22:27:53 +0000
commit85e6281fb1b094bd9068faaca640cf986462beaa (patch)
tree97ee4c2809eb8c695f3614e815f7f71ada23e924 /Master/texmf-dist/tex/csplain/base
parent09e1426c4043fd06c9166f620948c26696ce908a (diff)
csplain (3oct13)
git-svn-id: svn://tug.org/texlive/trunk@31825 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/csplain/base')
-rw-r--r--Master/texmf-dist/tex/csplain/base/csfontsm.tex31
-rw-r--r--Master/texmf-dist/tex/csplain/base/csplain.ini5
2 files changed, 23 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/csplain/base/csfontsm.tex b/Master/texmf-dist/tex/csplain/base/csfontsm.tex
index a8d78de7f40..840912f1903 100644
--- a/Master/texmf-dist/tex/csplain/base/csfontsm.tex
+++ b/Master/texmf-dist/tex/csplain/base/csfontsm.tex
@@ -20,11 +20,24 @@
% The \regfont adds a new `registered' font-selector to the \resizeall macro
% The font-loading macros can register their fonts by \regfont.
-\def\sizespec{} % by default: fonts are loaded in their implicit sizes
+% You can use: \letfont \titlefont = \tenbf at15pt
+
+\def\letfont#1#2{\ifx#2=\expandafter\letfont\expandafter#1\else
+ \expandafter\font\expandafter#1\expandafter
+ \rfontskipat\fontname#2 \relax\space \fi}
+
+ % XeTeX expands \fontname to "name with spaces":
+\def\rfontskipat#1{\ifx#1"\expandafter\rfskipatX
+ \else\expandafter\rfskipatN\expandafter#1\fi}
+\def\rfskipatX #1" #2\relax{"\whichtfm{#1}"}
+\def\rfskipatN #1 #2\relax{\whichtfm{#1}}
+
+\def\whichtfm#1{#1} % User can redefine it in order to select proper
+ % dessign size of the font, see ams-math.tex for
+ % example.
+\def\resizefont#1{\letfont#1#1\sizespec}
-\def\resizefont #1{\expandafter
- \font\expandafter#1\expandafter\resizefontskipat\fontname#1 \relax}
-\def\resizefontskipat#1 #2\relax{#1 \sizespec\relax}
+\ifx\resizeall\undefined \else \endinput \fi
\font\tenbi=csbxti10 % it may be usable to have
% the quartet \rm \it \bf \bi preloaded
@@ -34,15 +47,9 @@
\resizeall \resizefont#1}}
\def\resizeall{}
+\regfont\tenrm \regfont\tenit \regfont\tenbf \regfont\tenbi \regfont\tentt
-\regfont\tenrm \regfont\tenit \regfont\tenbf \regfont\tenbi
-\regfont\tentt
-
-% You can use: \letfont \titlefont = \tenbf at15pt
-
-\def\letfont #1{%
- \def\tmp##1 {\let\tmp\sizespec \def\sizespec{##1}\resizefont#1\let\sizespec\tmp}%
- \afterassignment\tmp \let#1}
+\def\sizespec{} % by default: fonts are loaded in their implicit sizes
\endinput %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/Master/texmf-dist/tex/csplain/base/csplain.ini b/Master/texmf-dist/tex/csplain/base/csplain.ini
index b8648e5af3e..0616351b125 100644
--- a/Master/texmf-dist/tex/csplain/base/csplain.ini
+++ b/Master/texmf-dist/tex/csplain/base/csplain.ini
@@ -7,7 +7,7 @@
\input hyphen.lan % czech / slovak hyphenation pattern (may be others too)
\input plaina4 % \hsize and \vsize for A4
\everyjob=\expandafter{\the\everyjob
- \message{The format: csplain <Jan. 2013>.}
+ \message{The format: csplain <Sep. 2013>.}
\message{The cs-fonts are preloaded and A4 size implicitly defined.}}
\ifx\xprncode\undefined \else %% The encTeX is detected
\count255=128 % All codes > 128 are printable:
@@ -188,6 +188,9 @@ file extcode.tex renamed to il2code.tex (suggested by Jan Kasprzak)
* csplain.ini: PDF output initialized if \jobname=pdf*
* chars-8z: \crq 155->96
+** 11 ** <Sep. 2013>
+* \letfont in csfontsm.tex reimplemented (XeTeX's \fontname with spaces)
+* ams-math.tex and tx-math.tex use \letfont.
COPYRIGHT
=========