Vorbis_I_spec.tex 4.1 KB

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