On Sat, Sep 08, 2001 at 05:54:31PM -0400, Steve Litt wrote:
> I'd like to create my own custom font (in LyX, not just in Latex). According 
> to Customization.lyx, 
> 
> Is there a name property to give it a name so I can bind it to a menu? Is 
> there a latex property so I can associate it with a latex font?
> 
> What I'm trying to do is create a custom character style (NOT an Environment) 
> called "step" that I use for steps in the Universal Troubleshooting Process. 
> There are hundreds of occurrences of these, so I don't want to use 
> font-underline or something like that. Nor do I want to stop every time and 
> go into tex mode. What I'd like to do is highlight the phrase, and 
> Layout->StepStyle, and have the right thing happen in LyX and in the 
> Postscript output. There are several other character styles I need to do, but 
> once I have one I can do the rest myself.

No. This is one of the main missing features of LyX, but there are plans to
add it soon.

In the meantime, you can use the following hack:
Use colors for character styles, and put \usepackage{mystyles} in the preamble
(you can put it in the layout file), where mystyles.sty is something like

\usepackage{ifthen}
\renewcommand{\textcolor}[2]{%
\ifthenelse{\equal{#1}{red}}{\textit{#2}}{}%
\ifthenelse{\equal{#1}{green}}{\textbf{#2}}{}%
}

(the % at the end of the lines is important)

Reply via email to