> >>>>> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes:
>
>
> Edmar> 3 - Patch to not output the protected space '~' during
> Edmar> translation of latex paragraphs. It seems that latex does not
> Edmar> complain if you put '~' characters in place of regular ' ',
> Edmar> even within latex commands. But I am using the latex output to
> Edmar> generate a C program. For that reason, I must get ride of those
> Edmar> useless protected spaces.
>
> Edmar> Obs: I don't know if this was there in the lyx code as a
> Edmar> feature or more like a harmless bug. The user shouldn't
> Edmar> perceive any change.
>
> The problem is protected spaces has indeed to be solved one way or
> another. The reason these spaces have been added is that in typewriter
> font, a normal space does not have exactly the same size than a ~
> space. And since we don't use verbatim, we have to account for that.
>
> I hope LyX will support real verbatim in the future, but for now the
> solution is maybe to add (yet) another command in textclasses,
> somethign like 'UseProtectedSpaces'.

Wait a minute. I don't think we are talking about the same thing.
Note that the patch I provided is to change the behavior within *latex*
paragraphs.

Try the following in you lyx:

Open a latex paragraph and type:

    \begin{verbatim} H~~H~~H~~H == H  H  H  H == H~~H  H~~H \end{verbatim}

Then export a nice latex file, the file will look like this:

    \begin{verbatim} H~~H~~H~~H == H ~H ~H ~H == H~~H ~H~~H \end{verbatim}

Which is a complete diferent thing.

The patch I did fixes the above:
If you type a tilde char, then you get a tilde char.
If you type a space char then you get a space char.
Giving complete transparency to the user (within latex paragraphs only).

Regards,
--
/*----------------------------------------------------------------------*/
/*      Edmar Wienskoski Jr.    - [EMAIL PROTECTED]           */
/*                              - http://www.cs.rice.edu/~wiensk        */
/*----------------------------------------------------------------------*/
     ____
    | [] |                                                 ______()_||_
 ---+----+---  ------------  ------------  ------------     | []       |
 | |      | |  |          |  |          |  |          |  ___|          |
 |_|______|_|  |__________|  |__________|  |__________|  |______________\
"o-o      o-o""o-o      o-o""o-o      o-o""o-o      o-o""o-o  O-O-O  o-o "


Reply via email to