Commit a753dc17 authored by julian.gethmann's avatar julian.gethmann

Add LaTeX role

* basic LaTeX installation
* includes MS fonts (incl. Arial for KIT layout)
* JACoW and DPG templates
* Axel Bernhard's bib-file
* Neo2 UTF-8 class
parent dce274b6
texlivepackages:
- texlive.x86_64
- kile
- texmaker
- texlive-epstopdf-bin
- texlive-quotmark
- texlive-hyphen-german
- texlive-babel-german
- texlive-pgfplots
- texlive-units
- texlive-mnsymbol
- texlive-pgfgantt
- texlive-prettyref
- texlive-faktor
- texlive-overpic
# Sphinx (Python docu)
- texlive-sidecap
- texlive-framed
- texlive-threeparttable
- texlive-wrapfig
- texlive-upquote
- texlive-capt-of
- texlive-multirow
- texlive-eqparbox
# fsphys/thesisvorlage-latex
- texlive-vmargin
- texlive-floatflt
- texlive-acronym
- texlive-mhchem
# KIT-{beamer,poster,brief}
- texlive-blindtext
# Bechleunigerphysik II Übung
- texlive-siunitx
- texlive-SIunits
- texlive-was
- texlive-commath
- texlive-ulem
# system docu
- texlive-draftwatermark
# JaCoW
- texlive-sttools
- texlive-boondox
- biber
# biber dependencies
# gdbm-devel
# libdb-devel
# perl-Business-ISMN
# perl-Business-ISSN
# perl-Data-Compare
# perl-Data-Dump
# perl-Data-OptList
# perl-Date-Simple
# perl-Devel-GlobalDestruction
# perl-Dist-CheckConflicts
# perl-Email-Date-Format
# perl-Exporter-Tiny
# perl-ExtUtils-Command
# perl-ExtUtils-Install
# perl-ExtUtils-MakeMaker
# perl-ExtUtils-Manifest
# perl-ExtUtils-ParseXS
# perl-File-Find-Rule
# perl-File-Slurp
# perl-File-Slurp-Tiny
# perl-IPC-Cmd
# perl-IPC-Run3
# perl-LWP-Protocol-https
# perl-List-AllUtils
# perl-List-MoreUtils
# perl-Locale-Maketext
# perl-Locale-Maketext-Simple
# perl-Log-Dispatch
# perl-Log-Dispatch-FileRotate
# perl-Log-Log4perl
# perl-MIME-Charset
# perl-MIME-Lite
# perl-MIME-Types
# perl-Mail-Sender
# perl-Mail-Sendmail
# perl-MailTools
# perl-Module-Implementation
# perl-Module-Load
# perl-Module-Load-Conditional
# perl-Module-Metadata
# perl-Module-Runtime
# perl-Mozilla-CA
# perl-Net-SMTP-SSL
# perl-Number-Compare
# perl-Package-Generator
# perl-Params-Check
# perl-Params-Util
# perl-Params-Validate
# perl-Readonly
# perl-Regexp-Common
# perl-Sub-Exporter
# perl-Sub-Exporter-Progressive
# perl-Sub-Install
# perl-Sub-Name
# perl-Sys-Syslog
# perl-Text-BibTeX
# perl-Text-Glob
# perl-Tie-Cycle
# perl-Try-Tiny
# perl-Unicode-LineBreak
# perl-XML-LibXML
# perl-XML-LibXML-Simple
# perl-XML-LibXSLT
# perl-XML-NamespaceSupport
# perl-XML-SAX
# perl-XML-SAX-Base
# perl-XML-Writer
# perl-autovivification
# perl-devel
# rrdtool-perl
# sombok
# systemtap-sdt-devel
# Xe(La)TeX
- texlive-xetex
- texlive-collection-xetex
- texlive-xetex-def
- texlive-xetexfontinfo
- texlive-xevlna
- texlive-euenc
- texlive-unicode-math
- texlive-mathspec
- texlive-xgreek
- texlive-xecolor
- texlive-fontspec
# Thought to be usefull
- texlive-texlive-de-doc.noarch
- texlive-texlive-common-doc.noarch
- texlive-texlive-docindex-doc.noarch
- texlive-ae.noarch
- texlive-cm.noarch
- texlive-cv.noarch
- texlive-ec.noarch
- texlive-ed.noarch
- texlive-fp.noarch
- texlive-gu.noarch
- texlive-hc.noarch
- texlive-lm.noarch
- texlive-t2.noarch
- texlive-alg.noarch
- texlive-doi.noarch
- texlive-dox.noarch
- texlive-eco.noarch
- texlive-ecv.noarch
- texlive-emp.noarch
- texlive-esk.noarch
- texlive-fbs.noarch
- texlive-fmp.noarch
- texlive-gmp.noarch
- texlive-hep.noarch
- texlive-iso.noarch
- texlive-lcg.noarch
- texlive-lfb.noarch
- texlive-msg.noarch
- texlive-nag.noarch
- texlive-nuc.noarch
- texlive-ofs.noarch
- texlive-pax.noarch
- texlive-pgf.noarch
- texlive-qcm.noarch
- texlive-sfg.noarch
- texlive-svg.noarch
- texlive-svn.noarch
- texlive-tap.noarch
- texlive-ucs.noarch
- texlive-uml.noarch
- texlive-uri.noarch
- texlive-url.noarch
- texlive-vpe.noarch
- texlive-base.noarch
- texlive-abbr.noarch
- texlive-acro.noarch
- texlive-bohr.noarch
- texlive-cals.noarch
- texlive-circ.noarch
- texlive-cite.noarch
- texlive-cmap.noarch
- texlive-cmll.noarch
- texlive-cmpj.noarch
- texlive-cmsd.noarch
- texlive-cool.noarch
- texlive-crop.noarch
- texlive-dhua.noarch
- texlive-epsf.noarch
- texlive-etoc.noarch
- texlive-euro.noarch
- texlive-exam.noarch
- texlive-feyn.noarch
- texlive-fink.noarch
- texlive-mycv.noarch
- texlive-nath.noarch
- texlive-pbox.noarch
- texlive-pdfx.noarch
- texlive-spot.noarch
# to be continued
......@@ -47,6 +47,9 @@ las116.las.kit.edu
las118.las.kit.edu
las-gethmann.las.kit.edu
[latex]
las-gethmann.las.kit.edu
# semi stable
[scipy]
las114.las.kit.edu
......
- hosts: latex
roles:
- latex
#!/usr/bin/bash
sudo -i /tmp/install-getnonfreefonts
sudo -i getnonfreefonts-sys -a
sudo -i getnonfreefonts-sys -r
%%
%% This file has been developed as a common template for papers
%% destined for electronic production using Adobe Acrobat
%% software for Accelerator Conferences
%%
%% See the JACo Website for more information
%%
%% http://jacow.org/
%%
% v0.1-1.3
% Special thanks to John Jowett and Michel Goossens from CERN and
% Martin Comyn at TRIUMF for their significant contributions to
% this class file over the period 1996 to 2000.
% John Poole
% March 2000
% v1.4
% JAC2001.cls is a modified version of JAC2000.cls to produce indented
% first paragraphs after section, subsection and subsubsection headings.
% Martin Comyn April 2001
%
% v1.5
% This is a modified version of JAC2003.cls to adjust space around
% section and subsection headers to be more consistent with JACOW Word
% templates. Todd Satogata March 2011
%
% v 1.6
% This is a complectly rewritten version of JAC2003.cls which needs a current
% TeX-System to run.
% Ulrike Fischer, November 2013
%
% v 1.7
% - small change to correct the text block inside JACoW's magic red borders for
% a4paper (aca4); top has been set 18.5mm (19mm is defined in the template but
% leaves descenders outside the lower y margin).
% - duplicate {boxit} removed
% Volker RW Schaa, 14 April 2014
%
% v1.8
% - added setup for \micro sign which disappears when using XeTeX or LuaTeX
% with unicode-math. Ulrike Fischer, 21 April 2014
%
% v1.9
% - fixed the pdfLaTeX warnings for the text/math-micro hack
% Ulrike Fischer, 22 April 2014
%
% v1.91
% - Ligatures=TeX switch introduced to accommodate
% Ulrike Fischer, 22 April 2014
%
% v1.92
% - settings for top margin have to be different in A4 and letter to accommodate
% JACoW's PitStop Action List. This was found after receiving Plamen Hopchev's
% email about margins and testing the workflow with cropping the bounding box
% which starts at the lower left edge and not at the top (see graphic JACpic_mc
% in the template for measures).
% Volker RW Schaa, 29 April 2014
% v1.93
% - setting the bottom margin (19mm) without top solves the problem for different
% A4/Letter settings. This was already the default in v1.6. Pointed out by
% Plamen Hopchev. To accommodate the descenders the bottom margin has been set
% to 56pt now.
% Volker RW Schaa, 01 May 2014
%
% v1.94
% - the micro sign in UTF-8 prevents ASCII format of the cls file. Ulrike pointed
% out a hack in http://tex.stackexchange.com/questions/172968/hide-notation-from-pdftex
% which is now introduced.
% Volker RW Schaa, 02 May 2014
%
\def\fileversion{1.94}
\def\filedate{2014/05/02}
\def\docdate {2014/05/02}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jacow}[\filedate\space Version \fileversion]
\typeout{------------------------------------------------------------------------}
\typeout{LaTeX2e Class file for Accelerator Conference publication for LaTeX2e users}
\typeout{ }
\typeout{Use the boxit option to draw a box on page showing the correct margins}
\typeout{ }
\typeout{Itemize, Enumerate and Description environments are compact versions}
\typeout{------------------------------------------------------------------------}
\typeout{ }
\newif\ifjacowbiblatex
\newif\ifjacowrefpage
\DeclareOption{acus}{%
\PassOptionsToPackage{paper=letterpaper}{geometry}
\typeout{Setup for US LETTER PAPER}}
\DeclareOption{letterpaper}{%
\PassOptionsToPackage{paper=letterpaper}{geometry}
\typeout{Setup for US LETTER PAPER}}
\DeclareOption{a4paper}{%
\PassOptionsToPackage{paper=a4paper}{geometry}
\typeout{Setup for A4 PAPER}}
\DeclareOption{aca4}{%
\PassOptionsToPackage{paper=a4paper}{geometry}
\typeout{Setup for A4 PAPER}}
\DeclareOption{boxit}{\PassOptionsToPackage{showframe}{geometry}}
\DeclareOption{biblatex}{\jacowbiblatextrue}
\DeclareOption{refpage}{\jacowrefpagetrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ExecuteOptions{aca4}
\ProcessOptions
\RequirePackage{fix-cm}
\LoadClass[10pt,twocolumn]{article}
\RequirePackage{flushend}
% Tools:
\RequirePackage{etoolbox}
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}
\RequirePackage{textcase}%
%Add thanks to the list of "\@nonchangecase"-commands from textcase:
\def\@uclcnotmath#1#2#3#4{\begingroup
#1%
\def\({$}\let\)\(%
\def\NoCaseChange##1{\noexpand\NoCaseChange{\noexpand##1}}%
\@nonchangecase\label
\@nonchangecase\ref
\@nonchangecase\ensuremath
\@nonchangecase\thanks %new
\@nonchangecase\si %new
\@nonchangecase\SI %new
\def\cite##1##{\toks@{\noexpand\cite##1}\@citex}%
\def\@citex##1{\NoCaseChange{\the\toks@{##1}}}%
\def\reserved@a##1##2{\let#2\reserved@a}%
\expandafter\reserved@a\@uclclist\reserved@b{\reserved@b\@gobble}%
\protected@edef\reserved@a{\endgroup
\noexpand\@skipmath#3#4$\valign$}%
\reserved@a}
\RequirePackage[detect-mode,detect-weight]{siunitx}
\RequirePackage{graphicx}
\RequirePackage{booktabs}
\RequirePackage[figureposition=bottom,tableposition=top,skip=5pt]{caption}
\RequirePackage{xcolor}
\RequirePackage{url}
\AtEndPreamble{\RequirePackage[autostyle]{csquotes}}
% Page layout:
\RequirePackage[%
textwidth=170mm,
textheight=241mm,
heightrounded,
left=20mm,
bottom=56pt,
columnsep=5mm,
noheadfoot,
nomarginpar,
twocolumn]
{geometry}
\columnseprule 0pt
\usepackage[hang]{footmisc}
\setlength{\footnotemargin}{.6em}
\pagestyle{empty}
\ifboolexpr{bool{xetex} or bool{luatex}}
{}
{ \catcode`\^^^=9
}
\ifboolexpr{bool{xetex} or bool{luatex}}
{ \let\ori@vdots\vdots
\RequirePackage{unicode-math}
\AtBeginDocument{\let\vdots\ori@vdots}
\setmainfont[Ligatures=TeX]{TeX Gyre Termes}
\setmathfont{TeX Gyre Termes Math}
\sisetup{
math-micro = \text{^^^^03bc},
text-micro = ^^^^03bc
}
}
{
% Fonts: Times clones
\RequirePackage{textcomp}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern}
\RequirePackage{tgtermes}
\RequirePackage{newtxmath}
}
\RequirePackage{microtype}
%Lists
\RequirePackage{enumitem}
\newenvironment{Enumerate}{\begin{enumerate}[nosep]}{\end{enumerate}}
\newenvironment{Itemize}{\begin{itemize}[nosep]}{\end{itemize}}
\newenvironment{Description}{\begin{description}[nosep]}{\end{description}}
%Floatparameter:
\renewcommand{\topfraction}{.95}
\renewcommand{\bottomfraction}{.95}
\renewcommand{\textfraction}{0.1}
\renewcommand{\floatpagefraction}{0.8}
%headings:
% section: Uppercase only for text
\renewcommand{\section}
{%
\@startsection{section}{1}{0mm}
{2.0ex plus 0.8ex minus .1ex}{1.0ex plus .2ex}
{\normalfont\large\bfseries\mathversion{bold}\centering\MakeTextUppercase}%
}%
\renewcommand\subsection
{%
\@startsection{subsection}{2}{\z@}
{1.4ex plus .8ex minus .17ex}{0.8ex plus .17ex}
{\normalfont\large\itshape}%
}
\renewcommand\subsubsection
{%
\@startsection{subsubsection}{3}{\parindent}
{2.5ex plus .7ex minus .17ex}{-1em}
{\normalfont\normalsize\bfseries}%
}
\renewcommand\paragraph
{%
\@startsection{paragraph}{4}{\z@}
{2.5ex plus .7ex minus .17ex}{-1em}
{\normalfont\normalsize\itshape}%
}
\renewcommand\subparagraph
{%
\@startsection{subparagraph}{4}{\parindent}
{2.25ex plus .7ex minus .17ex}{-1em}
{\normalfont\normalsize\bfseries}%
}
\setcounter{secnumdepth}{0}
% This definition of \maketitle taken from article.sty, and has been
% somewhat modified.
\def\maketitle{\par
\begingroup
\def\thefootnote{\fnsymbol{footnote}}
\def\@makefnmark{\hbox
to 5pt{$^{\@thefnmark}$\hss}}
\twocolumn[\@maketitle]
\@thanks
\endgroup
\enlargethispage{\jac@copyrightspace}%
\setcounter{footnote}{0}
\let\maketitle\relax
\let\@maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
\newlength{\titleblockheight} % so user can change it if need be
\setlength{\titleblockheight}{3.5cm}
\newlength\titleblockstartskip
\setlength\titleblockstartskip{3pt}
\newlength\titleblockmiddleskip
\setlength\titleblockmiddleskip{1em}
\newlength\titleblockendskip
\setlength\titleblockendskip{1em}
\def\@maketitle{%
\vskip \titleblockstartskip \centering
{\Large\bfseries \MakeTextUppercase{\@title} \par}
\vskip \titleblockmiddleskip % Vertical space after title.
{\large\begin{tabular}[t]{@{}c@{}}\@author \end{tabular}\par}
\vskip \titleblockendskip}
% The \copyrightspace command is used to produce a blank space in the first
% column where a copyright notice may go. It works by producing
% with \enlargethispage and is inserted by \maketitle.
% The command should be issued in the preamble.
\newcommand\jac@copyrightspace{0pt}
\newcommand\copyrightspace[1][1cm]{\renewcommand\jac@copyrightspace{-#1}}
\ifboolexpr{bool{@titlepage}}
{\renewenvironment{abstract}
{\list{}{%
\setlength{\leftmargin}{\dimexpr\textwidth/2-0.75\columnwidth}%
\setlength{\rightmargin}{\dimexpr-0.75\columnwidth-\columnsep}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemsep}{\parskip}%
\setlength{\itemindent}{\z@}%
\setlength{\topsep}{\z@}%
\setlength{\parsep}{\parskip}%
\setlength{\partopsep}{\z@}%
\let\makelabel\@gobble
\setlength{\labelwidth}{\z@}%
\advance\@listdepth\m@ne }%
\item\relax\subsection*{Abstract}}
{\endlist\clearpage}
}
{%
\renewenvironment{abstract}
{\subsection*{Abstract}}
{\par}
}
\ifboolexpr{bool{jacowbiblatex}}
{\RequirePackage[style=numeric-comp,sorting=none]{biblatex}
\renewbibmacro*{url+urldate}{%
\iffieldundef{url}
{}
{\printfield{url}%
\nopunct}}%
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{eprint}{#1}
\setlength\bibitemsep{0pt}
\setlength\bibparsep{0pt}
\setlength\biblabelsep{5pt}
\ifjacowrefpage\preto\blx@bibliography{\clearpage}\fi
\AtBeginBibliography{\small\clubpenalty4000\widowpenalty4000}%
}
{\RequirePackage{cite}
% Redefine to use smaller fonts
\def\thebibliography#1{\setlength{\itemsep}{0pt}\setlength{\parsep}{0pt}%
\ifjacowrefpage\clearpage\fi
\section*{REFERENCES\@mkboth
{REFERENCES}{REFERENCES}}\small\list
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\let\endthebibliography=\endlist
}
%\sloppy
\clubpenalty10000\widowpenalty10000
\flushbottom
%-----------------------------------------------------------------------
%avoid bug of fixltx2e:
%http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/4023
\RequirePackage{fixltx2e}%
\def\@outputdblcol{%
\if@firstcolumn
\global\@firstcolumnfalse
\global\setbox\@leftcolumn\copy\@outputbox
\splitmaxdepth\maxdimen
\vbadness\maxdimen
\setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}%new
\setbox\@outputbox\vsplit\@outputbox to\maxdimen
\toks@\expandafter{\topmark}%
\xdef\@firstcoltopmark{\the\toks@}%
\toks@\expandafter{\splitfirstmark}%
\xdef\@firstcolfirstmark{\the\toks@}%
\ifx\@firstcolfirstmark\@empty
\global\let\@setmarks\relax
\else
\gdef\@setmarks{%
\let\firstmark\@firstcolfirstmark
\let\topmark\@firstcoltopmark}%
\fi
\else
\global\@firstcolumntrue
\setbox\@outputbox\vbox{%
\hb@xt@\textwidth{%
\hb@xt@\columnwidth{\box\@leftcolumn \hss}%
\hfil
\vrule \@width\columnseprule
\hfil
\hb@xt@\columnwidth{\box\@outputbox \hss}}}%
\@combinedblfloats
\@setmarks
\@outputpage
\begingroup
\@dblfloatplacement
\@startdblcolumn
\@whilesw\if@fcolmade \fi{\@outputpage\@startdblcolumn}%
\endgroup
\fi}
\endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Einige ntzliche Abkrzungen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------
% Mathematische Operatoren
%----------
\newcommand{\diff}{\mathrm{d}}
\newcommand{\deriv}[2]{\frac{\diff#1}{\diff#2}}
\newcommand{\pderiv}[2]{\frac{\partial#1}{\partial#2}}
\newcommand{\e}{\mathrm{e}}
\newcommand{\im}{\mathrm{i}}
\newcommand{\bra}[1]{\langle #1 | \,}
\newcommand{\ket}[1]{\,| #1 \rangle}
\newcommand{\braket}[2]{\langle #1 | #2 \rangle}
%----------
% Physikalische Einheiten
%----------
\newcommand{\Dim}[1]{\,\textnormal{#1}}
\newcommand{\cel}{$^{\circ}$\textnormal{C}}
\newcommand{\muks}{$\mu \mathrm{Ks^{-1}}$}
%----------
% Chemische Formeln
%----------
\newcommand{\fb}{Fe$_3$BO$_6\,$}
\newcommand{\afb}{$^{57}$Fe$_3$BO$_6\,$}
\newcommand{\fe}{$^{57}$Fe}
\newcommand{\feni}{Fe$_{\textnormal{(1-x)}}$Ni$_{\textnormal{x}}\,$}
\newcommand{\feninvar}{Fe$_{\textnormal{65}}$Ni$_{\textnormal{35}}\,$}
\newcommand{\fepd}{Fe$_{\textnormal{(1-x)}}$Pd$_{\textnormal{x}}\,$}
\newcommand{\fp}[2]{Fe$_{\textnormal{#1}}$Pd$_{\textnormal{#2}}\,$}
%\newcommand{\fe7pd3}{Fe$_{\textnormal{70}}$Pd$_{\textnormal{30}}\,$}
\newcommand{\fepinvar}{Fe$_{\textnormal{68}}$Pd$_{\textnormal{32}}\,$}
%----------
% Undulatorgroessen
%----------
\newcommand{\lambdau}{\lambda_{\mathrm{u}}}
\newcommand{\lambdaf}{\lambda_{\mathrm{u}0}}
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{scdpg}%
\newif\ifsc@Compilation\sc@Compilationfalse
\newif\ifsc@Organizer\sc@Organizerfalse
\newif\ifsc@Final\sc@Finalfalse
\newif\ifsc@Online\sc@Onlinefalse
\newif\ifsc@PageNumbers\sc@PageNumbersfalse
\newif\ifsc@ThumbIndex\sc@ThumbIndexfalse
\DeclareOption{organizer}{\sc@Organizertrue}%
\DeclareOption{compilation}{\sc@Compilationtrue}%
\DeclareOption{final}{\sc@Finaltrue}%
\DeclareOption{online}{\sc@Onlinetrue}%
\DeclareOption{pagenumbers}{\sc@PageNumberstrue}%
\DeclareOption{thumbindex}{\sc@ThumbIndextrue}%
\ProcessOptions
\renewcommand\normalsize{\fontsize{8}{9.5}\selectfont}%
\pagenumbering{arabic}%
\def\@listi{\setlength\leftmargin{1.5em}%
\setlength\labelsep{.5em}%
\setlength\labelwidth{\leftmargin}%
\addtolength\labelwidth{-\labelsep}%
\parsep3\p@\@plus2\p@\@minus\p@%
\topsep6\p@\@plus2\p@\@minus3\p@%
\itemsep3\p@\@plus2\p@\@minus\p@}%
\newcommand\labelitemi{\textbullet}%
\lineskiplimit0pt%
\abovedisplayskip0pt%
\belowdisplayskip\abovedisplayskip
\abovedisplayshortskip\abovedisplayskip
\belowdisplayshortskip\abovedisplayskip
\parindent0em%
\parskip0ex%
\RequirePackage[english,ngerman]{babel}%
\RequirePackage{multicol}%
\RequirePackage{exscale}%
\RequirePackage{amsmath}%
\RequirePackage{amssymb}%
\RequirePackage{marvosym}%
\RequirePackage{graphics}%
\RequirePackage{lscape}%
\RequirePackage{eso-pic}%
\RequirePackage[T1]{fontenc}%
\RequirePackage[resetfonts]{cmap}%
\ifsc@ThumbIndex
\RequirePackage[a4paper]{geometry}%
\geometry{paperwidth=230mm,paperheight=317mm,%
top=10mm,bottom=27mm,outer=21mm,textwidth=188mm,%
headheight=15mm,headsep=5mm,%
nofoot,includeheadfoot}%
\special{papersize=23.0cm 31.7cm}
\usepackage{ifthen,color,graphicx}%
\setlength{\unitlength}{1cm}
\newlength\sc@ThumbPos%
\newlength\sc@ThumbSize%
\newlength\sc@ThumbBorder%
\newcommand\scThumbPos[1]{\setlength\sc@ThumbPos{#1}}%
\newcommand\scThumbSize[1]{\setlength\sc@ThumbSize{#1}}%
\newcommand\scThumbBorder[1]{\setlength\sc@ThumbBorder{#1}}%
\newcommand\scThumbText[1]{%
\gdef\sc@ThumbText{#1}%
\savebox{\sc@InfoBox}{\scThumbIndexFont#1}%
\sc@ThumbSize\wd\sc@InfoBox
\ifx\sc@ThumbText\@empty\else\addtolength\sc@ThumbSize{2\sc@ThumbBorder}\fi%
\addtolength\sc@ThumbPos{-\sc@ThumbSize}%
}%
\setlength\sc@ThumbPos{300mm}%
\setlength\sc@ThumbSize{0mm}%
\setlength\sc@ThumbBorder{2.5mm}%
\gdef\sc@ThumbText{}%
\AddToShipoutPicture{%
\setlength\unitlength{1cm}
\put(1,0){\line(0,1){0.5}}%
\put(0,1){\line(1,0){0.5}}%
\put(1,31.7){\line(0,-1){0.5}}%
\put(0,30.7){\line(1,0){0.5}}%