~ubuntu-branches/ubuntu/wily/dblatex/wily

« back to all changes in this revision

Viewing changes to latex/style/dbk_headfoot.sty

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Hoenen
  • Date: 2008-08-11 20:28:56 UTC
  • mfrom: (4.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080811202856-d2qjg24ut53mgufx
Tags: 0.2.9-3
* Improve CJK (Chinese/Japanese/Korean) support:
  + Let XSL configuration parameter cjk.font default to gkai (instead of the
    cyberbit font not included in Debian).
  + Add Suggests dependency on latex-cjk-all for the gkai fonts.
  + Fix the db2latex style not to collide with the CJKutf8.sty file.
  Thanks to W. Martin Borgert for reporting and hints.
  Closes: #482857, #492350
* Fix a name clash with TeXLive for spanish documents in native style.
  Thanks to W. Martin Borgert for reporting.  Closes: #492304
* Support underscore characters in xreflabel attributes.  Thanks to
  Sébastien Villemot for reporting.  Closes: #492959

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
\renewcommand{\plainfootrulewidth}{0.5pt}
10
10
\setcounter{page}{1}
11
11
 
 
12
\def\releasebox{%
 
13
  \ifthenelse{\equal{\DBKreleaseinfo}{}}{}%
 
14
  {\framebox{\textsc{\textsf{\DBKreleaseinfo}}}}%
 
15
}
 
16
 
 
17
% Define front/main/back matter if not available
 
18
\@ifundefined{frontmatter}{
 
19
  \def\frontmatter{\cleardoublepage\pagenumbering{roman}\chead[]{\DBKcheadfront}}
 
20
}{}
 
21
\@ifundefined{mainmatter}{
 
22
  \def\mainmatter{\cleardoublepage\pagenumbering{arabic}\chead[]{\DBKcheadbody}}
 
23
}{}
 
24
\@ifundefined{backmatter}{
 
25
  \def\backmatter{\if@openright\cleardoublepage\else\clearpage\fi}
 
26
}{}
 
27
 
 
28
 
12
29
% Fancy header/footer for the first page
13
30
 
14
31
\chead[]{%
16
33
    >{\raggedright}p{5.6cm} >{\centering}p{5.6cm} >{\raggedleft}p{5.6cm}} %
17
34
    \multirow{3}{5.6cm}{\DBKtitle}
18
35
    & & \tabularnewline%
19
 
    & \framebox{\textsc{\textsf{\DBKreleaseinfo}}}
20
 
    & \textsf{\arabic{page} / \getpagerefnumber{LastPage}} \tabularnewline %
 
36
    & \releasebox
 
37
    & \textsf{\thepage} \tabularnewline %
21
38
    & & \tabularnewline%
22
39
  \end{tabular}%
23
40
} %
26
43
\rfoot[]{}
27
44
\cfoot[]{}
28
45
 
 
46
% Fancy header/footer for the front matter
 
47
 
 
48
\def\DBKcheadfront{%
 
49
  \begin{tabular}{
 
50
    >{\raggedright}p{5.6cm} >{\centering}p{5.6cm} >{\raggedleft}p{5.6cm}} %
 
51
    \multirow{3}{5.6cm}{\DBKtitle}
 
52
    & & \textsf{\DBKreference{} \edhead} \tabularnewline%
 
53
    & \releasebox & \tabularnewline %
 
54
    & & \textsf{\thepage}
 
55
  \tabularnewline%
 
56
  \end{tabular}%
 
57
}
 
58
 
29
59
% Fancy header/footer for the doc body
30
60
 
31
61
\def\DBKcheadbody{%
33
63
    >{\raggedright}p{5.6cm} >{\centering}p{5.6cm} >{\raggedleft}p{5.6cm}} %
34
64
    \multirow{3}{5.6cm}{\DBKtitle}
35
65
    & & \textsf{\DBKreference{} \edhead} \tabularnewline%
36
 
    & \framebox{\textsc{\textsf{\DBKreleaseinfo}}} &  \tabularnewline %
37
 
    & & \textsf{\arabic{page} / \getpagerefnumber{LastPage}}
 
66
    & \releasebox & \tabularnewline %
 
67
    & & \textsf{\thepage{} / \getpagerefnumber{LastPage}}
38
68
  \tabularnewline%
39
69
  \end{tabular}%
40
70
}