Steve Litt wrote:
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.


Whoever invented this font encoding bull excrement should be forced to sit in a stiff chair and listen to every campaign speech this year (all at once, no potty breaks)!

I confirmed that running LaTeX against your test.tex file produced a misformatted result (though not quite your test.dvi -- apparently you changed your e-mail address somewhere along the line). Dinking around with your LyX file, I accidentally got the desired result. I had to export a new LaTeX file and run a diff program against yours and mine to find the culprit.

LyX 1.5.4 inserts \usepackage[T1]{fontenc} in the preamble. You don't have that in your .tex file; inserting it fixes the problem.

/Paul

Reply via email to