diff options
| author | Brian Harvey <bh@cs.berkeley.edu> | 2015-07-20 21:53:45 -0700 |
|---|---|---|
| committer | Brian Harvey <bh@cs.berkeley.edu> | 2015-07-20 21:53:45 -0700 |
| commit | 40b1d4910ca55004c8f927abcdb02755b986923b (patch) | |
| tree | 9e8e882e250168563afca79636d0dba9351bc3a9 /help/manual/common/defs.tex | |
| parent | 53068ea25954431c174dca1e76ca924b00243c2f (diff) | |
| parent | 81476aa5882ec7a25dc03e4f8f5a14ff412434a9 (diff) | |
| download | snap-master.tar.gz snap-master.zip | |
First batch of the LaTeX version of the manual and its Polish translation
Diffstat (limited to 'help/manual/common/defs.tex')
| -rw-r--r-- | help/manual/common/defs.tex | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/help/manual/common/defs.tex b/help/manual/common/defs.tex new file mode 100644 index 0000000..bb4d785 --- /dev/null +++ b/help/manual/common/defs.tex @@ -0,0 +1,39 @@ +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{baskervald} % Default font +\usepackage{setspace} \onehalfspacing +\usepackage{graphicx} +\usepackage{color} +\usepackage{textcomp} +\usepackage{hyperref} + +% This macro produces a "Snap!" logo. +% +% Note that in Polish (and other languages), nouns are inflected. The form "Snap!" with suffix looks plain stupid, so the macro takes a suffix as argument. If the suffix is non-empty, no exclamation mark is generated, and the suffix is used instead. +\newcommand{\Snap}[1]{% + \textsf{% + Snap% + \ifx\\#1\\\textit{!\@}% + \else #1% + \fi% + }% +} + +\newcommand{\code}[1]{\textsf{#1}} +\newcommand{\defaultGraphicsScale}{0.6} + +\renewcommand{\thechapter}{\Roman{chapter}} +\renewcommand{\thesection}{\Alph{section}} +\renewcommand{\thesubsection}{} + +\newcommand{\inlinepic}[1]{% + \raisebox{-4pt}{% + \includegraphics[scale=\defaultGraphicsScale]{#1}% + }% +} + +\newcommand{\bigpic}[1]{ + \begin{center} + \includegraphics[scale=\defaultGraphicsScale]{#1} + \end{center} +} |
