diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-05 23:59:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-05 23:59:28 +0000 |
commit | 649482075a5882440e6ed9b1e530122baa49fb5b (patch) | |
tree | 3d0483b6174d317a4b3cf36b19b20db5d62f9206 /Master/texmf-dist/tex/latex/nicetext/niceverb.sty | |
parent | 447c1d22bf02017dfb91166824a5d15cb643ed04 (diff) |
nicetext 044 (5dec11)
git-svn-id: svn://tug.org/texlive/trunk@24771 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicetext/niceverb.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nicetext/niceverb.sty | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/nicetext/niceverb.sty b/Master/texmf-dist/tex/latex/nicetext/niceverb.sty index 8f88e1e46ce..4150de49265 100644 --- a/Master/texmf-dist/tex/latex/nicetext/niceverb.sty +++ b/Master/texmf-dist/tex/latex/nicetext/niceverb.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{niceverb}[2011/09/09 v0.44 +\ProvidesPackage{niceverb}[2011/12/05 v0.44 minimize doc markup (UL)] %% Copyright (C) 2009-2011 Uwe Lueck, @@ -514,22 +514,25 @@ %% (for the documentation of the present package). \newcommand*{\HardVerbBox}{\_no_nice_meta_verb_true \gen_cmd_box} \newcommand*{\gen_cmd_box}{% - \bgroup - \let\niceverb_egroup\nice_collect_verb_egroup - \global %% TODO!? for \cmdboxitem 2010/03/15 - %% <- TODO replace \niceverb_egroup by parameter, - %% save one nesting level 2010/03/15 - \setbox\niceverb_savebox \hbox\bgroup - \if_no_nice_meta_verb_ - \expandafter \HardNVerb - \else \expandafter \NVerb \fi} +% \ifvmode\let\niceverb_boxtype\VerticalCmdBox %% 2011/11/05 +% \else\let\niceverb_boxtype\InlineCmdBox \fi + \let\niceverb_egroup\nice_collect_verb_egroup + \setbox\niceverb_savebox \hbox\bgroup + \if_no_nice_meta_verb_ + \expandafter \HardNVerb + \else \expandafter \NVerb \fi} \newcommand*{\nice_collect_verb_egroup}{% - \egroup \egroup - \ifvmode \expandafter \VerticalCmdBox - \else \ifmmode \hbox \fi - \expandafter \InlineCmdBox \fi - {\box\niceverb_savebox}% - \niceverb_normal_egroup} + \egroup \egroup + \ifvmode \expandafter \VerticalCmdBox + \else \ifmmode \hbox \fi + \expandafter \InlineCmdBox \fi +% \ifmmode\hbox\fi \niceverb_boxtype %% 2011/11/05 + {\box\niceverb_savebox}% +%% Modifying invocation of `\niceverb_normal_egroup' 2011/11/05 +%% according to remark of 2010/03/15 for saving nesting level: + \ifmmode\else\@\fi + \let\niceverb_egroup\niceverb_normal_egroup +} %% |\nvCmdBox| will be the permanent alias for \qtd{&|}. \newcommand*{\nvCmdBox}{\GenCmdBox\|} %% |\VerticalCmdBox{<content>}| @@ -542,7 +545,8 @@ %% The user can choose later by some `\renewcommand'. %% We do the perhaps most essential thing here %% (again cf. `\begin_min_verb'):{\sloppy\par} -\newcommand*{\VerticalCmdBox}{\leavevmode\null\InlineCmdBox} +\newcommand*{\VerticalCmdBox}{\leavevmode\InlineCmdBox} +%% (2011/11/05 removing `\null'.) %% The command declaration boxes in the documentation of %% Nicola Talbot's \ctanpkgref{datatool} %% would be an especially nice realization of `\VerticalCmdBox'. @@ -827,4 +831,7 @@ v0.43 2011/05/09 \gt, \lt 2011/08/20 `r0.42', `v0.43' with nicetext RELEASE r0.43 v0.44 2011/09/09 \AddQuotes, \DontAddQuotes - +with nicetext RELEASE r0.44 +v0.45 2011/11/05 mod. \niceverb_collect_egroup/\VerticalCmdBox, + tried \output problem without avail + 2011/12/05 clarified "r0.44" |