Renamed one file (removing appendix prefix from name)
[dwarf-doc.git] / dwarf5 / latexdoc / dwarf5.tex
1 \documentclass[12pt,letterpaper,oneside]{memoir} 
2 % for debugging, add 'draft' (without quotes) to the [] document class list.
3 % If draft is in the document class list, pix are just suggested
4 % by an outline, the pic does not appear as a picture.
5 %
6 \usepackage{url} % For color in letters. Links instead?
7 \usepackage{color} % For color in letters. Links instead?
8 \usepackage{ellipsis} % Provides ... as \dots
9 \usepackage{color}
10 \usepackage{listings}
11 \usepackage{alltt}
12 \lstset{ %
13 language=C++,              % choose the language of the code
14 basicstyle=\footnotesize,  % the size of the fonts that are used for the code
15 numbers=left,              % where to put the line-numbers
16 numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
17 stepnumber=1,              % the step between two line-numbers. If it is 1 each line will be numbered
18 numbersep=5pt,             % how far the line-numbers are from the code
19 backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
20 showspaces=false,          % show spaces adding particular underscores
21 showstringspaces=false,    % underline spaces within strings
22 showtabs=false,            % show tabs within strings adding particular underscores
23 frame=single,           % adds a frame around the code
24 tabsize=2,              % sets default tabsize to 2 spaces
25 captionpos=b,           % sets the caption-position to bottom
26 breaklines=true,        % sets automatic line breaking
27 breakatwhitespace=false,% sets if automatic breaks should only happen at whitespace
28 escapeinside={\%*}{*)}  % if you want to add a comment within your code
29 }
30
31 \usepackage{amsmath} % Provides \nobreakdash
32 \usepackage{graphicx} % For pictures
33 \usepackage{longtable}
34 % \textregistered is the trademark symbol
35 \usepackage[headheight=16pt,paper=letterpaper]{geometry}
36 \setlength{\headheight}{15pt}  % avoids warning from latex
37 \usepackage{epic} % For eepic package 
38 \usepackage{eepic} % For the diagram of section relationships
39 \usepackage{makeidx}
40 % hyperref must be the last package listed.
41 % hypertextnames=false helps hypertext get right links.
42 \usepackage[hypertexnames=false]{hyperref}  % Lets us generate colored active links inside a pdf.
43 \makeindex  % This and the makeidx package allow \index to create index entries.
44
45 \newcommand{\docdate}{13 May 2012}
46
47 \newcommand{\dwf}{DWARF Debugging Information Format}
48 \newenvironment{myindentpara}[1]%
49  {\begin{list}{}%
50    {\setlength{\leftmargin}{#1}}%
51    \item[]%
52  }
53  {\end{list}}
54
55 % broken somehow.
56 %\newcommand{\myindent1}[1]{\begin{myindentpara}{1cm}#1\end{myindentpara}}
57
58 \hypersetup{colorlinks=true,
59   %bookmarks=true,
60   pdfauthor={\dwf\ Committee},
61   pdftitle={\dwf\ Version 4.1}
62 }
63
64 % Generate a page ref.
65 % use like   \refersec{chap:registerbasedaddressing}
66 \newcommand{\refersec}[1]{ \ref{#1} Page \pageref{#1} }
67
68 %Generate a live link into the doc
69 % use like \livelink{DW\_OP\_dup}{chap:DWOPdup}
70 \newcommand{\livelink}[2]{ \hyperref[#2]{#1} }
71
72 \newcommand{\dash}{\nobreakdash-\hspace{0pt}}  % So we handle dashes ok.
73
74 %Fors simple index entries, this saves typing.
75 \newcommand{\addtoindex}[1]{#1\index{#1}}
76
77
78 \begin{document}
79 \pagestyle{empty}
80 \nonzeroparskip
81 \setlength{\parindent}{0pt} 
82 \setlength{\headheight}{6cm}
83 \setlength{\uppermargin}{6cm}
84
85
86
87 \begin{centering}
88 \LARGE
89 \textbf{\dwf}
90
91 \textbf{Version 4.1}
92
93 \centering
94 \includegraphics[keepaspectratio=true,scale=0.5]{DWlogo}
95
96 \centering
97 \href{http://www.dwarfstd.org}{\dwf\ Committee} 
98
99 \url{http://www.dwarfstd.org}
100
101 \textbf{\docdate}
102
103 \end{centering}
104 \openany
105 \clearpage
106 \openany
107
108 \frontmatter
109 \textmd
110 \normalsize
111 \setlength{\headheight}{15pt}  
112
113 \pagestyle{plain}
114 \makeevenhead{plain}{}{}{}
115 \makeoddhead{plain}{}{}{}
116 \makeevenfoot{plain}{}{}{}
117 \makeoddfoot{plain}{}{}{}
118
119 \nonzeroparskip
120 \setlength{\parindent}{0pt} 
121 \settrims{0.5in}{0.5in}
122 \settypeblocksize{8.2in}{6.0in}
123 %\setlrmarginsandblock{0.6in}{0.6in}{*}
124 %\setheadfoot{15pt}{15pt}
125 %\setheaderspaces {*}{2\onelineskip}{*}
126 \nouppercaseheads
127 \makeevenhead{plain}{}{\rightmark}{}
128 \makeoddhead{plain}{}{\rightmark}{}
129 \makeevenfoot{plain}{\docdate}{}{Page \thepage}
130 \makeoddfoot{plain}{\docdate}{}{Page \thepage}
131
132 \openany
133 \pagenumbering{roman}
134 \nonzeroparskip
135 \setlength{\parindent}{0pt} 
136
137 \include{copyright}
138 \include{foreword}
139
140 \tableofcontents
141 \listoffigures
142 \listoftables
143
144 \mainmatter
145
146 % Define the levels of sectionality that are numbered.
147 \setcounter{secnumdepth}{5}
148
149 \nonzeroparskip
150 \setlength{\parindent}{0pt} 
151
152 \makepagestyle{fragFirstChPage}
153
154 \makeevenhead{fragFirstChPage}{}{}{}
155 \makeoddhead{fragFirstChPage}{}{}{}
156 \makeoddfoot{fragFirstChPage}{\docdate}{}{Page \thepage}
157 \makeevenfoot{fragFirstChPage}{\docdate}{}{Page \thepage}
158
159 \aliaspagestyle{chapter}{fragFirstChPage}
160
161
162
163 \chapterstyle{section}
164 \pagenumbering{arabic}
165
166 \aliaspagestyle{chapter}{fragFirstChPage}
167
168
169 \include{introduction}
170 \include{generaldescription}
171 \include{programscope}
172 \include{dataobject}
173 \include{typeentries}
174 \include{otherdebugginginformation}
175 \include{datarepresentation}
176 %  The \appendix toggles us into appendix chapters
177 \appendix
178 \include{attributesbytag}
179 \include{debugsectionrelationships}
180 \include{encodingdecoding}
181 \include{examples}
182 \include{compression}
183 \include{sectionversionnumbers}
184 \include{gnulicense}
185 \printindex
186 \end{document}