~openerp-chinese-team/openobject-doc/Chinese-init

« back to all changes in this revision

Viewing changes to i18n/zh_CN/texfiles/howto.cls

  • Committer: JoshuaJan
  • Date: 2012-12-04 01:36:44 UTC
  • Revision ID: popkar77@gmail.com-20121204013644-k25kpyac672wxe22
Chinese initialization

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%
 
2
% howto.cls for Sphinx
 
3
%
 
4
 
 
5
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
6
\ProvidesClass{howto}[2008/10/18 Document class (Sphinx HOWTO)]
 
7
 
 
8
% Pass all given class options to the parent class.
 
9
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
 
10
\ProcessOptions\relax
 
11
\LoadClass[oneside]{article}
 
12
 
 
13
% Set some sane defaults for section numbering depth and TOC depth.  You can
 
14
% reset these counters in your preamble.
 
15
%
 
16
\setcounter{secnumdepth}{2}
 
17
 
 
18
% Change the title page to look a bit better, and fit in with the fncychap
 
19
% ``Bjarne'' style a bit better.
 
20
%
 
21
\thispagestyle{empty}
 
22
\renewcommand{\maketitle}{
 
23
  \rule{\textwidth}{1pt}
 
24
  \ifsphinxpdfoutput
 
25
    \begingroup
 
26
    % This \def is required to deal with multi-line authors; it
 
27
    % changes \\ to ', ' (comma-space), making it pass muster for
 
28
    % generating document info in the PDF file.
 
29
    \def\\{, }
 
30
    \pdfinfo{
 
31
      /Author (\@author)
 
32
      /Title (\@title)
 
33
    }
 
34
    \endgroup
 
35
  \fi
 
36
  \begin{flushright}
 
37
    \sphinxlogo%
 
38
    {\rm\Huge\py@HeaderFamily \@title} \par
 
39
    {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
 
40
    %\vspace{25pt}
 
41
    %{\Large\py@HeaderFamily \@author} \par
 
42
    \vspace{15pt}
 
43
    \@date \par
 
44
    \py@authoraddress \par
 
45
  \end{flushright}
 
46
  %\@thanks
 
47
  \setcounter{footnote}{0}
 
48
  \let\thanks\relax\let\maketitle\relax
 
49
  %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
 
50
}
 
51
 
 
52
\let\py@OldTableofcontents=\tableofcontents
 
53
\renewcommand{\tableofcontents}{
 
54
  \begingroup
 
55
    \parskip = 0mm
 
56
    \py@OldTableofcontents
 
57
  \endgroup
 
58
  \newpage
 
59
%%  \rule{\textwidth}{1pt}
 
60
  %\vspace{12pt}
 
61
}
 
62
 
 
63
\@ifundefined{fancyhf}{
 
64
  \pagestyle{plain}}{
 
65
  \pagestyle{normal}}           % start this way; change for
 
66
\pagenumbering{arabic}          % ToC & chapters
 
67
 
 
68
\thispagestyle{empty}
 
69