Vorbis_I_spec.tex 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. % In LaTeX, pictures are normally put into floating environments, and it is
  34. % left to the typesetting engine to place them in the "optimal" spot. These
  35. % docs however expect pictures to be placed in a *specific* position. So we
  36. % don't use \begin{figure}...\end{figure}, but rather a center environment.
  37. % To still be able to use captions, we use the capt-of package.
  38. \usepackage{capt-of}
  39. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  40. % Custom commands
  41. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  42. % Custom ref command, using hyperrefs autoref & nameref, to simulate the
  43. % behavior of DocBook's '<xref>'.
  44. \newcommand{\xref}[1]{\autoref{#1}, ``\nameref{#1}''}
  45. % Emulat DocBook's '<link>'.
  46. \newcommand{\link}[2]{\hyperref[#1]{#2}}
  47. % Simple 'Note' environment. Can be customized later on.
  48. \newenvironment{note}{\subparagraph*{Note:}}{}
  49. % Map DocBook's <programlisting> to fancyvrb's Verbatim environment
  50. \let\programlisting\Verbatim
  51. \let\endprogramlisting\endVerbatim
  52. % Fake some more DocBook elements
  53. \newcommand{\function}[1]{\texttt{#1}}
  54. \newcommand{\filename}[1]{\texttt{#1}}
  55. \newcommand{\varname}[1]{\texttt{#1}}
  56. \newcommand{\literal}[1]{\texttt{#1}}
  57. % Redefine \~ to generate something that looks more appropriate when used in text.
  58. \renewcommand{\~}{$\sim$}
  59. % Useful helper macro that inserts TODO comments very visibly into the generated
  60. % file. Helps you to not forget to resolve those TODOs... :)
  61. \newcommand{\TODO}[1]{\textcolor{red}{*** #1 ***}}
  62. % Configure graphics formats: Prefer PDF, fall back to PNG or JPG, as available.
  63. \DeclareGraphicsExtensions{.pdf,.png,.jpg,.jpeg}
  64. % NOTE: Things to watch out for: Some chars are reserved in LaTeX. You need to translate them...
  65. % ~ -> $\sim$ (or \~ which we defined above)
  66. % % -> \%
  67. % & -> \&
  68. % < -> $<$
  69. % > -> $>$
  70. % and others. Refer to any of the many LaTeX refs out there if in doubt!
  71. \begin{document}
  72. \title{Vorbis I specification}
  73. \author{Xiph.org Foundation}
  74. \maketitle
  75. \tableofcontents
  76. \include{01-introduction}
  77. \include{02-bitpacking}
  78. \include{03-codebook}
  79. \include{04-codec}
  80. \include{05-comment}
  81. \include{06-floor0}
  82. \include{07-floor1}
  83. \include{08-residue}
  84. \include{09-helper}
  85. \include{10-tables}
  86. \appendix
  87. \include{a1-encapsulation-ogg}
  88. \include{a2-encapsulation-rtp}
  89. \include{footer}
  90. % TODO: Use a bibliography, as in the example below?
  91. \begin{thebibliography}{99}
  92. \bibitem{Sporer/Brandenburg/Edler} T.~Sporer, K.~Brandenburg and B.~Edler,
  93. The use of multirate filter banks for coding of high quality digital audio,
  94. \url{http://www.iocon.com/resource/docs/ps/eusipco_corrected.ps}.
  95. \end{thebibliography}
  96. \end{document}