On Tuesday 15 May 2007 11:56, Richard Heck wrote:
> 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

Thanks Richard,

My code, and yours, work well assuming the charcter style is applied to body 
text or something of a similar size. However, if applied to a section 
heading, it will print out at 12 point when the rest of the section heading 
prints out at 24 point or whatever.

In other words, I'm looking for a way to make something like the cmff 
equivalent of \texttt{text} or \textsf{text}.

Thanks

SteveT

Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/

Reply via email to