diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.def | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.def b/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.def new file mode 100644 index 00000000000..16670ea0c45 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ltxdockit/ltxdockit.def @@ -0,0 +1,34 @@ +% $Id: ltxdockit.def,v 1.1 2008/10/12 19:50:56 lehman stable $ + +\ProvidesFile{ltxdockit.def}[2008/10/12 v1.1 ltxdockit pre-configuration (DFSG-free)] +\RequirePackage{etoolbox} + +\PassOptionsToClass{11pt,a4paper,DIV9,liststotoc,listsleft}{scrartcl} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} +\ProcessOptions* +\LoadClass{scrartcl} + +% patches + +\newcommand*{\AtBeginToc}{\g@addto@macro\@begintochook} +\newcommand*{\AtEndToc}{\g@addto@macro\@endtochook} +\newcommand*{\@begintochook}{} +\newcommand*{\@endtochook}{} +\@onlypreamble\AtBeginToc +\@onlypreamble\AtEndToc +\newcommand*{\AtBeginLot}{\g@addto@macro\@beginlothook} +\newcommand*{\AtEndLot}{\g@addto@macro\@endlothook} +\newcommand*{\@beginlothook}{} +\newcommand*{\@endlothook}{} +\@onlypreamble\AtBeginLot +\@onlypreamble\AtEndLot + +\pretocmd\@starttoc{\csuse{@begin#1hook}}{}{} +\apptocmd\@starttoc{\csuse{@end#1hook}}{}{} + +\AtBeginToc{\multicolsep\z@\begin{multicols}{2}} +\AtEndToc{\end{multicols}} +\AtBeginLot{\multicolsep\z@\begin{multicols}{2}} +\AtEndLot{\end{multicols}} + +\endinput |