diff options
author | Karl Berry <karl@freefriends.org> | 2011-01-31 23:54:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-01-31 23:54:47 +0000 |
commit | dc52eaa9c7d13f6ed9b95c22f4ed1388b0075520 (patch) | |
tree | fb0327b827ab8e54f462e9cbc1498f479de22eb8 /Master/texmf-dist/tex/latex/nicetext/makedoc.sty | |
parent | 48e42e1b03975e2e28043aa45334e2ffc10d627c (diff) |
nicetext (30jan11)
git-svn-id: svn://tug.org/texlive/trunk@21245 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicetext/makedoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nicetext/makedoc.sty | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/nicetext/makedoc.sty b/Master/texmf-dist/tex/latex/nicetext/makedoc.sty index 250d65d1fe1..93e14b8ffdb 100644 --- a/Master/texmf-dist/tex/latex/nicetext/makedoc.sty +++ b/Master/texmf-dist/tex/latex/nicetext/makedoc.sty @@ -1,10 +1,10 @@ %% Macro package `makedoc.sty' for LaTeX2e, -%% copyright (C) 2009 2010 Uwe L\"uck, +%% copyright (C) 2009-2011 Uwe L\"uck, %% http://www.contact-ednotes.sty.de.vu %% -- author-maintained in the sense of LPPL below -- %% for preparing documentations from packages. -\def\fileversion{0.4} \def\filedate{2010/03/30} +\def\fileversion{0.41} \def\filedate{2011/01/25} %% This file can be redistributed and/or modified under %% the terms of the LaTeX Project Public License; either @@ -162,16 +162,24 @@ %% and our choice for `\listinglabel' are %% called at `\begin{document}'---outside the possible group. \gdef\mdPackageCode{% - \small -%% Get rid of 'niceverb' stuff: - % \MakeOther\`\MakeOther\'%% probably OK with moreverb - \MakeOther\<\MakeOther\|% +% \small +%% 2011/01/19, v0.41: `\small' has affected the `\baselineskip' +%% above the code. So a `\par' must be executed before `\small'. +%% But we don't want to have the extra `\partopsep'---forced ... + \mdStartPackageCode %% 2011/01/19 v0.41 %% From the next occurrence of the environment onwards, -%% `listing' must be replaced by `listingcont'. We must -%% copy the previous code diligently. - \gdef\mdPackageCode{\small \MakeOther\<\MakeOther\|% +%% `listing' must be replaced by `listingcont'. + \gdef\mdPackageCode{\mdStartPackageCode %% 2011/01/19 v0.41 \listingcont}% \listing{1}} +\gdef\mdStartPackageCode{% %% 2011/01/19 v0.41 +%% Smart `\small'---we might once allow `\partopsep' +%% in `vmode'---not this time: + \par \small \partopsep\z@skip +%% Get rid of 'niceverb' stuff: + % \MakeOther\`\MakeOther\'%% probably OK with moreverb + \MakeOther\<\MakeOther\|% +} \gdef\endmdPackageCode{% \endlisting \global\let\endmdPackageCode\endlistingcont} @@ -184,9 +192,13 @@ %% 'moreverb''s (global!) code line number settings %% (\emph{first} line number + {\it modulo} for displaying) %% when combining documentations of \emph{more} than one package -%% with the present solution for implementing `mdPackageCode': -\newcommand*{\ResetCodeLineNumbers}{% - \global\listing@line\@ne \gdef\listing@step{\@ne}} +%% with the present solution for implementing `mdPackageCode'. +%% %% 2010/12/20, rm. 2010/12/21: +%% % (With v0.41, the definition is global, so it can be used +%% % outside a group in a `.tex' preamble that does the preprocessing.) +\@ifdefinable\ResetCodeLineNumbers{%% global as above, v0.41 + \gdef\ResetCodeLineNumbers{% + \global\listing@line\@ne \gdef\listing@step{\@ne}}} %% %% \subsection{Dealing with comments} %% |\TreatAsComment{<text>}| writes <text> to the documentation @@ -572,3 +584,7 @@ v0.4 2010/03/23 "Distinguishing" 2010/03/28 include `% ' commenting style 2010/03/29 \ResetCodeLineNumbers 2010/03/30 use \SetPatternCodes, \ResetPatternCodes +v0.41 2010/12/20 \ResetCodeLineNumbers defined globally + 2010/12/21 ... rather presented as a bug-fix + 2011/01/19 \mdStartPackageCode + 2011/01/25 updated (C) |