summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/bibtex/tamethebeast/ttb_style.sty
blob: 62ed2af81c7af47223950afc787dc7003310e39b (plain)
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
%% ttb_style.sty
%% Copyright 2003-2005  Nicolas Markey
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt 
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
% 
% This work has the LPPL maintenance status "maintained".
% The Current Maintainer of this work is Nicolas Markey  
% 
% This work consists of the files
%       ttb_en.tex
%       ttb_en.sec1.tex  ttb_en.sec2.tex  ttb_en.sec3.tex
%       ttb_en.sec4.tex  ttb_en.sec5.tex  ttb_style.sty
%       local.bib        idxstyle.ist     Makefile
% and the derived ttb_en.dvi, ttb_en.ps and ttb_en.pdf


\RequirePackage{xspace}
\RequirePackage{boxedminipage}

%\let\nospaceTeX\TeX
%\def\TeX{\nospaceTeX\xspace}
\def\bt{Bib\TeX\xspace}
\let\nospaceLaTeX\LaTeX
\def\LaTeX{\nospaceLaTeX\xspace}
\def\gomo{\emph{grosso modo}\xspace}
\def\ie{ie.\xspace}
\def\cf{cf. }
\catcode`\*=0
*catcode`*\=11
*def*bs{\}
*catcode`*\=0
\catcode`\*=12
\def\at{@}
\catcode`\$=11
\def\dol{$}
\catcode`\$=3  %$
\def\cmd#1{\index{latex}{#1@\texttt{\protect\bs #1}}{\ttfamily \bs #1}\xspace}
\def\cmdat#1{\index{latex}{#1@\texttt{\protect\bs\protect\at #1}}{\ttfamily \bs\at #1}\xspace}
\def\env#1{\index{latex}{#1@\texttt{#1}}{\ttfamily #1}\xspace}
\def\ext#1{{\ttfamily .#1}\xspace}

\def\sty{\@ifnextchar[{\@sty}{\@sty[sty]}}
\def\@sty[#1]#2{\index{latex}{#2@\textsf{#2.#1}}{\sffamily #2.#1}\xspace}

\def\cls#1{\index{latex}{#1@\textsf{#1.cls}}{\sffamily #1.cls}\xspace}
\def\bst#1{\index{bibtex}{#1@\textsf{#1.bst}}{\sffamily #1.bst}\xspace}
\def\chp#1{\index{bibtex}{#1@\texttt{#1}}{\ttfamily #1}\xspace}
\def\ent#1{\index{bibtex}{#1@\protect\at #1}{\bfseries \at #1}\xspace}
\def\fn#1{\index{bibtex}{#1@\texttt{#1\protect\dol}}{\ttfamily #1\dol}\xspace}

\def\el#1{$\cal #1$}
\def\eli#1#2{$\mathcal{#1}_{#2}$}

\def\nicmd#1{{\ttfamily \bs #1}\xspace}
\def\nienv#1{{\ttfamily #1}\xspace}
\def\niext#1{{\ttfamily .#1}\xspace}
\def\nisty#1{{\sffamily #1.sty}\xspace}
\def\nicls#1{{\sffamily #1.cls}\xspace}
\def\nibst#1{{\sffamily #1.bst}\xspace}
\def\nichp#1{{\ttfamily #1}\xspace}
\def\nient#1{{\bfseries \at #1}\xspace}
\def\nifn#1{{\ttfamily #1\dol}\xspace}

\newenvironment{myex}{\bigskip\par
   \noindent\begin{boxedminipage}{\textwidth}}{%
            \end{boxedminipage}\bigskip\par}
\newenvironment{myexv}{\bigskip\par
   \noindent\begin{center}\begin{boxedminipage}{.8\textwidth}}{%
            \end{boxedminipage}\end{center}
			\bigskip\par}

%\AtBeginDocument{%
\setcounter{tocdepth}{0}%
\def\thepart{\arabic{part}}%
\def\mypart{\cleardoublepage\part}%
\def\@part[#1]#2{    \ifnum\c@secnumdepth>\m@ne\relax
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    {\parindent \z@ \raggedleft
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >\m@ne\relax
       \Large\sffamily\bfseries \partname\nobreakspace\thepart
       \par\nobreak
     \fi
     \huge \sffamily \bfseries #2%
     \markboth{}{}\par}%
    \nobreak
    \vskip 12ex%
    \@afterheading}%
\renewcommand*\l@part[2]{%
  \ifnum \c@tocdepth >-2\relax
    \addpenalty\@secpenalty
    \addvspace{2.25em \@plus\p@}%
    \setlength\@tempdima{3em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      {\leavevmode
       \large \sffamily #1
       \leaders\hbox{$\m@th
         \mkern 2mu\hbox{\small.}\mkern 2mu$}\hfill
       \hb@xt@\@pnumwidth{\hss #2}}\par
       \nobreak
       \if@compatibility
         \global\@nobreaktrue
         \everypar{\global\@nobreakfalse\everypar{}}%
      \fi
    \endgroup
  \fi}
\let\mysection\section
\def\mysubsection{\subsection}
\def\mysubsubsection{\subsubsection}
\def\floatpagefraction{.8}

\def\section{\let\@ssect\save@ssect\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\Large\bfseries}}
%}