diff options
Implement single column preview mode
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | common/commands.tex | 8 | ||||
-rw-r--r-- | common/packages.tex | 18 | ||||
-rw-r--r-- | main.tex | 14 | ||||
-rw-r--r-- | preview.tex | 12 | ||||
-rw-r--r-- | zusammenfassung.tex | 42 |
6 files changed, 55 insertions, 45 deletions
@@ -1,10 +1,10 @@ .PHONY: build clean live build: - latexmk -pdf -outdir=build -jobname=$$topic zusammenfassung.tex + latexmk -pdf -outdir=build -jobname=$$topic main.tex live: - latexmk -pdf -pvc -outdir=build -jobname=$$topic zusammenfassung.tex + latexmk -pdf -pvc -outdir=build -jobname=$$topic preview.tex clean: - latexmk -C -outdir=build -jobname=$$topic zusammenfassung.tex + latexmk -C -outdir=build -jobname=$$topic main.tex diff --git a/common/commands.tex b/common/commands.tex new file mode 100644 index 0000000..ae5f308 --- /dev/null +++ b/common/commands.tex @@ -0,0 +1,8 @@ +\newcommand{\R}{\mathbb{R}} +\newcommand{\N}{\mathbb{N}} +\newcommand{\K}{\mathbb{K}} +\newcommand{\Q}{\mathbb{Q}} + +\newcommand{\powerset}[1]{\mathcal{P}(#1)} +\newcommand{\skp}[1]{\langle #1 \rangle} +\newcommand{\restrictedto}[2]{{\left.\kern-\nulldelimiterspace #1 \vphantom{\big|} \right|_{#2}}} diff --git a/common/packages.tex b/common/packages.tex new file mode 100644 index 0000000..378842c --- /dev/null +++ b/common/packages.tex @@ -0,0 +1,18 @@ +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\usepackage[nosf]{kpfonts} +\usepackage[small,compact]{titlesec} + +\usepackage{listings} +\usepackage{multicol} +\usepackage{wrapfig} +\usepackage{enumitem} +\usepackage{pgfplots} + +\pagestyle{empty} + +\setlength{\parindent}{0mm} +\setcounter{MaxMatrixCols}{20} + +\lstset{basicstyle=\ttfamily\footnotesize} +\lstset{showstringspaces=false} diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..c2fad24 --- /dev/null +++ b/main.tex @@ -0,0 +1,14 @@ +\documentclass[10pt,landscape,a4paper]{article} + +\usepackage[top=5mm,bottom=5mm,left=5mm,right=5mm]{geometry} + +\include{common/packages} +\include{common/commands} + +\begin{document} + \small{ + \begin{multicols*}{4} + \input{content/\jobname.tex} + \end{multicols*} + } +\end{document} diff --git a/preview.tex b/preview.tex new file mode 100644 index 0000000..edd60da --- /dev/null +++ b/preview.tex @@ -0,0 +1,12 @@ +\documentclass[10pt]{article} + +\usepackage[paperheight=21cm,paperwidth=8cm,top=5mm,bottom=5mm,left=5mm,right=5mm]{geometry} + +\include{common/packages} +\include{common/commands} + +\begin{document} + \small{ + \input{content/\jobname.tex} + } +\end{document} diff --git a/zusammenfassung.tex b/zusammenfassung.tex deleted file mode 100644 index 5d30fa1..0000000 --- a/zusammenfassung.tex +++ /dev/null @@ -1,42 +0,0 @@ -\documentclass[10pt,landscape,a4paper]{article} - -\usepackage[utf8]{inputenc} -\usepackage[ngerman]{babel} -\usepackage[nosf]{kpfonts} -\usepackage[top=5mm,bottom=5mm,left=5mm,right=5mm]{geometry} -\usepackage[small,compact]{titlesec} - -\usepackage{listings} -\usepackage{multicol} -\usepackage{wrapfig} -\usepackage{enumitem} -\usepackage{pgfplots} - -\pagestyle{empty} - -\setlength{\parindent}{0mm} -\setcounter{MaxMatrixCols}{20} - -\lstset{basicstyle=\ttfamily\footnotesize} -\lstset{showstringspaces=false} - -\newcommand{\R}{\mathbb{R}} -\newcommand{\N}{\mathbb{N}} -\newcommand{\K}{\mathbb{K}} -\newcommand{\Q}{\mathbb{Q}} - -\newcommand{\powerset}[1]{\mathcal{P}(#1)} -\newcommand{\skp}[1]{\langle #1 \rangle} -\newcommand{\restrictedto}[2]{{ - \left.\kern-\nulldelimiterspace #1 - \vphantom{\big|} - \right|_{#2} -}} - -\begin{document} - \small{ - \begin{multicols*}{4} - \input{content/\jobname.tex} - \end{multicols*} - } -\end{document} |