I just noticed that pdfeTeX  inserts a space in the text where
\selectlanguage{...} is used. In lyx 1.4 there is no indication that
languages are being mixed, but is also annoying in lyx 1.5

On FC6, (pdfeTeX Version 3.141592-1.21a-2.2), the following lyx file
  http://www.csse.uwa.edu.au/~john/lyx/lyxbug_american.lyx
generates the following dvi file:
  http://www.csse.uwa.edu.au/~john/lyx/lyxbug_american.dvi
From which it is obvious that the gap between A and A2 is greater than
the gap between B and B2. We see from the .tex file this the only
possible cause is the \selectlanguage{american}:
  http://www.csse.uwa.edu.au/~john/lyx/lyxbug_american.tex

This *could* be fixed on the LyX end by outputing the apparently
equivalent tex code:
  http://www.csse.uwa.edu.au/~john/lyx/lyxbug_american2.tex
(so that the selectlanguage macro is only applied to the text within
environments, and not to the environments themselves). LyX  could also
make harder to accidentally mix "english" and "american" text.

However this seems like a bug in LaTeX, should LaTeX itself be fixed?

--
John C. McCabe-Dansted
PhD Student
University of Western Australia

Reply via email to