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