On Sunday 19 January 2003 14:56, Rudolf Henze wrote:
[...]
> Iam using Lyx 1.1.6fix4 with SuSE 8.0 and the class
> book(coma-script). The text Iam writing on, has a lot of
> pathnames in it.
> Example:
> "the configuration file is in /data/config.txt"
> For better reading I want that /data/config.txt is formatted
> with a non-proportional font like courier.
> tia
[...]
A first sollution wilL be a \newcommand in lyx preamble:
\newcommand{\befehl}[1] {\text{\reset@font\ttfamily\bfseries\/#1}}
Now you have to use ERT in LyX. I suppose you are using a german 
binding:
Press <Strg>+<L> to get a ERT box,
Insert 
\befehl{/data/config.txt}
and this string should be in courier.

If you are using a lot of different names or conventions for 
typesetting a seperate included file will be a better sollution.
E.G. for a often used item like Desoxyribonucleinsaeure a 
\newcommand like the following will be a help:
\newcommand{\dns} {Desoxyribonucleinsaeure~}
After a while you will get a lot of such \newcommands which are 
ugly to edit in the preamble. But you can put it into a 
independent file which will be included via the preamble.
Put a file called 
/usr/share/texmf/tex/latex/mydef/mydefinitions.sty into your LaTeX 
directory. Run texhash in a shell as user root. 
In this file you can add your own definitions and may edit it with 
an editor of your choice.
In LyX preamble add \usepackage{mydefinitions} and use your 
definitions as shown in the beginning.

Bye,
Thomas 


Reply via email to