summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-28 23:59:19 +0000
committerKarl Berry <karl@freefriends.org>2011-08-28 23:59:19 +0000
commit5d1cd39febfcf2fbd947245520e6477c11fcc08d (patch)
treec172492bb8392cdd29bc9dcd5d8b27ad14d103f4 /Master/texmf-dist/doc/latex/tex-overview/tex-overview-aux.tex
parent09069e648e3c27ca8d989e77c434b5a0acba0b0f (diff)
tex-overview (28aug11)
git-svn-id: svn://tug.org/texlive/trunk@23730 c570f23f-e606-0410-a88d-b1316a301751
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.tex88
1 files changed, 26 insertions, 62 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 6991a789b13..f13cd90e28a 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,40 +1,49 @@
-%% This document is part of the package tex-overview and is only useable with the main file tex-overview.tex.
+%% 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 is not.
%% author: Arno Trautmann
% !TeX root = tex-overview.tex
%% (for the TeXworks-users.)
+\documentclass{scrartcl}
+\usepackage[svgnames]{xcolor}
\usepackage{
bookmark,
cooltooltips,
- dtklogos, %% for \NTS etc.
+ dtklogos, %% for \NTS etc. ⇒  what about metalogo?
fontspec,
geometry,
hyperref,
+ multicol,
+ microtype,
pdftexcmds,
tikz,
- xcolor,
xparse
}
-%% circumventing a bug in cooltooltips
+\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
+}
+
+\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}
-
%% setup the style of hyperlinks.
\hypersetup{
+ unicode=true,
colorlinks=true,
linkcolor=blue,
- urlcolor=blue,
- pdfborder=0 0 0 %% don’t like these boxes
+ urlcolor=blue
}
%% page layout, headings
@@ -52,6 +61,7 @@
\tl_set:Nn\vip{red}
\tl_set:Nn\normalimportant{blue}
\tl_set:Nn\experimental{yellow}
+\tl_set:Nn\planned{LightSkyBlue}
\tl_set:Nn\fonttechnology{pink}
\tl_set:Nn\program{black}
\tl_set:Nn\package{green}
@@ -70,9 +80,10 @@
%% to separate important from not-so-important nodes
\bool_new:N\to_short
-%% the token list to save all the textviews. When set once, it is reset. May be useful anyhow
+%% 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
\to_textviews
\tl_set:Nn\to_textviews{}
}
@@ -169,8 +180,8 @@
\dim_set:Nn\pdfpageheight{29.7cm}
}
-%% the following code is made to avoid code doubling on cost of readability. It is more an experiment of mine. This code is neither stable nor exemplary …
-%% the first argument, given in (), determines the level of the d
+%% 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 ☹
\NewDocumentCommand\tostruct{D(){0}omO{\tonodestyle}}{
\tl_set:Nn\to_disp{section}
\int_compare:nT{#1 > 0}{\tl_put_left:Nn\to_disp{sub}}
@@ -192,54 +203,6 @@
\cs_gset_eq:NN\tonodestyle#4
}
-\NewDocumentCommand\overviewsection{omO{\tonodestyle}}{
- \bool_if:NTF\to_short
- {
- \stepcounter{section}
- \tl_gset:Nn\to_mandsect{\thesection.\hspace{.2em} #2\newline short view}
- \IfNoValueTF{#1}{\tl_gset:Nn\to_optsect{\to_mandsect}}{\tl_gset:Nn\to_optsect{#1, short view}}
- \section*{\to_mandsect}
- \addtocounter{section}{-1}
- }
- {
- \tl_gset:Nn\to_mandsect{#2}
- \IfNoValueTF{#1}{\tl_gset:Nn\to_optsect{\to_mandsect}}{\tl_gset:Nn\to_optsect{#1}}
- \addtotextviews:f{\section[#1]{#2}}
- \section[\to_optsect]{\to_mandsect}
- }
- \cs_gset_eq:NN\tonodestyle#3
-}
-
-\NewDocumentCommand{\overviewsubsection}{omO{\tonodestyle}}{
- \tl_set:Nn\to_mandsubsect{#2}
- \bool_if:NTF\to_short
- {
- \IfNoValueTF{#1}{\tl_set:Nn\to_optsubsect{\to_mandsubsect}}{\tl_set:Nn\to_optsubsect{#1, short view}}
- \subsection*{\to_mandsubsect}
- }
- {
- \IfNoValueTF{#1}{\tl_set:Nn\to_optsubsect{\to_mandsubsect}}{\tl_set:Nn\to_optsubsect{#1}}
- \addtotextviews:f{\subsection[#1]{#2}} %% there should be \to_opt[]sec in the first arg, but I’m too dumb to get it right
- \subsection[\to_optsubsect]{\to_mandsubsect}
- }
- \cs_gset_eq:NN\tonodestyle#3
-}
-
-\NewDocumentCommand{\overviewsubsubsection}{omO{\tonodestyle}}{
- \tl_set:Nn\to_mandsubsubsect{#2}
- \bool_if:NTF\to_short
- {
- \IfNoValueTF{#1}{\tl_set:Nn\to_optsubsubsect{\to_mandsubsubsect}}{\tl_set:Nn\to_optsubsubsect{#1, short view}}
- }
- {
- \IfNoValueTF{#1}{\tl_set:Nn\to_optsubsubsect{\to_mandsubsubsect}}{\tl_set:Nn\to_optsubsubsect{#1}}
- \addtotextviews:f{\subsubsection[#1]{#2}} %% there should be \to_opt[]sec in the first arg, but I’m too dumb to get it right
- }
-
- \subsubsection[\to_optsubsubsect]{\to_mandsubsubsect}
- \cs_gset_eq:NN\tonodestyle#3
-}
-
%% a command for creation of bib-items.
\NewDocumentCommand\tobibsection{m}{
\subsection*{#1}
@@ -261,8 +224,9 @@
\centering
\huge\bfseries An overview of \TeX, its children\\ and their friends~\dots\par
\flushright\parbox{4cm}{
- \Large \color[rgb]{.4 0 0} Arno Trautmann\\ \fontsize{9.85}{10}\selectfont arno.trautmann@gmx.de}
- \hspace*{2cm}\par
+ \Large \color[rgb]{.4 0 0} Arno Trautmann\\ \fontsize{9.85}{10}\selectfont arno.trautmann@gmx.de
+ }
+ \hspace*{2cm}\par
}
- \vspace*{1cm}
+ \vspace*{1cm}
} \ No newline at end of file