summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/smalltableof/smalltableof.sty
blob: c6d93421c04366abadfffa00fe6411ccae8a87cc (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
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% smalltableof.sty
%
% Boretti Mathieu 
% ©2003
%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{smalltableof}
%
% Fourni un chapitre sans numerotation, mais qui est dans la table des matieres
\newcommand{\chapterNoNumber}[1]{\chapter*{#1}\addcontentsline{toc}{chapter}{#1}\markboth{{\MakeUppercase{ #1}}}{{\MakeUppercase{#1}}}}
%
% Fourni une section sans numerotation, mais qui est dans la table des matieres, et sans changer les page heading
\newcommand{\sectionNoNumber}[1]{\section*{#1}\addcontentsline{toc}{section}{#1}}
%
% Fourni une commande pour inserer une table de ...
\newcommand{\toc}[1]{\@starttoc{#1}}
%
%
\newcommand{\tablesname}{Tables}
%
% Inclure une seul liste :
\newcommand{\sectiontable}[2]{\sectionNoNumber{#1}\toc{#2}}
%
% Certain liste
\newcommand{\sectiontableoffigure}{\sectiontable{\listfigurename}{lof}}
\newcommand{\sectiontableoftable}{\sectiontable{\listtablename}{lot}}
\newcommand{\tablechapter}{\chapterNoNumber{\tablesname}}
%
% Table par defaut :
\newcommand{\stdtables}{\tablechapter\sectiontableoffigure\sectiontableoftable}
%
%
\newcommand{\mabibliographie}[2]{\if@openright\cleardoublepage\else\clearpage\fi\addcontentsline{toc}{chapter}{\bibname}\bibliographystyle{#1}\bibliography{#2}}
%
% Some remaping
\let\l@algorithm\l@table
%
%