I have a command definition in my LaTeX preamble:
\newcommand*{\code}[1]{\texttt{#1}}
But the usage of this command appears as an ERT e.g. \code{select}. I would like this to appear as select that is, italics. How to do this?
|
You need to tell Lyx how it is to mark up the command, by changing the layout you use, or, probably the right thing, defining a module. Rob Oakes has written a weblog post, Customizing Lyx: An Introduction to Modules. His explanation make it look quite simple to do, although I've never tried. |
|||
|
|
I was able to extract my answer from Rob's another article here: Close your lyx file from within lyx editor. Put the following near the top of your lyx file after
To use the same layout for a different document, use File > New from Template. |
||||
|
|
\textttwith\textitsolve your problem? – Juan A. Navarro Oct 31 '10 at 8:12