diff options
author | Karl Berry <karl@freefriends.org> | 2012-03-19 23:17:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-03-19 23:17:29 +0000 |
commit | c036240d48a7cce4186d6429da3a747348b68362 (patch) | |
tree | 5f541777c8583dac417190b5eff04bde0c52bf06 /Master/texmf-dist/tex/latex/nicetext/fifinddo.sty | |
parent | 2fa6e82bbf186df35bebbbc6c32c8f2c4587014f (diff) |
nicetext (19mar12)
git-svn-id: svn://tug.org/texlive/trunk@25699 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicetext/fifinddo.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nicetext/fifinddo.sty | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/nicetext/fifinddo.sty b/Master/texmf-dist/tex/latex/nicetext/fifinddo.sty index e25e67aed5d..d8bb3ef6a94 100644 --- a/Master/texmf-dist/tex/latex/nicetext/fifinddo.sty +++ b/Master/texmf-dist/tex/latex/nicetext/fifinddo.sty @@ -1,11 +1,11 @@ %% Macro package `fifinddo.sty' for LaTeX2e, %% FIDO, FIND! -%% copyright (C) 2009-2011 Uwe L\"uck, +%% copyright (C) 2009-2012 Uwe L\"uck, %% http://www.contact-ednotes.sty.de.vu %% -- author-maintained in the sense of LPPL below -- %% for processing tex(t) files %% (checking, filtering, converting, substituting, expanding, ...) -\def\fileversion{0.5} \def\filedate{2011/11/21} +\def\fileversion{0.51} \def\filedate{2012/03/17} %% This file can be redistributed and/or modified under %% the terms of the LaTeX Project Public License; either @@ -565,8 +565,8 @@ \noexpandcsname \substr_cond \fdParserId \endcsname %% By `\edef', the name of the substring conditional is stored here %% as a single token. The rest of the sandbox follows. - ##1~#1\dollar_tilde}% -%% <- `\noexpand~' replaced for v0.5 according to + ##1\FD_noexpand~#1\dollar_tilde}% +%% <- `\noexpand~' as before v0.5 replaced for v0.51 according to %% Sec.~\ref{sec:pseudo-tilde}. \let\dollar_tilde\sandbox_dollar} %% If a tilde `~' has been used instead of `$', the default @@ -613,13 +613,24 @@ %% to the original one by |\FDnormalTilde| %% (which, however, works only for new processing jobs and %% processing another file---at present, TODO 2011/11/21): -\newcommand*{\FDnormalTilde}{\def~{\noexpand~}% - \let\RemoveTilde\FD_remove_normal_tilde} +\newcommand*{\FDnormalTilde}{% + \let\FD_noexpand\noexpand %% v0.51 +%% v0.5 had a modification of `~' that corrupted typesetting. + \let\RemoveTilde\FD_remove_normal_tilde} \let\FD_remove_normal_tilde\RemoveTilde \FDnormalTilde -\newcommand*{\FDpseudoTilde}{\def~{\noexpand\pseudo_tilde}% - \let\RemoveTilde\FD_remove_pseudo_tilde} +\newcommand*{\FDpseudoTilde}{% + \def\FD_noexpand~{\noexpand\pseudo_tilde}% %% v0.51 + \let\RemoveTilde\FD_remove_pseudo_tilde} \def\FD_remove_pseudo_tilde#1\pseudo_tilde{#1} +%% TODO 2012/01/20: This way outer braces of splits or the +%% target token list are removed. With 'blog.sty', this has been +%% relevant for displaying code only (where using source braces +%% for displaying braces, instead of using `\{' and `\}', +%% it was a bad habit anyway). In order to fix this, the target +%% token list must be surrounded with some additional dummy things, +%% and `\RemoveTildeArg' must add another trick. +%% %% <- stored in "bad" directory. %% %% === Calling conditionals === %% |\ProcessStringWith{<target-string>}{<id>}| \ builds the sandbox @@ -1130,5 +1141,8 @@ v0.5 2011/11/13 \PrependExpandableAllReplacer*, \MakeSetupCommand; 2011/11/20 \noexpandcsname; "default job" lowercase 2011/11/21 \ProcessInputWith "less efficient", \protected@edef, "pseudo-tilde" + -> r0.5 +v0.51 2012/01/20 updated (C); TODO on pseudo-tilde + 2012/03/17 fixed \FDnormalTilde/\FDpseudoTilde TODO: cleveref 2010/03/18 |