On 18.06.08, Pavel Sanda wrote:
> > On Mon, Jun 16, Friedrich Hagedorn <[EMAIL PROTECTED]> wrote:

> > It seems this \intertext command is not properly handled in LyX. I had
> > the same problem, when you press 'space' it jumps you out of the
> > command. 

> this is not a bug, this is a feature. 

It is intended as a feature, but might turn out to be not "the right
thing".

> If you want to use space in math mode you have to use latex space
> commands e.g. "\:" (either via toolbar or ctrl+space(+space...to cycle
> through possible spaces) or math-space lfun. 

This is the case if you want to produce *visible* space in the output.

However, there is no way you can tell LyX to generate a space character
in the latex code. 

In most circumstances, this is not a problem because TeX ignores
whitespace in math mode.  However, some extensions and packages depend on
whitespace for disambiguation.

Example: Package icomma cannot be used with LyX (short of using ERT
*instead* of a math box) as it relies on input in the form 
$f(x, y) = 3,45$ to disambiguate a decimal separator from a variable
separator and generate the correct spacing. (German typography uses the
comma as decimal separator.)

  \usepackage{icomma} % Komma als Dezimaltrenner (im Mathe Modus)
                      % Standardmäßig läßt LaTeX im Mathe Modus immer etwas 
                      % Platz nach einem Komma, für 3,45 etc. ist das falsch.
                      % Mit icomma gilt:
                      % Wenn auf das Komma ein Leerzeichen folgt, soll auch
                      % eins kommen, wenn nicht, schreibe es als Operator:
                      % z.B. $f(x, y) = 3,45$
                      % Geht nicht mit LyX, da der Leerzeichen in Mathe 
                      % unterdrückt.


> Second possibility is to switch to text mode inside math (ctrl+m
> when you are already in math mode).

This will not allow you to generate the LaTeX code $f(x, y) = 3,45$.

> you can use any latex commands 
that do not contain space characters
>in math mode without any ERT.

Günter



Reply via email to