[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: |
Karl Berry |
Subject: |
Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w |
Date: |
Thu, 23 Oct 2008 12:16:48 -0500 |
> @address@hidden code inside w: c'}} produces a curly quote
> @address@hidden w inside code: c'}} produces a straigth quote
Sigh. I don't have a good answer for you. The cause is the catcodes
being set at the "wrong" time (in this case), which is a fundamental
attribute of TeX. Can you just use the form you want?
-\def\codex #1{\tclose{#1}\endgroup}
+\def\codex #1{\tclose{\scantokens{#1}}\endgroup}
I am scared of this change. For one thing, if we're not running e-tex,
it will cause a temp file to be written and read on every @code (and
similar) command. That seems incredibly painful. I also wonder about
nested commands requiring \scantokens. (I wonder about that now, in fact.)
Maybe we could make ` and ' active all the time, like " and other
characters are now.
karl
- 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, 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