[TxMt] Re: (Mulit)Markdown Convert to LaTeX problem

Gerd Knops gerti-textmate at bitart.com
Mon Oct 6 17:10:41 UTC 2008


On Oct 6, 2008, at 11:44 AM, Alex Ross wrote:

> On Oct 6, 2008, at 6:26 PM, Gerd Knops wrote:
>
>> The conversion to LaTeX replaces any occurrences of '...' to /ldots.
>> That causes problems if the dots are followed by text, such as
>>
>> 	...and then there were three.
>>
>> as we and up with '\ldotsand'. Not knowing much of TeX, what is the
>> proper way to shield a variable from surrounding text?
>
> i think I would replace with {\ldots} instead.

Cool, thanks!

Now how can I fix that in xhtml2latex.xslt?

If I replace
              <xsl:text>\ldots</xsl:text>
with
             <xsl:text>{\ldots}</xsl:text>

the braces end up escaped, eg '\{\ldots\}'.

Thanks

Gerd




More information about the textmate mailing list