On Wednesday 19 March 2008 14:57, Paul A. Rubin wrote:
> Steve Litt wrote:
> > I exported to LaTeX, and it indeed did turn my underscores into \_
> > commands. Within LaTeX, if I deleted the underscores, it wouldn't
> > compile. I guess an underscore is some kind of a LaTeX reserved word.
> >
> > So, your MiKTeX 2.6 on WinXP gives \_ the right monospace width, but my
> > latex command on Mandriva Linux 2007 does not.
> >
> > I'm wondering if there's some other command to get an underscore.
>
> I might be getting lost (well, more lost than usual) here.  First,
> responding to your other message where you said putting the backslashes
> into LyX failed, did you do that in ERT? 

No, I typed \_ commands straight into LyX.

> If you type a backslash into 
> text in LyX, I think it gets escaped (so that it's treated as a literal
> backslash).
>
> Re your Mandriva output, are you saying that \_ in the LaTeX file,
> inside a LyX-code environment, produces proportionally spaced (or
> monospaced with inadequate width) underscores?

That's exactly what I'm saying. \_ in the LaTeX file, inside a standard 
LyX-Code environment, produces either proportionally spaced or monospaced 
with inadequate width underscores.

> If so, what are you 
> using for a typewriter font?  

Let me check. Hang on...

I just tried default, Latin Modern Typewriter, Computer Modern Typewriter, and 
Courier, and all did the same thing.

> It doesn't seem that this should be 
> OS-specific.

It's a mystery :-)

I'm attaching the LyX file and the resulting LaTeX file and the resulting dvi 
file.

Thanks

SteveT

Steve Litt
Books written in LyX:
        Troubleshooting Techniques of the Successful Technologist
        Twenty Eight Tales of Troubleshooting
        Troubleshooting: Just the Facts

Attachment: test.dvi
Description: TeX dvi file

Attachment: test.lyx
Description: application/lyx

%% LyX 1.5.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[oneside,english]{book}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,letterpaper,tmargin=1cm,bmargin=1cm,lmargin=1cm,rmargin=1cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
{\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
 \item[]}
{\end{list}}

\usepackage{babel}
\makeatother

\begin{document}
Notice that the remote program's STDOUT shows up the local computer.
The output clearly shows that the command ran on the remote computer,
not the local one. Now let's use a program requiring both STDOUT and
STDIN: UMENU. On the remote computer, UMENU is run with the command:

\begin{lyxcode}
[EMAIL PROTECTED]

[EMAIL PROTECTED]'s~password:

~~~~~~~~~UMENU~0.7.1~menu~system~(ruby~version),~(C)~2005~by~Steve~Litt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~NO~WARRANTY!~See~GPL~license.~~~~~~~~~~~~~~~~~~~~~~~~~~

{*}{*}{*}{*}{*}~~Main~Menu~~{*}{*}{*}{*}{*}~~~~~~~~{[}s]

~~~~~Z:~Zuname~

...~~I:~Internet~~

...~~O:~Outlining~~

...~~C:~Calendars~~

...~~N:~coNfiguration~~

...~~S:~Sales~~

...~~P:~Projects~~

...~~A:~Accounting~~

...~~L:~Litt's~Pet~Menu~

...~~E:~Entertainment~Menu~

...~~W:~Windows~Apps~(Crossover~Office)

~~~~~K:~Kt~to~MPH~converter~

...~~H:~Hurricanes

...~~T:~Timekeeping

~~~~~X:~eXit~Your~choice~please==>

sh:~/dev/tty:~No~such~device~or~address

~\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

|~~Copyright~(C)~2005~by~Steve~Litt~([EMAIL PROTECTED])~~~~~~~~~~~~|

|~~GNU~General~Public~License~version~2.~NO~WARRANTY!~~~~~~~~~~~~~~~~~~~~~~|

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|

|~~You~should~have~received~a~copy~of~the~GNU~General~Public~License~~~~~~~|

|~~along~with~this~program;~if~not,~write~to~the~Free~Software~~~~~~~~~~~~~|

|~~Foundation,~Inc.,~675~Mass~Ave,~Cambridge,~MA~02139,~USA.~~~~~~~~~~~~~~~|

|\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_|

Thank~You~for~using~the~Universal~Menu~System!

[EMAIL PROTECTED]

0~

[EMAIL PROTECTED]
\end{lyxcode}
In the preceding experiment, I ran UMENU in a terminal on I know it
was run on , because 
\end{document}

Reply via email to