summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-08 14:08:58 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-08 14:09:34 +0100
commit38f1d00b73948a938d05a38fe25939c4e937d4dc (patch)
tree3ece0515dae38c1f594e6b66285482c4c62589f5
parent0996dd594ee49f50ae18f3d81ab5835f7715d54b (diff)
downloadsksys-38f1d00b73948a938d05a38fe25939c4e937d4dc.tar.gz
sksys-38f1d00b73948a938d05a38fe25939c4e937d4dc.tar.bz2
sksys-38f1d00b73948a938d05a38fe25939c4e937d4dc.zip
doc: Set font-size to 12 and activate doublespacing
-rw-r--r--Makefile4
-rw-r--r--sksys.sty22
2 files changed, 24 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e47ddfe..8218a3e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-DBLATEX_OPTS="-P latex.encoding=utf8 -P latex.output.revhistory=0 -P doc.publisher.show=0"
+DBLATEX_OPTS="-P latex.encoding=utf8 -P latex.output.revhistory=0 -P doc.publisher.show=0 -P latex.class.options=a4paper,12pt,abstraction,titlepage -s sksys.sty"
IMAGES!=ls image/*.dia
GenSVG=${IMAGES:S/.dia$/.svg/}
@@ -17,7 +17,7 @@ presentation.html: presentation.asciidoc
asciidoc --backend=latex $<
.SUFFIXES: .asciidoc .pdf
-.asciidoc.pdf:
+document.pdf: document.asciidoc sksys.sty
a2x -f pdf --dblatex-opts=$(DBLATEX_OPTS) $<
.SUFFIXES: .dia .svg
diff --git a/sksys.sty b/sksys.sty
new file mode 100644
index 0000000..47e7ca9
--- /dev/null
+++ b/sksys.sty
@@ -0,0 +1,22 @@
+%%
+%% This style is derived from the docbook one.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{sks}[2013/02/08 SKSys Style]
+%% Just use the original package and pass the options.
+\RequirePackageWithOptions{docbook}
+
+% Sidebar is a boxed minipage that can contain verbatim.
+% Changed shadow box to double box.
+\renewenvironment{sidebar}[1][0.95\textwidth]{
+ \hspace{0mm}\newline%
+ \noindent\begin{Sbox}\begin{minipage}{#1}%
+ \setlength\parskip{\medskipamount}%
+}{
+ \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
+}
+
+% For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.
+\usepackage{alltt}
+\usepackage{setspace}
+\doublespacing