Steve Litt wrote:
> Hi all,
>
> I have a character style that I want to have a funky typeface*. Something 
> like 
> cmff. I can change the typeface in pure TeX, but I must name a size. What I'd 
> like is for the typeface change to occur at the current size, so if the 
> character style is used in a heading its size will be appropriate.
>
> Here's the change as I made it in TeX. Is there a way to do it in LaTeX, 
> hopefully in such a way that I won't have to name a size?
>   
I don't understand. I just compiled this file using LaTeX, and it worked
fine. So it seems to me you can just define a charstyle roughly like this:
CharStyle Funky
LatexType Command
LatexName funky
Font
Family Typewriter
EndFont
LabelFont
Family Roman
Color blue
EndFont
Preamble
\font\specialfont = cmff12
\newcommand\funky{\specialfont}
EndPreamble
End
More or less that, anyway. (We have to define the newcommand since
\specialfont is a declaration, not a command.)

Richard

>
> %==== BEGIN EXAMPLE ============
> \documentclass[12pt]{book}
> \usepackage{newcent}
> \font\specialfont = cmff12
>
> \begin{document}
> This is the normal font.
>
> {\specialfont This is the special font}
>
> This is the normal font.
>
> This is the normal font {\specialfont with special font
> embedded} in the normal font.
> \end{document}
> %==== END EXAMPLE ============
>
> SteveT
>
>
>
>
>
>
>
> * "Funky" is an American idiom for informal, nonprofessional.
>   


-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to