summaryrefslogtreecommitdiff
path: root/help/manual/common
diff options
context:
space:
mode:
authorBartosz Leper <bl.nero@gmail.com>2015-06-24 18:33:43 +0200
committerBartosz Leper <bl.nero@gmail.com>2015-06-24 18:33:43 +0200
commitb0995850dabfd95a268cbab0ba5f09cd8dba7a77 (patch)
treefc8b411e4a7657709800359ed1800fe8bb4b34eb /help/manual/common
parent2676521231679cfd24114d38ce6c5b2208568530 (diff)
downloadsnap-b0995850dabfd95a268cbab0ba5f09cd8dba7a77.tar.gz
snap-b0995850dabfd95a268cbab0ba5f09cd8dba7a77.zip
First batch of translation
Diffstat (limited to 'help/manual/common')
-rw-r--r--help/manual/common/defs.tex22
1 files changed, 21 insertions, 1 deletions
diff --git a/help/manual/common/defs.tex b/help/manual/common/defs.tex
index 4453b67..b35b373 100644
--- a/help/manual/common/defs.tex
+++ b/help/manual/common/defs.tex
@@ -1,15 +1,35 @@
\usepackage{baskervald} % Default font
\usepackage{cabin} % Sans serif font
\usepackage[T1]{fontenc}
+\usepackage[utf8]{inputenc}
\usepackage{setspace} \onehalfspacing
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{hyperref}
-\newcommand{\Snap}{{\sf Snap{\it !}}}
+% 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]{%
+ {%
+ \sf%
+ Snap%
+ \ifx\\#1\\{\it !}%
+ \else #1%
+ \fi%
+ }%
+}
+\newcommand{\Foo}[1]{
+\ifx\\#1\\foo\else bar\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}%