aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2017-02-26 22:34:03 +0100
committerAdrian Kummerlaender2017-02-26 22:34:03 +0100
commit4ebfa3b9a7cec8cbf4b0c9d4622778868e389458 (patch)
treedada154ba5b813c2d3cd7ab326786abc63ace7b1
parent970988995b7b48920403628c6d022a35a375a522 (diff)
downloadmath_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.tar
math_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.tar.gz
math_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.tar.bz2
math_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.tar.lz
math_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.tar.xz
math_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.tar.zst
math_reference_sheets-4ebfa3b9a7cec8cbf4b0c9d4622778868e389458.zip
Implement single column preview mode
-rw-r--r--Makefile6
-rw-r--r--common/commands.tex8
-rw-r--r--common/packages.tex18
-rw-r--r--main.tex14
-rw-r--r--preview.tex12
-rw-r--r--zusammenfassung.tex42
6 files changed, 55 insertions, 45 deletions
diff --git a/Makefile b/Makefile
index ef2b321..ae16a1e 100644
--- a/Makefile
+++ b/Makefile
@@ -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}