multi-line text and {\a} in formulas
Hi, how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
From: Reinhard Borek [EMAIL PROTECTED] To: Lyx-User [EMAIL PROTECTED] Subject: multi-line text and {\"a} in formulas Date: Wed, 18 Aug 1999 10:03:31 +0200 Hi, how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? Here (Sun Solaris) I can type in accented characters with the Compose key, and the dvi is correct. For multi-line, I don'see any other LyX solution than using a matrix and typing text in the cells. Regards -- Jean-Pierre
Re: multi-line text and {\a} in formulas
at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: From: Reinhard Borek [EMAIL PROTECTED] how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. Here (Sun Solaris) I can type in accented characters with the Compose key, and the dvi is correct. What is the Compose key? For multi-line, I don'see any other LyX solution than using a matrix and typing text in the cells. Thank you. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
Herbert wrote: there is no problem for me to write german umlauts in formula mode. when I choosed math-mode, I can switch to text with M-m m. And than all the german umlauts are possible by typing äöü and so on. A square root of ä is therefore no problem. Hm, indeed it works when you have the Umlaut-Keys. Unfortunately, it does not when I use the compose-key :-( Obviously, Mathed ignores (or grabs?) COMPOSE. Hm, I just tried -dbg 4, and it *does* see the composed character, but it does not display it :-( For a "normal" compose-event, I get KeySym is [0] and num_bytes is 0 the string returned is "" Empty kbd action (probably composing) KeySym is Shift_L[65505] and num_bytes is 0 the string returned is "" KeySym is [0] and num_bytes is 0 the string returned is """ Empty kbd action (probably composing) KeySym is [0] and num_bytes is 0 the string returned is "a" Empty kbd action (probably composing) KeySym is adiaeresis[228] and num_bytes is 1 the string returned is "äeôÿ¿" Key [-1][adiaeresis][1] in Math-Mode, it is exactly the same, just the character doesn't show up: KeySym is [0] and num_bytes is 0 the string returned is "" Empty kbd action (probably composing) KeySym is Shift_L[65505] and num_bytes is 0 the string returned is "" KeySym is [0] and num_bytes is 0 the string returned is """ Empty kbd action (probably composing) KeySym is [0] and num_bytes is 0 the string returned is "a" Empty kbd action (probably composing) KeySym is adiaeresis[228] and num_bytes is 1 the string returned is "äeôÿ¿" Key [-1][adiaeresis][1] Something for the developers ;-) Peter -- ~~ Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit Universitaets-Sternwarte Goettingen Tel.: +49 551 39-5048 [EMAIL PROTECTED] -- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB Sternfreunde Breisgau e.V. Tel.: +49 7641 3492 __
Re: multi-line text and {\a} in formulas
at Wed, 18 Aug 1999 Herbert wrote: Reinhard Borek wrote: at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: From: Reinhard Borek [EMAIL PROTECTED] how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. there is no problem for me to write german umlauts in formula mode. when I choosed math-mode, I can switch to text with M-m m. And than all the german umlauts are possible by typing äöü and so on. A square root of ä is therefore no problem. I can't do this. What is wrong? Any idea? I use Lyx 1.0.3 of Tue, Jun 1, 1999 on Debian slink. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
at Wed, 18 Aug 1999 Herbert wrote: %_Reinhard Borek wrote: at Wed, 18 Aug 1999 Herbert wrote: there is no problem for me to write german umlauts in formula mode. when I choosed math-mode, I can switch to text with M-m m. And than all the german umlauts are possible by typing äöü and so on. A square root of ä is therefore no problem. I can't do this. What is wrong? Any idea? I use Lyx 1.0.3 of Tue, Jun 1, 1999 on Debian slink. Is everything ok when you write the german umlauts and sharp s in real text-mode? All is ok. What do you see, when you view the attached LyX-testfile in dvi and ps-view? I see german umlauts and sharp s. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
From: Reinhard Borek [EMAIL PROTECTED] To: "Jean-Pierre.Chretien" [EMAIL PROTECTED] Subject: Re: multi-line text and {\"a} in formulas Date: Wed, 18 Aug 1999 10:54:48 +0200 at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: From: Reinhard Borek [EMAIL PROTECTED] how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. OK, this is because you have a problem to enter accented characters in math-mode: here I type in accented characters using programmed keys by xmodmap when in normal LyX text, but this doesn't work in math mode (I don't understand why). I'm lucky because the Compose key (which is specific to Sun keyboards) works both in normal LyX text mode and math text mode. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. That's due to the fact that mathed (the math editor) is not re-entering LaTeX text mode in a \mbox, as you can see that the typed characters in the \mbox remain in blue (instead of going black as in math text mode), so the \' is eaten by mathed. This is a deep difference IMHO with (La)TeX where the alternation of $...$ and \mbox{} allows to indefinitely go in and out from the math mode (well ... indefinitely means up to the TeX buffer size). So typing \mbox{é} in LyX (if you can enter the é, which I do here only with the compose key) simply makes an roman accented e in math mode, which is no good because the letter is italicized. The same command in LaTeX works fine. So you must find a way to enter accented characters, otherwise the only workaround I can imagine is to hack the LaTeX code, or use TeX macros: for exmaple, define in the preamble \newcommand{\aumlaut}{ä} or \newcommand{\aumlaut}{\"a} then in math mode, you may type in \mbox{\aumlaut} without problems. To be more precise, I wrote a short LyX file with various solutions that is attached. You may check that the \mbox solution with accented characters does not work (if you try to export to LaTeX and compile, you get an error because \ddot and \acute can only be used in math mode), and if you want to be particular about typography, the encoding of the é is not correct in math text mode as $\acute{\textrm{e}}$ differs from $\mbox{é}$. Sorry if I drove you too much into LaTeX details which should not be noticed if you use LyX as is. You really should manage to get diacritics in math mode. Regards -- Jean-Pierre #This file was created by chretien Wed Aug 18 16:25:36 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass article \begin_preamble \newcommand{\eacute}{é} \newcommand{\aumlaut}{\"a} \end_preamble \language default \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable multicol5 5 2 0 0 -1 -1 -1 -1 1 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 8 1 0 "" "" 8 1 1 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" Umlaut in LyX \newline ä \newline Umlaut in math text mode \newline \begin_inset Formula \( \ddot{\textrm{a}} \) \end_inset \newline Umlaut in \family typewriter \backslash mbox \family default \newline \begin_inset Formula \( \mbox {\ddot{a}} \) \end_inset \newline Umlaut created with \family typewriter \backslash aumlaut \family default \newline \begin_inset Formula \( \mbox {\aumlaut } \) \end_inset \newline Umlaut in \family typewriter \backslash mbox \family default ( \latex latex \backslash LaTeX \latex default ) \newline \latex latex $ \backslash mbox{ä}$ \layout Standard \added_space_top 0.3
multi-line text and {\a} in formulas
Hi, how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
From: Reinhard Borek [EMAIL PROTECTED] To: Lyx-User [EMAIL PROTECTED] Subject: multi-line text and {\"a} in formulas Date: Wed, 18 Aug 1999 10:03:31 +0200 Hi, how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? Here (Sun Solaris) I can type in accented characters with the Compose key, and the dvi is correct. For multi-line, I don'see any other LyX solution than using a matrix and typing text in the cells. Regards -- Jean-Pierre
Re: multi-line text and {\a} in formulas
at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: From: Reinhard Borek [EMAIL PROTECTED] how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. Here (Sun Solaris) I can type in accented characters with the Compose key, and the dvi is correct. What is the Compose key? For multi-line, I don'see any other LyX solution than using a matrix and typing text in the cells. Thank you. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
Herbert wrote: there is no problem for me to write german umlauts in formula mode. when I choosed math-mode, I can switch to text with M-m m. And than all the german umlauts are possible by typing äöü and so on. A square root of ä is therefore no problem. Hm, indeed it works when you have the Umlaut-Keys. Unfortunately, it does not when I use the compose-key :-( Obviously, Mathed ignores (or grabs?) COMPOSE. Hm, I just tried -dbg 4, and it *does* see the composed character, but it does not display it :-( For a "normal" compose-event, I get KeySym is [0] and num_bytes is 0 the string returned is "" Empty kbd action (probably composing) KeySym is Shift_L[65505] and num_bytes is 0 the string returned is "" KeySym is [0] and num_bytes is 0 the string returned is """ Empty kbd action (probably composing) KeySym is [0] and num_bytes is 0 the string returned is "a" Empty kbd action (probably composing) KeySym is adiaeresis[228] and num_bytes is 1 the string returned is "äeôÿ¿" Key [-1][adiaeresis][1] in Math-Mode, it is exactly the same, just the character doesn't show up: KeySym is [0] and num_bytes is 0 the string returned is "" Empty kbd action (probably composing) KeySym is Shift_L[65505] and num_bytes is 0 the string returned is "" KeySym is [0] and num_bytes is 0 the string returned is """ Empty kbd action (probably composing) KeySym is [0] and num_bytes is 0 the string returned is "a" Empty kbd action (probably composing) KeySym is adiaeresis[228] and num_bytes is 1 the string returned is "äeôÿ¿" Key [-1][adiaeresis][1] Something for the developers ;-) Peter -- ~~ Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit Universitaets-Sternwarte Goettingen Tel.: +49 551 39-5048 [EMAIL PROTECTED] -- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB Sternfreunde Breisgau e.V. Tel.: +49 7641 3492 __
Re: multi-line text and {\a} in formulas
at Wed, 18 Aug 1999 Herbert wrote: Reinhard Borek wrote: at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: From: Reinhard Borek [EMAIL PROTECTED] how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. there is no problem for me to write german umlauts in formula mode. when I choosed math-mode, I can switch to text with M-m m. And than all the german umlauts are possible by typing äöü and so on. A square root of ä is therefore no problem. I can't do this. What is wrong? Any idea? I use Lyx 1.0.3 of Tue, Jun 1, 1999 on Debian slink. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
at Wed, 18 Aug 1999 Herbert wrote: %_Reinhard Borek wrote: at Wed, 18 Aug 1999 Herbert wrote: there is no problem for me to write german umlauts in formula mode. when I choosed math-mode, I can switch to text with M-m m. And than all the german umlauts are possible by typing äöü and so on. A square root of ä is therefore no problem. I can't do this. What is wrong? Any idea? I use Lyx 1.0.3 of Tue, Jun 1, 1999 on Debian slink. Is everything ok when you write the german umlauts and sharp s in real text-mode? All is ok. What do you see, when you view the attached LyX-testfile in dvi and ps-view? I see german umlauts and sharp s. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\a} in formulas
From: Reinhard Borek [EMAIL PROTECTED] To: "Jean-Pierre.Chretien" [EMAIL PROTECTED] Subject: Re: multi-line text and {\"a} in formulas Date: Wed, 18 Aug 1999 10:54:48 +0200 at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: From: Reinhard Borek [EMAIL PROTECTED] how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. OK, this is because you have a problem to enter accented characters in math-mode: here I type in accented characters using programmed keys by xmodmap when in normal LyX text, but this doesn't work in math mode (I don't understand why). I'm lucky because the Compose key (which is specific to Sun keyboards) works both in normal LyX text mode and math text mode. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. That's due to the fact that mathed (the math editor) is not re-entering LaTeX text mode in a \mbox, as you can see that the typed characters in the \mbox remain in blue (instead of going black as in math text mode), so the \' is eaten by mathed. This is a deep difference IMHO with (La)TeX where the alternation of $...$ and \mbox{} allows to indefinitely go in and out from the math mode (well ... indefinitely means up to the TeX buffer size). So typing \mbox{é} in LyX (if you can enter the é, which I do here only with the compose key) simply makes an roman accented e in math mode, which is no good because the letter is italicized. The same command in LaTeX works fine. So you must find a way to enter accented characters, otherwise the only workaround I can imagine is to hack the LaTeX code, or use TeX macros: for exmaple, define in the preamble \newcommand{\aumlaut}{ä} or \newcommand{\aumlaut}{\"a} then in math mode, you may type in \mbox{\aumlaut} without problems. To be more precise, I wrote a short LyX file with various solutions that is attached. You may check that the \mbox solution with accented characters does not work (if you try to export to LaTeX and compile, you get an error because \ddot and \acute can only be used in math mode), and if you want to be particular about typography, the encoding of the é is not correct in math text mode as $\acute{\textrm{e}}$ differs from $\mbox{é}$. Sorry if I drove you too much into LaTeX details which should not be noticed if you use LyX as is. You really should manage to get diacritics in math mode. Regards -- Jean-Pierre #This file was created by chretien Wed Aug 18 16:25:36 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass article \begin_preamble \newcommand{\eacute}{é} \newcommand{\aumlaut}{\"a} \end_preamble \language default \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable multicol5 5 2 0 0 -1 -1 -1 -1 1 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 8 1 0 "" "" 8 1 1 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" Umlaut in LyX \newline ä \newline Umlaut in math text mode \newline \begin_inset Formula \( \ddot{\textrm{a}} \) \end_inset \newline Umlaut in \family typewriter \backslash mbox \family default \newline \begin_inset Formula \( \mbox {\ddot{a}} \) \end_inset \newline Umlaut created with \family typewriter \backslash aumlaut \family default \newline \begin_inset Formula \( \mbox {\aumlaut } \) \end_inset \newline Umlaut in \family typewriter \backslash mbox \family default ( \latex latex \backslash LaTeX \latex default ) \newline \latex latex $ \backslash mbox{ä}$ \layout Standard \added_space_top 0.3
multi-line text and {\"a} in formulas
Hi, how I can write multi-line text and chars like {\"a} in formulas? When I try to put 'ä' in text mode in a formula, it does not occur anything. When I try to put {\"a} in LaTex-mode in a formula, it does not work. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\"a} in formulas
>> From: Reinhard Borek <[EMAIL PROTECTED]> >> To: Lyx-User <[EMAIL PROTECTED]> >> Subject: multi-line text and {\"a} in formulas >> Date: Wed, 18 Aug 1999 10:03:31 +0200 >> >> Hi, >> how I can write multi-line text and chars like {\"a} in formulas? >> When I try to put 'ä' in text mode in a formula, it does not occur >> anything. When I try to put {\"a} in LaTex-mode in a formula, it does >> not work. >> >> greetings, Reinhard >> -- >> [EMAIL PROTECTED] >> Reinhard Borek >> Exp. Phys I >> Fachbereich Physik >> Martin-Luther-Universität Halle-Wittenberg >> Friedemann-Bach-Platz 6 >> 06108 Halle/Saale Trying to type in accented characters in math mode is not correct. In plain LaTeX, you must get back to text mode with a \mbox{}. In Lyx, the plain text in math mode should be typed in math text mode (M-m m). What do you mean by « it does not occur anything » when you do so ? Here (Sun Solaris) I can type in accented characters with the Compose key, and the dvi is correct. For multi-line, I don'see any other LyX solution than using a matrix and typing text in the cells. Regards -- Jean-Pierre
Re: multi-line text and {\"a} in formulas
at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: > >> From: Reinhard Borek <[EMAIL PROTECTED]> > >> how I can write multi-line text and chars like {\"a} in formulas? > >> When I try to put 'ä' in text mode in a formula, it does not occur > >> anything. When I try to put {\"a} in LaTex-mode in a formula, it does > >> not work. > > Trying to type in accented characters in math mode is not correct. > In plain LaTeX, you must get back to text mode with a \mbox{}. > > In Lyx, the plain text in math mode should be typed in math text mode (M-m m). > What do you mean by « it does not occur anything » when you do so ? In a formula I put 'M-m m' (math text mode), then I put a accented char like 'ä' (in LaTex {\"a}), but this char does not appear in the formula in Lyx or in the ps-output. Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' to write '{\"a}', these chars do not appear. > Here (Sun Solaris) I can type in accented characters with the Compose key, > and the dvi is correct. What is the Compose key? > > For multi-line, I don'see any other LyX solution than using a matrix > and typing text in the cells. Thank you. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\"a} in formulas
Herbert wrote: > there is no problem for me to write german umlauts in formula mode. > when I choosed math-mode, I can switch to text with M-m m. And than > all the german umlauts are possible by typing äöü and so on. A square > root of ä is therefore no problem. Hm, indeed it works when you have the Umlaut-Keys. Unfortunately, it does not when I use the compose-key :-( Obviously, Mathed ignores (or grabs?) COMPOSE. Hm, I just tried -dbg 4, and it *does* see the composed character, but it does not display it :-( For a "normal" compose-event, I get KeySym is [0] and num_bytes is 0 the string returned is "" Empty kbd action (probably composing) KeySym is Shift_L[65505] and num_bytes is 0 the string returned is "" KeySym is [0] and num_bytes is 0 the string returned is """ Empty kbd action (probably composing) KeySym is [0] and num_bytes is 0 the string returned is "a" Empty kbd action (probably composing) KeySym is adiaeresis[228] and num_bytes is 1 the string returned is "äeôÿ¿&" Key [-1][adiaeresis][1] in Math-Mode, it is exactly the same, just the character doesn't show up: KeySym is [0] and num_bytes is 0 the string returned is "" Empty kbd action (probably composing) KeySym is Shift_L[65505] and num_bytes is 0 the string returned is "" KeySym is [0] and num_bytes is 0 the string returned is """ Empty kbd action (probably composing) KeySym is [0] and num_bytes is 0 the string returned is "a" Empty kbd action (probably composing) KeySym is adiaeresis[228] and num_bytes is 1 the string returned is "äeôÿ¿&" Key [-1][adiaeresis][1] Something for the developers ;-) Peter -- ~~ Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit Universitaets-Sternwarte Goettingen Tel.: +49 551 39-5048 [EMAIL PROTECTED] -- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB Sternfreunde Breisgau e.V. Tel.: +49 7641 3492 __
Re: multi-line text and {\"a} in formulas
at Wed, 18 Aug 1999 Herbert wrote: > Reinhard Borek wrote: > > > > at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: > > > >> From: Reinhard Borek <[EMAIL PROTECTED]> > > > >> how I can write multi-line text and chars like {\"a} in formulas? > > > >> When I try to put 'ä' in text mode in a formula, it does not occur > > > >> anything. When I try to put {\"a} in LaTex-mode in a formula, it does > > > >> not work. > > > > > > Trying to type in accented characters in math mode is not correct. > > > In plain LaTeX, you must get back to text mode with a \mbox{}. > > > > > > In Lyx, the plain text in math mode should be typed in math text mode (M-m m). > > > What do you mean by « it does not occur anything » when you do so ? > > In a formula I put 'M-m m' (math text mode), then I put a accented > > char like 'ä' (in LaTex {\"a}), but this char does not appear in > > the formula in Lyx or in the ps-output. > > Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' > > to write '{\"a}', these chars do not appear. > > there is no problem for me to write german umlauts in formula mode. > when I choosed math-mode, I can switch to text with M-m m. And than > all the german umlauts are possible by typing äöü and so on. A square > root of ä is therefore no problem. I can't do this. What is wrong? Any idea? I use Lyx 1.0.3 of Tue, Jun 1, 1999 on Debian slink. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\"a} in formulas
at Wed, 18 Aug 1999 Herbert wrote: > >%_Reinhard Borek wrote: > > > > at Wed, 18 Aug 1999 Herbert wrote: > > > there is no problem for me to write german umlauts in formula mode. > > > when I choosed math-mode, I can switch to text with M-m m. And than > > > all the german umlauts are possible by typing äöü and so on. A square > > > root of ä is therefore no problem. > > I can't do this. What is wrong? Any idea? > > I use Lyx 1.0.3 of Tue, Jun 1, 1999 on Debian slink. > > Is everything ok when you write the german umlauts and sharp s in > real text-mode? All is ok. > What do you see, when you view the attached LyX-testfile in > dvi and ps-view? I see german umlauts and sharp s. greetings, Reinhard -- [EMAIL PROTECTED] Reinhard Borek Exp. Phys I Fachbereich Physik Martin-Luther-Universität Halle-Wittenberg Friedemann-Bach-Platz 6 06108 Halle/Saale
Re: multi-line text and {\"a} in formulas
>> From: Reinhard Borek <[EMAIL PROTECTED]> >> To: "Jean-Pierre.Chretien" <[EMAIL PROTECTED]> >> Subject: Re: multi-line text and {\"a} in formulas >> Date: Wed, 18 Aug 1999 10:54:48 +0200 >> >> at Wed, 18 Aug 1999 Jean-Pierre.Chretien wrote: >> > >> From: Reinhard Borek <[EMAIL PROTECTED]> >> > >> how I can write multi-line text and chars like {\"a} in formulas? >> > >> When I try to put 'ä' in text mode in a formula, it does not occur >> > >> anything. When I try to put {\"a} in LaTex-mode in a formula, it does >> > >> not work. >> > >> > Trying to type in accented characters in math mode is not correct. >> > In plain LaTeX, you must get back to text mode with a \mbox{}. >> > >> > In Lyx, the plain text in math mode should be typed in math text mode (M-m m). >> > What do you mean by « it does not occur anything » when you do so ? >> In a formula I put 'M-m m' (math text mode), then I put a accented >> char like 'ä' (in LaTex {\"a}), but this char does not appear in >> the formula in Lyx or in the ps-output. OK, this is because you have a problem to enter accented characters in math-mode: here I type in accented characters using programmed keys by xmodmap when in normal LyX text, but this doesn't work in math mode (I don't understand why). I'm lucky because the Compose key (which is specific to Sun keyboards) works both in normal LyX text mode and math text mode. >> Also I put '\mbox{}' in a formula in Lyx, but when I put '"' and '\' >> to write '{\"a}', these chars do not appear. That's due to the fact that mathed (the math editor) is not re-entering LaTeX text mode in a \mbox, as you can see that the typed characters in the \mbox remain in blue (instead of going black as in math text mode), so the \' is eaten by mathed. This is a deep difference IMHO with (La)TeX where the alternation of $...$ and \mbox{} allows to indefinitely go in and out from the math mode (well ... indefinitely means up to the TeX buffer size). So typing \mbox{é} in LyX (if you can enter the é, which I do here only with the compose key) simply makes an roman accented e in math mode, which is no good because the letter is italicized. The same command in LaTeX works fine. So you must find a way to enter accented characters, otherwise the only workaround I can imagine is to hack the LaTeX code, or use TeX macros: for exmaple, define in the preamble \newcommand{\aumlaut}{ä} or \newcommand{\aumlaut}{\"a} then in math mode, you may type in \mbox{\aumlaut} without problems. To be more precise, I wrote a short LyX file with various solutions that is attached. You may check that the \mbox solution with accented characters does not work (if you try to export to LaTeX and compile, you get an error because \ddot and \acute can only be used in math mode), and if you want to be particular about typography, the encoding of the é is not correct in math text mode as $\acute{\textrm{e}}$ differs from $\mbox{é}$. Sorry if I drove you too much into LaTeX details which should not be noticed if you use LyX as is. You really should manage to get diacritics in math mode. Regards -- Jean-Pierre #This file was created by Wed Aug 18 16:25:36 1999 #LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass article \begin_preamble \newcommand{\eacute}{é} \newcommand{\aumlaut}{\"a} \end_preamble \language default \inputencoding default \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable multicol5 5 2 0 0 -1 -1 -1 -1 1 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1 1 0 0 8 1 0 "" "" 8 1 1 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" 0 8 1 0 0 0 0 "" "" Umlaut in LyX \newline ä \newline Umlaut in math text mode \newline \begin_inset Formula \( \ddot{\textrm{a}} \) \end_inset \newline Umlaut in \family typewriter \backslash mbox \family default \newline \begin_inset Formula \( \mbox {\ddot{a}} \) \end_inset \newline Umlaut created with \family typewriter \backslash aumlaut \family default \newline