diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2009-08-23 11:11:32 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2009-08-23 11:11:32 +0000 |
commit | 8fc3039c82d48605b5ca8b2eda3f4fdd755681e1 (patch) | |
tree | 3cd9bbdd599bc4d1ac0409e167fee2136e4c0ec9 /Master/texmf-dist/tex/context/base/supp-fun.tex | |
parent | 850fc99b7cd3ae7a20065531fe866ff7bae642ec (diff) |
this is context 2009.08.19 17:10
git-svn-id: svn://tug.org/texlive/trunk@14827 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/supp-fun.tex')
-rw-r--r-- | Master/texmf-dist/tex/context/base/supp-fun.tex | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/context/base/supp-fun.tex b/Master/texmf-dist/tex/context/base/supp-fun.tex index b3b27032826..6b26437038e 100644 --- a/Master/texmf-dist/tex/context/base/supp-fun.tex +++ b/Master/texmf-dist/tex/context/base/supp-fun.tex @@ -22,7 +22,7 @@ \ifx \undefined \writestatus \input supp-mis.tex \relax \fi -\writestatus{loading}{Context Support Macros / Fun Stuff} +\writestatus{loading}{ConTeXt Support Macros / Fun Stuff} \ifx\definefont\undefined \def\definedfont[#1]{\font\temp#1\relax\temp} @@ -346,8 +346,8 @@ \forgetall \bgroup #1% - \setbox0\box\voidb@x - \setbox2\box\voidb@x + \setbox0\emptybox + \setbox2\emptybox \def\grabfirstline##1 % {\setbox2\hbox {\ifvoid0 @@ -356,8 +356,8 @@ \unhcopy0\ {#4{##1}}% \fi}% \ifdim\wd2=\zeropoint - \setbox0\box\voidb@x - \setbox2\box\voidb@x + \setbox0\emptybox + \setbox2\emptybox \@EA\grabfirstline \else\ifdim\wd2>\hsize \hbox to \hsize{\strut\unhbox0}#2\egroup @@ -377,7 +377,7 @@ %D \definecolor[FunnyColor][r=\FunnyR,g=\FunnyG,b=\FunnyB]% %D \color[FunnyColor]} %D -%D \TreatFirstLine {\bf} {} {\FunnyCommand} {\FunnyCommand} +%D %\TreatFirstLine {\bf} {} {\FunnyCommand} {\FunnyCommand} %D The third and fourth argument can be used to gain special %D effects on the individual words. Of course one needs ... %D \stopbuffer @@ -560,7 +560,7 @@ \def\NormalizeFontSize#1#2#3#4#5% {\bgroup - \dimen0=#4% #4 can be \ht0 or so + \dimen0=#4% #4 can be \ht0 or so \setbox0\hbox{\definedfont[#5 at 5pt]#3}% 10pt \ifdim\wd0>\zeropoint \dimen2=#10 % #1 is \wd or \ht @@ -573,10 +573,13 @@ \else \dimen0\bodyfontsize \fi - \definedfont[#5 at \the\dimen0]% - \expandafter - \egroup - \expandafter\font\expandafter#2\fontname\font\relax} + % mkii + % \definedfont[#5 at \the\dimen0]% + % \expandafter + % \egroup + % \expandafter\font\expandafter#2\fontname\font\relax} + % mkiv safe (file: prefix etc) + \expanded{\egroup\def\noexpand#2{\definedfont[#5 at \the\dimen0]}}} %D Afterwards, we have access to the calculated size by: |