Stacia Hartleben wrote:
Neat. I just wish there were an easier way to mark text. I posted a
feature request on bugzilla that requested drop down menus for things
like colors, font sizes, and hopefully char styles. That would be
really cool.
Agreed.
Just one more question though - I put a true type font in using MTFI,
for which I have the following clunky ERT every time I want to use it:
\usefont{T1}{stacish}{m}{n} \selectfont hello \usefont{T1}{ae}{m}{n} \selectfont
How can I make this a simple charstyle-insert?
Try this:
CharStyle funky
LatexType Environment
LatexName funky
Font
Family Roman
EndFont
Preamble
\newcommand{\funky}[1]{{\usefont{T1}{stacish}{m}{n}\selectfont #1}}
EndPreamble
End
Note the intentional doubled braces {{, }}. By inserting both the font
commands and the text inside braces, we avoid having to switch back to
ae -- which means you can use a different global font in the document
without having to change 'ae' to something else in the command.
BTW, as best I can tell, the LatexType is ignored in character styles,
at least to the extent that environment is treated the same as command.
/Paul