Vorbis_I_spec.tex 3.9 KB

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