Precursor to Effective Ruby.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

adv-ruby.tex 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. % ============================================================================
  2. \documentclass{book}
  3. \usepackage{multicol}
  4. \usepackage{comment}
  5. \usepackage{todonotes}
  6. % ============================================================================
  7. \usepackage{fontspec}
  8. \usepackage{xunicode}
  9. \usepackage{xltxtra}
  10. \newcommand\pmadefont{Baskerville}
  11. \defaultfontfeatures{Scale=MatchLowercase}
  12. \setmainfont[Mapping=tex-text]{\pmadefont}%{Century Gothic}
  13. \setsansfont[Mapping=tex-text]{Tahoma}
  14. \setmonofont{Monaco}
  15. % ============================================================================
  16. \usepackage{manfnt}
  17. \renewcommand\labelitemi{\mantriangleright}
  18. % ============================================================================
  19. \usepackage{makeidx}
  20. \usepackage{tocbibind}
  21. \makeindex
  22. % ============================================================================
  23. \usepackage[Bjornstrup]{fncychap}
  24. % ============================================================================
  25. \usepackage{xcolor}
  26. \usepackage{hyperref}
  27. \definecolor{externallinkcolor}{HTML}{003399}
  28. \definecolor{citelinkcolor}{HTML}{36823D}
  29. \hypersetup{
  30. plainpages=false,
  31. colorlinks=true,
  32. linkcolor=black,
  33. filecolor=externallinkcolor,
  34. urlcolor=externallinkcolor,
  35. citecolor=citelinkcolor,
  36. pdfdisplaydoctitle=true,
  37. pdftoolbar=false,
  38. bookmarksopen=true
  39. }
  40. \newcommand\Link[2]{\href{#1}{#2}\footnote{\url{#1}}}
  41. % ============================================================================
  42. \usepackage{listings}
  43. \lstset{
  44. numbers=left,
  45. numberstyle=\tiny,
  46. stepnumber=1,
  47. numbersep=5pt,
  48. language=ruby,
  49. basicstyle=\ttfamily,
  50. frame=single
  51. }
  52. % ============================================================================
  53. \title{Advanced Ruby}
  54. \author{Peter Jones}
  55. % ============================================================================
  56. \begin{document}
  57. \maketitle
  58. \tableofcontents
  59. \include{chapters/testing}
  60. \printindex
  61. % ============================================================================
  62. \end{document}