repA4.tex 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. %
  2. % defaultcustom.tex
  3. %
  4. % HV's default customisations
  5. %
  6. % for double sided printing, use book style.
  7. % for single sided printing, use report style.
  8. % This mainly has an inpact on the headings.
  9. %% BEWARE of the order of the following packages !!
  10. %% A different order may NOT work
  11. \usepackage{vmargin} % for \setmarginsrb
  12. %\usepackage[dvips,english,first,light]{draftcopy} % draft versions
  13. %\usepackage{changebar} % mark changes in margin
  14. \usepackage{postscript} % HV's elaboration of epsf
  15. %\usepackage{biomath} % mainly for title page, replace later
  16. %\usepackage{times} % use Adobe PostScript font
  17. %\usepackage{newcent} % I like New Century Schoolbook
  18. %\usepackage{lucidbrb} % Lucida Bright, Lucida Sans, ... used in companion
  19. %\usepackage{palatino} % Palatino
  20. \usepackage{pslatex} % use Adobe PostScript font (better than times)
  21. %\usepackage{newlfont}
  22. \usepackage[cspex,bbgreekl]{mathbbol} % Blackboard Bold, for mathematical N, R
  23. \usepackage{pifont} % to include symbols from different fonts (e.g. \rtm)
  24. \usepackage{eurosym} % for the euro symbol, package by Henrik Theiling
  25. \usepackage{amssymb} % AMS symbols e.g. \rightleftharpoons
  26. \usepackage{amstext} % AMS for e.g. \text{}
  27. \usepackage{lgrind} % for typesetting MSL, Gentle, C, C++, ... code
  28. %\usepackage{html} % to include HTML
  29. %\usepackage{tth} % for generating HTML, math included
  30. %\usepackage[chapter]{algorithm} % algorithm pseudocode
  31. %\usepackage{algorithmic}% algorithm pseudocode
  32. %\usepackage{program} % algorithm pseudocode (seems to clash with bibTeX)
  33. \usepackage{booktabs} % tables as required by journals
  34. %\usepackage{citesort} % Sorts the numbers for refs. e.g. [2,12,23,45]
  35. %\usepackage[bf,sf,medium,compact,nops]{titlesec} % nice section titles
  36. \usepackage[bf,sf,medium,compact]{titlesec} % nice section titles
  37. \usepackage[grey,utopia]{quotchap} % nice chapter titles/numbers
  38. % only for report/book style
  39. \usepackage{fancyhdr} % fancy page headers/footers
  40. % Modify algorithm package to HV's tastes
  41. %\renewcommand{\algorithmicrequire}{\textbf{\textsf{Require:}}}
  42. %\renewcommand{\algorithmicensure}{\textbf{\textsf{Ensure:}}}
  43. %\renewcommand{\algorithmicend}{\textbf{\textsf{end}}}
  44. %\renewcommand{\algorithmicif}{\textbf{\textsf{if}}}
  45. %\renewcommand{\algorithmicthen}{\textbf{\textsf{then}}}
  46. %\renewcommand{\algorithmicelse}{\textbf{\textsf{else}}}
  47. %\renewcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
  48. %\renewcommand{\algorithmicendif}{\algorithmicend\ \algorithmicif}
  49. %\renewcommand{\algorithmicfor}{\textbf{\textsf{for}}}
  50. %\renewcommand{\algorithmicforall}{\textbf{\textsf{for all}}}
  51. %\renewcommand{\algorithmicdo}{\textbf{\textsf{do}}}
  52. %\renewcommand{\algorithmicendfor}{\algorithmicend\ \algorithmicfor}
  53. %\renewcommand{\algorithmicwhile}{\textbf{\textsf{while}}}
  54. %\renewcommand{\algorithmicendwhile}{\algorithmicend\ \algorithmicwhile}
  55. %\renewcommand{\algorithmicloop}{\textbf{\textsf{loop}}}
  56. %\renewcommand{\algorithmicendloop}{\algorithmicend\ \algorithmicloop}
  57. %\renewcommand{\algorithmicrepeat}{\textbf{\textsf{repeat}}}
  58. %\renewcommand{\algorithmicuntil}{\textbf{\textsf{until}}}
  59. %\renewcommand{\algorithmiccomment}[1]{\hfill \{#1\}}
  60. % to test if in TTH (HTML generation)
  61. \newif\iftth
  62. % to have MathBlackboardBold in TeX, Calligraphic in TTH
  63. \newcommand{\bb}[1]{\iftth\cal{#1}\else\mathbb{#1}\fi}
  64. % Currently, to fit as much on a page as possible
  65. %
  66. \setpapersize{A4} % necessary when using a4paper ?
  67. \setmarginsrb{1.5cm}{1.5cm}{1.5cm}{1.5cm}{12pt}{25pt}{12pt}{30pt}
  68. % HV's manual adjustments were
  69. %\textwidth 16.5cm
  70. %\textheight 24.2cm
  71. %\topmargin -1.8cm
  72. %\oddsidemargin 0.cm
  73. %% standard scaling factor for included PostScript
  74. \newcommand{\epsscale}{0.7}
  75. % HV prefers not to indent paragraphs and skip only a little
  76. \parindent 0.cm
  77. \parskip 0.1cm
  78. % To refer to the section etc. AND to the page,
  79. % use consistently only when referring into other chapter.
  80. %
  81. \newcommand{\fullref}[1]{\ref{#1} on page~\pageref{#1}}
  82. % Normal itemize takes too much space
  83. %
  84. \renewenvironment{itemize}%
  85. {\begin{list}{$\bullet$}%
  86. {\setlength{\parsep}{0pt}
  87. \setlength{\itemsep}{0pt}}}%
  88. {\end{list}}
  89. % TM sign
  90. %\def\rtm{$^{\text{\Pisymbol{psy}{226}}}$} % The ``registered trademark sign''
  91. %% For formatting semantic definitions
  92. % HV: keep this or change ?
  93. %
  94. \newcommand{\enum}{\ \textbf{enum}\ }
  95. \newcommand{\myif}{\ \textbf{if}\ }
  96. \newcommand{\myelse}{\ \textbf{else}\ }
  97. \newcommand{\defbegin}[1]{\begin{center}{\bf {\sf #1}}\end{center}
  98. \hrule {\bf {\sf Syntax:}} \vspace{-0.2cm}}
  99. \newenvironment{semantics}{\vspace{-0.7cm}
  100. {\bf {\sf Semantics:} \vspace{-0.2cm}}
  101. \begin{quote}}{\end{quote}}
  102. \newcommand{\defobject}{\vspace{-0.7cm}{\bf {\sf Object:}
  103. \vspace{-0.2cm}}}
  104. \newenvironment{object}{\vspace{-0.7cm}{\bf {\sf Object:}
  105. \vspace{-0.2cm}}
  106. \begin{quote}}{\end{quote}}
  107. \newcommand{\defend}{\hrule}
  108. %% Miscellaneous preamble information
  109. \newcommand{\vb}[1]{\verb+#1+}
  110. \newcommand{\st}[1]{{\em #1\/}}
  111. \newcommand{\ic}{{\em i.c.,\ }}
  112. \newcommand{\ie}{{\em i.e.,\ }}
  113. \newcommand{\eg}{{\em e.g.,\ }}
  114. \newcommand{\vs}{{\em vs.\ }}
  115. \newcommand{\cfr}{{\em cfr.\ }}
  116. \newcommand{\etc}{{\em ,\ etc.\ }}
  117. % End of File defaultcustom.tex