texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Special characters in regular text?


From: Norbert Nemec
Subject: Re: [Texmacs-dev] Special characters in regular text?
Date: Wed, 12 Oct 2005 08:53:44 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)

Joris van der Hoeven wrote:

>On Tue, Oct 11, 2005 at 10:07:57AM +0200, Norbert Nemec wrote:
>  
>
>>* The display of the file below is correct. I just wonder why the
>>backslash is displayed as red "<backslash>" instead of just showing the
>>character regularly.
>>    
>>
>
>Because you did not type it in math-mode.
>  
>
True - in LaTeX, \backslash only exists in math-mode. Why copy this
strangeness to TeXmacs? I think all the ASCII characters should exists
in text-mode as well. I mean, all the characters $, ^, _, # and so on
exists in text-mode. Why not backslash?

Of course, when exporting to LaTeX, the \backslash strangeness has to be
taken care of, just as I did below.

> 
>  
>
>>* The second row:
>>
>>    x#x$x%x^x&x_x{x}x~x\<backslash\>x
>>
>>is exported just as before:
>>
>>    x \# x \$ x \% x\^{ }x\&x \_ x \{ x \} x\~{ }x{\backslash}x
>>
>>where it should be
>>
>>    x{\#}x{\$}x{\%}x\^{ }x{\&}x{\_}x{\{}x{\}}x\~{ }x$\backslash$x
>>    
>>
>
>This results from the above mistake.
>  
>
Why that? Except for \backslash, TeXmacs displays all characters
correctly in text-mode. LaTeX also knows how to handle them in text-mode
if they are escaped correctly. It is just the spacing that is done
incorrectly at export time, as well as the \backslash that has to be
handled as special case in LaTeX export.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]