From 38f1d00b73948a938d05a38fe25939c4e937d4dc Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 8 Jan 2013 14:08:58 +0100 Subject: doc: Set font-size to 12 and activate doublespacing --- Makefile | 4 ++-- sksys.sty | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 sksys.sty 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 -- cgit