On Wednesday 12 March 2008 11:27, Paul A. Rubin wrote:
> Steve Litt wrote:
> > I'll do that if I can't find the command containing the current font, but
> > \begingroup and \endgroup don't nest. My real hope was to implement a
> > stack, push the current font on the stack, set the new font, write the
> > text, then pop the old font off the stack and reset the current font to
> > it. That way I could nest environments and character styles ad-infinitum,
> > and also, it would just be so kewl!
>
> What about starting in normal font then {\footnotesize shrinking the
> font and {\tiny maybe shrinking even more, then } restoring the smaller
> size and eventually } the normal size?  The braces need to be in ERT,
> along with the font commands.  I think the same should work for other
> font commands (family, shape, ...), and AFAIK they're nestable.
>
> /Paul

Thanks Paul,

I used your {} technique in my commandbold character style, which is often 
applied inside my custom modified LyX-Code environment, and it worked 
perfectly.

That being said, I'd *still* like to know how to save the current font, and 
how to implement a stack, just for the sake of knowing.

Thanks

SteveT

Steve Litt
Books written in LyX:
        Troubleshooting Techniques of the Successful Technologist
        Twenty Eight Tales of Troubleshooting
        Troubleshooting: Just the Facts

Reply via email to