Cool, I got it to work with TIPA using the following code:
CharStyle ipa
LatexType Environment
LatexName textipa
Font
Family Sans
EndFont
LabelFont
Family Roman
Color red
EndFont
End
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.
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?
On 3/23/06, Paul A. Rubin <[EMAIL PROTECTED]> wrote:
> Stacia Hartleben wrote:
> > How do you use the new feature charstyle-insert? I tried running it
> > from the command buffer in the 1.4.1 pre for windows but I get
> > "Command disabled". How can I turn this back on? I was looking forward
> > to it being an easy way to mark font styles and so on...
> >
>
> Your layout file has to be aware of the character styles you intend to
> use. My understanding (watching from a safe distance) is that
> eventually the developers intend character styles to be definable from
> the GUI, but right now you need to hack the layout file.
>
> If you look in the .../layouts directory for 1.4.x, you'll see a file
> db_stdcharstyle.inc, which José Matos apparently cooked up for the
> docbook class. The docbook.layout file inputs db_stdclass.inc, which in
> turn inputs db_stdcharstyles.inc.
>
> Once your layout file contains (or loads) character styles, the buffer
> command to insert them will work. Whether the character styles
> themselves will is another question entirely. I'm not a docbook user,
> but I assume that the LatexName entries in db_stdcharstyles.inc (for
> instance, "filename") correspond to docbook macros ("\filename"). If
> your character styles use macros not already known to LaTeX, you'll need
> to define them in the Preamble subsection of each CharStyle section. I
> think. (Confession: Haven't tried yet myself.)
>
> /Paul
>
>
>