|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
(Mulit)Markdown Convert to LaTeX problemThe 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? Thanks Gerd _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
|
|
Re: (Mulit)Markdown Convert to LaTeX problemOn 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. _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
|
|
Re: (Mulit)Markdown Convert to LaTeX problemOn 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 _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
|
|
Re: (Mulit)Markdown Convert to LaTeX problemOn Oct 6, 2008, at 12: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? > Just put a space after the macro: \ldots and -- Pete Roundhouse Consulting, Ltd. _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
|
|
Re: (Mulit)Markdown Convert to LaTeX problemOn Oct 6, 2008, at 12:13 PM, Pete Becker wrote: > On Oct 6, 2008, at 12: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? >> > > Just put a space after the macro: \ldots and Work, thanks. Seems the extra space has no bearing on the resulting typographie. Gerd _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
|
|
Re: (Mulit)Markdown Convert to LaTeX problemOn Oct 6, 2008, at 4:25 PM, Gerd Knops wrote:
> > On Oct 6, 2008, at 12:13 PM, Pete Becker wrote: > >> On Oct 6, 2008, at 12: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? >>> >> >> Just put a space after the macro: \ldots and > > Work, thanks. Seems the extra space has no bearing on the resulting > typographie. > Right. Macros swallow whitespace that follows them. That's so you can tell them apart from the following text, as in your example. If you need the space you have to put in a backslash: '\ldots\ and' would put a space between the dots and the 'and'. -- Pete Roundhouse Consulting, Ltd. _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
|
|
Re: (Mulit)Markdown Convert to LaTeX problemFYI - recent versions of MMD use {\ldots}, so if you're having this
problem you probably have an old version installed. Fletcher On Oct 6, 2008, at 4:36 PM, Pete Becker wrote: > On Oct 6, 2008, at 4:25 PM, Gerd Knops wrote: > >> >> On Oct 6, 2008, at 12:13 PM, Pete Becker wrote: >> >>> On Oct 6, 2008, at 12: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? >>>> >>> >>> Just put a space after the macro: \ldots and >> >> Work, thanks. Seems the extra space has no bearing on the resulting >> typographie. >> > > > Right. Macros swallow whitespace that follows them. That's so you can > tell them apart from the following text, as in your example. If you > need the space you have to put in a backslash: '\d\ and' would put > a space between the dots and the 'and'. > > -- Pete > > Roundhouse Consulting, Ltd. > > > > _______________________________________________ > textmate mailing list > textmate@... > http://lists.macromates.com/listinfo/textmate -- Fletcher T. Penney fletcher@... I think it would be a good idea. - Mahatma Gandhi (1869-1948), when asked what he thought of Western civilization _______________________________________________ textmate mailing list textmate@... http://lists.macromates.com/listinfo/textmate |
| Free Forum Powered by Nabble | Forum Help |