source: rtems-docs/common/rtemsstyle.sty @ a316b1f

4.115
Last change on this file since a316b1f was a316b1f, checked in by Amar Takhar <amar@…>, on 01/20/16 at 01:37:04

Add support for singlehtml (inlined) HTML file, plus some other fixes.

  • This is still broken.
  • Rename sphinx_rtd_theme so it doesn't pickup locally installed ones
  • Add a hack to theme.css to get around inliner bug.
  • Some unrelated fixups in common/waf.py

Unfortunatly several dozen fixes got merged into this.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1\definecolor{TitleColor}{rgb}{0,0,0}
2\definecolor{InnerLinkColor}{rgb}{0,0,0}
3\definecolor{OuterLinkColor}{rgb}{1.0,0.5,0.0}
4
5\renewcommand{\maketitle}{%
6  \begin{titlepage}%
7    \let\footnotesize\small
8    \let\footnoterule\relax
9    \ifsphinxpdfoutput
10      \begingroup
11      % This \def is required to deal with multi-line authors; it
12      % changes \\ to ', ' (comma-space), making it pass muster for
13      % generating document info in the PDF file.
14      \def\\{, }
15      \pdfinfo{
16        /Author (\@author)
17        /Title (\@title)
18      }
19      \endgroup
20    \fi
21    \begin{flushright}%
22      %\sphinxlogo%
23      {\center
24        \vspace*{3cm}
25        \includegraphics{logo.pdf}
26        \vspace{3cm}
27        \par
28        {\rm\Huge \@title \par}%
29        {\em\LARGE \py@release\releaseinfo \par}
30        {\large
31         \@date \par
32         \py@authoraddress \par
33        }}%
34    \end{flushright}%\par
35    \@thanks
36  \end{titlepage}%
37  \cleardoublepage%
38  \setcounter{footnote}{0}%
39  \let\thanks\relax\let\maketitle\relax
40  %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
41}
42
43\fancypagestyle{normal}{
44  \fancyhf{}
45  \fancyfoot[LE,RO]{{\thepage}}
46  \fancyfoot[LO]{{\nouppercase{\rightmark}}}
47  \fancyfoot[RE]{{\nouppercase{\leftmark}}}
48  \fancyhead[LE,RO]{{\@title, \py@release}}
49  \fancyhead[RE,LO]{{\chaptername\:\thechapter\:Section\:\thesection}}
50  \renewcommand{\headrulewidth}{0.4pt}
51  \renewcommand{\footrulewidth}{0.4pt}
52}
53
54\fancypagestyle{plain}{
55  \fancyhf{}
56  \fancyfoot[LE,RO]{{\thepage}}
57  \renewcommand{\headrulewidth}{0pt}
58  \renewcommand{\footrulewidth}{0.4pt}
59}
60
61\titleformat{\section}{\Large}%
62            {\py@TitleColor\thesection}{0.5em}{\py@TitleColor}{\py@NormalColor}
63\titleformat{\subsection}{\large}%
64            {\py@TitleColor\thesubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}
65\titleformat{\subsubsection}{}%
66            {\py@TitleColor\thesubsubsection}{0.5em}{\py@TitleColor}{\py@NormalColor}
67\titleformat{\paragraph}{\large}%
68            {\py@TitleColor}{0em}{\py@TitleColor}{\py@NormalColor}
69
70\ChNameVar{\raggedleft\normalsize}
71\ChNumVar{\raggedleft \bfseries\Large}
72\ChTitleVar{\raggedleft \rm\Huge}
73
74\renewcommand\thepart{\@Roman\c@part}
75\renewcommand\part{%
76   \pagestyle{normal}
77   \if@noskipsec \leavevmode \fi
78   \cleardoublepage
79   \vspace*{6cm}%
80   \@afterindentfalse
81   \secdef\@part\@spart}
82
83\def\@part[#1]#2{%
84    \ifnum \c@secnumdepth >\m@ne
85      \refstepcounter{part}%
86      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
87    \else
88      \addcontentsline{toc}{part}{#1}%
89    \fi
90    {\parindent \z@ %\center
91     \interlinepenalty \@M
92     \normalfont
93     \ifnum \c@secnumdepth >\m@ne
94       \rm\Large \partname~\thepart
95       \par\nobreak
96     \fi
97     \MakeUppercase{\rm\Huge #2}%
98     \markboth{}{}\par}%
99    \nobreak
100    \vskip 8ex
101    \@afterheading}
102\def\@spart#1{%
103    {\parindent \z@ %\center
104     \interlinepenalty \@M
105     \normalfont
106     \huge \bfseries #1\par}%
107     \nobreak
108     \vskip 3ex
109     \@afterheading}
110
111% use inconsolata font
112\usepackage{inconsolata}
113
114% fix single quotes, for inconsolata. (does not work)
115%%\usepackage{textcomp}
116%%\begingroup
117%%  \catcode`'=\active
118%%  \g@addto@macro\@noligs{\let'\textsinglequote}
119%%  \endgroup
120%%\endinput
Note: See TracBrowser for help on using the repository browser.