Jürgen Spitzmüller wrote: > Georg Baum wrote: >> I did not use textcomp, this is a separate problem. The problem that was >> originally reported is a pure inputenc problem. > > No, the problem originally reported was that $\textdegree$ does not work > in 1.5 (in a file that requested textcomp). This is at least indicated by > the testcase (I didn't follow the actual thread).
The test case was by Abdel, the original report to which I refered (cited by Abdel) was a bit different. >> Without using textcomp you >> get the following: >> >> latin1 latin9 >> ° in math works does not work >> \textdegree in math works works >> ° in text works does not work >> \textdegree in text (ERT) works works >> >> >> This is with TeXLive 2005. > > TeXLive 2007, without textcomp loaded: > > latin1 latin9 > ° in math works works* > \textdegree in math works works* > ° in text works** works** > \textdegree in text (ERT) works works > > TeXLive 2007, with textcomp loaded: > > latin1 latin9 > ° in math does not work does not work > \textdegree in math does not work does not work > ° in text works** works** > \textdegree in text (ERT) works works > > * although I get error messages: > ./degree.tex:16: Command \textdegree invalid in math mode on input line > 16. ./degree.tex:18: Command \^ invalid in math mode on input line 18. > ./degree.tex:18: Command \textdegree invalid in math mode on input line > 18. I get these, too, but the output is still OK. > ** sort of: in both encodigs, I get an additional weird character > > So the problem is: what can we do with $\textdegree$ and $°$ in case > textcomp is requested? Nothing IMHO, since this problem is not new. In the long run mathed should probably use some mechanism similar to the unicodesymbols file to replace unicode characters with appropriate commands, and then it could also replace ° with a command that works always. It might be possible that this would already work with the lib/symbols file, but I am not sure if you can put single characters in there and only redefine the LaTeX output. Georg