diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex | 102 |
1 files changed, 59 insertions, 43 deletions
diff --git a/Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex b/Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex index 9af03281d34..a2404930da0 100644 --- a/Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex +++ b/Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex @@ -1,4 +1,4 @@ -%% This document is part of the document tex-overview. It contains the formatting and definitions for typesetting. Please do *not* consider anything here as an example of good TeX coding style – it's not. +%% This document is part of the document tex-overview and should not be distributed without it. This file contains the formatting and definitions for typesetting. Please do *not* consider anything here as an example of good TeX coding style – it's not. %% author: Arno Trautmann % !TeX root = tex-overview.tex @@ -10,36 +10,48 @@ array, bookmark, booktabs, - cooltooltips, colortbl, - dtklogos, %% for \NTS etc. ⇒ what about metalogo? fontspec, geometry, hyperref, longtable, luacode, + metalogo, multicol, microtype, - pdftexcmds, +% pdftexcmds, tabu, tikz, xparse } +%% copied definitions from old dtklogos, which are no longer supported: \makeatletter -\def\l@section#1#2{ % this is not neat, but seemingly the only way to reduce the space between sections in toc. % Actually, it's a good reason to think about a plain TeX solution for this package … -\ifnum \c@tocdepth >\z@ \ifnum \lastpenalty <20009 \addpenalty {\@secpenalty }\fi \addvspace {.3em \@plus \p@ }\setlength \@tempdima {1.5em}\if@tocleft \ifx \toc@l@number \@empty \else \setlength \@tempdima {0\toc@l@number }\fi \fi \begingroup \raggedsectionentry \parindent \z@ \advance \rightskip \@pnumwidth \parfillskip -\@pnumwidth \interlinepenalty \@M \leavevmode \advance \leftskip \@tempdima \null \nobreak \hskip -\leftskip \usekomafont {sectionentry}{#1\nobreak \usekomafont {sectionentrypagenumber}{\hfill \nobreak \hb@xt@ \@pnumwidth {\hss #2}}}\par \endgroup \ifnum \scr@compatibility >\@nameuse {scr@v@2.96}\relax \penalty 20008 \fi \fi +\providecommand\NTS{\mbox{\mathsurround=0pt + \(\cal N\mkern -4mu\lower .5ex\hbox{$\cal T$}\mkern -2mu S\)}} +\providecommand\AMS{{\normalfont\(\cal A\)\kern-.1667em\lower.5ex\hbox{\(\cal M\)}\kern-.125em{\(\cal S\)}}} +\providecommand\LamSTeX{% + L\raise.42ex\hbox{\kern-.3em\the\scriptfont2 A}% + \kern-.2em\lower.376ex\hbox{\the\textfont2 M}% + \kern-.125em {\the\textfont2 S}-\TeX} +\DeclareRobustCommand{\BibTeX}{B\kern-.05em% + \hbox{$\m@th$% %% force math size calculations + \csname S@\f@size\endcsname + \fontsize\sf@size\z@ + \math@fontsfalse\selectfont + I\kern-.025emB}% + \kern-.08em% + \-\TeX} + +\newcommand*{\noaddvspace}{\renewcommand*{\addvspace}[1]{}} +\addtocontents{toc}{\protect\noaddvspace} + +\renewcommand*{\addparttocentry}[2]{% + \addtocentrydefault{part}{#1}{\Large #2 \normalsize} } \microtypesetup{stretch=35} %% allow for a bit more expansion to improve typesetting of the columns. \frenchspacing -%% for circumventing a bug in cooltooltips -\makeatletter - \let\topdfescapestring\pdf@escapestring -\makeatother - -\ExplSyntaxNamesOn - %% define the look-and-feel of the document \setmainfont{TeX Gyre Pagella} \setsansfont{TeX Gyre Pagella} @@ -48,17 +60,19 @@ \hypersetup{ unicode=true, colorlinks=true, - linkcolor=blue, + linkcolor=DarkRed, urlcolor=blue } +\hyperbaseurl{.} %% page layout, headings \pagestyle{empty} -\addtokomafont{disposition}{\color[rgb]{.4 0 0}} +\addtokomafont{disposition}{\color[rgb]{0 0 .7}} \addtokomafont{section}{\Huge} \addtokomafont{subsection}{\LARGE} \addtokomafont{subsubsection}{\Large} +\ExplSyntaxOn %% some missing definitions for \TeX-like things \tl_set:Nn\XeT{X\kern -.1667em\lower .5ex\hbox {E}\kern -.125emT\@} \tl_set:Nn\ConTeXt{Con\TeX{}t} @@ -73,6 +87,7 @@ \tl_set:Nn\package{green} \tl_set:Nn\distro{orange} \tl_set:Nn\histdistro{purple} +\tl_set:Nn\annotation{black} %% shorthand to keep a good structure of the node positions \fp_new:N\layer_num @@ -91,7 +106,7 @@ %% the token list to save all the textviews. When set once, it is reset. May be useful anyhow. Or not. \tl_set:Nn\to_textviews{} \NewDocumentCommand\settextviews{}{ - \setcounter{section}{3} %% to enable equal section numbers for both text and tree views + \setcounter{section}{4} %% to enable equal section numbers for both text and tree views \to_textviews \tl_set:Nn\to_textviews{} } @@ -101,18 +116,18 @@ \NewDocumentCommand\tograph{s+D(){}+m} { \IfBooleanT{#1}{ - \ExplSyntaxNamesOn + \ExplSyntaxOn \bool_gset_true:N\to_short - \ExplSyntaxNamesOff + \ExplSyntaxOff #2 \begin{tikzpicture} #3 \end{tikzpicture} \clearpage } - \ExplSyntaxNamesOn + \ExplSyntaxOn \bool_gset_false:N\to_short - \ExplSyntaxNamesOff + \ExplSyntaxOff #2 \begin{tikzpicture} #3 @@ -122,8 +137,8 @@ %% Style of the nodes: shade from a light \tikzstyle{coolnode} = [ draw=\nodecolor!50!black!70, - top color=\nodecolor!10!white!105, - bottom color= \nodecolor!50!black!50 + top~color=\nodecolor!10!white!105, + bottom~color= \nodecolor!50!black!50 ] %% set the first default node style (will change to \distro or \program in the document) @@ -131,23 +146,20 @@ %% tonode ⇒ tex-overview node, now with better argument specifier \NewDocumentCommand\tonode{O{\tonodestyle}D(){no label given}D(){no position given}D<>{no description given}m}{ -%% save the content pdfescaped - \tl_set:No\tonodecontent{\topdfescapestring{#4}} %% test if we are in the short or full view \tl_gset:Nn\nodecolor{#1} \bool_if:NTF\to_short{ %% short view \tl_if_eq:NNT#1{\vip}{ %% then check if this is an important node - \node[coolnode] - (#2) at (#3) { - \cooltooltip{#2}{\tonodecontent}{\tonodecontent}{}{#5\strut} + \node[coolnode] (#2) at (#3) { + \href{#4}{\color{black}#5\strut} }; } }{ %% long view \node[coolnode] (#2) at (#3) { - \cooltooltip{#2}{\tonodecontent}{\tonodecontent}{}{#5\strut} + \href{#4}{\color{black}#5\strut} }; %% and the text view, to be added only once! \addtotextviews:f{\subsubsection*{\color{blue}#5}\parbox{\columnwidth}{#4}} @@ -177,19 +189,23 @@ } \NewDocumentCommand\topart{m}{ - \clearpage - \dim_set:Nn\pdfpagewidth{9cm} %% make a smaller paper so the header won’t feel so alone on the big, cold paper - \dim_set:Nn\pdfpageheight{4cm} - \newgeometry{margin=1cm} +% \clearpage +% \pdfpagewidth is not available in LuaTeX > 0.85. So we skip this gimmick, might come back later. +%% \dim_set:Nn\pdfpagewidth{9cm} %% make a smaller paper so the header won’t feel so alone on the big, cold paper +%% \dim_set:Nn\pdfpageheight{4cm} +% \newgeometry{margin=1cm} \part{#1} \newpage - \restoregeometry - \dim_set:Nn\pdfpagewidth{21cm} %% back to a4 - \dim_set:Nn\pdfpageheight{29.7cm} +% \restoregeometry +%% \dim_set:Nn\pdfpagewidth{21cm} %% back to a4 +%% \dim_set:Nn\pdfpageheight{29.7cm} } %% the following code is made to avoid code doubling on cost of readability. Seems to be stable enough to work here. -%% the first argument, given in (), determines the level (sub/sub/section) of the entry. The rest is totally unreadable ☹ +%% the first argument, given in (), determines the level (sub/sub/section) of the entry. +% second argument: Short name of the struct for toc +% third argument: Full name of the struct +% forth argument: default node style for this struct. Default for the default is the default style. \NewDocumentCommand\tostruct{D(){0}omO{\tonodestyle}}{ \tl_set:Nn\to_disp{section} \int_compare:nT{#1 > 0}{\tl_put_left:Nn\to_disp{sub}} @@ -197,15 +213,15 @@ \bool_if:NTF\to_short { \int_compare:nT{#1 = 0}{\stepcounter{section}} - \tl_gset:cn{\to_disp mand}{\cs:w the\to_disp\cs_end:.\hspace{.175em} #3\newline short view} - \IfNoValueTF{#2}{\tl_gset:cn{\to_disp opt}{\tl_use:c{\to_disp mand}}}{\tl_gset:cn{\to_disp opt}{#2, short view}} + \tl_gset:cn{\to_disp mand}{\cs:w the\to_disp\cs_end:.\hspace{.175em} #3\newline short~view} + \IfNoValueTF{#2}{\tl_gset:cn{\to_disp opt}{\tl_use:c{\to_disp mand}}}{\tl_gset:cn{\to_disp opt}{~#2, short~view}} \cs:w \to_disp \cs_end:*{\cs:w\to_disp mand\cs_end:} \int_compare:nT{#1 = 0}{\addtocounter{section}{-1}} } { \tl_gset:cn{\to_disp mand}{#3} - \IfNoValueTF{#2}{\tl_gset:cn{\to_disp opt}{\cs:w \to_disp mand\cs_end:}}{\tl_gset:cn{\to_disp opt}{#2}} - \addtotextviews:f{\cs:w \to_disp\cs_end:[#2]{#3}} + \IfNoValueTF{#2}{\tl_gset:cn{\to_disp opt}{\cs:w \to_disp mand\cs_end:}}{\tl_gset:cn{\to_disp opt}{~#2}} + \addtotextviews:f{\cs:w \to_disp\cs_end:[~#2]{#3}} \cs:w \to_disp\cs_end:[\cs:w \to_disp opt\cs_end:]{\cs:w \to_disp mand\cs_end:} } \cs_gset_eq:NN\tonodestyle#4 @@ -233,7 +249,7 @@ \end{minipage} } -\ExplSyntaxNamesOff +\ExplSyntaxOff \AtBeginDocument{ { @@ -242,7 +258,7 @@ and their friends~\dots \vspace*{-.2cm} \flushright\parbox{4cm}{ - \large \color[rgb]{.4 0 0} Arno Trautmann\\ + \large \color[rgb]{0 0 .7} Arno Trautmann\\ \fontsize{8.25}{10}\selectfont arno.trautmann@gmx.de } \hspace*{.7cm}\par @@ -294,7 +310,7 @@ end \AtBeginShipout{% \AtBeginShipoutUpperLeft{% - \color[rgb]{.6 0 0} + \color[rgb]{0 0 .7} \luatexlatelua{ linewidth(40) sloppyline({-30,-30},{30,30}) |