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