📄 book.otx
字号:
% book.tex% Practical Compiler Construction% main book source% - We pick a5paper, but can switch to a4paper at any time.% - openany = chapters can start on right and left pages.% Alternative: openright (only on right pages)% - twoside = make up for two-sided printing. Alternative: oneside% - 10pt could be 11pt or 12pt.\documentclass[10pt,twoside,a4paper,openany]{book}\usepackage{graphicx}\DeclareGraphicsRule{.wmf}{bmp}{}{}% declare WMF filename extension% New command: use bold text.\newcommand{\bold}[1]{ \mbox{\boldmath #1}}% New command: print language name (so it can be changed at any time).\newcommand{\langname}{\mbox{Inger}}% New command: Code formatter\newcommand{\code}[1]{ \texttt{#1}}% New command: Bold text\newcommand{\boldtext}[1]{ \textbf{#1}}% New command: Cursive text\newcommand{\jargon}[1]{ \emph{#1}}% New Command: Table header\newcommand{\tableheader}[1]{ \textbf{#1}}% New command: Verbitive text\newcommand{\plain}[1]{ \verb{#1}}% This is the working title.\title{Practical Compiler Construction}% \and lets LaTeX divide the author names over two lines.% An alternative would be "A, B, C,\\D and E."% (where \\ inserts a linebreak).\author{F.J.F. Benders\\T.H. Janssen\\J.W. Haaring\\D. Meffert\\A.C. van Oostenrijk}\begin{document} % pagestyle{plain} puts page numbers centered at the % bottom. % Alternative: pagestyle{headings}, which % include chapter title in header text. % Alternative: pagestyle{empty} (no header/footer at all). % use thispagestyle(...) to change page style locally. \pagestyle{plain} % Generate title page (includes title, authors and current % date). \maketitle % Generate table of contents. Does not include starred % sections, chapters, paragraphs etc. \tableofcontents \newtheorem{definition}{Definition}[chapter] \newtheorem{example}{Example}[chapter] \newtheorem{advice}{Practical advice}[chapter] % Include chapters. \include{history} \include{lexer} \include{grammar} \include{preprocessor} \include{error} \include{symboltable} % After 'appendix' all chapters are numbered as appendices. \appendix \include{requirements} \include{software} \include{lexerappendix}\end{document}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -