1 \documentclass[english]{book}
2 \usepackage[T1]{fontenc}
3 \usepackage[latin9]{inputenc}
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
12 \AtBeginDocument{\providecommand\partref[1]{\ref{part:#1}}}
13 \AtBeginDocument{\providecommand\chapref[1]{\ref{chap:#1}}}
14 \AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}}
15 \AtBeginDocument{\providecommand\subref[1]{\ref{sub:#1}}}
16 \AtBeginDocument{\providecommand\parref[1]{\ref{par:#1}}}
17 \AtBeginDocument{\providecommand\figref[1]{\ref{fig:#1}}}
18 \AtBeginDocument{\providecommand\tabref[1]{\ref{tab:#1}}}
19 \AtBeginDocument{\providecommand\algref[1]{\ref{alg:#1}}}
20 \AtBeginDocument{\providecommand\fnref[1]{\ref{fn:#1}}}
21 \AtBeginDocument{\providecommand\enuref[1]{\ref{enu:#1}}}
22 \AtBeginDocument{\providecommand\eqref[1]{\ref{eq:#1}}}
23 \AtBeginDocument{\providecommand\lemref[1]{\ref{lem:#1}}}
24 \AtBeginDocument{\providecommand\thmref[1]{\ref{thm:#1}}}
25 \AtBeginDocument{\providecommand\corref[1]{\ref{cor:#1}}}
26 \AtBeginDocument{\providecommand\propref[1]{\ref{prop:#1}}}
28 \newfloat{algorithm}{tbp}{loa}[chapter]
29 \providecommand{\algorithmname}{Algorithm}
30 \floatname{algorithm}{\protect\algorithmname}
31 \RS@ifundefined{subref}
32 {\def\RSsubtxt{section~}\newref{sub}{name = \RSsubtxt}}
34 \RS@ifundefined{thmref}
35 {\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
37 \RS@ifundefined{lemref}
38 {\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
44 \newtheorem{thm}{\protect\theoremname}
46 \newtheorem{lem}[thm]{\protect\lemmaname}
48 \newtheorem{cor}[thm]{\protect\corollaryname}
50 \newtheorem{prop}[thm]{\protect\propositionname}
52 \newtheorem{conjecture}[thm]{\protect\conjecturename}
54 \newtheorem{fact}[thm]{\protect\factname}
55 \theoremstyle{definition}
56 \newtheorem{defn}[thm]{\protect\definitionname}
57 \theoremstyle{definition}
58 \newtheorem{example}[thm]{\protect\examplename}
59 \theoremstyle{definition}
60 \newtheorem{problem}[thm]{\protect\problemname}
61 \theoremstyle{definition}
62 \newtheorem{xca}[thm]{\protect\exercisename}
64 \newtheorem{rem}[thm]{\protect\remarkname}
66 \newtheorem{claim}[thm]{\protect\claimname}
68 \newenvironment{proof}[1][\protect\proofname]{\par
69 \normalfont\topsep6\p@\@plus6\p@\relax
72 \item[\hskip\labelsep\scshape #1]\ignorespaces
74 \endtrivlist\@endpefalse
76 \providecommand{\proofname}{Proof}
82 \providecommand{\claimname}{Claim}
83 \providecommand{\conjecturename}{Conjecture}
84 \providecommand{\corollaryname}{Corollary}
85 \providecommand{\definitionname}{Definition}
86 \providecommand{\examplename}{Example}
87 \providecommand{\exercisename}{Exercise}
88 \providecommand{\factname}{Fact}
89 \providecommand{\lemmaname}{Lemma}
90 \providecommand{\problemname}{Problem}
91 \providecommand{\propositionname}{Proposition}
92 \providecommand{\remarkname}{Remark}
93 \providecommand{\theoremname}{Theorem}
97 \part{part\label{part:part}}
102 \chapter{chapter\label{chap:chapter}}
107 \section{Section\label{sec:Section}}
112 \subsection{Subsection\label{sub:subsection}}
114 Ref to \subref{subsection}.
117 \subsubsection{Subsubsection\label{sub:Subsubsection}}
119 Ref to \subref{Subsubsection}.
122 \paragraph{paragraph\label{par:paragraph}}
127 \subparagraph{subparagraph\label{par:subparagraph}}
129 \parref{subparagraph}
132 \protect\caption{figure\label{fig:figure}}
139 \protect\caption{table\label{tab:table}}
146 \protect\caption{algorithm\label{alg:algorithm}}
152 \footnote{foot\label{fn:foot}%
157 \marginpar{margin\label{margin}}
161 \item item\label{enu:item}
166 A=B\label{eq:A=00003DB}
172 lemma\label{lem:lemma}
174 \lemref{lemma}\end{lem}
176 theorem\label{thm:theorem}
178 \thmref{theorem}\end{thm}
180 corollary\label{cor:corollary}
182 \corref{corollary}\end{cor}
184 proposition\label{prop:proposition}
186 \propref{proposition}\end{prop}
188 conjecture\label{conjecture}
190 \ref{conjecture}\end{conjecture}
196 definition\label{definition}
198 \ref{definition}\end{defn}
200 example\label{example}
202 \ref{example}\end{example}
204 problem\label{problem}
206 \ref{problem}\end{problem}
208 exercise\label{exercise}
210 \ref{exercise}\end{xca}
214 \ref{remark}\end{rem}
218 \ref{claim}\end{claim}
222 \ref{proof}\end{proof}