From ccf7c2a4dca0b9cefdca8c8067ca82ea98087e01 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Tue, 9 Jul 2013 10:50:43 +0200 Subject: [PATCH] added some documentation --- basics.tex | 59 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/basics.tex b/basics.tex index 7a78f2f..0706801 100644 --- a/basics.tex +++ b/basics.tex @@ -1,33 +1,43 @@ \documentclass[10pt,a5paper,twoside,openright,twocolumn,german]{book} -\usepackage[absolute]{textpos} -\usepackage[iso]{isodate} +% page formatting +\usepackage[columnsep=.75cm,lmargin=.75cm,rmargin=.75cm,tmargin=1.5cm,bmargin=1.5cm]{geometry} + +\usepackage{fancyhdr} +\pagestyle{fancy} +\lhead{} +\chead{} +\rhead{} +\cfoot{} +\renewcommand{\chaptermark}[1]{ \markboth{#1}{} } +\fancyhead[LE,RO]{\leftmark} +\fancyfoot[LE,RO]{\thepage} + +% Use sans serif font. \renewcommand*{\familydefault}{\sfdefault} -\usepackage{hyperref} +% Fürs "last generated" Datum +\usepackage[iso]{isodate} + +% Image import stuff +\usepackage[absolute]{textpos} \usepackage{graphicx} \DeclareGraphicsExtensions{.pdf,.png,.jpg} -\usepackage[columnsep=.75cm,lmargin=.75cm,rmargin=.75cm,tmargin=1.5cm,bmargin=1.5cm]{geometry} - +% \chapter hacks +% Create \Hide command (used for chapters) \usepackage[explicit]{titlesec} \newcommand*\Hide{\titleformat{\chapter}[display]{}{}{0pt}{\Huge}\titleformat{\part}{}{}{0pt}{}} +% inhibit creation of new double page on new chapter. \usepackage{etoolbox} \makeatletter \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{} \makeatother -\titlespacing*{\chapter}{0pt}{0pt}{-40pt} -\usepackage{fancyhdr} -\pagestyle{fancy} -\lhead{} -\chead{} -\rhead{} -\cfoot{} -\renewcommand{\chaptermark}[1]{ \markboth{#1}{} } -\fancyhead[LE,RO]{\leftmark} -\fancyfoot[LE,RO]{\thepage} +% make \chapter not use up any space. +\titlespacing*{\chapter}{0pt}{0pt}{-40pt} +% make \paragraph do newlines \makeatletter \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {-.75ex \@plus -1ex \@minus -0.2ex}% @@ -36,17 +46,22 @@ } \makeatother -\makeatletter -\setlength{\@fptop}{0pt} -\makeatother - +% inhibit "Contents" Head in TOC \makeatletter \renewcommand\tableofcontents{\@starttoc{toc}} \makeatother -\usepackage[perpage]{footmisc} +% disable chapter, section, ... numbering \setcounter{secnumdepth}{-1} +% make footnote numbering reset on every page. +\usepackage[perpage]{footmisc} + +% clickable references/links/... +\usepackage{hyperref} + + +% START DOCUMENT \begin{document}\thispagestyle{empty} \begin{textblock*}{\paperwidth}(0mm,0mm)\noindent\includegraphics[width=\paperwidth,height=\paperheight]{images/cover_front.png} \end{textblock*} @@ -54,11 +69,12 @@ \twocolumn \thispagestyle{empty} -\input{articles/impressum.tex}\today\newpage +\input{articles/impressum.tex}\newpage \input{articles/adressen.tex} \newpage\thispagestyle{empty} \input{articles/editorial.tex}\newpage \section*{Inhalt}\tableofcontents +{\center\small Document (.tex) compiled on: \today} \newpage \Hide\chapter{Einleitung}\thispagestyle{fancy} @@ -74,6 +90,7 @@ \input{articles/vor_ti.tex}\newpage \input{articles/vor_inskription.tex}\clearpage +\onecolumn \mbox{}\clearpage\thispagestyle{empty} \begin{textblock*}{\paperwidth}(0mm,0mm)\noindent\includegraphics[width=\paperwidth,height=\paperheight]{images/cover_back.png} \end{textblock*} -- 2.43.0