summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nicetext/makedoc.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicetext/makedoc.cfg')
-rw-r--r--Master/texmf-dist/tex/latex/nicetext/makedoc.cfg74
1 files changed, 56 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/nicetext/makedoc.cfg b/Master/texmf-dist/tex/latex/nicetext/makedoc.cfg
index f104cda3682..b1bb5fd5897 100644
--- a/Master/texmf-dist/tex/latex/nicetext/makedoc.cfg
+++ b/Master/texmf-dist/tex/latex/nicetext/makedoc.cfg
@@ -1,7 +1,7 @@
-\ProvidesFile{makedoc.cfg}[{2012/11/09 [06] documentation settings}]
+\ProvidesFile{makedoc.cfg}[{2012/11/13 documentation settings}]
-\author{Uwe L\"uck\thanks{\url{http://contact-ednotes.sty.de.vu}}}
-% \author{Uwe L\"uck---{\tt http://contact-ednotes.sty.de.vu}}
+\author{Uwe L\"uck\thanks{%
+ \url{http://contact-ednotes.sty.de.vu}}}
%% hyperref:
\RequirePackage{ifpdf}
@@ -24,7 +24,10 @@
draft
\fi
]{hyperref}
-%% metadata, |\MDkeywords|, |\MDkeywordsstring|, |\printMDkeywords|
+\hypersetup{%
+ pdfauthor={Uwe L\374ck}%
+}
+%% metadata, |\MDkeywords{<text>}|, |\MDkeywordsstring|,
%% 2011/08/22:
\makeatletter
\newcommand*{\MDkeywords}[1]{%
@@ -32,14 +35,18 @@
\hypersetup{pdfkeywords=\MDkeywordsstring}%% TODO!?
}
\@onlypreamble\MDkeywords
- \newcommand*{\MDaddtoabstract}[1]{% %% 2012/05/10
+ \newcommand*{\MDaddtoabstract}[1]{% %% 2012/05/10
\par\smallskip\noindent
\strong{#1:}\quad\ignorespaces}
+%% \pagebreak[2]
+%% |\printMDkeywords|:
\newcommand*{\printMDkeywords}{%
\MDaddtoabstract{Keywords}%
\MDkeywordsstring
- \global\let\MDkeywordsstring\relax
+% \global\let\MDkeywordsstring\relax %% `%' 2012/11/12
}
+%% The previous definitions mainly are useful with a variant
+%% |\begin{MDabstract}| of \LaTeX's `{abstract}' environment:
\newenvironment{MDabstract}
{\abstract\noindent
\hspace{1sp}%% for niceverb
@@ -47,11 +54,24 @@
{\@ifundefined{MDkeywordsstring}%
{}%
{\printMDkeywords}%
+ \global\let\MDabstract\relax %% 2012/11/12
+ \global\let\endMDabstract\relax %% 2012/11/12
\endabstract}
+%% |\[MD]docnewline| 2012/11/12 from `readprov.tex':
+ \newcommand*{\MDdocnewline}{\leavevmode\@normalcr[\topsep]}
+%% <- `\leavevmode' for use with `\paragraph'.
+%% Sometimes needs to be preceded by a space.
+%%
+%% |\MDfinaldatechecks[<tex-script>]| with \ctanpkgref{filedate}:
+ \newcommand*{\MDfinaldatechecks}[1][fdatechk]{%
+ \AtEndDocument{%
+ \def\@pkgextension{sty}%
+ \def\NeedsTeXFormat##1[##2]{}%
+ \input{#1}%
+ }}
+ \@onlypreamble\MDfinaldatechecks
\makeatother
-\hypersetup{%
- pdfauthor={Uwe L\374ck}%
-}
+%% Use other packages:
\RequirePackage{niceverb}[2011/01/24]
\RequirePackage{readprov} %% 2010/12/08
\RequirePackage{hypertoc} %% 2011/01/23
@@ -59,14 +79,16 @@
\RequirePackage{relsize} %% 2011/06/27
\RequirePackage{color} %% 2011/08/06
\RequirePackage{lmodern} %% 2012/10/29
-%% Logical markup |\strong{<text>}|, |\file{<text>}|, |\acro{<text>}|,
-%% |\meta{<text>}|, |\pkg{<text>}|, |\code{<text>}|, |\qtdcode{<text>}|:
+\RequirePackage{filedate} %% 2012/11/12
+%% \pagebreak[3]
+%% Logical markup:\qquad |\strong{<chars>}|, |\meta{<chars>}|,
+%% |\acro{<chars>}|, |\pkg{<chars>}|,
+%% |\code{<chars>}|, |\file{<chars>}|:{\sloppy\par}
\makeatletter
\def\do#1#2{\@ifdefinable#1{\let#1#2}}%% 2012/07/13
\do\strong\textbf \do\file\texttt \do\acro\textsmaller
%% <- wrong tests before 2012/07/13
\do\meta\textit \do \pkg\textsf \do\code\texttt
- \newcommand*{\qtdcode}[1]{`\code{#1}'} %% 2012/10/24
\ifpdf
\pdfstringdefDisableCommands{%
\let\acro\textrm
@@ -77,19 +99,35 @@
\fi
%% TODO 2011/07/22 -> `htlogml.sty'
\makeatother
+%% |\qtdcode{<text>}|: 2012/10/24:
+ \newcommand*{\qtdcode}[1]{`\code{#1}'}
+%% |\pkgtitle{<package-name>}{<caption>}|
\newcommand*{\pkgtitle}[2]{% %% 2012/07/13
\global\let\pkgtitle\relax
\pkg{\huge #1}\\---\\#2\thanks{This
document describes version
\textcolor{blue}{\UseVersionOf{\jobname.sty}}
of \textsf{\jobname.sty} as of \UseDateOf{\jobname.sty}.}}
+%% TODO: %% |\TODO| bad with `mdoccorr.cfg'
\newcommand*{\TODO}{\textcolor{blue}{\acro{TODO}}} %% 2012/11/06
-\newcommand*{\MDsampleinput}[1]{% %% 2012/11/06
- \par\bigskip\hrule\verbatiminput{#1}%
- \hrule\bigskip}
-
+%% \[`\MDsampleinput[{<file>}'\] was added 2012/11/06.
+%% Problems with `myfilist.tex' were due to \ctanpkgref{parskip}
+%% there. On 2012/11/12, we change the former simple macro to a
+%% much more complex
+%% |\MDsamplecodeinput[<add-hfuss>]{<file>}|
+\newcommand*{\MDsamplecodeinput}[2][]{%
+ \begingroup
+ \bigskip \hrule
+ \nobreak\vskip-\parskip \nobreak\vskip\medskipamount
+ \ifx\\#1\\\else
+ \hfuzz=\textwidth \advance\hfuzz#1\relax
+ \fi
+ \noNiceVerb \verbatiminput{#2}%
+ \nobreak\vskip\medskipamount
+ \hrule \vskip-\parskip \bigbreak
+ \endgroup
+}
\errorcontextlines=4
\pagestyle{headings}
-\endinput
-
+\endinput