diff options
author | pks <pks@pks.rocks> | 2021-01-23 11:24:30 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-01-23 11:24:30 +0100 |
commit | e8d6464f5c834b2ea801ac596ee1d31791f2c2fd (patch) | |
tree | 40603505815b83a2043bd89da6ac0660db3bb982 /templates | |
parent | 6423f685e82168ad26df06c9701af89488d6bdec (diff) | |
parent | af8617eeff5e40df0610b00214c20095654d63a6 (diff) |
Merge remote-tracking branch 'templates/master'
Diffstat (limited to 'templates')
27 files changed, 865 insertions, 0 deletions
diff --git a/templates/cplusplus.cc b/templates/cplusplus.cc new file mode 100644 index 0000000..bddbfd2 --- /dev/null +++ b/templates/cplusplus.cc @@ -0,0 +1,19 @@ +/* + * template.cpp + * + * Patrick Simianer <p@simianer.de> + * YYYY-MM-DD + */ + +#include <iostream> + +using namespace std; + + +int main(int argc, char const* argv[]) +{ + cout << "Hello, World!" << endl; + + return 0; +} + diff --git a/templates/header.h b/templates/header.h new file mode 100644 index 0000000..7e54f02 --- /dev/null +++ b/templates/header.h @@ -0,0 +1,17 @@ +/* + * header.h + * + * Patrick Simianer <p@simianer.de> + * YYYY-MM-DD + */ + + +#ifndef UNTITLED_H +#define UNTITLED_H + +#include <iostream> + + + +#endif + diff --git a/templates/html5.html b/templates/html5.html new file mode 100644 index 0000000..71c2bfb --- /dev/null +++ b/templates/html5.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<!-- YYYY-MM-DD --> +<html> +<head> + <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> + <meta http-equiv='Content-Language' content='de_DE' /> + <meta name='author' content='Patrick Simianer' /> + <meta name='robots' content='index, follow' /> + <meta name='revisit-after' content='15 days' /> + <meta name='description' content='' /> + <meta name='keywords' content='' /> + + <title>html5 template</title> + + <link rel='stylesheet' type='text/css' href='stylesheets/styles.css' /> + <link rel='shortcut icon' type='image/png' href='images/favicon.png' /> + + <script type='text/javascript' src='javascripts/untitled.js'></script> +</head> + +<body> + + + +</body> +</html> + diff --git a/templates/latex/Makefile b/templates/latex/Makefile new file mode 100644 index 0000000..d6d4a1c --- /dev/null +++ b/templates/latex/Makefile @@ -0,0 +1,15 @@ +beamer.pdf: beamer.tex example.bib + pdflatex beamer; bibtex beamer; pdflatex beamer; pdflatex beamer + +report.pdf: report.tex example.bib + pdflatex report; bibtex report; pdflatex report; pdflatex report + +%.pdf: %.tex + pdflatex $< + +word-alignment.pdf: word-alignment.tex + xelatex word-alignment.tex + +clean: + rm -f *.aux *.bbl *.blg *.log *.nav *.out *.snm *.toc *.pdf + diff --git a/templates/latex/README.md b/templates/latex/README.md new file mode 100644 index 0000000..d385c99 --- /dev/null +++ b/templates/latex/README.md @@ -0,0 +1,3 @@ +* word-alignment.tex https://gist.github.com/tetsuok/2979324 +* word-alignment-ibm.tex http://tex.stackexchange.com/questions/25436/any-nice-packages-for-word-alignment + diff --git a/templates/latex/article-title.tex b/templates/latex/article-title.tex new file mode 100644 index 0000000..e0f1b77 --- /dev/null +++ b/templates/latex/article-title.tex @@ -0,0 +1,97 @@ +% article1.tex +% Patrick Simianer <p@simianer.de> +% 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 <iostream> + +int main (int argc, char * const argv[]) { + // und noch einer! + std::cout << "Hello, World!\n"; + return 0; +} +\end{lstlisting} + +\begin{tikzpicture} +\Tree [.S + [.NP + [.Det \textit{The} ] + [.N \textit{studio} ] + ] + [.VP + [.V \textit{offers} ] + [.N \textit{sound effects} ] + ] + ] +\end{tikzpicture} + + +\end{document} + diff --git a/templates/latex/article.tex b/templates/latex/article.tex new file mode 100644 index 0000000..c199be6 --- /dev/null +++ b/templates/latex/article.tex @@ -0,0 +1,52 @@ +% article.tex +% Patrick Simianer <p@simianer.de> +% 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 <iostream> + +int main (int argc, char * const argv[]) { + // und noch einer! + std::cout << "Hello, World!\n"; + return 0; +} +\end{lstlisting} + + +\end{document} + diff --git a/templates/latex/beamer.tex b/templates/latex/beamer.tex new file mode 100644 index 0000000..f5af46c --- /dev/null +++ b/templates/latex/beamer.tex @@ -0,0 +1,162 @@ +% beamer.tex
+% Patrick Simianer <p@simianer.de>
+% YYYY-MM-DD
+\documentclass[ignorenonframetext]{beamer}
+
+\mode<presentation>
+{
+ \usecolortheme{dolphin}
+ \usefonttheme{professionalfonts}
+ \useinnertheme{circles}
+ \setbeamertemplate{sidebar right} {
+ \vskip0.1cm
+ \llap{\insertlogo\hskip0.1cm}
+ \vskip2pt
+ \vskip2pt
+ }
+ \setbeamertemplate{footline}[frame number]
+}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[ngerman]{babel}
+\usepackage{framed}
+\usepackage{microtype}
+
+\AtBeginSection[] {
+ \begin{frame}
+ \tableofcontents[currentsection]
+ \end{frame}
+}
+
+\usepackage[scaled]{helvet}
+\usepackage{helvet,eulervm}
+\renewcommand{\ttdefault}{lmtt}
+
+\title[ktitel]{Autor(en)\\ Titel}
+\author{Patrick~Simianer}
+\date{Titel\\ Ort}
+
+\begin{document}
+
+
+\frame[plain]{\titlepage}
+\begin{frame}{Gliederung}\tableofcontents\end{frame}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Nur ein Test
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Pause, Abblenden}
+
+
+\subsection{Pause}
+
+\begin{frame}{Test von Pause}
+
+ \begin{itemize}
+ \item Motivation
+ .....
+ \pause
+ \item Experiment
+ \begin{itemize}
+ \item Aufbau des Experiments
+ .....
+ \end{itemize}
+ \end{itemize}
+\end{frame}
+
+
+\subsection{Abblenden}
+
+\begin{frame}{Abblenden}
+
+ \begin{itemize}
+ \item<1-> Normal LaTeX class.
+ \item<2-> Easy overlays.
+ \item<3-> No external programs needed.
+ \end{itemize}
+\end{frame}
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Nur ein test
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Nur ein Test}
+
+
+\subsection{Test Blocks}
+
+\begin{frame}{Test Blocks}
+
+ \begin{alert}{Titel des Blocks}
+ Dies steht in einem Block
+ \end{alert}
+
+ \begin{example}{Titel des 2. Blocks}
+ Dies steht in einem Block\\ Das auch ...
+ \end{example}
+
+ \begin{block}{Titel des 2. Blocks}
+ Dies steht in einem Block\\ Das auch ...
+ \end{block}
+
+ \begin{framed}
+ \begin{block}{Titel des 2. Blocks}
+ Dies steht in einem Block\\ Das auch ...
+ \end{block}
+ \end{framed}
+\end{frame}
+
+
+\subsection{Nochmal Blocks}
+
+\begin{frame}{Nochmal Blocks}
+
+ \begin{block}{Titel des Blocks}
+ Dies steht in einem Block\\ Das auch ...
+ \end{block}
+ \begin{block}{Titel des 2. Blocks}
+ Dies steht in einem Block\\ Das auch ...
+ \end{block}
+\end{frame}
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Verbatim
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Verbatim}
+
+
+\begin{frame}[fragile]{Verbatim}
+\begin{verbatim}
+a
+b
+c
+d
+e
+f
+g
+\end{verbatim}
+\end{frame}
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Literatur
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{frame}[allowframebreaks]
+ \frametitle{Literatur}
+ \bibliographystyle{alpha}
+ \bibliography{example}
+ \nocite{*}
+\end{frame}
+
+
+\end{document}
+
diff --git a/templates/latex/dependency-tree.tex b/templates/latex/dependency-tree.tex new file mode 100644 index 0000000..55b4605 --- /dev/null +++ b/templates/latex/dependency-tree.tex @@ -0,0 +1,33 @@ +% dependency-tree.tex +% Patrick Simianer <p@simianer.de> +% 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..4a06a6c --- /dev/null +++ b/templates/latex/example_slides/Makefile @@ -0,0 +1,6 @@ +all: + pdflatex slides.tex; pdflatex slides.tex; pdflatex slides.tex + +clean: + rm -f *.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 <p@simianer.de>
+% YYYY-MM-DD
+\documentclass{beamer}
+
+\mode<presentation>
+{
+ \usecolortheme{dolphin}
+ \usefonttheme{professionalfonts}
+ \useinnertheme{circles}
+ \setbeamertemplate{sidebar right} {
+ \vskip0.1cm
+ \llap{\insertlogo\hskip0.1cm}
+ \vskip2pt
+ \vskip2pt
+ }
+ \setbeamertemplate{footline}[frame number]
+}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[english]{babel}
+\usepackage{framed}
+\usepackage{microtype}
+\usepackage{hyperref}
+
+\AtBeginSection[] {
+ \begin{frame}
+ \tableofcontents[currentsection]
+ \end{frame}
+}
+
+\usepackage[scaled]{helvet}
+\usepackage{helvet,eulervm}
+\renewcommand{\ttdefault}{lmtt}
+
+\title[Example]{Example Talk}
+\author{Patrick~Simianer}
+\date{ICL, Heidelberg University, Summer Term 2011/12}
+
+\begin{document}
+
+
+\frame[plain]{\titlepage}
+\begin{frame}{Outline}\tableofcontents\end{frame}
+
+%\include{inc/TODO}
+
+
+\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 <p@simianer.de> +% 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 <p@simianer.de> +% 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 <p@simianer.de> +% 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/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 <p@simianer.de> +% 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 <p@simianer.de> +% 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..16bb550 --- /dev/null +++ b/templates/plainc.c @@ -0,0 +1,17 @@ +/* + * template.c + * + * Patrick Simianer <p@simianer.de> + * YYYY-MM-DD + */ + +#include <stdio.h> + + +int main(int argc, char** argv) +{ + printf("Hello, World!\n"); + + return 0; +} + diff --git a/templates/poster/dfg.pdf b/templates/poster/dfg.pdf Binary files differnew file mode 100644 index 0000000..95bd3f9 --- /dev/null +++ b/templates/poster/dfg.pdf diff --git a/templates/poster/hdu.pdf b/templates/poster/hdu.pdf Binary files differnew file mode 100644 index 0000000..3210b15 --- /dev/null +++ b/templates/poster/hdu.pdf diff --git a/templates/poster/poster.pdf b/templates/poster/poster.pdf Binary files differnew file mode 100644 index 0000000..a6880e5 --- /dev/null +++ b/templates/poster/poster.pdf diff --git a/templates/poster/poster.tex b/templates/poster/poster.tex new file mode 100644 index 0000000..1cec962 --- /dev/null +++ b/templates/poster/poster.tex @@ -0,0 +1,84 @@ +\documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=10mm, + blockverticalspace=10mm, colspace=10mm, subcolspace=5mm]{tikzposter} + +\usepackage[utf8]{inputenc} + +\usetheme{Autumn} +\usecolorstyle{Germany} + +\title{\textsf{Title}} +\author{\textsf{Author 1$^\dag$, Author 2$^{\dag*}$, Auhtor 3$^{\dag\ddag}$}} +\institute{\large\textsf{Department$^\dag$ \& IWR$^\ddag$, University, Country \\ + $^*$ Other university, other Country}} + +% logos +% source: http://tex.stackexchange.com/questions/263563/add-logos-beyond-the-title-tikzposter/263564 +\makeatletter +\newcommand\insertlogoi[2][]{\def\@insertlogoi{\includegraphics[#1]{#2}}} +\newcommand\insertlogoii[2][]{\def\@insertlogoii{\includegraphics[#1]{#2}}} +\newlength\LogoSep +\setlength\LogoSep{0pt} +\insertlogoi[width=13cm]{hdu.pdf} +\insertlogoii[width=13cm]{dfg.pdf} +\renewcommand\maketitle[1][]{ % #1 keys + \normalsize + \setkeys{title}{#1} + % Title dummy to get title height + \node[transparent,inner sep=\TP@titleinnersep, line width=\TP@titlelinewidth, anchor=north, minimum width=\TP@visibletextwidth-2\TP@titleinnersep] + (TP@title) at ($(0, 0.5\textheight-\TP@titletotopverticalspace)$) {\parbox{\TP@titlewidth-2\TP@titleinnersep}{\TP@maketitle}}; + \draw let \p1 = ($(TP@title.north)-(TP@title.south)$) in node { + \setlength{\TP@titleheight}{\y1} + \setlength{\titleheight}{\y1} + \global\TP@titleheight=\TP@titleheight + \global\titleheight=\titleheight + }; + + % Compute title position + \setlength{\titleposleft}{-0.5\titlewidth} + \setlength{\titleposright}{\titleposleft+\titlewidth} + \setlength{\titlepostop}{0.5\textheight-\TP@titletotopverticalspace} + \setlength{\titleposbottom}{\titlepostop-\titleheight} + + % Title style (background) + \TP@titlestyle + + % Title node + \node[inner sep=\TP@titleinnersep, line width=\TP@titlelinewidth, anchor=north, minimum width=\TP@visibletextwidth-2\TP@titleinnersep] + at (0,0.5\textheight-\TP@titletotopverticalspace) + (title) + {\parbox{\TP@titlewidth-2\TP@titleinnersep}{\TP@maketitle}}; + + \node[inner sep=0pt,anchor=west] + at ([xshift=-\LogoSep]title.west) + {\@insertlogoi}; + + \node[inner sep=0pt,anchor=east] + at ([xshift=\LogoSep]title.east) + {\@insertlogoii}; + + % Settings for blocks + \normalsize + \setlength{\TP@blocktop}{\titleposbottom-\TP@titletoblockverticalspace} +} +\makeatother +% end logos + +\begin{document} + +\maketitle + +\begin{columns} + \column{.5} + \begin{block}{Left column} + left column + \end{block} + \column{.5} + \begin{block}{Right column} + Right column + \end{block} +\end{columns} + +\end{document} + +\endinput + diff --git a/templates/python.py b/templates/python.py new file mode 100644 index 0000000..9bba65e --- /dev/null +++ b/templates/python.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +""" +template.py +bla bla + +Patrick Simianer <p@simianer.de> +YYYY-MM-DD +""" + +import sys + + +def main(): + try: + arg = sys.argv[1] + except IndexError: + sys.stderr.write('Usage: %s <arg>\n'%sys.argv[0]) + sys.exit(1) + +if __name__ == '__main__': + main() + diff --git a/templates/ruby.rb b/templates/ruby.rb new file mode 100644 index 0000000..dadd656 --- /dev/null +++ b/templates/ruby.rb @@ -0,0 +1,23 @@ +#!/usr/bin/env ruby + +# template.rb +# Patrick Simianer <p@simianer.de> +# 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 <p@simianer.de> + * 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 */ + + |