0025937: Failed Cut Edge or Face by HalfSpace.
[occt.git] / dox / resources / occt_pdf_template.tex
CommitLineData
ba06f8bb 1\batchmode
2\nonstopmode
3\documentclass[oneside]{article}
4\n
5% Packages required by doxygen
6\usepackage{calc}
7\usepackage{doxygen}
8\usepackage{graphicx}
9\usepackage[utf8]{inputenc}
10\usepackage{makeidx}
11\usepackage{multicol}
12\usepackage{multirow}
13\usepackage{textcomp}
14\usepackage{amsmath}
15\usepackage[table]{xcolor}
16\usepackage{indentfirst}
17
18% Font selection
19\usepackage[T1]{fontenc}
20\usepackage{mathptmx}
21\usepackage[scaled=.90]{helvet}
22\usepackage{courier}
23\usepackage{amssymb}
24\usepackage{sectsty}
25\renewcommand{\familydefault}{\sfdefault}
26\allsectionsfont{%
27 \fontseries{bc}\selectfont%
28 \color{darkgray}%
29}
30\renewcommand{\DoxyLabelFont}{%
31 \fontseries{bc}\selectfont%
32 \color{darkgray}%
33}
34
35% Page & text layout
36\usepackage{geometry}
37\geometry{%
38 a4paper,%
39 top=2.5cm,%
40 bottom=2.5cm,%
41 left=2.5cm,%
42 right=2.5cm%
43}
44\tolerance=750
45\hfuzz=15pt
46\hbadness=750
47\setlength{\emergencystretch}{15pt}
48\setlength{\parindent}{0cm}
49\setlength{\parskip}{0.2cm}
50\makeatletter
51\renewcommand{\paragraph}{%
52 \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
53\normalfont\normalsize\bfseries\SS@parafont%
54 }%
55}
56\renewcommand{\subparagraph}{%
57 \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
58\normalfont\normalsize\bfseries\SS@subparafont%
59 }%
60}
61\makeatother
62
63% Headers & footers
64\usepackage{fancyhdr}
65\pagestyle{fancyplain}
66\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
67\fancyhead[CE]{\fancyplain{}{}}
68\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
69\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
70\fancyhead[CO]{\fancyplain{}{}}
71\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
72\fancyfoot[LE]{\fancyplain{}{}}
73\fancyfoot[CE]{\fancyplain{}{}}
74\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize (c) Open CASCADE DEFYEAR}}
75\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize (c) Open CASCADE DEFYEAR}}
76\fancyfoot[CO]{\fancyplain{}{}}
77\fancyfoot[RO]{\fancyplain{}{}}
78\renewcommand{\footrulewidth}{0.4pt}
79\renewcommand{\sectionmark}[1]{%
80 \markright{\thesection\ #1}%
81}
82
83% Indices & bibliography
84\usepackage{natbib}
85\usepackage[titles]{tocloft}
86\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
87\setcounter{tocdepth}{3}
88\setcounter{secnumdepth}{5}
89\makeindex
90
91% Hyperlinks (required, but should be loaded last)
92\usepackage{ifpdf}
93\ifpdf
94 \usepackage[pdftex,pagebackref=true]{hyperref}
95\else
96 \usepackage[ps2pdf,pagebackref=true]{hyperref}
97\fi
98\hypersetup{%
99 colorlinks=true,%
100 linkcolor=black,%
101 citecolor=black,%
102 urlcolor=blue,%
103 unicode%
104}
105
106% Custom commands
107\newcommand{\clearemptydoublepage}{%
108 \newpage{\pagestyle{empty}\cleardoublepage}%
109}
110\n
111%===== C O N T E N T S =====\n
112\begin{document}
113% Titlepage & ToC
114\hypersetup{pageanchor=false}
115\pagenumbering{roman}
116\begin{titlepage}
117\vspace*{7cm}
118\begin{center}%
119\includegraphics[width=0.75\textwidth, height=0.2\textheight]{../../../dox/resources/occt_logo.png}\\
120{\Large Open C\-A\-S\-C\-A\-D\-E Technology \\\\\Large DEFCASVERSION }\\
121\vspace*{1cm}
122{\Large DEFDOCLABEL}\\
123\vspace*{1cm}
124\vspace*{0.5cm}
125{\small \today}\
126\end{center}
127\end{titlepage}
128\clearpage
129\pagenumbering{roman}
130\tableofcontents
131\newpage
132\pagenumbering{arabic}
133\hypersetup{pageanchor=true}
134
135\let\stdsection\section
136 \renewcommand\section{\pagebreak\stdsection}
137\hypertarget{DEFFILENAME}{}
138\input{DEFFILENAME}
139
140% Index
141\newpage
142\phantomsection
143\addcontentsline{toc}{part}{Index}
144\printindex\n
145\end{document}