Abdelrazak Younes wrote:

> Jürgen Spitzmüller wrote:
>> Abdelrazak Younes wrote:
>>> There's some problems with \textdegree reported on the users list that I
>>> can easily reproduce. With the attached LyX file, the LateX export will
>>> translate the degree symbol in mathed to \textdegree.
>>>
>>> Neither the dvi nor the pdf (pdflatex) file shows the \textdegree symnol
>>> but both of them shows the unicode symbol just fine.
>>>
>>> Bernd Sellentin (message reproduced below) suggests to put
>>> \usepackage[latin1]{inputenc} in the preamble. But this leads to a LateX
>>> error about a clash in the inputenc package.

The inputenc package is stupid. The latin9 encoding does contain the degree
symbol, but the inputenc package does not know that. The same is true for
\textmu, so if you use the same workaround for \textdegree as is used for
\textmu (force flag in unicodesymbols) it should work.

> Right, if I insert \textdegree inside an ERT, the degree symbol is
> shown. So, the correction would be to automatically encapsulate
> \textdegree inside an mbox when with mathed. Is it possible to do that
> thanks to some definition in lib/symbols?

No. With ERT you are allowed to shoot yourself in the foot, both in normal
text and in mathed.


Georg

Reply via email to