diff options
author | Norbert Preining <preining@logic.at> | 2008-01-19 15:20:26 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-01-19 15:20:26 +0000 |
commit | ad6fb43bb22068e7d16a9ed534f4614699d8fcd7 (patch) | |
tree | d7ac91a072f216ce631d617fd2a9d56d0077264b /Master/texmf-dist/doc/latex/dlfltxb/dlfltxbtocconfig.tex | |
parent | aa6ced3deb6c3429cc177f028065c87696e2eabd (diff) |
update dlbfltx
git-svn-id: svn://tug.org/texlive/trunk@6315 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/dlfltxb/dlfltxbtocconfig.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/dlfltxb/dlfltxbtocconfig.tex | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbtocconfig.tex b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbtocconfig.tex new file mode 100644 index 00000000000..7f0969c4320 --- /dev/null +++ b/Master/texmf-dist/doc/latex/dlfltxb/dlfltxbtocconfig.tex @@ -0,0 +1,173 @@ +\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{Web: + \url{http://home.imf.au.dk/daleif}\qquad Email: \url{daleif@imf.au.dk}}} +\maketitle + +\tableofcontents* + +\setsecnumdepth{part} + +\chapter{Introduction} +\label{cha:introduction} + +This package takes care of configuring the two ToCs used in +\textit{Introduktion til \LaTeX}. The package is build for this book +only and does not contain much room for configuration. Use it for +inspiration for your own code. + +\chapter{Macros} +\label{cha:macros} + +\markup{spart}\marg{text} this inserts \Arg{text} into the the +\texttt{.toc} file using a special \texttt{spart} style which is used +in the short ToC. This does mean that \markup[nomk]{part} entries has +to be entered twice, but it also enables us to insert special features +into the ToC that does not necessarily has to be present in both. + +\markup{MakeShortToC} prints a short ToC displaying only yhe chapters +(without chapter numbers) and the text inserted using +\markup[nomk]{spart}. \markup{MakeNormalToC} creates a sort of normal +ToC. Note that each subsubesction entry is typeset like a runin list, +each separated by +\markup{cftdlfsubsubseccomma}. \markup{preprocessToC} will preprocess +the entire ToC, and calculates the indents for section and subsection +entries. It should be inserted before \markup{MakeNormalToC}. + +\markup{ToCSubsectionIndentsPullBack} this will change the indent in +the ToC for the subsubsection entries, this is very useful if one +wants to have unnumbered entries under a section instead of a +subsection. \markup{ToCSubsectionIndentsBackToNormal} sets the +indentation back to normal. + + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% TeX-source-specials-mode: t +%%% TeX-PDF-mode: nil +%%% End: + |