| 1 |
\ProvidesFile{makedoc.cfg}[{2013/03/25 documentation settings}] |
| 2 |
%% |
| 3 |
\author{Uwe L\"uck\thanks{% |
| 4 |
\url{http://contact-ednotes.sty.de.vu}}} |
| 5 |
%% |
| 6 |
%% 'hyperref': |
| 7 |
\RequirePackage{ifpdf} |
| 8 |
\usepackage[% |
| 9 |
\ifpdf |
| 10 |
% bookmarks=false, %% 2010/12/22 |
| 11 |
% bookmarksnumbered, |
| 12 |
bookmarksopen, %% 2011/01/24!? |
| 13 |
bookmarksopenlevel=2, %% 2011/01/23 |
| 14 |
% pdfpagemode=UseNone, |
| 15 |
% pdfstartpage=10, |
| 16 |
pdfstartview=FitH, %% 2012/11/26 again |
| 17 |
% pdfstartview=0 0 100, %% 2011/08/22 |
| 18 |
% pdfstartview={XYZ null null 1}, %% 2011/08/25 |
| 19 |
% pdfstartview={XYZ null null null},%% 2011/08/25 |
| 20 |
% pdfstartview={XYZ null null .5}, %% 2011/08/26 |
| 21 |
% pdffitwindow=true, %% 2011/08/22 |
| 22 |
citebordercolor={ .6 1 .6}, |
| 23 |
filebordercolor={1 .6 1}, |
| 24 |
linkbordercolor={1 .9 .7}, |
| 25 |
urlbordercolor={ .7 1 1}, %% playing 2011/01/24 |
| 26 |
\else |
| 27 |
draft |
| 28 |
\fi |
| 29 |
]{hyperref} |
| 30 |
\hypersetup{% |
| 31 |
pdfauthor={Uwe L\374ck}% |
| 32 |
} |
| 33 |
%% metadata, |\MDkeywords{<text>}|, |\MDkeywordsstring|: |
| 34 |
%% %% 2011/08/22: |
| 35 |
\makeatletter |
| 36 |
\newcommand*{\MDkeywords}[1]{% |
| 37 |
\gdef\MDkeywordsstring{#1}% |
| 38 |
\hypersetup{pdfkeywords=\MDkeywordsstring}%% TODO!? |
| 39 |
} |
| 40 |
\@onlypreamble\MDkeywords |
| 41 |
%% |\MDaddtoabstract{<par-head>}|, `:' added: |
| 42 |
\newcommand*{\MDaddtoabstract}[1]{% %% 2012/05/10 |
| 43 |
\par\smallskip\noindent |
| 44 |
\strong{#1:}\quad\ignorespaces} |
| 45 |
%% \pagebreak[2] |
| 46 |
%% |\printMDkeywords|: |
| 47 |
\newcommand*{\printMDkeywords}{% |
| 48 |
\MDaddtoabstract{Keywords}% |
| 49 |
\MDkeywordsstring |
| 50 |
% \global\let\MDkeywordsstring\relax %% `%' 2012/11/12 |
| 51 |
} |
| 52 |
%% The previous definitions mainly are useful with a variant |
| 53 |
%% |\begin{MDabstract}| of \LaTeX's `{abstract}' environment: |
| 54 |
\newenvironment{MDabstract} |
| 55 |
{\abstract\noindent |
| 56 |
\hspace{1sp}%% for niceverb |
| 57 |
\ignorespaces} |
| 58 |
{\@ifundefined{MDkeywordsstring}% |
| 59 |
{}% |
| 60 |
{\printMDkeywords}% |
| 61 |
\global\let\MDabstract\relax %% 2012/11/12 |
| 62 |
\global\let\endMDabstract\relax %% 2012/11/12 |
| 63 |
\endabstract} |
| 64 |
%% |\[MD]docnewline| 2012/11/12 from `readprov.tex': |
| 65 |
\newcommand*{\MDdocnewline}{\leavevmode\@normalcr[\topsep]} |
| 66 |
%% <- `\leavevmode' for use with `\paragraph'. |
| 67 |
%% Sometimes needs to be preceded by a space. |
| 68 |
%% |
| 69 |
%% |\MDfinaldatechecks[<tex-script>]| with \ctanpkgref{filedate}: |
| 70 |
\newcommand*{\MDfinaldatechecks}[1][fdatechk]{% |
| 71 |
\AtEndDocument{% |
| 72 |
% \clearpage %% 2013/03/25 no avail -- with `filedate'! |
| 73 |
\def\@pkgextension{sty}% |
| 74 |
\def\NeedsTeXFormat##1[##2]{}% |
| 75 |
\noNiceVerb %% 2013/03/22 |
| 76 |
\input{#1}% |
| 77 |
}} |
| 78 |
\@onlypreamble\MDfinaldatechecks |
| 79 |
\makeatother |
| 80 |
%% Use other packages: |
| 81 |
\RequirePackage{niceverb}[2011/01/24] |
| 82 |
\RequirePackage{readprov} %% 2010/12/08 |
| 83 |
\RequirePackage{hypertoc} %% 2011/01/23 |
| 84 |
\RequirePackage{texlinks} %% 2011/01/24 |
| 85 |
\RequirePackage{relsize} %% 2011/06/27 |
| 86 |
\RequirePackage{color} %% 2011/08/06 |
| 87 |
\RequirePackage{lmodern} %% 2012/10/29 |
| 88 |
\RequirePackage{filedate} %% 2012/11/12 |
| 89 |
\RequirePackage{filesdo} %% 2013/03/22 |
| 90 |
%% \pagebreak[3] |
| 91 |
%% Logical markup:\qquad |\strong{<chars>}|, |\meta{<chars>}|, |
| 92 |
%% |\acro{<chars>}|, |\pkg{<chars>}|, |
| 93 |
%% |\code{<chars>}|, |\file{<chars>}|:{\sloppy\par} |
| 94 |
\makeatletter |
| 95 |
\def\do#1#2{\@ifdefinable#1{\let#1#2}}%% 2012/07/13 |
| 96 |
\do\strong\textbf \do\file\texttt \do\acro\textsmaller |
| 97 |
%% <- wrong tests before 2012/07/13 |
| 98 |
\do\meta\textit \do \pkg\textsf \do\code\texttt |
| 99 |
\ifpdf |
| 100 |
\pdfstringdefDisableCommands{% |
| 101 |
\let\acro\textrm |
| 102 |
\let\file\textrm %% 2011/11/09 |
| 103 |
\let\code\textrm %% 2011/11/20 |
| 104 |
\let\pkg \textrm %% 2012/03/23 |
| 105 |
} |
| 106 |
\fi |
| 107 |
%% TODO 2011/07/22 -> `htlogml.sty' |
| 108 |
\makeatother |
| 109 |
%% |\qtdcode{<text>}|: 2012/10/24: |
| 110 |
\newcommand*{\qtdcode}[1]{`\code{#1}'} |
| 111 |
%% |\pkgtitle{<package-name>}{<caption>}| |
| 112 |
\newcommand*{\pkgtitle}[2]{% %% 2012/07/13 |
| 113 |
\global\let\pkgtitle\relax |
| 114 |
\pkg{\huge #1}\\---\\#2\thanks{This |
| 115 |
document describes version |
| 116 |
\textcolor{blue}{\UseVersionOf{\jobname.sty}} |
| 117 |
of \textsf{\jobname.sty} as of \UseDateOf{\jobname.sty}.}} |
| 118 |
%% TODO: %% |\TODO| bad with `mdoccorr.cfg' |
| 119 |
\newcommand*{\TODO}{\textcolor{blue}{\acro{TODO}}} %% 2012/11/06 |
| 120 |
%% `\MDsampleinput[{<file>}' was added 2012/11/06. |
| 121 |
%% Problems with `myfilist.tex' were due to 'parskip.sty' |
| 122 |
%% there. On 2012/11/12, we change the former simple macro to a |
| 123 |
%% much more complex |
| 124 |
%% |\MDsamplecodeinput[<add-hfuss>]{<file>}| |
| 125 |
\newcommand*{\MDsamplecodeinput}[2][]{% |
| 126 |
\begingroup |
| 127 |
\vskip\bigskipamount \hrule |
| 128 |
\nobreak\vskip-\parskip |
| 129 |
% \nobreak\vskip\medskipamount |
| 130 |
%% Previous mistake (same below) due to manual change |
| 131 |
%% of `\topsep' in the file `myfilist.tex' (2012/11/30). |
| 132 |
\ifx\\#1\\\else |
| 133 |
\hfuzz=\textwidth \advance\hfuzz#1\relax |
| 134 |
\fi |
| 135 |
\noNiceVerb \verbatiminput{#2}% |
| 136 |
% \nobreak\vskip\medskipamount |
| 137 |
\hrule \vskip-\parskip |
| 138 |
\bigskip %%% \bigbreak |
| 139 |
%% `\bigbreak' made much larger space in `myfilist.tex'. |
| 140 |
\endgroup |
| 141 |
} |
| 142 |
%% |\ctanpkgdref{<pkg-id>}| adds the printed link to |
| 143 |
%% `ctan.org/pkg' as a footnote. There is a little space |
| 144 |
%% for coloured link borders: |
| 145 |
\newcommand*{\ctanpkgdref}[1]{% |
| 146 |
\ctanpkgref{#1}\,\urlfoot{CtanPkgRef}{#1}} |
| 147 |
\errorcontextlines=4 |
| 148 |
\pagestyle{headings} |
| 149 |
|
| 150 |
\endinput |