Re: Umlaut in formula

2000-11-04 Thread Peter Suetterlin

Herbert Voss wrote:

 my lyx-code
 
 \begin_inset Formula \( \textrm{übertragen}n_{3} \)
 \end_inset 
 
  und nochne formel 
 \begin_inset Formula \( n_{5}\textrm{hääppy}\, x_{3^{2}} \)
 \end_inset 
.
.
.

 lyx1.1.6cvs 

Ha, that might be the reason.
I'm using 1.1.5fix2, and the umlauts just do not appear inside the math
environment, be it in math mode, text-in-math mode or the trick with the
verbatim \textrm{}.  And I tried both the real ü-key and the compose key
sequence that do work in 'standard' LyX.

   Pit

-- 
Peter "Pit" Suetterlin  http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048   [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-04 Thread Peter Suetterlin

Alejandro Aguilar Sierra wrote:
 On Fri, 3 Nov 2000, UG wrote:
 
  Is there any way to get an Umlaut into a formula in lyx.
  I would be perfectly happy with a "u
 
 Have not the german keyboard a dead key to type this accent?

Not a dead key, but a key of its own.

 The spanish one have it and it works fine under math mode.

But neither the native key, nor the compose sequence, nor pasting the
character from an xterm, does work in mathmode (at least for
1.1.5fix2).

   Pit

-- 
Peter "Pit" Suetterlin  http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048   [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-04 Thread Peter Suetterlin

Herbert Voss wrote:

 my lyx-code
 
 \begin_inset Formula \( \textrm{übertragen}n_{3} \)
 \end_inset 
 
  und nochne formel 
 \begin_inset Formula \( n_{5}\textrm{hääppy}\, x_{3^{2}} \)
 \end_inset 
.
.
.

 lyx1.1.6cvs 

Ha, that might be the reason.
I'm using 1.1.5fix2, and the umlauts just do not appear inside the math
environment, be it in math mode, text-in-math mode or the trick with the
verbatim \textrm{}.  And I tried both the real ü-key and the compose key
sequence that do work in 'standard' LyX.

   Pit

-- 
Peter "Pit" Suetterlin  http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048   [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-04 Thread Peter Suetterlin

Alejandro Aguilar Sierra wrote:
 On Fri, 3 Nov 2000, UG wrote:
 
  Is there any way to get an Umlaut into a formula in lyx.
  I would be perfectly happy with a "u
 
 Have not the german keyboard a dead key to type this accent?

Not a dead key, but a key of its own.

 The spanish one have it and it works fine under math mode.

But neither the native key, nor the compose sequence, nor pasting the
character from an xterm, does work in mathmode (at least for
1.1.5fix2).

   Pit

-- 
Peter "Pit" Suetterlin  http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048   [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-04 Thread Peter Suetterlin

Herbert Voss wrote:

> my lyx-code
> 
> \begin_inset Formula \( \textrm{übertragen}n_{3} \)
> \end_inset 
> 
>  und nochne formel 
> \begin_inset Formula \( n_{5}\textrm{hääppy}\, x_{3^{2}} \)
> \end_inset 
.
.
.

> lyx1.1.6cvs 

Ha, that might be the reason.
I'm using 1.1.5fix2, and the umlauts just do not appear inside the math
environment, be it in math mode, text-in-math mode or the trick with the
verbatim \textrm{}.  And I tried both the real ü-key and the compose key
sequence that do work in 'standard' LyX.

   Pit

-- 
Peter "Pit" Suetterlin  http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048   [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-04 Thread Peter Suetterlin

Alejandro Aguilar Sierra wrote:
> On Fri, 3 Nov 2000, UG wrote:
> 
> > Is there any way to get an Umlaut into a formula in lyx.
> > I would be perfectly happy with a "u
> 
> Have not the german keyboard a dead key to type this accent?

Not a dead key, but a key of its own.

> The spanish one have it and it works fine under math mode.

But neither the native key, nor the compose sequence, nor pasting the
character from an xterm, does work in mathmode (at least for
1.1.5fix2).

   Pit

-- 
Peter "Pit" Suetterlin  http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048   [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 Is there any way to get an Umlaut into a formula in lyx.
 I would be perfectly happy with a "u

I you would be happy with \u, too, you could simply put a \def\u{\"u}
somewhere near the top of your document or in the preamble.

Andre'


-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Niklas Werner

Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.

have fun

Niklas



Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
 another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
 or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.

Funny thing: it does not work for me either.
I get  "Latex warning: Command \" invalid in math mode".
Literal 'ü' doesnot show up either...

I am pretty sure the \def\u{\"u} "trick" did help some time ago -
so I am puzzled...

Andre'


-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Alberto Vecchiato

On Fri, 3 Nov 2000, Andre Poenitz wrote:

 Funny thing: it does not work for me either.
 I get  "Latex warning: Command \" invalid in math mode".
 Literal 'ü' doesnot show up either...
 
 I am pretty sure the \def\u{\"u} "trick" did help some time ago -
 so I am puzzled...
 
It sounds strange, but maybe, if all else fails, you could try the plain
LaTeX code {\rm \"u} in the formula.  Put it inside and mark it with the
TeX button.  It should work.

It should be perfectly equivalent to what told in the previous message,
anyway, and this is why I'm curious.

Hope this helps.

Alberto Vecchiato




Re: Umlaut in formula

2000-11-03 Thread Herbert Voss

Andre Poenitz wrote:
 
  Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
  another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
  or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.
 
 Funny thing: it does not work for me either.
 I get  "Latex warning: Command \" invalid in math mode".
 Literal 'ü' doesnot show up either...
 
 I am pretty sure the \def\u{\"u} "trick" did help some time ago -
 so I am puzzled...

open my mathbox with alt-m-m gives lyx blue mathbox.
writing any math-stuff
toggling to textmode with (again) alt-m-m and writing hääppy
toggling to mathmode with (again) alt-m-m and writing math-stuff

gives exactly what i want!

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/




Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 It should be perfectly equivalent to what told in the previous message,
 anyway, and this is why I'm curious.

It seems to be a LaTeX-Problem:

\documentclass{article}
\begin{document}
$ {\rm  \"u} $
\end{document}

gives

---
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e 1998/12/01 patch level 1
Babel v3.6x and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo)) (test.aux)

LaTeX Warning: Command \" invalid in math mode on input line 5.

! Please use \mathaccent for accents in math mode.
\add@accent ...@spacefactor \spacefactor }\accent 
  #1 #2}\spacefactor \accent...
l.5 $ {\rm \"u
  } $
? ! You can't use `\spacefactor' in math mode.
\add@accent ...factor }\accent #1 #2}\spacefactor 
  \accent@spacefactor 
l.5 $ {\rm \"u
  } $
? [1] (test.aux) )
Output written on test.dvi (1 page, 228 bytes).
Transcript written on test.log.
---


but the  \"u correctly shows up as umlaut.

If I add \usepackage[T1]{fontenc} I get

---
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e 1998/12/01 patch level 1
Babel v3.6x and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def)) (test.aux)

LaTeX Warning: Command \" invalid in math mode on input line 5.

[1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 212 bytes).
Transcript written on test.log.
---

But the output is empty. The \"u is not even in the .dvi

Clueless,
Andre'

-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Jean-Marc Lasgouttes

 "Andre" == Andre Poenitz [EMAIL PROTECTED] writes:

 It should be perfectly equivalent to what told in the previous
 message, anyway, and this is why I'm curious.

Andre It seems to be a LaTeX-Problem:

Andre \documentclass{article} \begin{document} $ {\rm \"u} $
Andre \end{document}

I don't understand. Are you trying to have a ü in a math formula? This
does not make sense IMO, and using \ddot is probably better. Now, if
the ü is part of some text, you should use math text mode and LaTeX
will not complain. Now if the problem is that math textmode does not
support 8bit characters, someone brave enough should look at it...

JMarc



Re: Umlaut in formula

2000-11-03 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:
 
  "Andre" == Andre Poenitz [EMAIL PROTECTED] writes:
 
  It should be perfectly equivalent to what told in the previous
  message, anyway, and this is why I'm curious.
 
 Andre It seems to be a LaTeX-Problem:
 
 Andre \documentclass{article} \begin{document} $ {\rm \"u} $
 Andre \end{document}
 
 I don't understand. Are you trying to have a ü in a math formula? This
 does not make sense IMO, and using \ddot is probably better. Now, if
 the ü is part of some text, you should use math text mode and LaTeX
 will not complain. Now if the problem is that math textmode does not
 support 8bit characters, someone brave enough should look at it...

my lyx-code

\begin_inset Formula \( \textrm{übertragen}n_{3} \)
\end_inset 

 und nochne formel 
\begin_inset Formula \( n_{5}\textrm{hääppy}\, x_{3^{2}} \)
\end_inset 


exported to latex

\begin{document}

\( \textrm{übertragen}n_{3} \) und nochne formel \(
n_{5}\textrm{hääppy}\, x_{3^{2}} \)
\end{document}

this works in fact of using \textrm{...} which tells latex that there is
some text
inside mathenvironment. changing this to \rm it doesn't work, which
makes sense!

lyx1.1.6cvs 


Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Umlaut in formula

2000-11-03 Thread Jean-Marc Lasgouttes

 "Andre" == Andre Poenitz [EMAIL PROTECTED] writes:

 the ü is part of some text, you should use math text mode and LaTeX
 will not complain.

Andre "math textmode" == \mathrm{\"u} ?

Andre If so, the result is exactly the same.

Maybe because math text mode should not use \mathrm, but rather \mbox
(or \text in amsfoo).

JMarc



Re: Umlaut in formula

2000-11-03 Thread Alejandro Aguilar Sierra

On Fri, 3 Nov 2000, UG wrote:

 Is there any way to get an Umlaut into a formula in lyx.
 I would be perfectly happy with a "u

Have not the german keyboard a dead key to type this accent?

The spanish one have it and it works fine under math mode.

Alejandro




Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 Have not the german keyboard a dead key to type this accent?

German keyboards have special keys for the umlauts ("o at the 'american' ;,
"u at [ and "a at '). But I can't really tell how they work with LyX. I use
almost exclusively the American layout, since in the German layout []{} are
only reachable via AltGr and that's a pain in the wrist for programming...

Andre'

-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 Is there any way to get an Umlaut into a formula in lyx.
 I would be perfectly happy with a "u

I you would be happy with \u, too, you could simply put a \def\u{\"u}
somewhere near the top of your document or in the preamble.

Andre'


-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Niklas Werner

Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.

have fun

Niklas



Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
 another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
 or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.

Funny thing: it does not work for me either.
I get  "Latex warning: Command \" invalid in math mode".
Literal 'ü' doesnot show up either...

I am pretty sure the \def\u{\"u} "trick" did help some time ago -
so I am puzzled...

Andre'


-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Alberto Vecchiato

On Fri, 3 Nov 2000, Andre Poenitz wrote:

 Funny thing: it does not work for me either.
 I get  "Latex warning: Command \" invalid in math mode".
 Literal 'ü' doesnot show up either...
 
 I am pretty sure the \def\u{\"u} "trick" did help some time ago -
 so I am puzzled...
 
It sounds strange, but maybe, if all else fails, you could try the plain
LaTeX code {\rm \"u} in the formula.  Put it inside and mark it with the
TeX button.  It should work.

It should be perfectly equivalent to what told in the previous message,
anyway, and this is why I'm curious.

Hope this helps.

Alberto Vecchiato




Re: Umlaut in formula

2000-11-03 Thread Herbert Voss

Andre Poenitz wrote:
 
  Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
  another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
  or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.
 
 Funny thing: it does not work for me either.
 I get  "Latex warning: Command \" invalid in math mode".
 Literal 'ü' doesnot show up either...
 
 I am pretty sure the \def\u{\"u} "trick" did help some time ago -
 so I am puzzled...

open my mathbox with alt-m-m gives lyx blue mathbox.
writing any math-stuff
toggling to textmode with (again) alt-m-m and writing hääppy
toggling to mathmode with (again) alt-m-m and writing math-stuff

gives exactly what i want!

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/




Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 It should be perfectly equivalent to what told in the previous message,
 anyway, and this is why I'm curious.

It seems to be a LaTeX-Problem:

\documentclass{article}
\begin{document}
$ {\rm  \"u} $
\end{document}

gives

---
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e 1998/12/01 patch level 1
Babel v3.6x and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo)) (test.aux)

LaTeX Warning: Command \" invalid in math mode on input line 5.

! Please use \mathaccent for accents in math mode.
\add@accent ...@spacefactor \spacefactor }\accent 
  #1 #2}\spacefactor \accent...
l.5 $ {\rm \"u
  } $
? ! You can't use `\spacefactor' in math mode.
\add@accent ...factor }\accent #1 #2}\spacefactor 
  \accent@spacefactor 
l.5 $ {\rm \"u
  } $
? [1] (test.aux) )
Output written on test.dvi (1 page, 228 bytes).
Transcript written on test.log.
---


but the  \"u correctly shows up as umlaut.

If I add \usepackage[T1]{fontenc} I get

---
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e 1998/12/01 patch level 1
Babel v3.6x and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def)) (test.aux)

LaTeX Warning: Command \" invalid in math mode on input line 5.

[1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 212 bytes).
Transcript written on test.log.
---

But the output is empty. The \"u is not even in the .dvi

Clueless,
Andre'

-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Jean-Marc Lasgouttes

 "Andre" == Andre Poenitz [EMAIL PROTECTED] writes:

 It should be perfectly equivalent to what told in the previous
 message, anyway, and this is why I'm curious.

Andre It seems to be a LaTeX-Problem:

Andre \documentclass{article} \begin{document} $ {\rm \"u} $
Andre \end{document}

I don't understand. Are you trying to have a ü in a math formula? This
does not make sense IMO, and using \ddot is probably better. Now, if
the ü is part of some text, you should use math text mode and LaTeX
will not complain. Now if the problem is that math textmode does not
support 8bit characters, someone brave enough should look at it...

JMarc



Re: Umlaut in formula

2000-11-03 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:
 
  "Andre" == Andre Poenitz [EMAIL PROTECTED] writes:
 
  It should be perfectly equivalent to what told in the previous
  message, anyway, and this is why I'm curious.
 
 Andre It seems to be a LaTeX-Problem:
 
 Andre \documentclass{article} \begin{document} $ {\rm \"u} $
 Andre \end{document}
 
 I don't understand. Are you trying to have a ü in a math formula? This
 does not make sense IMO, and using \ddot is probably better. Now, if
 the ü is part of some text, you should use math text mode and LaTeX
 will not complain. Now if the problem is that math textmode does not
 support 8bit characters, someone brave enough should look at it...

my lyx-code

\begin_inset Formula \( \textrm{übertragen}n_{3} \)
\end_inset 

 und nochne formel 
\begin_inset Formula \( n_{5}\textrm{hääppy}\, x_{3^{2}} \)
\end_inset 


exported to latex

\begin{document}

\( \textrm{übertragen}n_{3} \) und nochne formel \(
n_{5}\textrm{hääppy}\, x_{3^{2}} \)
\end{document}

this works in fact of using \textrm{...} which tells latex that there is
some text
inside mathenvironment. changing this to \rm it doesn't work, which
makes sense!

lyx1.1.6cvs 


Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Umlaut in formula

2000-11-03 Thread Jean-Marc Lasgouttes

 "Andre" == Andre Poenitz [EMAIL PROTECTED] writes:

 the ü is part of some text, you should use math text mode and LaTeX
 will not complain.

Andre "math textmode" == \mathrm{\"u} ?

Andre If so, the result is exactly the same.

Maybe because math text mode should not use \mathrm, but rather \mbox
(or \text in amsfoo).

JMarc



Re: Umlaut in formula

2000-11-03 Thread Alejandro Aguilar Sierra

On Fri, 3 Nov 2000, UG wrote:

 Is there any way to get an Umlaut into a formula in lyx.
 I would be perfectly happy with a "u

Have not the german keyboard a dead key to type this accent?

The spanish one have it and it works fine under math mode.

Alejandro




Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

 Have not the german keyboard a dead key to type this accent?

German keyboards have special keys for the umlauts ("o at the 'american' ;,
"u at [ and "a at '). But I can't really tell how they work with LyX. I use
almost exclusively the American layout, since in the German layout []{} are
only reachable via AltGr and that's a pain in the wrist for programming...

Andre'

-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

> Is there any way to get an Umlaut into a formula in lyx.
> I would be perfectly happy with a "u

I you would be happy with \u, too, you could simply put a \def\u{\"u}
somewhere near the top of your document or in the preamble.

Andre'


-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Niklas Werner

Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
another way is to switch over to text-in-formula-mode (toggle the math-button) and 
type the ü or ä directly (sorry for the umlauts to all the non-Germans)
or type M-c-r and you are able to have normal text inside the math-environment and 
thus umlauts and all the stuff.

have fun

Niklas



Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

> Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
> another way is to switch over to text-in-formula-mode (toggle the math-button) and 
>type the ü or ä directly (sorry for the umlauts to all the non-Germans)
> or type M-c-r and you are able to have normal text inside the math-environment and 
>thus umlauts and all the stuff.

Funny thing: it does not work for me either.
I get  "Latex warning: Command \" invalid in math mode".
Literal 'ü' doesnot show up either...

I am pretty sure the \def\u{\"u} "trick" did help some time ago -
so I am puzzled...

Andre'


-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Alberto Vecchiato

On Fri, 3 Nov 2000, Andre Poenitz wrote:

> Funny thing: it does not work for me either.
> I get  "Latex warning: Command \" invalid in math mode".
> Literal 'ü' doesnot show up either...
> 
> I am pretty sure the \def\u{\"u} "trick" did help some time ago -
> so I am puzzled...
> 
It sounds strange, but maybe, if all else fails, you could try the plain
LaTeX code {\rm \"u} in the formula.  Put it inside and mark it with the
TeX button.  It should work.

It should be perfectly equivalent to what told in the previous message,
anyway, and this is why I'm curious.

Hope this helps.

Alberto Vecchiato




Re: Umlaut in formula

2000-11-03 Thread Herbert Voss

Andre Poenitz wrote:
> 
> > Just write (in LaTeX-mode \"a or \"u or whatever you need to get umlauted...
> > another way is to switch over to text-in-formula-mode (toggle the math-button) and 
>type the ü or ä directly (sorry for the umlauts to all the non-Germans)
> > or type M-c-r and you are able to have normal text inside the math-environment and 
>thus umlauts and all the stuff.
> 
> Funny thing: it does not work for me either.
> I get  "Latex warning: Command \" invalid in math mode".
> Literal 'ü' doesnot show up either...
> 
> I am pretty sure the \def\u{\"u} "trick" did help some time ago -
> so I am puzzled...

open my mathbox with alt-m-m gives lyx blue mathbox.
writing any math-stuff
toggling to textmode with (again) alt-m-m and writing hääppy
toggling to mathmode with (again) alt-m-m and writing math-stuff

gives exactly what i want!

Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/




Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

> It should be perfectly equivalent to what told in the previous message,
> anyway, and this is why I'm curious.

It seems to be a LaTeX-Problem:

\documentclass{article}
\begin{document}
$ {\rm  \"u} $
\end{document}

gives

---
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e <1998/12/01> patch level 1
Babel  and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo)) (test.aux)

LaTeX Warning: Command \" invalid in math mode on input line 5.

! Please use \mathaccent for accents in math mode.
\add@accent ...@spacefactor \spacefactor }\accent 
  #1 #2}\spacefactor \accent...
l.5 $ {\rm \"u
  } $
? ! You can't use `\spacefactor' in math mode.
\add@accent ...factor }\accent #1 #2}\spacefactor 
  \accent@spacefactor 
l.5 $ {\rm \"u
  } $
? [1] (test.aux) )
Output written on test.dvi (1 page, 228 bytes).
Transcript written on test.log.
---


but the  \"u correctly shows up as umlaut.

If I add \usepackage[T1]{fontenc} I get

---
This is TeX, Version 3.14159 (Web2C 7.3.1)
(test.tex
LaTeX2e <1998/12/01> patch level 1
Babel  and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def)) (test.aux)

LaTeX Warning: Command \" invalid in math mode on input line 5.

[1] (test.aux) )
(see the transcript file for additional information)
Output written on test.dvi (1 page, 212 bytes).
Transcript written on test.log.
---

But the output is empty. The \"u is not even in the .dvi

Clueless,
Andre'

-- 
André Pönitz  [EMAIL PROTECTED]



Re: Umlaut in formula

2000-11-03 Thread Jean-Marc Lasgouttes

> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

>> It should be perfectly equivalent to what told in the previous
>> message, anyway, and this is why I'm curious.

Andre> It seems to be a LaTeX-Problem:

Andre> \documentclass{article} \begin{document} $ {\rm \"u} $
Andre> \end{document}

I don't understand. Are you trying to have a ü in a math formula? This
does not make sense IMO, and using \ddot is probably better. Now, if
the ü is part of some text, you should use math text mode and LaTeX
will not complain. Now if the problem is that math textmode does not
support 8bit characters, someone brave enough should look at it...

JMarc



Re: Umlaut in formula

2000-11-03 Thread Herbert Voss

Jean-Marc Lasgouttes wrote:
> 
> > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> >> It should be perfectly equivalent to what told in the previous
> >> message, anyway, and this is why I'm curious.
> 
> Andre> It seems to be a LaTeX-Problem:
> 
> Andre> \documentclass{article} \begin{document} $ {\rm \"u} $
> Andre> \end{document}
> 
> I don't understand. Are you trying to have a ü in a math formula? This
> does not make sense IMO, and using \ddot is probably better. Now, if
> the ü is part of some text, you should use math text mode and LaTeX
> will not complain. Now if the problem is that math textmode does not
> support 8bit characters, someone brave enough should look at it...

my lyx-code

\begin_inset Formula \( \textrm{übertragen}n_{3} \)
\end_inset 

 und nochne formel 
\begin_inset Formula \( n_{5}\textrm{hääppy}\, x_{3^{2}} \)
\end_inset 


exported to latex

\begin{document}

\( \textrm{übertragen}n_{3} \) und nochne formel \(
n_{5}\textrm{hääppy}\, x_{3^{2}} \)
\end{document}

this works in fact of using \textrm{...} which tells latex that there is
some text
inside mathenvironment. changing this to \rm it doesn't work, which
makes sense!

lyx1.1.6cvs 


Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Umlaut in formula

2000-11-03 Thread Jean-Marc Lasgouttes

> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

>> the ü is part of some text, you should use math text mode and LaTeX
>> will not complain.

Andre> "math textmode" == \mathrm{\"u} ?

Andre> If so, the result is exactly the same.

Maybe because math text mode should not use \mathrm, but rather \mbox
(or \text in amsfoo).

JMarc



Re: Umlaut in formula

2000-11-03 Thread Alejandro Aguilar Sierra

On Fri, 3 Nov 2000, UG wrote:

> Is there any way to get an Umlaut into a formula in lyx.
> I would be perfectly happy with a "u

Have not the german keyboard a dead key to type this accent?

The spanish one have it and it works fine under math mode.

Alejandro




Re: Umlaut in formula

2000-11-03 Thread Andre Poenitz

> Have not the german keyboard a dead key to type this accent?

German keyboards have special keys for the umlauts ("o at the 'american' ;,
"u at [ and "a at '). But I can't really tell how they work with LyX. I use
almost exclusively the American layout, since in the German layout []{} are
only reachable via AltGr and that's a pain in the wrist for programming...

Andre'

-- 
André Pönitz  [EMAIL PROTECTED]