summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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