At 09:39 PM 9/14/2001 +0200, Marco Kuhlmann wrote:
>Hans Hagen wrote (2001-09-14 (13:10)):
>
> > \definestartstop[xxx][style=versface]
>
>But still, if I want a header to be typeset with let us say
>\bf, then \xxx not only changes the font size, but also
>switches to the regular (non-bold) font. What I need is a
>command that just changes the size of the font, and keeps all
>the other parameters.
Hm, so you want to preserve a font state but do a rather massive change at
the same time.
\definetypeface[one][rm][serif][computer-roman][default]
\definetypeface[two][rm][serif][computer-roman][default][rscale=.9]
\def\pushcurrentfont
{\edef\popcurrentfont
{\noexpand\def\noexpand\fontbody{\fontbody}%
\noexpand\def\noexpand\fontstyle{\fontstyle}%
\noexpand\dosetcurrentfontalternative{\fontalternative}%
\noexpand\dosetcurrentfontsize{\fontsize}%
\noexpand\synchronizefont}}
{\one \bf test \two test}
{\one \bf test \pushcurrentfont \two \popcurrentfont test}
I have to give this some thought. maybe make it an optional default or
so. I would say: play a bit with it and let me know.
btw, another option is:
{test \setcurrentfontbody{10pt} test}
{\bf test \setcurrentfontbody{6pt} test}
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------