From 3e11219575054756c4edc937b282947927ab3f3a Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 17 May 2016 10:32:51 +0200 Subject: [PATCH] new config for "one page" docs --- Makefile | 10 ++++++--- config/framework.tex | 1 + config/framework_one_page.tex | 40 +++++++++++++++++++++++++++++++++++ config/headfoot.tex | 4 ++-- config/sourcelst.tex | 12 +++++++++++ 5 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 config/framework_one_page.tex diff --git a/Makefile b/Makefile index 27e01c9..99d7f19 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,16 @@ SRC := config/$(basename $(MAIN)).tex DEP := \ config/headfoot.tex \ config/sourcelst.tex \ - config/titlepage.tex \ content.tex \ - title.tex \ Makefile all: $(MAIN) +one_page: $(DEP) + @latex config/framework_one_page.tex + latex config/framework_one_page.tex + dvipdf framework_one_page.dvi framework_one_page.pdf + clean: rm -f \ $(basename $(MAIN)).aux \ @@ -17,7 +20,8 @@ clean: $(basename $(MAIN)).log \ $(basename $(MAIN)).out \ $(basename $(MAIN)).toc \ - $(MAIN) + $(MAIN) \ + framework_one_page.* $(MAIN): $(DEP) @latex $(SRC) diff --git a/config/framework.tex b/config/framework.tex index 218d209..c05122f 100644 --- a/config/framework.tex +++ b/config/framework.tex @@ -40,5 +40,6 @@ citecolor = black]{hyperref}% \input{config/headfoot.tex} \newpage \input{content.tex} +\lstsetdefault \end{document} diff --git a/config/framework_one_page.tex b/config/framework_one_page.tex new file mode 100644 index 0000000..c02a5d4 --- /dev/null +++ b/config/framework_one_page.tex @@ -0,0 +1,40 @@ +\documentclass[a4paper,12pt,oneside]{article}% +\usepackage[utf8]{inputenc}% +\usepackage[T1]{fontenc}% +\usepackage{caption}% +\usepackage{placeins}% +\usepackage{graphicx}% +\usepackage[colorlinks, +pdfpagelabels, +pdfstartview = FitH, +bookmarksopen = true, +bookmarksnumbered = true, +linkcolor = black, +plainpages = false, +hypertexnames = false, +citecolor = black]{hyperref}% + +\usepackage{amsmath}% +\usepackage{amssymb}% +\usepackage{amstext}% +\usepackage{amsfonts}% +\usepackage{mathrsfs}% +\usepackage{hyperref}% +\usepackage{xcolor}% +\usepackage{scrpage2}% + +\newcommand*\euler{\mathrm{e}} +%\input{title.tex} +\input{config/font.tex} +\input{config/sourcelst.tex} + +\begin{document} +\clearscrheadfoot +\clearscrplain +\clearscrheadings +\pagestyle{scrheadings} % switch on head and foot line +\input{config/headfoot.tex} +\lstsetdefault +\input{content.tex} +\end{document} + diff --git a/config/headfoot.tex b/config/headfoot.tex index 3b14a16..3676d9f 100644 --- a/config/headfoot.tex +++ b/config/headfoot.tex @@ -2,6 +2,6 @@ %\ihead{\includegraphics[scale=0.16]{config/novero_logo_web_500px.eps}} \ohead{\today} \setheadsepline{1pt} -\ofoot{\pagemark} -\setfootsepline{1pt} +%\ofoot{\pagemark} +%\setfootsepline{1pt} diff --git a/config/sourcelst.tex b/config/sourcelst.tex index 559a869..4969fee 100644 --- a/config/sourcelst.tex +++ b/config/sourcelst.tex @@ -1,6 +1,18 @@ \usepackage{listings}% \usepackage{courier}% +\newcommand{\lstsetdefault} +{\lstset +{ +language=bash, +tabsize=4, +frame=single, +basicstyle=\ttfamily\small, +commentstyle=\color{black}, +keywordstyle=\color{black} +} +} + \newcommand{\lstsetc} {\lstset {