Debian Codegraph @

latex/style/dbk_revision.sty

raw
1 %%
2 %% Index table definitions
3 %%
4
5 \usepackage{longtable}
6
7 % Index table row
8 \def\DBKinditem#1#2{
9 & & & & \tabularnewline
10 #1 & #2 & \DBKdate & & \ \tabularnewline
11 & & & & \tabularnewline
12 \hline
13 }
14
15 \def\referencetitle{
16 \ifthenelse{\equal{\DBKreference}{}}%
17 {}{\emph{\DBKrefname} :}}
18
19 % Index table environment
20 \newenvironment{DBKindtable}{
21 \begin{center}
22 \begin{tabular}{ |>{\centering}p{3cm} |>{\centering}p{3cm} |>{\centering}p{3.5cm}
23 |>{\centering}p{3cm} >{\centering}p{3cm} | }
24 \hline
25 \multicolumn{5}{|c|}{\textbf{\DBKindtitle}} \tabularnewline
26 \hline
27 \multicolumn{5}{c}{\ } \tabularnewline
28 \hline
29 \multicolumn{1}{|l|}{} & \multicolumn{2}{l|}{\emph{\titlename} :}
30 & \multicolumn{2}{l|}{\referencetitle}\tabularnewline
31 & \multicolumn{2}{l|}{} & \multicolumn{2}{l|}{} \tabularnewline
32 \multicolumn{1}{|p{3cm}|}{} & \multicolumn{2}{p{6.5cm}|}{\DBKtitle}
33 & \multicolumn{2}{p{3cm}|}{\DBKreference}\tabularnewline
34 \hline
35 \hline
36 & & & & \tabularnewline
37 \emph{\DBKcontrib} & \emph{\DBKindname} & \emph{\DBKrevdate} & \multicolumn{2}{c|}{\emph{\DBKsignature}}
38 \tabularnewline
39 & & & & \tabularnewline
40 \hline
41 }{
42 \end{tabular}
43 \end{center}
44 }
45
46 %%
47 %% Revision history table and rows
48 %%
49
50 \def\DBKrevitem#1#2#3#4{
51 & & & \tabularnewline
52 #1 & #2 & #3 & #4 \tabularnewline
53 & & & \tabularnewline
54 \hline
55 }
56
57 \newenvironment{DBKrevtable}{
58 \begin{center}
59 \savetablecounter %
60 \begin{longtable}{ |>{\centering}p{3cm} |>{\centering}p{3cm} |>
61 {\raggedright}p{6.9cm} |>{\centering}p{3cm} | }
62 \hline
63 %% Domitete
64 \multicolumn{4}{|c|}{\textbf{\DBKrevtitle}} \tabularnewline
65 \hline
66
67 %% Table Titles
68 \multicolumn{4}{c}{\ } \tabularnewline
69 \hline
70 \multicolumn{1}{|c|}{\DBKrevnumber}& \multicolumn{1}{c|}{\DBKrevdate} &
71 \multicolumn{1}{c|}{\DBKrevdesc} & \multicolumn{1}{c|}{\DBKrevname}
72 \tabularnewline
73 \hline
74 \endhead
75 }{
76 \end{longtable}
77 \restoretablecounter %
78 \end{center}
79 }
80
81 %% *****************
82 %% *** Domitete
83 %% *****************
84
85 % Default history table
86 \def\DBKrevhistory{
87 \begin{DBKrevtable}
88 \DBKrevitem{}{}{}{}
89 \end{DBKrevtable}
90 }
91
92 % Default credits table
93 \def\DBKindexation{
94 \begin{DBKindtable}
95 \DBKinditem{\writtenby}{\DBKauthor}
96 \end{DBKindtable}
97 }
98
99 % Whole bookinfo tables
100 \def\DBKdomitete{
101 \begin{sffamily}
102 \DBKindexation
103 \vspace{1cm}
104 \DBKrevhistory
105 \end{sffamily}
106 }
107