2 \documentclass[12pt,paper=a4]{scrartcl}
4 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 %\usepackage[margin=3cm]{geometry}
13 \usepackage[english]{babel}
15 %\usepackage[latin1]{inputenc}
16 %\usepackage[T1]{fontenc}
18 % Do not indent paragraphs, instead separate them via vertical spacing
21 % Support for graphics, provides \includegraphics
23 %\graphicspath{{images/}} % Specify subdir containing the images
25 % Hyperref enriches the generated PDF with clickable links,
26 % and provides many other useful features.
28 \usepackage[colorlinks]{hyperref}
29 \def\sectionautorefname{Section} % Write section with capital 'S'
30 \def\subsectionautorefname{Subsection} % Write subsection with capital 'S'
33 % The fancyvrb package provides the "Verbatim" environment, which,
34 % unlike the built-in "verbatim", allows embedding TeX commands, as
35 % well as tons of other neat stuff (line numbers, formatting adjustments, ...)
37 \fvset{tabsize=4,fontsize=\scriptsize,numbers=left}
39 % Normally, one can not use the underscore character in LaTeX without
40 % escaping it (\_ instead of _). Since the Vorbis specs use it a lot,
41 % we use the underscore package to change this default behavior.
42 \usepackage[nohyphen]{underscore}
46 % In LaTeX, pictures are normally put into floating environments, and it is
47 % left to the typesetting engine to place them in the "optimal" spot. These
48 % docs however expect pictures to be placed in a *specific* position. So we
49 % don't use \begin{figure}...\end{figure}, but rather a center environment.
50 % To still be able to use captions, we use the capt-of package.
54 \usepackage[normalem]{ulem}
59 % allow 'special' characters in filenames, like undescore :-P
62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66 % Custom ref command, using hyperrefs autoref & nameref, to simulate the
67 % behavior of DocBook's '<xref>'.
68 \newcommand{\xref}[1]{\autoref{#1}, ``\nameref{#1}''}
70 % Emulat DocBook's '<link>'.
71 \newcommand{\link}[2]{\hyperref[#1]{#2}}
73 % Simple 'Note' environment. Can be customized later on.
74 \newenvironment{note}{\subparagraph*{Note:}}{}
76 % Map DocBook's <programlisting> to fancyvrb's Verbatim environment
77 \let\programlisting\Verbatim
78 \let\endprogramlisting\endVerbatim
80 % Fake some more DocBook elements
81 \newcommand{\function}[1]{\texttt{#1}}
82 \newcommand{\filename}[1]{\texttt{#1}}
83 \newcommand{\varname}[1]{\texttt{#1}}
84 \newcommand{\literal}[1]{\texttt{#1}}
86 % Redefine \~ to generate something that looks more appropriate when used in text.
87 \renewcommand{\~}{$\sim$}
89 % Useful helper macro that inserts TODO comments very visibly into the generated
90 % file. Helps you to not forget to resolve those TODOs... :)
91 \newcommand{\TODO}[1]{\textcolor{red}{*** #1 ***}}
93 % Configure graphics formats: Prefer PDF, fall back to PNG or JPG, as available.
94 \DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg}
97 % NOTE: Things to watch out for: Some chars are reserved in LaTeX. You need to translate them...
98 % ~ -> $\sim$ (or \~ which we defined above)
103 % and others. Refer to any of the many LaTeX refs out there if in doubt!
108 \title{Vorbis I specification}
109 \author{Xiph.Org Foundation}
114 \include{01-introduction}
115 \include{02-bitpacking}
116 \include{03-codebook}
126 \include{a1-encapsulation-ogg}
127 \include{a2-encapsulation-rtp}
132 % TODO: Use a bibliography, as in the example below?
133 \begin{thebibliography}{99}
135 \bibitem{Sporer/Brandenburg/Edler} T.~Sporer, K.~Brandenburg and B.~Edler,
136 The use of multirate filter banks for coding of high quality digital audio,
137 \url{http://www.iocon.com/resource/docs/ps/eusipco_corrected.ps}.
140 \end{thebibliography}