From 60c1b9387cd98b3ba875bddb13c86e9e090cb1f1 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sun, 10 Aug 2014 12:21:13 +0100 Subject: init --- templates/cplusplus.cc | 19 ++++ templates/header.h | 17 ++++ templates/html5.html | 27 +++++ templates/latex/Makefile | 15 +++ templates/latex/README.md | 3 + templates/latex/article-title.tex | 97 ++++++++++++++++++ templates/latex/article.tex | 52 ++++++++++ templates/latex/beamer.tex | 162 ++++++++++++++++++++++++++++++ templates/latex/dependency-tree.tex | 33 ++++++ templates/latex/example.bib | 7 ++ templates/latex/example_slides/Makefile | 6 ++ templates/latex/example_slides/slides.tex | 51 ++++++++++ templates/latex/invoice.tex | 66 ++++++++++++ templates/latex/plain-letter.tex | 34 +++++++ templates/latex/plain.tex | 19 ++++ templates/latex/report.tex | 46 +++++++++ templates/latex/tfbrief.tex | 55 ++++++++++ templates/latex/tightpage.tex | 21 ++++ templates/latex/tree.tex | 24 +++++ templates/latex/word-alignment-ibm.tex | 24 +++++ templates/latex/word-alignment.tex | 30 ++++++ templates/plainc.c | 17 ++++ templates/python.py | 24 +++++ templates/ruby.rb | 23 +++++ templates/stylesheet.css | 30 ++++++ 25 files changed, 902 insertions(+) create mode 100644 templates/cplusplus.cc create mode 100644 templates/header.h create mode 100644 templates/html5.html create mode 100644 templates/latex/Makefile create mode 100644 templates/latex/README.md create mode 100644 templates/latex/article-title.tex create mode 100644 templates/latex/article.tex create mode 100644 templates/latex/beamer.tex create mode 100644 templates/latex/dependency-tree.tex create mode 100644 templates/latex/example.bib create mode 100644 templates/latex/example_slides/Makefile create mode 100644 templates/latex/example_slides/slides.tex create mode 100644 templates/latex/invoice.tex create mode 100644 templates/latex/plain-letter.tex create mode 100644 templates/latex/plain.tex create mode 100644 templates/latex/report.tex create mode 100644 templates/latex/tfbrief.tex create mode 100644 templates/latex/tightpage.tex create mode 100644 templates/latex/tree.tex create mode 100644 templates/latex/word-alignment-ibm.tex create mode 100644 templates/latex/word-alignment.tex create mode 100644 templates/plainc.c create mode 100644 templates/python.py create mode 100644 templates/ruby.rb create mode 100644 templates/stylesheet.css (limited to 'templates') diff --git a/templates/cplusplus.cc b/templates/cplusplus.cc new file mode 100644 index 0000000..346f268 --- /dev/null +++ b/templates/cplusplus.cc @@ -0,0 +1,19 @@ +/* + * template.cpp + * + * Patrick Simianer
+ * YYYY-MM-DD
+ */
+
+#include
+ * YYYY-MM-DD
+ */
+
+
+#ifndef UNTITLED_H
+#define UNTITLED_H
+
+#include
+% YYYY-MM-DD
+\documentclass[paper=A4,
+ pagesize,
+ DIV=calc,
+ BCOR=1cm,
+ smallheadings,
+ ngerman,
+ 11pt]{scrartcl}
+\typearea{12}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+
+\usepackage{amsmath, amssymb, latexsym}
+\usepackage{hyperref, color}
+\usepackage[pdftex]{graphicx}
+\usepackage{listings}
+\usepackage{totpages}
+\usepackage{ulem}
+\usepackage{lmodern,eulervm}
+
+\usepackage[tracking=TRUE]{microtype}
+\usepackage{babel}
+\usepackage{fixltx2e}
+\usepackage{ellipsis, ragged2e, marginnote}
+\DeclareMicrotypeSet*[tracking]{my}
+ { font = */*/*/sc/* }
+\SetTracking{ encoding = *, shape = sc }{ 45 }
+
+\usepackage{tikz}
+\usepackage{tikz-qtree}
+
+\definecolor{darkblue}{rgb}{0,0,.5}
+\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue}
+
+\definecolor{gray}{rgb}{.5,.5,.5}
+\lstset{basicstyle=\small\ttfamily, commentstyle=\color{gray}, emphstyle=\sffamily\bfseries}
+\lstset{keywordstyle=\sffamily\bfseries, commentstyle=\color{gray}, stringstyle=\color{black}}
+\lstset{numbers=left, numberstyle=\tiny}
+
+%\parindent0pt
+
+\date{\textsf{\small{\today}}}
+\author{Patrick Simianer}
+{\title{\textbf{Titel}}}
+
+\usepackage[]{scrpage2}
+\pagestyle{scrheadings}
+\ihead[]{Patrick Simianer}
+\chead[]{}
+\ohead[]{kurzer Titel}
+\ifoot[]{}
+\cfoot[]{}
+\clearscrplain % page numbers of all pages
+\ofoot[\pagemark]{\textit{\pagemark} \tiny{\textit{\ref{TotPages}}}}
+
+\begin{document}
+
+
+\maketitle
+
+\section*{Aufgabe 1}
+\begin{equation}
+ \sum\limits_{k=1}^n k = 1+2+\hdots+n = \frac{n(n+1)}{2}
+\end{equation}
+
+\subsection*{Programm: Hello, World!}
+\lstset{language=C++, emph={main}}
+\begin{lstlisting}{Hello, World!}
+/* Ein Kommentar */
+#include
+% YYYY-MM-DD
+\documentclass[a4paper, 11pt]{scrartcl}
+\typearea{12}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[ngerman]{babel}
+
+\usepackage{amsmath, amssymb, latexsym}
+\usepackage{hyperref, color}
+\usepackage[pdftex]{graphicx}
+\usepackage{listings}
+\usepackage{ulem}
+\usepackage{microtype}
+\usepackage{lmodern,eulervm}
+
+\definecolor{darkblue}{rgb}{0,0,.5}
+\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue}
+
+%\parindent0pt
+
+\definecolor{gray}{rgb}{.5,.5,.5}
+\lstset{basicstyle=\small\ttfamily, commentstyle=\color{gray}, emphstyle=\sffamily\bfseries}
+\lstset{keywordstyle=\sffamily\bfseries, commentstyle=\color{gray}, stringstyle=\color{black}}
+\lstset{numbers=left, numberstyle=\tiny}
+
+\begin{document}
+
+
+\begin{equation}
+ \sum\limits_{k=1}^n k = 1+2+\hdots+n = \frac{n(n+1)}{2}
+\end{equation}
+
+\section*{Aufgabe 1}
+\subsection*{Programm: Hello, World!}
+\lstset{language=C++, emph={main}}
+\begin{lstlisting}{Hello, World!}
+/* Ein Kommentar */
+#include
+% YYYY-MM-DD
+\documentclass[ignorenonframetext]{beamer}
+
+\mode
+% YYYY-MM-DD
+
+\documentclass{article}
+
+\usepackage[graphics,tightpage,active]{preview}
+\usepackage{tikz}
+\PreviewEnvironment{X}
+\newlength{\imagewidth}
+\newlength{\imagescale}
+\usepackage{tikz}
+\usepackage{tikz-dependency}
+
+\begin{document}
+
+\begin{X}
+\begin{dependency}[theme = simple]
+\begin{deptext}
+ the \& boy \& will \& find \& it \& interesting \\
+\end{deptext}
+\depedge[hide label, line width=1pt]{2}{1}{}
+\depedge[hide label, line width=1pt]{4}{2}{}
+\depedge[hide label, line width=1pt]{4}{3}{}
+\depedge[hide label, line width=1pt]{4}{5}{}
+\depedge[hide label, line width=1pt]{4}{6}{}
+\end{dependency}
+\end{X}
+
+
+\end{document}
+
+
diff --git a/templates/latex/example.bib b/templates/latex/example.bib
new file mode 100644
index 0000000..b48c8df
--- /dev/null
+++ b/templates/latex/example.bib
@@ -0,0 +1,7 @@
+@booklet{goecke,
+ address = {Wiesbaden},
+ author = {Goecke, R.},
+ title = {Kommunikation von F{\"u}hrungskr{\"a}ften. Fallstudien zur Medienanwendung im oberen Management},
+ year = {1997}
+}
+
diff --git a/templates/latex/example_slides/Makefile b/templates/latex/example_slides/Makefile
new file mode 100644
index 0000000..c405d73
--- /dev/null
+++ b/templates/latex/example_slides/Makefile
@@ -0,0 +1,6 @@
+all:
+ pdflatex slides.tex; pdflatex slides.tex; pdflatex slides.tex
+
+clean:
+ rm *.aux *.bbl *.blg *.log *.nav *.out *.snm *.toc inc/*.aux
+
diff --git a/templates/latex/example_slides/slides.tex b/templates/latex/example_slides/slides.tex
new file mode 100644
index 0000000..646185d
--- /dev/null
+++ b/templates/latex/example_slides/slides.tex
@@ -0,0 +1,51 @@
+% slides.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass{beamer}
+
+\mode
+% YYYY-MM-DD
+\documentclass{tfbrief-invoice}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage[ngerman]{babel}
+\usepackage[german]{invoice}
+\usepackage{microtype}
+
+\usepackage{color}
+\usepackage{hyperref}
+\definecolor{darkblue}{rgb}{0,0,.5}
+\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue, menucolor=darkblue, pagecolor=darkblue, urlcolor=darkblue}
+
+\settowidth{\fromwidth}{FIXME}
+\fromname{Patrick Simianer}
+\fromstreet[]{FIXME}
+\fromcity[]{FIXME}
+\fromcitycode{FIXME}
+\frommobile{FIXME}
+\fromemail{p@simianer.de}
+
+\toname{Bundesamt für Frühstücksflocken\\ z.\,Hd. Frau Mahlzahn}
+\tostreet{An der Spree 3}
+\tocity{Berlin}
+\tocitycode{10176}
+
+\date{\today}
+\subject{Rechnungsnummer: YYYY-NN}
+\greeting{Sehr geehrte Frau Mahlzahn,}
+\leave{Vielen Dank und mit freundlichen Grüßen}
+
+\begin{document}
+
+
+\begin{letter}
+
+anbei die Rechnung f"ur das FIXME. F"ur die Versteuerung bin ich selbst verantwortlich. Ich bin Kleinunternehmer nach \S19 Umsatzsteuergesetz.\\
+Meine Steuernummer lautet \textbf{FIXME}.
+
+Bitte "uberweisen Sie die auf der n"achsten Seite aufgef"uhrte Gesamtsumme auf folgendes Konto:\\
+\vspace{.5cm}
+\begin{tabular}{ll}
+ \sffamily\small Kontoinhaber: & \sffamily\small Patrick Simianer\\
+ \sffamily\small Kontonummer: & \sffamily\small FIXME\\
+ \sffamily\small Bankleitzahl: & \sffamily\small FIXME\\
+ \sffamily\small Bankverbindung: & \sffamily\small FIXME
+\end{tabular}
+
+\vspace{-2cm}
+
+\small
+\begin{invoice}{Euro}{0}
+ \ProjectTitle{}
+ \Fee{FIXME}{25,00}{1}
+\end{invoice}
+\normalsize
+
+\end{letter}
+
+
+\end{document}
+
diff --git a/templates/latex/plain-letter.tex b/templates/latex/plain-letter.tex
new file mode 100644
index 0000000..2971021
--- /dev/null
+++ b/templates/latex/plain-letter.tex
@@ -0,0 +1,34 @@
+% plain-letter.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass{scrartcl}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern,eulervm}
+\usepackage[ngerman]{babel}
+\parindent0pt
+
+\begin{document}
+
+
+Patrick Simianer\\
+FIXME\\
+FIXME
+\vspace{1.5cm}
+
+
+Sehr geehrte Damen und Herren,\\
+
+hiermit kuendige ich etwas fristgerecht zum 15.04.2012.\\
+
+Vielen Dank\\
+\vspace{2cm}
+
+
+Patrick Simianer
+
+
+
+\end{document}
+
diff --git a/templates/latex/plain.tex b/templates/latex/plain.tex
new file mode 100644
index 0000000..5ac215c
--- /dev/null
+++ b/templates/latex/plain.tex
@@ -0,0 +1,19 @@
+% plain.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass{scrartcl}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern,eulervm}
+\usepackage[ngerman]{babel}
+
+
+\begin{document}
+
+
+asdf
+
+
+\end{document}
+
diff --git a/templates/latex/report.tex b/templates/latex/report.tex
new file mode 100644
index 0000000..cb7cc2e
--- /dev/null
+++ b/templates/latex/report.tex
@@ -0,0 +1,46 @@
+% report.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass[a4paper, 11pt]{scrreprt}
+%\typearea{12}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern,eulervm}
+\usepackage[ngerman]{babel}
+\usepackage[numbers,square]{natbib}
+\usepackage{color}
+%\usepackage{ulem} %debug
+\usepackage{microtype}
+
+\usepackage{hyperref}
+ \definecolor{darkblue}{rgb}{0,0,.5}
+ \hypersetup{colorlinks=true, linkcolor=darkblue} %'debug'
+ %\hypersetup{colorlinks=false, pdfborder={0 0 0}}
+
+\title{\Huge Der Titel der Arbeit}
+\author{*arbeit von Patrick Simianer\\ BetreuerIn: Die Maus\\ \\ Institut für Computerlinguistik\\ \begin{small}Institut für allgemeine und angewandte Sprach- und Kulturwissenschaft\end{small}\\\begin{small}Ruprecht-Karls-Universität Heidelberg\end{small}}
+\date{\textsf{\small{\today}}}
+
+\begin{document}
+
+
+\maketitle
+
+\pagenumbering{roman}
+\tableofcontents
+\newpage
+\pagenumbering{arabic}
+
+\chapter{Chapter}
+\section{Section}
+\subsection{Subsection}
+bla bla s. \cite{goecke}
+
+\bibliographystyle{plainnat}
+\bibliography{example}
+\thispagestyle{empty}
+
+
+\end{document}
+
diff --git a/templates/latex/tfbrief.tex b/templates/latex/tfbrief.tex
new file mode 100644
index 0000000..872bdeb
--- /dev/null
+++ b/templates/latex/tfbrief.tex
@@ -0,0 +1,55 @@
+% tfbrief.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass{tfbrief}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage[ngerman]{babel}
+\usepackage{microtype}
+
+\usepackage{color}
+\usepackage{hyperref}
+\definecolor{darkblue}{rgb}{0,0,.5}
+\hypersetup{pdftex=true, colorlinks=true, breaklinks=true, linkcolor=darkblue, menucolor=darkblue, pagecolor=darkblue, urlcolor=darkblue}
+
+
+\settowidth{\fromwidth}{FIXME}
+\fromname{Patrick Simianer}
+\fromstreet[]{FIXME}
+\fromcity[]{FIXME}
+\fromcitycode{FIXME}
+\frommobile{FIXME}
+\fromemail{p@simianer.de}
+
+\toname{Bundesamt für Frühstücksflocken\\ z.\,Hd. Frau Mahlzahn}
+\tostreet{An der Spree 3}
+\tocity{Berlin}
+\tocitycode{10176}
+
+\date{\today}
+\subject{Untersuchung von Frühstücksflocken\\Aktenzeichen: 58636-AZG -- HA\,3\\Bearbeiter: Frau Mahlzahn}
+\greeting{Sehr geehrte Frau Mahlzahn,}
+\leave{Mit freundlichen Grüßen}
+
+\begin{document}
+
+
+\begin{letter}
+anbei erhalten Sie wie im Schreiben vom 21.02.2006 angefragt die bisherigen Unter\-suchungs\-ergebnisse für die Frühstücksflocken der Marke \glqq{}Roter Morgen\grqq, hergestellt von den „Nahrungs\-mittel\-werke Ernst Mosch“ in Castrup-Brauxel.
+
+Nach den bisherigen Ergebnissen können die Frühstücksflocken nicht für den Verzehr empfohlen werden.
+ Die untersuchten Proben weisen einen Knusprigkeitsgrad von $1,7$ auf und liegen damit unter dem gesetzlichen Grenzwert von $3,2$.
+
+Ich hoffe, diese Informationen sind Ihnen für Ihre Arbeit behilflich.
+\end{letter}
+
+\begin{attachment}
+ \item Vorläufige Untersuchungsergebnisse (mit Durchschlag auf blauem Papier)
+ \item blubb
+\end{attachment}
+
+
+\end{document}
+
diff --git a/templates/latex/tightpage.tex b/templates/latex/tightpage.tex
new file mode 100644
index 0000000..96f7879
--- /dev/null
+++ b/templates/latex/tightpage.tex
@@ -0,0 +1,21 @@
+% tightpage.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass{article}
+
+\usepackage[graphics,tightpage,active]{preview}
+\usepackage{tikz}
+\PreviewEnvironment{X}
+\newlength{\imagewidth}
+\newlength{\imagescale}
+
+\begin{document}
+
+
+\begin{X}
+%input
+\end{X}
+
+
+\end{document}
+
diff --git a/templates/latex/tree.tex b/templates/latex/tree.tex
new file mode 100644
index 0000000..6793cd4
--- /dev/null
+++ b/templates/latex/tree.tex
@@ -0,0 +1,24 @@
+% tree.tex
+% Patrick Simianer
+% YYYY-MM-DD
+\documentclass{article}
+
+\usepackage[graphics,tightpage,active]{preview}
+\usepackage{tikz}
+\PreviewEnvironment{tree}
+\newlength{\imagewidth}
+\newlength{\imagescale}
+\usepackage{tikz}
+\usepackage{tikz-qtree}
+
+\begin{document}
+
+
+\begin{tree}
+\Tree [.S [.S [.S [.S [.S [.S [.S [.S [.S [.X it s a ] ] [.X metaphor , the ] ] [.X [.X over and over again ] , ] ] [.X and every time , ] ] [.X it makes ] ] [.X the big picture ] ] [.X greater than the sum of ] ] [.X the ] ] [.X pieces of [.X data ] ] ]
+\end{tree}
+
+
+\end{document}
+
+
diff --git a/templates/latex/word-alignment-ibm.tex b/templates/latex/word-alignment-ibm.tex
new file mode 100644
index 0000000..dac5d6a
--- /dev/null
+++ b/templates/latex/word-alignment-ibm.tex
@@ -0,0 +1,24 @@
+\documentclass{article}
+\usepackage{pst-node}
+\def\W#1#2{\rnode{#1}{#2}\hfill}
+\begin{document}
+
+\W{a}{The} \W{b}{proposal} \W{c}{will} \W{d}{not} \W{e}{now} \W{f}{be} \W{g}{implemented}
+
+\vspace{4cm}
+\W{A}{Les} \W{B}{propositions} \W{C}{nes} \W{D}{seront} \W{E}{pas} \W{F}{mises} \W{G}{en}
+ \W{H}{application} \W{I}{maintenant}
+\psset{nodesep=5pt}
+\ncline{a}{A}\ncline{b}{B}
+\ncline{c}{D}
+\ncdiag[border=4pt,angleA=-90,angleB=90,arm=5mm]{d}{C}
+\ncput[npos=1.5]{\rnode{dC}{}}
+\ncdiag[nodesepA=0pt,armB=5mm,angleA=-55,angleB=90]{dC}{E}
+\ncdiag[angleA=-90,angleB=90,arm=5mm]{e}{I}
+\ncdiag[border=4pt,angleA=-90,angleB=90,arm=5mm]{g}{F}
+\ncput[npos=1.8]{\rnode{gF}{}}
+\ncdiag[nodesepA=0pt,armB=5mm,angleA=-75,angleB=90]{gF}{G}
+\ncdiag[nodesepA=0pt,armB=5mm,angleA=-20,angleB=90]{gF}{H}
+\ncdiagg[angleA=-90,angleB=90,nodesepB=7mm]{f}{f}
+
+\end{document}
diff --git a/templates/latex/word-alignment.tex b/templates/latex/word-alignment.tex
new file mode 100644
index 0000000..b836cfc
--- /dev/null
+++ b/templates/latex/word-alignment.tex
@@ -0,0 +1,30 @@
+% Note: works only for XeLaTeX.
+\documentclass[border=1mm]{standalone}
+\usepackage{tikz}
+\usepackage{xltxtra}
+
+\begin{document}
+\begin{tikzpicture}[scale=0.7]
+ \tikzstyle{vertex}=[rectangle,rounded corners, fill=red!80!white,draw=red!70!black,
+ minimum size=0.6cm,line width=1]
+ \draw[step=1cm,draw=gray] (0,0) grid (5,7);
+
+ \foreach \y/\f in {0/a, 1/b, 2/c, 3/d, 4/e, 5/f, 6/g} {
+ \node[left] at (-.2,6.5-\y) {{\raggedleft \f }};
+ }
+
+ \foreach \x/\e in {0/she, 1/broke, 2/the, 3/school, 4/windows} {
+ \node[rotate=60,right] at (\x+.4,7.2) {{\raggedright \e}};
+ }
+
+ % draw word alignment
+ \foreach \x/\y in {0/0, 1/6, 3/2, 4/4} {
+ \node[vertex] at (\x+.5, 6.5-\y) {};
+ }
+\end{tikzpicture}
+\end{document}
+
+%%% Local Variables:
+%%% mode: latex
+%%% TeX-master: t
+%%% End:
diff --git a/templates/plainc.c b/templates/plainc.c
new file mode 100644
index 0000000..26c7a80
--- /dev/null
+++ b/templates/plainc.c
@@ -0,0 +1,17 @@
+/*
+ * template.c
+ *
+ * Patrick Simianer
+ * YYYY-MM-DD
+ */
+
+#include
+YYYY-MM-DD
+"""
+
+import sys
+
+
+def main():
+ try:
+ arg = sys.argv[1]
+ except IndexError:
+ sys.stderr.write('Usage: %s
+# YYYY-MM-DD
+
+STDIN.set_encoding 'utf-8'
+STDOUT.set_encoding 'utf-8'
+STDERR.set_encoding 'utf-8'
+STDOUT.sync = true
+STDERR.sync = true
+
+
+def fun(arg)
+ puts 'Hello, World!'
+end
+
+
+if __FILE__ == $0
+ arg = ARGV[0]
+ fun(arg)
+end
+
diff --git a/templates/stylesheet.css b/templates/stylesheet.css
new file mode 100644
index 0000000..dca7593
--- /dev/null
+++ b/templates/stylesheet.css
@@ -0,0 +1,30 @@
+/*
+ * template.css
+ *
+ * Patrick Simianer
+ * YYYY-MM-DD
+ */
+
+* {
+ margin:0;
+ padding:0
+}
+
+/* by tag */
+a { text-decoration:underline }
+a:hover { text-decoration:none }
+abbr { border-bottom:1px dotted #000 }
+del { text-decoration:line-through }
+
+/* by class */
+.small { font-size:80% }
+.large { font-size:120% }
+.right { text-align:right }
+.center { text-align:center }
+.ok { color:green }
+.warn { color:yellow }
+.err { color:red }
+
+/* by id */
+
+
--
cgit v1.2.3