1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
\RequirePackage{etex}
\documentclass[11pt,oneside,a4paper,oldfontcommands,danish,english,article]{memoir}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[widespace]{fourier}
\setlxvchars[\normalfont]
\settypeblocksize{*}{1.3\lxvchars}{1.618}
\setlrmargins{*}{*}{0.7}
\setulmargins{*}{*}{1}
\setlength\marginparwidth{4cm}
\checkandfixthelayout
\hfuzz=30pt
\setfootnoterule[\vfill]{3pt}{0.4\columnwidth}{\normalrulethickness}
\usepackage{color}
\usepackage[colorlinks,breaklinks]{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\definecolor{citecolour}{rgb}{0,0.6,0.2}
\definecolor{urlcolour} {rgb}{0.8,0,0.8}
\hypersetup{
pdftitle={The dlfltxbtocconfig package},
pdfauthor={Copyright \textcopyright\ \number\year\ Lars Madsen},
linkcolor=linkcolour,citecolor=citecolour,
filecolor=urlcolour,urlcolor=urlcolour,
plainpages=false,
}
\ifpdf\else\usepackage{breakurl}\fi
\usepackage{memhfixc}
\clubpenalty=300
\widowpenalty=300
\usepackage{microtype}
\usepackage{amsmath,amssymb}
\usepackage[amsmath,thmmarks,framed]{ntheorem}
\usepackage[round]{natbib}
\usepackage{dlfltxbcodetips}
\usepackage[loadsampleconfig]{dlfltxbmarkup}
\renewcommand\felineMarginAdjustment{\RaggedLeft}
\usepackage{dlfltxbmisc}
\usepackage{graphicx}
\chapterstyle{article}
\setsecheadstyle{\normalfont\large\bfseries\raggedright}
\reversemarginpar
\reversesidepartrue
\definecolor{shadecolor}{gray}{0.8}
\theorembodyfont{\normalfont}
\theoremseparator{.}
\def\theoremframecommand{\colorbox{shadecolor}}
\theoremstyle{nonumberplain}
\NewShadedTheorem{caveat}{Caveat}
\NewShadedTheorem{remark}{Remark}
% until dlfltxbsd is released we will have to use the following
% construction
\usepackage{fancyvrb}
\fvset{fontsize=\footnotesize}
\newcommand\verbfile{\jobname.vrb}
\newenvironment{sourcedisplay}{%
\par\vskip0.5\baselineskip\noindent
\VerbatimOut{\verbfile}}{%
\endVerbatimOut%
\noindent
\begin{minipage}{0.48\linewidth}
\VerbatimInput{\verbfile}
\end{minipage}
\hfill
\begingroup%
\begin{minipage}{0.48\linewidth}
\begin{framed}
\input{\verbfile}
\end{framed}
\end{minipage}
\endgroup\vskip0.5\baselineskip}
\newenvironment{Sourcedisplay}{%
\par\vskip0.5\baselineskip\noindent
\VerbatimOut{\verbfile}}{%
\endVerbatimOut%
\noindent
\begin{minipage}{\linewidth}
\VerbatimInput{\verbfile}
\end{minipage}
\par\bigskip\noindent
\begin{minipage}{\linewidth}
\begin{framed}
\input{\verbfile}
\end{framed}
\end{minipage}
\vskip0.5\baselineskip}
\pagestyle{plain}
\begin{document}
\title{The \textsf{\jobname} package}
\author{Lars Madsen\thanks{Email: \url{daleif@imf.au.dk}}}
\maketitle
\setsecnumdepth{part}
\chapter{Contents of this package}
This package is not really meant for public use. It is used in the
preparation of
\emph{\href{http://www.imf.au.dk/system/latex/bog}{Introduktion til
\LaTeX}} my (Danish) \LaTeX\ user
manual.
The package takes care of configuring the two main table of contents
used in the book. People should use the code for inspiration (be
aware, it is quite messy) for their own ToC configurations.
One interesting feature used in this version of the package: In the
latest memoir (as of February 2010) there are some added hooks in the
ToC macros that aren't documented in the memoir user manual. In this
package we use these hooks to measure the widest section numbers and
such in the ToC, save it to the main aux file, and then on the next
run, use it to auto adjust the width of the section number boxes.
A new release of the \emph{memoir experimental} package will explain
more about how this works.
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% TeX-source-specials-mode: t
%%% TeX-PDF-mode: nil
%%% End:
|