[PATCH] Latex Escapes

13 views
Skip to first unread message

Mark McCurry

unread,
Jul 26, 2011, 5:14:58 PM7/26/11
to asci...@googlegroups.com
It appears that the current copy (hg head I believe) of latex.conf has
some bad escapes.
With "asciidoc -b latex FILE", pdflatex will choke on "\\parskip" and
"\\hypertarget".
Inline patch fixes replaces "\\" with "\" to solve this issue.

--- a/latex.conf Tue May 31 18:45:49 2011 +1200
+++ b/latex.conf Tue Jul 26 17:04:55 2011 -0400
@@ -671,7 +671,7 @@

%\lstset\{basicstyle=\footnotesize\ttfamily,showstringspaces=false,breaklines,frame=single,
rulecolor=\color\{ListingBorderColor\}, xleftmargin=0cm,
linewidth=0.95\textwidth\}

-{latex-indent-paragraphs%} \setlength\{\\parskip\}\{1ex plus 0.5ex
minus 0.2ex\}
+{latex-indent-paragraphs%} \setlength\{\parskip\}\{1ex plus 0.5ex minus 0.2ex\}

\makeatletter
\DeclareRobustCommand*\textsubscript[1]\{%
@@ -692,7 +692,7 @@

%\newcommand{\texttesh}{\textteshlig\/}

-\label\{header\}\\hypertarget\{header\}\{\}
+\label\{header\}\hypertarget\{header\}\{\}
{doctitle#\maketitle}

[footer]


--Mark McCurry

Simon Ruderich

unread,
Aug 3, 2011, 4:48:39 AM8/3/11
to asci...@googlegroups.com
On Tue, Jul 26, 2011 at 05:14:58PM -0400, Mark McCurry wrote:
> It appears that the current copy (hg head I believe) of latex.conf has
> some bad escapes.
> With "asciidoc -b latex FILE", pdflatex will choke on "\\parskip" and
> "\\hypertarget".
> Inline patch fixes replaces "\\" with "\" to solve this issue.

I can reproduce this issue and the patch fixes it. Please apply
this patch.

Regards,
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

Stuart Rackham

unread,
Aug 8, 2011, 2:31:18 AM8/8/11
to asci...@googlegroups.com
Thanks for the patch Mark, applied to trunk:

http://code.google.com/p/asciidoc/source/detail?r=540a650d08b9bc7ff21f22fa601536fd18f046ae


Cheers, Stuart

Reply all
Reply to author
Forward
0 new messages