The situation is clear, thanks Enrico. Your example showed me the difference.
By the way, how would you write a short text containing some words separated by spaces as normal text in math mode but with the fitting size? For example $2^{the exponent of the power}$. Máté ----- Original Message ----- From: Enrico Forestieri To: lyx-devel@lists.lyx.org Sent: Monday, July 28, 2008 11:43 PM Subject: Re: lyxmathsym On Mon, Jul 28, 2008 at 11:55:53AM +0200, Máté Salát wrote: > On the other day a command definition of lyxmathsym appeared in the preamble of > my LyX made tex file. But this command is used nowhere in the tex file. Could > you tell me wheather it is a bug or it is ok to be there for some reason. I > found that it is because the usage of the é character in math mode. Actually > even $\textrm{é}$ could work instead $\textrm{\'{e}}$. It's just a bit > disturbing to have a long code in the preamble for nothing. In 1.6 any unicode symbol that can be encoded in the current encoding, or listed in the unicodesymbols file, can be used in math mode. In order to make this work, the \lyxmathsym macro is necessary. So, any time you enter a non-ascii symbol in mathed, the definition of \lyxmathsym is added to the preamble. The code dealing with this has not enough info to know that you entered a non-ascii character in text mode inside math mode (i.e., using \textrm, or \textit, or ...), such that \lyxmathsym is not actually necessary. This is not harmful, though, and you can safely ignore it. Note that in mathed, $\textrm{é}$ and $é$ are conceptually different. In the first case, you want the letter é, whereas in the second case you want the _symbol_ é. Try for example $2^{\textrm{é}} 2^{é}$ to appreciate the difference in the dvi output. -- Enrico