[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Smart quote replacement in texi2pdf broken with nested @code and @wa
From: |
Oleg Katsitadze |
Subject: |
Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w |
Date: |
Sun, 19 Oct 2008 08:12:06 +0300 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Oct 17, 2008 at 04:49:33PM +0200, Reinhold Kainhofer wrote:
> @address@hidden code inside w: c'}} produces a curly quote
> @address@hidden w inside code: c'}} produces a straigth quote
This patch fixes it:
@@ -2519,7 +2519,9 @@
\discretionary{}{}{}}%
{\_}%
}
-\def\codex #1{\tclose{#1}\endgroup}
+% \scantokens will get catcodes right if @code occurs in an
+% argument, e.g., in @address@hidden or @address@hidden
+\def\codex #1{\tclose{\scantokens{#1}}\endgroup}
% An additional complication: the above will allow breaks after, e.g.,
% each of the four underscores in __typeof__. This is undesirable in
Best,
Oleg
- Smart quote replacement in texi2pdf broken with nested @code and @warning / @w, Reinhold Kainhofer, 2008/10/17
- Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w,
Oleg Katsitadze <=
- Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w, Oleg Katsitadze, 2008/10/25
- Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w, Karl Berry, 2008/10/28
- Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w, John Mandereau, 2008/10/29
- Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w, Karl Berry, 2008/10/29