diff options
Diffstat (limited to 'templates/latex')
-rw-r--r-- | templates/latex/Makefile | 15 | ||||
-rw-r--r-- | templates/latex/README.md | 3 | ||||
-rw-r--r-- | templates/latex/article-title.tex | 97 | ||||
-rw-r--r-- | templates/latex/article.tex | 52 | ||||
-rw-r--r-- | templates/latex/beamer.tex | 162 | ||||
-rw-r--r-- | templates/latex/dependency-tree.tex | 33 | ||||
-rw-r--r-- | templates/latex/example.bib | 7 | ||||
-rw-r--r-- | templates/latex/example_slides/Makefile | 6 | ||||
-rw-r--r-- | templates/latex/example_slides/slides.tex | 51 | ||||
-rw-r--r-- | templates/latex/plain-letter.tex | 34 | ||||
-rw-r--r-- | templates/latex/plain.tex | 19 | ||||
-rw-r--r-- | templates/latex/report.tex | 46 | ||||
-rw-r--r-- | templates/latex/tightpage.tex | 21 | ||||
-rw-r--r-- | templates/latex/tree.tex | 24 | ||||
-rw-r--r-- | templates/latex/word-alignment-ibm.tex | 24 | ||||
-rw-r--r-- | templates/latex/word-alignment.tex | 30 |
16 files changed, 624 insertions, 0 deletions
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: |