- Installation with Emacs
- Version & Timestamp
- Document templates
- Bundled settings
- Package settings & examples
- Package definitions
- TLmacros
- Text snippets
- Makefile
- latexmk
- Local variables
In order to compile these templates, press C-c C-v t
, or evaluate the following source block (with C-c C-c
):
(org-babel-tangle)
(format-time-string "%Y-%m-%d %H:%M:%S" (current-time))
v0.9.1
%% TimmLiTeX
%% Version: <<template-version>>
%% Last modified: <<timestamp-elisp()>>
<<version×tamp-latex>>
\documentclass[
11pt,
bibliography=totoc,
numbers=noenddot,
]{scrbook}
\RequirePackage{etoolbox}
\newbool{draftmode}
\booltrue{draftmode}
\usepackage{datetime}
<<basic-text-settings-input>>
%==============================
% Optional packages & settings
%------------------------------
%% Language
\AtBeginDocument{
\selectlanguage{german} % which language is available depends on how babel is loaded
}
% <<TLmacros-input>> % the content of TLmacros.tex goes here
%% Commenting
<<todonotes-settings-input>>
<<optional-settings>>
%==============================
% Title
%------------------------------
\subject{Typ der Abschlussarbeit}
\title{Titel}
\author{{\LARGE Max Mustermann} \\
\\
Matrikelnummer: 123456789\\
\url{[email protected]}\\
Studiengang: BSc Neue Ätherwissenschaften \\
Eberhard-Karls-Universität Tübingen\\}
\date{\ddmmyyyydate\today, \currenttime}
\publishers{Betreuerteam \\ Prof. Dr. Martina Musterfrau}
%% Uncomment the following line for removing the watermark
% \boolfalse{draftmode}
\ifbool{draftmode}{
\usepackage{draftwatermark}
\SetWatermarkScale{1}
\AtBeginDocument{\SetWatermarkText{DRAFT}}
}{}
%==============================
% Document start
%------------------------------
\begin{document}
\maketitle
\frontmatter
\tableofcontents
\mainmatter
\input{abschlussarbeit-examples}
\chapter{Blindtext}
\lipsum
\section{Blindtext section}
\lipsum
%------------------------------
% Document end
%==============================
\insertBib
\chapter*{Erklärung}
<<selbständigkeitserklärung>>
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
<<book-examples>>
#+TITLE: Title of paper
#+AUTHOR: John Doe (Elfenbeinturm, Fantasien)
:Settings:
#+FILETAGS: chooseTag
#+CATEGORY: chooseCategory
#+DATE:
#+STARTUP: nohideblocks
#+LANGUAGE: en
#+OPTIONS: H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t ':t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LATEX_CLASS: tl-abstract
#+LATEX_CLASS_OPTIONS: [<<abstract-options>>]
#+LATEX_COMPILER: pdflatex
#+LATEX_HEADER: <<abstract-settings>>
#+LATEX_HEADER: % <<TLmacros-input>>>
# Just mention the link to the references file [[addbibresource:references.bib]] in order to make it available to org-ref but not override the default bibliography which is helpful when looking for references which are not yet included in the local bibliography.
:end:
* Paragraph title
* References
#+BEGIN_EXPORT latex
{\tiny
\printbibliography[heading=none]
}
#+END_EXPORT
* COMMENT org-mode settings
** Installation of =tl-abstract=
Remember to first add the class to the set of known classes (in =init.el=).
#+BEGIN_SRC emacs-lisp :exports none
(add-to-list 'org-latex-classes
'("tl-abstract"
"\\documentclass{article}
[NO-DEFAULT-PACKAGES]"
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+END_SRC
** Local Variables
# Local variables:
# coding: utf-8
# org-latex-with-hyperref: nil
# org-latex-prefer-user-labels: t
# end:
<<version×tamp-latex>>
\documentclass[
<<abstract-options>>
]{article}
<<abstract-settings>>
%==============================
% Optional packages & settings
%------------------------------
% <<TLmacros-input>>
<<abstract-body>>
12pt,a4paper
<<basic-text-settings-input>>
\usepackage[left=25mm, right=25mm, top=25mm, bottom=25mm, noheadfoot]{geometry}
\pagenumbering{gobble}
\PassOptionsToPackage{maxbibnames=1,maxcitenames=1,firstinits=true}{biblatex}
\RequirePackage{xspace}
\defbibenvironment{bibliography}{\noindent}{\unspace}{\xspace$\bullet$\xspace}
\makeatletter
\renewcommand\maketitle{
~\vspace{-1.1cm}\newline
{\raggedright
\renewcommand{\baselinestretch}{1.2}\selectfont
{\bfseries\large\@title}\\[2ex]
{\large\@author}\\[2ex]
}
}
\makeatother
%==============================
% Title
%------------------------------
\author{Max Mustermann (Affiliation)}
\title{Title}
%==============================
% Document start
%------------------------------
\begin{document}
\maketitle
<<abstract-examples>>
\paragraph{References}
{\tiny
\printbibliography[heading=none]
}
\end{document}
%------------------------------
% Document end
%==============================
\paragraph{Blindtext}
\lipsum
\paragraph{Citation example}
<<biblatex-citation-example>>
#+TITLE: Title of paper
#+AUTHOR: John Doe @@latex:\affiliation{Elfenbeinturm, Fantasien, \url{[email protected]}}@@
:Settings:
#+FILETAGS: chooseTag
#+CATEGORY: chooseCategory
#+DATE:
#+STARTUP: nohideblocks
#+LANGUAGE: en
#+OPTIONS: H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t ':t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LATEX_CLASS: tl-article
#+LATEX_CLASS_OPTIONS: [<<article-options>>]
#+LATEX_COMPILER: pdflatex
#+LATEX_HEADER: <<article-settings>>
#+LATEX_HEADER: % <<TLmacros-input>>
# Just mention the link to the references file [[addbibresource:references.bib]] in order to make it available to org-ref but not override the default bibliography which is helpful when looking for references which are not yet included in the local bibliography.
:end:
#+BEGIN_abstract
This is an abstract: @@latex:\lipsum[1]@@
#+END_abstract
* Introduction
Once upon a time ...
* List of references :ignore:
@@latex:\insertBib@@
* COMMENT org-mode settings
** Installation of =tl-article=
Remember to first add the class to the set of known classes (in =init.el=).
#+BEGIN_SRC emacs-lisp :exports none
(add-to-list 'org-latex-classes
'("tl-article"
"\\documentclass{scrartcl}
[NO-DEFAULT-PACKAGES]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")))
#+END_SRC
** Local Variables
# Local variables:
# coding: utf-8
# org-latex-with-hyperref: nil
# org-latex-prefer-user-labels: t
# end:
<<version×tamp-latex>>
\documentclass[
<<article-options>>
]{scrartcl}
<<article-settings>>
<<article-body>>
11pt,twoside
\RequirePackage{etoolbox}
\newbool{draftmode}
\booltrue{draftmode}
<<scrarticle-settings-input>>
<<basic-text-settings-input>>
%==============================
% Optional packages & settings
%------------------------------
%% Uncomment the following line for deactivating draftmode
% \boolfalse{draftmode} % Deactivate draftmode
\ifbool{draftmode}{
\usepackage[firstpageonly=true]{draftwatermark}
\SetWatermarkScale{1}
\AtBeginDocument{\SetWatermarkText{DRAFT}}
}{}
%% Language
\AtBeginDocument{
\selectlanguage{german} % which language is available depends on how babel is loaded
}
% <<TLmacros-input>>
%% Commenting
<<todonotes-settings-input>>
<<optional-settings>>
%==============================
% Title
%------------------------------
\title{Titel over two \newlineTitle lines}
\subject{Text type}
\author{Max Mustermann}
\affiliation{Affiliation, \url{[email protected]}}
%==============================
% Document start
%------------------------------
\begin{document}
\maketitle
\begin{abstract}%
This is an abstract: \lipsum[1]
\end{abstract}
% TODO
\input{article-examples}
\section{Blindtext}
\lipsum
%------------------------------
% Document end
%==============================
\insertBib
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
\section{Information about this template}
<<readme>>
\section{Examples}
\subsection{Citation}
<<biblatex-citation-example>>
\subsection{Code listings}
<<listings-example>>
\subsection{AVM}
<<langsci-avm-example>>
\subsection{Linguistic examples}
<<linguistic-example>>
\subsection{Math formulae}
<<math-example>>
\subsection{Tables}
<<tabular-example>>
\subsection{Todonotes}
<<todonotes-example>>
\subsection{Trees}
<<forest-example>>
A LaTeX class for producing slides.
#+TITLE: Beamer slides
#+AUTHOR: John Doe
#+SUBTITLE: Some subtitle
#+FILETAGS: research
:Settings:
# #+DATE:
# #+BEAMER_HEADER: \date[]{}
# #+BEAMER_HEADER: \institute[]{}
# #+BEAMER_HEADER: \titlegraphic{\includegraphics[height=1cm]{path/to/picture}} % on title slide
#+BEAMER_HEADER: \RequirePackage{lipsum}
#+BEAMER_HEADER: \titlegraphic{{\rmfamily \lipsum}}
#+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t ':t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+STARTUP: beamer
#+STARTUP: hideblocks content
#+LATEX_CLASS: beamer
#+LATEX_CLASS_OPTIONS: <<beamer-options-org>>
#+LATEX_COMPILER: pdflatex
#+LATEX_HEADER: <<beamer-settings-input>>
#+LATEX_HEADER: <<beamer-theme-settings>>
#+LATEX_HEADER: <<optional-settings>>
#+LATEX_HEADER: % <<TLmacros-input>>
#+LANGUAGE: en
# #+LATEX_HEADER: \AtBeginDocument{\selectlanguage{german}}
# Just mention the link to the references file [[addbibresource:references.bib]] in order to make it available to org-ref but not override the default bibliography which is helpful when looking for references which are not yet included in the local bibliography.
#+COLUMNS: %40ITEM %10TAGS %9BEAMER_act(Overlays) %4BEAMER_col(Col) %20BEAMER_opt(Options)
:end:
#+BEGIN_EXPORT latex
%\selectlanguage{german} % select german language for babel package
\newcommand{\mypause}{\pause}
\definecolor{myblue}{rgb}{0,0,0.70}
\definecolor{myred}{rgb}{0.8,0,0}
\definecolor{mydarkgreen}{rgb}{0,0.55,0}
\newcommand{\bsp}[1]{{\usebeamercolor[bg!90]{block title example}\itshape\bfseries #1}}
\newcommand{\term}[1]{{\usebeamercolor[fg!100]{math text displayed}\scshape\bfseries #1}}
\newcommand{\bspcolor}[1]{{\usebeamercolor[bg!90]{block title example}\bfseries #1}}
\AtBeginSection[]
{
\begin{frame}{Outline} % add <beamer> to remove this from handouts
\tableofcontents[
currentsection
]
\end{frame}
}
#+END_EXPORT
* First section
** First slide
* References :B_ignoreheading:
:PROPERTIES:
:BEAMER_env: ignoreheading
:END:
** References
:PROPERTIES:
:beamer_opt: allowframebreaks
:END:
\insertBib
* COMMENT org-mode settings
** Installation of special link types
Link type for typesetting linguistic examples:
#+BEGIN_SRC emacs-lisp
(org-link-set-parameters
"bsp"
:follow (lambda (path) (message "You clicked me."))
:export (lambda (path desc backend)
(cond
((eq backend 'latex)
(format "{\\bsp{%s}}" (or desc path)))
((eq 'html backend)
(format "<font color=\"blue\">%s</font>"
(or desc path)))))
:face '(:foreground "CornflowerBlue" :slant italic :weight bold )
:help-echo "This will be exported as example."
)
#+END_SRC
** Local Variables
# Local variables:
# coding: utf-8
# org-latex-with-hyperref: t
# org-latex-listings: listings
# end:
In order to position the \maketitle
command manually, you need to add # org-latex-title-command: ""
to the local variables.
% -*- coding: utf-8 -*-
<<version×tamp-latex>>
\documentclass[
<<beamer-options>>
]{beamer}
<<beamer-settings-input>>
%==============================
% Themes
%------------------------------
<<beamer-theme-settings>>
%==============================
% Optional packages & settings
%------------------------------
<<optional-settings>>
<<listings-settings>>
% <<TLmacros-input>>
\definecolor{myblue}{rgb}{0,0,0.70}
\definecolor{myred}{rgb}{0.8,0,0}
\definecolor{mydarkgreen}{rgb}{0,0.55,0}
\newcommand{\bsp}[1]{{\usebeamercolor[bg!90]{block title example}\itshape\bfseries #1}}
\newcommand{\term}[1]{{\usebeamercolor[fg!100]{math text displayed}\scshape\bfseries #1}}
\newcommand{\bspcolor}[1]{{\usebeamercolor[bg!90]{block title example}\bfseries #1}}
<<beamer-body>>
%==============================
% Title
%------------------------------
\title{Beamer Template}
\subtitle{Subtitle}
\author{Max Mustermann}
\institute[Inst.]{Institute/Affiliation}
\date{\today}
%\logo{\pgfimage[width=2cm,height=1cm]{logo-emmy}} % Logo on all slides (pdf,png,jpg,eps)
%\titlegraphic{\includegraphics[height=1cm]{path/to/picture}} % on title slide
%==============================
% Slides
%------------------------------
\begin{document}
\maketitle
% \begin{frame}[plain]
% \titlepage
% \end{frame}
%\frame{\titlepage}
%\frame{
%\frametitle{Table of contents}
% \tableofcontents
% [pausesections]
%}
%\AtBeginSection[]
%{
% \begin{frame}{Outline}
% \tableofcontents[
% currentsection
% ]
% \end{frame}
%}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{beamer-examples.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[plain,allowframebreaks]
\frametitle{}
\insertBib
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% eval: (TeX-run-style-hooks "beamer")
%%% End:
10pt, % 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt
% serif,
% table, % for table coloring
% draft,
% ngerman,
% handout, % remove overlays
compress,
xcolor={table,dvipsnames},
aspectratio=169,
[compress,xcolor={table,dvipsnames},10pt,aspectratio=169]
\input{beamer-settings}
<<version×tamp-latex>>
<<basic-pdflatex-settings>>
<<basic-misc-settings>>
%% Set ragged text
\usepackage{ragged2e}
\let\raggedright=\RaggedRight
<<biblatex-settings>>
<<textpos-settings>>
\begin{frame}
\frametitle{About the template}
<<readme>>
\end{frame}
\begin{frame}[fragile]
\frametitle{Inline highlighting}
This is an \bsp{inline example} included with \verb|\bsp|.
This is how \term{terminology} can be introduced with \verb|\term|.
\end{frame}
<<beamer-frames-example>>
<<beamer-blocks-example>>
<<beamer-overlays-example>>
<<beamer-columns-example>>
<<beamer-citations-example>>
\begin{frame}[fragile]
\frametitle{Linguistic examples}
<<linguistic-example>>
\end{frame}
\begin{frame}
\frametitle{Trees}
<<forest-example>>
\end{frame}
\begin{frame}
\frametitle{Overlays in Forest trees}
%% This example may cause problems together with TeX Live 2016
A TUCO derivation:\newline
\Forest{
[,phantom
[S,only=<+> [NP [N [I,lex]]]]
[S,only=<+>,--> [NP [N [I,lex]]]]
[S,only=<1-.> [V [wrote,lex]]]
[S,only=<+>
[NP [N [I,lex]]]
[V [wrote,lex]]]
[S,only=<+>,-->
[NP [N [I,lex]]]
[V [wrote,lex]]]
[S,only=<1-.> [NP [D [a,lex]]]]
[S,only=<+>
[NP [N [I,lex]]]
[V [wrote,lex]]
[NP [D [a,lex]]]]
[S,only=<+>,-->
[NP [N [I,lex]]]
[V [wrote,lex]]
[NP,--> [D [a,lex]]]]
[S,only=<1-.> [NP [N [novel,lex]]]]
[S,only=<+>
[NP [N [I,lex]]]
[V [wrote,lex]]
[NP
[D [a,lex]]
[N [novel,lex]]]]
[S,only=<+->,alert=<.>,c=0
[NP,c=1 [N [I,lex]]]
[V [wrote,lex]]
[NP,c=2
[D [a,lex]]
[N [novel,lex]]]]
]
}
\end{frame}
\begin{frame}
\frametitle{AVM}
<<langsci-avm-example>>
\end{frame}
% \begin{frame}
% \frametitle{IPA symbols}
% \input{examples/ipa.tex}
% \end{frame}
\begin{frame}
\frametitle{Math formulae}
<<math-example>>
\end{frame}
\begin{frame}
\frametitle{Tables}
<<tabular-example>>
\end{frame}
\begin{frame}
\frametitle{Blocks}
\begin{block}{Title of a block} % Titles may be left blank!
Body of a block
\end{block}
\begin{exampleblock}{Title of an exampleblock}
Body of an exampleblock
\end{exampleblock}
\begin{alertblock}{Title of an alertblock}
Body of an alertblock
\end{alertblock}
\end{frame}
\begin{frame}[fragile]
\frametitle{Citations}
% The following is a alist of available cite commands. See \url{https://ctan.space-pro.be/tex-archive/macros/latex/contrib/biblatex/doc/biblatex.pdf#subsection.3.9} for a more detailed description.
\begin{itemize}
% \item \verb|\nocite| \nocite{Bech:63}
\item \verb|\fullcite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \fullcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb|\footshortcite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \footshortcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb|\textcite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \textcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb|\parencite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \parencite[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\parencite*[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \parencite*[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\smartcite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \smartcite[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\footcite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \footcite[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\footfullcite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \footfullcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb|\supercite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \supercite[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\footcitetext[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \footcitetext[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\autocite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \autocite[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\cite[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \cite[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\cite*[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \cite*[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\citeauthor[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \citeauthor[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\citeauthor*[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \citeauthor*[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\citeurl[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \citeurl[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\citetitle[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \citetitle[<prenote>][<postnote>]{Nallapati:etal:16}
% \item \verb|\citeyear[<prenote>][<postnote>]{Nallapati:etal:16}| \newline \citeyear[<prenote>][<postnote>]{Nallapati:etal:16}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Columns}
\begin{columns}
\column{.55\textwidth}
First column
\pgfimage[width=\textwidth]{graphics/HHU-logo}
\column{.45\textwidth}
Second column
\begin{enumerate}
\item bla
\item blupp
\end{enumerate}
\end{columns}
\end{frame}
\begin{frame}[label=frameoptions]
\frametitle{The frame environment}
\hspace{-1em}{\tt $\backslash$begin\{frame\}[OVERLAY OPTION][OPTIONS]\{Title\}\{Subtitle\}}
\bigskip
{\bf OVERLAY OPTION:}
\begin{itemize}
\item {\tt <+->}
\end{itemize}
\bigskip
{\bf OPTIONS:}
\begin{itemize}
\item {\tt b,c,t}: frame orientation
\item {\tt squeeze}: minimizes vertical margins
\item {\tt plain}: suppresses title, header and sidebar
\item {\tt label=name}: makes a frame reusable with {\tt $\backslash$againframe\{name\}} and can be used with hyperlinks.
\item {\tt allowframebreaks}: spread frame content over several slides
\end{itemize}
\vfill
Hyperlink: \hyperlink{frameoptions}{\beamerbutton{The frame environment}}
\end{frame}
\begin{frame}[fragile]
\frametitle{Overlays}
{\small
Explicit specification of overlays:
\begin{itemize}
\item \color<2>{red}{Changing colors ...}
\item \alert<3>{Alert mode ...}
\item \textbf<4>{Changing the font face ... (requires [fragile])}
\item \only<-5>{Changing existence ...}
\item \visible<-6>{Changing visability ...}
\item \uncover<7->{Uncovering from grey ...}
\item \alt<8>{Specifying alternations ...}{... in one instruction}
\end{itemize}
\vfill
{\tt $\backslash$pause[<number>]} separates two overlays.
\vfill
Overlays in list environments:
\begin{itemize}
\item<9-> First item
\item<alert@10> Second item with alert
\item Alternatively, list environments can have an overlay option such as {\tt <+-> } or {\tt <+- alert@ +>}.
\end{itemize}
\vfill
Remember that you can declare overlays in the frame options.
\hyperlink{frameoptions}{\beamerbutton{The frame environment}}
}
\end{frame}
<<version×tamp-latex>>
\documentclass[
<<book-options>>
]{scrbook}
<<book-settings>>
<<book-body>>
11pt,
bibliography=totoc,
numbers=noenddot,
% draft
\usepackage{datetime}
\RequirePackage{etoolbox}
\newbool{draftmode}
\booltrue{draftmode}
<<basic-text-settings-input>>
%==============================
% Optional packages & settings
%------------------------------
%% Uncomment the following line for deactivating draftmode
% \boolfalse{draftmode} % Deactivate draftmode
\ifbool{draftmode}{
\usepackage[firstpageonly=true]{draftwatermark}
\SetWatermarkScale{1}
\AtBeginDocument{\SetWatermarkText{DRAFT}}
}{}
%% Language
\AtBeginDocument{
\selectlanguage{german} % which language is available depends on how babel is loaded
}
% <<TLmacros-input>> % the content of TLmacros.tex goes here
%% Commenting
<<todonotes-settings-input>>
<<optional-settings>>
%==============================
% Title
%------------------------------
\title{Title of book}
\author{Max Mustermann \\
Affiliation \\
\url{[email protected]} \\}
\date{\ddmmyyyydate\today, \currenttime}
%==============================
% Document start
%------------------------------
\begin{document}
\maketitle
\frontmatter
\tableofcontents
\mainmatter
\input{book-examples}
\chapter{Blindtext}
\lipsum
\section{Blindtext subsection}
\lipsum
%------------------------------
% Document end
%==============================
\insertBib
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
\chapter{Information about this template}
<<readme>>
\chapter{Examples}
\section{Citation}
<<biblatex-citation-example>>
\section{AVM}
<<langsci-avm-example>>
\section{Linguistic examples}
<<linguistic-example>>
\section{Math formulae}
<<math-example>>
\section{Tables}
<<tabular-example>>
\subsection{Todonotes}
<<todonotes-example>>
\section{Trees}
<<forest-example>>
<<version×tamp-latex>>
\documentclass[
11pt,
bibliography=totoc,
twoside=semi, % semi: two-sided printing with one-sided (equal) margins
]{scrartcl}
\RequirePackage{etoolbox}
\newbool{draftmode}
\booltrue{draftmode}
<<scrarticle-settings-input>>
<<basic-text-settings-input>>
%==============================
% Optional packages & settings
%------------------------------
%% Uncomment the following line for deactivating draftmode
% \boolfalse{draftmode} % Deactivate draftmode
%% Language
\AtBeginDocument{
\selectlanguage{german} % which language is available depends on how babel is loaded
}
% <<TLmacros-input>> % the content of TLmacros.tex goes here
%% Commenting
<<todonotes-settings-input>>
<<optional-settings>>
%==============================
% Title
%------------------------------
\subject{Hausarbeit}
\title{Titel over two \newlineTitle lines} % change title
\author{Max Mustermann} % change name
\affiliation{
Matrikelnummer: 123456789\\ % change Matrikelnummer
Emailaddresse: \url{[email protected]}\\[1ex] % change email address
Studiengang: BSc Neue Ätherwissenschaften \\ % change Studiengang
Seminar: Seminarname, Universität Tübingen, WS 2021/2022\\ % change seminar and date
Datum der Fassung: \today, \currenttime
}
%% Uncomment the following line for removing the watermark
% \boolfalse{draftmode}
\ifbool{draftmode}{
\usepackage[firstpageonly=true]{draftwatermark}
\SetWatermarkScale{1}
\AtBeginDocument{\SetWatermarkText{DRAFT}}
}{}
%==============================
% Document start
%------------------------------
\begin{document}
\maketitle
\newpage
\tableofcontents
\newpage
\input{hausarbeit-examples.tex}
\section{Blindtext}
\lipsum
%------------------------------
% Document end
%==============================
\insertBib
\newpage
\section*{Erklärung}
<<selbständigkeitserklärung>>
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
<<article-examples>>
- State “TODO” from [2024-02-01 Thu 23:22]
https://ctan.org/pkg/tikzposter
Using TikZ for generating posters.
Issues:
- Not maintained right now.
- [ ] ! Package pgf Error: Sorry, the requested layer ‘backgroundlayer’ is not part o f the layer list. Please verify that you provided \pgfsetlayers and that ‘backg roundlayer’ is part of this list.
<<version×tamp-latex>>
\documentclass[
17pt,%12pt, 14pt, 17pt, 20pt, 25pt
a1paper,%a0paper,a1paper,a2paper
%landscape,portrait
%margin=0mm, % between paper and poster
%innermargin=15mm, % between poster and outermost blocks
%colspace=15mm, % horizontal spacing between successive columns
%subcolspace=8mm, % horizontal spacing between successive columns in the subcolumn environment
%blockverticalspace=15mm, % between two blocks
dvipsnames,
]{tikzposter}
<<basic-text-settings-input>>
%==============================
% Optional packages & settings
%------------------------------
% <<TLmacros-input>>
<<optional-settings>>
\definecolor{mygray}{gray}{0.9}
\definecolor{HHUblue}{HTML}{006AB3}
\definecolor{lightgray}{gray}{0.7}
\newcommand{\affilsup}[1]{{\color{gray}$^{\text{#1}}$}}
%==============================
% Title
%------------------------------
\setlength{\fboxsep}{3pt}
\title{Title of poster}
%% \parbox is needed with linebreaks
% \title{\hspace{-2em}\parbox{\textwidth}{\centering
% Title of poster}}
\author{Author Name(s)\affilsup{1}}
\institute{\affilsup{1}Affiliation}
\titlegraphic{\hspace*{1cm}\raisebox{0ex}{\includegraphics[width=5cm]{graphics/sfb-logo-quer.pdf}}\hspace{36cm}\raisebox{0ex}{\includegraphics[width=10cm]{graphics/hhu-logo-hres.pdf}}}
\settitle{
\centering
\color{titlefgcolor}{\bfseries\Huge\@title\par}
\vspace*{2em}
{\huge\@author\par} \vspace*{1em} {\LARGE\@institute}
\raisebox{0cm}[0pt]{\@titlegraphic}
}
%==============================
% Poster style
%------------------------------
\input{poster-style}
\tikzposterlatexaffectionproofoff
\defineblockstyle{greybox}{}{
\draw[color=gray,fill=mygray] (blockbody.south west)
rectangle (blockbody.north east);
\ifBlockHasTitle
\draw[color=white] (blocktitle.south west)
rectangle (blocktitle.north east);
\fi
}
%==============================
% Poster
%------------------------------
\begin{document}
\maketitle[
%width=10cm, % width of the title portion of the poster
%roundedcorners, linewidth, innersep % box style of the title
%titletotopverticalspace=0cmm, titletoblockverticalspace=0cm
%titlegraphictotitledistance=0cm, % vertical distance between the titlegraphic and title description
%titletextscale=2, % relative scaling of the text of the title
]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-5cm}
\block{Big box}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Block text
}
\input{poster-examples}
\begin{columns}
\column{0.5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\block{First column block}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Block text
}
\column{0.5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\block{Second column block}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Block text
}
\end{columns}
%==============================
% List of references
%------------------------------
\defineblockstyle{noframe}{}{
\draw[color=white] (blockbody.south west)
rectangle (blockbody.north east);
\ifBlockHasTitle
\draw[color=white] (blocktitle.south west)
rectangle (blocktitle.north east);
\fi
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\useblockstyle[linewidth=0pt]{noframe}
\block[linewidth=0pt]{}{
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-5.5ex}
\tiny
\printbibliography[heading=none]
}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
<<version×tamp-latex>>
%\usetheme{Basic} % Default, Rays, Basic, Simple, Envelope, Wave, Board, Autumn, and Desert
\usetitlestyle[
width=750mm,
linewidth=2pt,
titletoblockverticalspace=0mm
]{Filled} % Default, Basic, Envelope, Wave, VerticalShading, Filled, Empty.
%\usecolorpalette{Default} % Default, BlueGrayOrange, GreenGrayViolet, PurpleGrayBlue, BrownBlueOrange
%\usecolorstyle{Germany} % Default, Australia, Britain, Sweden, Spain, Russia, Denmark, Germany
\usebackgroundstyle{Empty} % Default, Rays, VerticalGradation, BottomVerticalGradation, Empty
\useblockstyle[roundedcorners=5,linewidth=2pt]{Default} % Default, Basic, Minimal, Envelope, Corner, Slide, TornOut
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \settitle{
% \@titlegraphic \\[\TP@titlegraphictotitledistance] \centering
% \color{titlefgcolor} {\bfseries \Huge \sc \@title \par}
% \vspace*{1em}
% {\huge \@author \par} \vspace*{1em} {\LARGE \@institute}
% }
% \settitle{
% \centering
% \color{titlefgcolor} {\bfseries \Huge \sc \@title \par}
% \vspace*{2em}
% {\huge \@author \par} \vspace*{1em} {\LARGE \@institute}
% \raisebox{0cm}[0pt]{\@titlegraphic}
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \definetitlestyle{sampletitle}{
% width=500mm, roundedcorners=20, linewidth=2pt, innersep=5pt,
% titletotopverticalspace=15mm, titletoblockverticalspace=30mm
% }{
% \begin{scope}[line width=\titlelinewidth, rounded corners=\titleroundedcorners]
% \draw[color=blocktitlebgcolor, fill=titlebgcolor] (\titleposleft,\titleposbottom) rectangle (\titleposright,\titlepostop);
% \end{scope}
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \defineblockstyle{sampleblockstyle}{
% titlewidthscale=0.9, bodywidthscale=1,titleleft,
% titleoffsetx=0pt, titleoffsety=0pt, bodyoffsetx=0mm, bodyoffsety=15mm,
% bodyverticalshift=10mm, roundedcorners=5, linewidth=2pt,
% titleinnersep=6mm, bodyinnersep=1cm
% }{
% \draw[color=framecolor, fill=blockbodybgcolor,
% rounded corners=\blockroundedcorners] (blockbody.south west)
% rectangle (blockbody.north east);
% \ifBlockHasTitle
% \draw[color=framecolor, fill=blocktitlebgcolor,
% rounded corners=\blockroundedcorners] (blocktitle.south west)
% rectangle (blocktitle.north east);
% \fi
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \definecolorstyle{sampleColorStyle} {
% \definecolor{colorOne}{named}{blue}
% \definecolor{colorTwo}{named}{yellow}
% \definecolor{colorThree}{named}{orange}
% }{
% % Background Colors
% \colorlet{backgroundcolor}{colorOne}
% \colorlet{framecolor}{black}
% % Title Colors
% \colorlet{titlefgcolor}{black}
% \colorlet{titlebgcolor}{colorOne}
% % Block Colors
% \colorlet{blocktitlebgcolor}{colorThree}
% \colorlet{blocktitlefgcolor}{white}
% \colorlet{blockbodybgcolor}{white}
% \colorlet{blockbodyfgcolor}{black}
% % Innerblock Colors
% \colorlet{innerblocktitlebgcolor}{white}
% \colorlet{innerblocktitlefgcolor}{black}
% \colorlet{innerblockbodybgcolor}{colorThree!30!white}
% \colorlet{innerblockbodyfgcolor{black}
% % Note colors
% \colorlet{notefgcolor}{black}
% \colorlet{notebgcolor}{colorTwo!50!white}
% \colorlet{noteframecolor}{colorTwo}
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \definebackgroundstyle{samplebackgroundstyle}{
% \draw[inner sep=0pt, line width=0pt, color=red, fill=backgroundcolor!30!black]
% (bottomleft) rectangle (topright);
% }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<<poster-notes-example>>
\note{Note with default behavior}
\note[targetoffsetx=12cm, targetoffsety=-1cm, angle=20, rotate=25]{Note \\ offset and rotated}
\note[targetoffsetx=-10cm, targetoffsety=1cm, angle=-10, connection=true]{Connected note}
<<version×tamp-latex>>
\documentclass[
%pstricks=true
,crop=true
,varwidth=\maxdimen
]{standalone}
<<basic-pdflatex-settings>>
%==============================
% Optional packages & settings
%------------------------------
<<optional-settings>>
% <<TLmacros-input>>
\begin{document}
<<forest-example-small>>
\end{document}
Not maintained right now.
#+TITLE: Title of paper
#+AUTHOR: John Doe\affiliation{Elfenbeinturm, Fantasien}
:Settings:
#+FILETAGS: chooseTag
#+CATEGORY: chooseCategory
#+DATE:
#+STARTUP: nohideblocks
#+LANGUAGE: en
#+OPTIONS: H:5 num:t title:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t ':t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LATEX_CLASS: langscibook-paper
#+LATEX_CLASS_OPTIONS: [output=paper,draftmode,modfonts,nonflat,nonewtxmath]
#+LATEX_COMPILER: xelatex
#+LATEX_HEADER:
#+LATEX_HEADER: \usepackage{linguex,packages/avm}
#+LATEX_HEADER: \usepackage{amsthm}
#+LATEX_HEADER: \usepackage{amsmath}
#+LATEX_HEADER: \usepackage{booktabs}
#+LATEX_HEADER: \usepackage{packages/tikz-settings} % tikz, forest, etc.
#+LATEX_HEADER: %\input{TLmacros}
# Just mention the link to the references file [[addbibresource:references.bib]] in order to make it available to org-ref but not override the default bibliography which is helpful when looking for references which are not yet included in the local bibliography.
:end:
# Eventually appears after \begin{document}.
#+BEGIN_EXPORT latex
\newcommand{\govR}{\ensuremath{<_G}}
\newcommand{\headR}{\ensuremath{<_H}}
% \addto\extrasenglish{%
\renewcommand{\chapterautorefname}{Chapter}%
\renewcommand{\figureautorefname}{Figure}%
\renewcommand{\tableautorefname}{Table}%
\renewcommand{\sectionautorefname}{Section}%
\renewcommand{\subsectionautorefname}{Section}%
\renewcommand{\subsubsectionautorefname}{Section}%
\renewcommand{\Hfootnoteautorefname}{Footnote}%
% }
#+END_EXPORT
# =\abstract= must appear before =\maketitle=.
# Therefore, we set =:title nil= and call =\maketitle= explicitely.
#+LATEX:\abstract{
Put abstract of the paper here.
#+LATEX:}
#+BEGIN_EXPORT latex
\maketitle
#+END_EXPORT
* Introduction
Once upon a time ...
* List of references :ignore:
@@latex:\printbibliography[heading=subbibliography,notkeyword=this]@@
* COMMENT org-mode settings
** Installation of =langscibook=
Remember to first add the class [[https://github.com/langsci/latex][langscibook]] to the set of known classes (in =init.el=).
#+BEGIN_SRC emacs-lisp :exports none
(add-to-list 'org-latex-classes
'("langscibook"
"\\documentclass{langscibook}
[NO-DEFAULT-PACKAGES]"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
))
(add-to-list 'org-latex-classes
'("langscibook-paper"
"\\documentclass[output=paper]{langscibook}
[NO-DEFAULT-PACKAGES]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
))
#+END_SRC
** Local Variables
# Local variables:
# coding: utf-8
# org-latex-with-hyperref: nil
# org-latex-prefer-user-labels: t
# end:
http://jlm.ipipan.waw.pl/index.php/JLM
Not maintained right now.
#+TITLE: Title of article
#+LATEX_HEADER: \titlerunning{Title in header line}
#+AUTHOR: Auhthor name
# #+LATEX_HEADER: \author{Author1\inst{1} \and Author2\inst{2}} % or like this
#+LATEX_HEADER: \affiliation{Affiliation of author}
#+LATEX_HEADER: \authorrunning{}
#+LATEX_HEADER: \keywords{grammar, ...}
:Settings:
#+FILETAGS: research
#+DATE:
#+STARTUP: nohideblocks
#+LANGUAGE: en
#+OPTIONS: H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t ':t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+LATEX_CLASS: jlm
# #+LATEX_CLASS_OPTIONS: [anonymous, TeXligs]
#+LATEX_CLASS_OPTIONS: [TeXligs]
#+LATEX_COMPILER: xelatex
#+LATEX_HEADER: \usepackage{graphicx}
#+LATEX_HEADER: \usepackage{linguex,packages/avm}
#+LATEX_HEADER: \usepackage{packages/tikz-settings} % tikz, forest, etc.
#+LATEX_HEADER: \input{TLmacros}
:end:
# Eventually appears after \begin{document}.
#+BEGIN_EXPORT latex
% \addto\extrasenglish{%
\renewcommand{\chapterautorefname}{Chapter}%
\renewcommand{\figureautorefname}{Figure}%
\renewcommand{\tableautorefname}{Table}%
\renewcommand{\sectionautorefname}{Section}%
\renewcommand{\subsectionautorefname}{Section}%
\renewcommand{\subsubsectionautorefname}{Section}%
\renewcommand{\Hfootnoteautorefname}{Footnote}%
% }
#+END_EXPORT
#+BEGIN_abstract
Put abstract here.
#+END_abstract
* Introduction
* List of references :ignore:
#+BEGIN_EXPORT latex
\bibliographystyle{jlm}
\bibliography{references}
#+END_EXPORT
* COMMENT org-mode settings
** Installation of =jlm=
Remember to first add the class jlm to the set of known classes (in =init.el=).
#+BEGIN_SRC emacs-lisp :exports none
(add-to-list 'org-latex-classes
'("jlm"
"\\documentclass{jlm}
[NO-DEFAULT-PACKAGES]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
))
#+END_SRC
** Local Variables
# Local variables:
# coding: utf-8
# org-latex-with-hyperref: nil
# org-latex-prefer-user-labels: t
# ispell-local-dictionary: "british"
# end:
Basic settings are not optional, but always required.
\input{basic-text-settings}
<<version×tamp-latex>>
% Do not change this file!
<<basic-pdflatex-settings>>
<<basic-misc-settings>>
<<biblatex-settings>>
<<hyperrefs-settings>>
%% Additional symbols
\usepackage{latexsym,amsmath,amssymb,wasysym}
\usepackage{marvosym} % for thunderbolt symbol
<<ulem-settings>>
\usepackage{url}
\urlstyle{tt} % tt,rm,sf,same
\usepackage{tipa} % for phonetic symbols; has to appear before fontspec (FIXME: really?)
%==============================
% Font & Encoding
%------------------------------
%% Basic font
% \usepackage{libertine} % libertine tends to cause problems, e.g. when using tipa
% \usepackage[libertine]{newtxmath}
\usepackage{times}
%% Basic font for specific classes
\makeatletter
\@ifclassloaded{beamer}{
\usepackage{libertine} % libertine tends to cause problems, e.g. when using tipa
\usepackage[libertine]{newtxmath}}{}
\@ifclassloaded{tikzposter}{
\usepackage{DejaVuSans}
\renewcommand*{\familydefault}{\sfdefault}}{}
\makeatother
%% Monospaced font
\usepackage[scaled=0.8]{beramono}
%% Micro-typographic aspects of the fonts
<<microtype-settings>>
%% Output encoding: mapping of character codes to glyphs
\usepackage[T1]{fontenc}
%% Input encoding: the encoding of characters in a source file
\usepackage[utf8]{inputenc}% compatible with BibLaTeX
% \usepackage{ucs}\usepackage[utf8x]{inputenc}% incompabtible with BibLaTeX
<<basic-symbol-settings>>
https://www.tug.org/applications/pdftex/
Basic settings for when PDFLaTeX is used.
%% PDFLATEX SETTINGS
<<basic-fonts&encoding-pdflatex-settings>>
%% Language
<<babel-pdflatex-settings>>
\usepackage{iflang} % for checking the current language name
%==============================
% Miscellaneous
%------------------------------
%% Text columns
<<multicol-settings>>
%% Graphics
\usepackage{graphics}
%% Tables
% \usepackage{arydshln} % for dashed horizontal lines in tables (incompatible with avm)
<<multirow-settings>>
<<colortbl-settings>>
%% Blindtext
\usepackage{lipsum}
Optional settings concern optional packages.
%% Tables
<<booktabs-settings>>
%% Graphics
<<tikz-settings-input>>
<<forest-settings-input>>
%% Linguistics
<<linguex-settings-input>>
<<langsci-avm-settings-input>>
% \usepackage[inference]{semantic} % for CCG
% \usepackage{packages/ccg}
%% Code listings
<<listings-settings-input>>
https://ctan.org/pkg/langsci-avm
Typesetting feature structures in the form of attribute-value matrices.
<<version×tamp-latex>>
%%%%%%%%%%%%%%%%%%%%%%
% AVM SETTINGS %
%%%%%%%%%%%%%%%%%%%%%%
\usepackage{packages/langsci-avm}
\input{packages/langsci-avm-settings}
\avm{
\0 [ \type{eating} \\
actor & \1 \\
theme & \2 ]
}
\medskip
\noindent $\Rightarrow$ \url{https://github.com/langsci/langsci-avm/blob/master/langsci-avm.pdf}
The following are settings for a legacy AVM package.
%%%%%%%%%%%%%%%%%%%%%%
% AVM SETTINGS %
%%%%%%%%%%%%%%%%%%%%%%
\avmoptions{center,topright} % topright determines the position of \osort
\avmfont{\scshape}
\avmvalfont{\normalfont}
\avmsortfont{\normalfont\itshape}
\newenvironment{topbot}{ % more flexible than /newcommand ?
\avmvskip{0.2ex}
\hspace{-1.5em}
\begin{avm}
\avml
}
%%%
{
\avmr
\end{avm}
\hspace{-0.5em}
}
Typographical rules depending on language and culture.
This package should be loaded after encoding settings.
\usepackage[german,english]{babel} % the last language in the options is loaded; the other one can be chosen with \selectlanguage
Use \selectlanguage
for switching between languages.
Themes (aka style templates) for Beamer slides.
Note that local Beamer themes are executed relative to the directory of the master file. Therefore, in order to avoid the use of specific relative paths in the code of the themes, they must later be put in the same directory as the master file.
\usetheme{Lustnau}
% \usetheme{Tuebingen}
\input{beamerlogosTuebingen.tex}
% \usetheme{Bielefeld}
% \input{beamerlogosBielefeld.tex}
% \usetheme{Duesseldorf}
% \input{beamerlogosDuesseldorf.tex}
\mode<presentation>
<<version×tamp-latex>>
%% Requirement
\RequirePackage{tikz}
\RequirePackage{helvet}
\RequirePackage{beramono} % for monospaced font
\PassOptionsToPackage{scaled=0.95}{beramono}
%% Additional fields
\def\titlelogo#1{\gdef\@titlelogo{#1}}
\titlelogo{}
\def\inserttitlelogo{\@titlelogo}
\def\headlinelogo#1{\gdef\@headlinelogo{#1}}
\headlinelogo{}
\def\insertheadlinelogo{\@headlinelogo}
%% Generic macros
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}
%% Settings
\useinnertheme{Tuebingen}
\useoutertheme{Tuebingen}
\usecolortheme{Tuebingen}
\setbeamersize{text margin left=1cm,text margin right=1cm}
\mode<all>
\mode<presentation>
<<version×tamp-latex>>
\definecolor{UTred}{RGB}{165,30,55}
\definecolor{UTgray}{RGB}{195,195,195}
\definecolor{UTgold}{RGB}{180,160,105}
\definecolor{UTanthracite}{RGB}{50,65,75}
\definecolor{UTlightgreen}{RGB}{125,165,75}
\definecolor{UTgreen}{RGB}{50,110,30}
\definecolor{UTblue}{RGB}{0,105,170}
\definecolor{UTlightblue}{RGB}{80,170,200}
\definecolor{UTnavyblue}{RGB}{65,90,140}
\definecolor{UTbrown}{RGB}{145,105,70}
\definecolor{UTlightbrown}{RGB}{215,180,105}
%% Settings
\setbeamercolor*{author}{fg=black}
\setbeamercolor*{date}{fg=black}
\setbeamercolor*{title}{fg=UTred}
\setbeamercolor*{subtitle}{fg=black}
\setbeamercolor*{titlegraphic}{bg=UTgray}
\setbeamercolor*{block title}{bg=UTnavyblue,fg=white}
\setbeamercolor*{block body}{bg=UTnavyblue!30!white}
\setbeamercolor*{block title alerted}{bg=UTred,fg=white}
\setbeamercolor*{block body alerted}{bg=UTred!30!white}
\setbeamercolor*{block title example}{bg=UTgreen,fg=white}
\setbeamercolor*{block body example}{bg=UTgreen!30!white}
\setbeamercolor*{item}{fg=black}
% \setbeamercolor{math text}{fg=UTnavyblue}
\setbeamercolor{math text displayed}{fg=UTnavyblue}
\setbeamercolor*{section in toc}{fg=black}
\setbeamercolor*{section number projected}{bg=UTred,fg=white}
\setbeamercolor*{bibliography entry title}{fg=black}
\setbeamercolor*{bibliography entry author}{fg=black}
\setbeamercolor*{bibliography entry location}{fg=black}
\setbeamercolor*{bibliography entry note}{fg=black}
\mode
<all>
\mode<presentation>
<<version×tamp-latex>>
%% General settings
\setbeamertemplate*{background}{}
\setbeamerfont*{title}{size*={14}{16},series=\bfseries}
\setbeamerfont*{subtitle}{size*={12}{15},series=\upshape}
\setbeamerfont*{author}{size*={10}{12},series=\bfseries}
\setbeamerfont*{date}{size*={10}{12},series=\bfseries}
\setbeamertemplate{itemize item}{\color{black}$\bullet$}
\setbeamertemplate{itemize subitem}{\color{black}--}
\setbeamertemplate{itemize subsubitem}{\color{black}\tiny$\blacksquare$}
\setbeamertemplate{blocks}[default]
\setbeamerfont*{block title}{size=\normalsize}
\setbeamertemplate{section in toc}[square]
%% Bibliography settings: Change them in the BibLaTeX settings!
% \setbeamertemplate{bibliography item}{[\printfield{labelnumber}]} % insert label from bib(la)tex
% \setbeamertemplate{bibliography item}{\insertbiblabel} % insert label from bib(la)tex (Does not work when using authoryear.)
% \setbeamerfont{bibliography entry author}{size=\tiny}%
% \setbeamerfont{bibliography entry title}{size=\tiny}
% \setbeamerfont{bibliography entry journal}{size=\tiny}
% \setbeamerfont{bibliography entry note}{size=\tiny}
%% Title page
\defbeamertemplate*{title page}{Tuebingen}[1][t]
{
\thispagestyle{empty}
\setlength{\baselineskip}{11pt}
% \vskip-0.08\paperheight
\vskip0.042\paperheight
%% Title logo
\inserttitlelogo
\vskip-0.015\paperheight
{\color{UTgold}\vhrulefill{0.2pt}}
\vskip0.025\paperheight
%% Title graphic
\begin{beamercolorbox}[wd=\textwidth,ht=0.375\paperheight]{titlegraphic}
%% Savebox for \titlegraphic
%% In order to be able to directly include tikzpictures
\newsavebox\mytitlebox
\begin{lrbox}{\mytitlebox}
\begin{minipage}{\textwidth}
{\inserttitlegraphic}
\end{minipage}
\end{lrbox}
%% Autocrop \titlegraphic (inspired by https://tex.stackexchange.com/a/193558/61499)
\tikz\node[
minimum width=\textwidth,
minimum height=0.375\paperheight,
path picture={
\node at (path picture bounding box.center){
\usebox\mytitlebox
};
}]{};
\end{beamercolorbox}
\vskip-5pt
{\color{UTred}\rule{\textwidth}{7pt}}
\vskip0pt
%% Title, subtitle, author, date etc.
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}%
\vskip0.6ex
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}
\vskip0pt plus 1filll
\ifx\insertdate\@empty%
\else%
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate}, %
\fi
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor}%
\par
}
\mode<all>
\mode<presentation>
<<version×tamp-latex>>
% Frame title
\setbeamercolor{frametitle}{fg=black}
\setbeamerfont{frametitle}{size=\large,series=\bfseries}
% \setbeamerfont{footline}{size=\tiny}
\defbeamertemplate*{frametitle}{Tuebingen}[1][]
{
\vspace*{2mm}
\usebeamerfont{frametitle}\insertframetitle
\vspace*{-1.5mm}
}
\setbeamertemplate{navigation symbols}{}
\defbeamertemplate*{sidebar}{Tuebingen}{}
\defbeamertemplate*{headline}{Tuebingen} %headline format
{
\vspace*{2.5mm}
\begin{beamercolorbox}[wd=\paperwidth,leftskip=1.01cm,rightskip=1.01cm]
{headline}
\hspace*{0mm}
\insertheadlinelogo
\par
\vspace*{0.3mm}
{\color{UTgold}\vhrulefill{0.2pt}}
\end{beamercolorbox}
}
\setbeamerfont{footline}{size=\tiny}
\defbeamertemplate*{footline}{Tuebingen} %footline format
{
\begin{beamercolorbox}[wd=\paperwidth,leftskip=1cm,rightskip=1cm]
{footline}
{\color{UTred}\vhrulefill{0.2pt}}
\end{beamercolorbox} \begin{beamercolorbox}[wd=\paperwidth,leftskip=1cm,rightskip=1cm,ht=0.37cm,dp=0.25cm]{footline}
~\insertframenumber{} | %
\insertshortauthor%
\ifx\insertinstitute\@empty%
\else%
\ (\insertshortinstitute)%
\fi%
, \insertshorttitle%
\ifx\insertdate\@empty%
\else%
, \insertshortdate
\fi
% \fussnote \hfill \crtext \hspace*{20mm}
\end{beamercolorbox}
}
\mode<all>
<<version×tamp-latex>>
\titlelogo{%
\includegraphics[width=3.967cm, keepaspectratio=true]{graphics/UT-logo.pdf}
\hskip0.4cm
%% Trajan
\begin{minipage}[t]{0.5\textwidth}
\vskip-0.95cm
\includegraphics[width=5.75cm, keepaspectratio=true]{graphics/UT-MNF-FBI-logo.pdf}
\end{minipage}%
}
%% Old version with relative measures
% \titlelogo{%
% \includegraphics[width=.31\paperwidth, keepaspectratio=true]{graphics/UT-logo.pdf}
% \hskip0.4cm
% %% Trajan
% \begin{minipage}[t]{0.5\textwidth}
% \vskip-0.104\paperheight
% \includegraphics[width=.45\paperwidth, keepaspectratio=true]{graphics/UT-MNF-FBI-logo.pdf}
% \end{minipage}%
% %% Trajan + Arial
% % \begin{minipage}[t]{0.5\textwidth}
% % \setlength{\baselineskip}{11pt}
% % \vskip-0.108\paperheight
% % \includegraphics[width=.45\paperwidth, keepaspectratio=true]{graphics/UT-MNF-logo.pdf}\newline
% % \upshape\sffamily\color{UTred}\fontsize{7}{10}\selectfont\textbf{Fachbereich Informatik}
% % \end{minipage}%
% }
\headlinelogo{%
\includegraphics[width=2.52cm, keepaspectratio=true]{graphics/UT-logo.pdf}
}
\RequirePackage{lipsum}
\titlegraphic{{\rmfamily \lipsum}}
\mode<presentation>
<<version×tamp-latex>>
\usetheme{Tuebingen}
\defbeamertemplate*{headline}{Lustnau} %headline format
{}
\defbeamertemplate*{frametitle}{Lustnau}[1][left] % inspired by the definition of the default frametitle
{%
% \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
% \@tempdima=\textwidth%
% \advance\@tempdima by\beamer@leftmargin%
% \advance\@tempdima by\beamer@rightmargin%
\hspace{-0.475cm} %due to sep in beamercolorbox
\begin{beamercolorbox}[sep=0.35cm,#1,wd=.82\textwidth]{frametitle}
\usebeamerfont{frametitle}%
% \vbox{}\vskip-1ex%
\vbox{}\vskip-0.8ex%
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
\strut\insertframetitle\strut\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%
\fi
}%
\vskip-1ex%
\if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...
\end{beamercolorbox}%
\par
\vspace*{-0.08cm}
{\color{UTgold}\vhrulefill{0.2pt}}
% \vspace*{-1.5mm}
}
\addtobeamertemplate{frametitle}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east,xshift=-1cm,yshift=-0.3ex] at (current page.north east) {\insertheadlinelogo};
\end{tikzpicture}}
\mode<all>
\mode<presentation>
<<version×tamp-latex>>
\usepackage{libertine} % libertine tends to cause problems, e.g. when using tipa
\usepackage[libertine]{newtxmath}
% \usepackage{times}
\usepackage[scaled=0.8]{beramono} % for monospaced font
%\usefonttheme{serif}
%\renewcommand*{\ttdefault}{cmtt}
\definecolor{HHUblue}{HTML}{006AB3}
\setbeamercolor{structure}{fg=HHUblue}
\setbeamerfont{frametitle}{family=\sffamily}
\setbeamerfont{title}{family=\sffamily}
\setbeamerfont{block title}{family=\sffamily}
\usetheme{Copenhagen} % Boadilla
\usecolortheme{default} % beaver
\usefonttheme{default} % default | professionalfonts | serif | structurebold | structureitalicserif | structuresmallcapsserif
\useinnertheme{default} % circles | default | inmargin | rectangles | rounded
\useoutertheme{default} % default | infolines | miniframes | shadow | sidebar | smoothbars | smoothtree | split | tree
%\setbeamercovered{transparent} % for transparent overlays
\setbeamercovered{invisible} % for non-transparent overlays
\setbeamertemplate{navigation symbols}{} % no navigation symbols
\setbeamertemplate{headline}[default] % no headline
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{section in toc}[]
\setbeamertemplate{subsection in toc}[]
\setbeamertemplate{itemize items}[square]
\setbeamertemplate{enumerate items}[square]
%\setbeamertemplate{blocks}[default] % rectangular blocks
%\setbeamersize{text margin left=10pt,text margin right=10pt}
%% Bibliography style (http://tex.stackexchange.com/questions/97615/article-style-bibliography-in-beamer-class)
\setbeamertemplate{frametitle continuation}[from second]
% Now get rid of all the colours
\setbeamercolor*{bibliography entry title}{fg=black}
\setbeamercolor*{bibliography entry author}{fg=black}
\setbeamercolor*{bibliography entry location}{fg=black}
\setbeamercolor*{bibliography entry note}{fg=black}
% and kill the abominable icon
\setbeamertemplate{bibliography item}{[\printfield{labelnumber}]} % insert label from bib(la)tex
% \setbeamertemplate{bibliography item}{\insertbiblabel} % insert label from bib(la)tex (Does not work when using authoryear.)
\AtBeginDocument{
\renewcommand*{\bibfont}{\scriptsize}
}
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\pgfsetfillopacity{0}\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,left]{author in head/foot}%
\usebeamerfont{author in head/foot}\pgfsetfillopacity{1}\color{gray}\hspace*{2ex}\insertshortauthor~~(\insertshortinstitute)
\end{beamercolorbox}%
\pgfsetfillopacity{0}\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\pgfsetfillopacity{1}\insertshorttitle
\end{beamercolorbox}%
\pgfsetfillopacity{0}\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\pgfsetfillopacity{1}\color{gray}\insertshortdate{}\hspace*{2em}
\insertframenumber{} %/ \inserttotalframenumber
\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\mode<all>
<<version×tamp-latex>>
\titlegraphic{%
\includegraphics[height=1cm]{graphics/HHU-logo}%
}
Template for slides in the corporate design of the University of Bielefeld (Faculty of Literature and Language).
\mode<presentation>
<<version×tamp-latex>>
%% Requirement
\RequirePackage{tikz}
\RequirePackage{helvet}
\RequirePackage{beramono} % for monospaced font
\PassOptionsToPackage{scaled=0.95}{beramono}
%% Additional fields
\def\titlelogo#1{\gdef\@titlelogo{#1}}
\titlelogo{}
\def\inserttitlelogo{\@titlelogo}
\def\headlinelogo#1{\gdef\@headlinelogo{#1}}
\headlinelogo{}
\def\insertheadlinelogo{\@headlinelogo}
%% Generic macros
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}
%% Settings
\usecolortheme{Bielefeld}
\useinnertheme{Bielefeld}
\useoutertheme{Bielefeld}
\setbeamersize{text margin left=1cm,text margin right=1cm}
\mode<all>
\mode<presentation>
<<version×tamp-latex>>
\definecolor{UBred}{RGB}{220,90,90}
\definecolor{UBgray}{RGB}{240,240,240}
\definecolor{UBgold}{RGB}{180,160,105}
\definecolor{UBanthracite}{RGB}{50,65,75}
\definecolor{UBlightgreen}{RGB}{20,245,180}
\definecolor{UBgreen}{RGB}{0,140,100}
\definecolor{UBblue}{RGB}{20,95,120}
\definecolor{UBlightblue}{RGB}{125,180,190}
\definecolor{UBnavyblue}{RGB}{85,140,160}
\definecolor{UBbrown}{RGB}{145,105,70}
\definecolor{UBlightbrown}{RGB}{215,180,105}
%% Settings
\setbeamercolor*{author}{fg=black}
\setbeamercolor*{date}{fg=black}
\setbeamercolor*{title}{fg=black}
\setbeamercolor*{subtitle}{fg=black}
\setbeamercolor*{titlegraphic}{bg=UBgray}
\setbeamercolor*{block title}{bg=UBnavyblue,fg=white}
\setbeamercolor*{block body}{bg=UBnavyblue!30!white}
\setbeamercolor*{block title alerted}{bg=UBred,fg=white}
\setbeamercolor*{block body alerted}{bg=UBred!30!white}
\setbeamercolor*{block title example}{bg=UBgreen,fg=white}
\setbeamercolor*{block body example}{bg=UBgreen!30!white}
\setbeamercolor*{item}{fg=black}
% \setbeamercolor{math text}{fg=UBnavyblue}
\setbeamercolor{math text displayed}{fg=UBblue}
\setbeamercolor*{section in toc}{fg=black}
\setbeamercolor*{section number projected}{bg=UBlightgreen,fg=black}
\setbeamercolor*{bibliography entry title}{fg=black}
\setbeamercolor*{bibliography entry author}{fg=black}
\setbeamercolor*{bibliography entry location}{fg=black}
\setbeamercolor*{bibliography entry note}{fg=black}
\mode
<all>
\mode<presentation>
<<version×tamp-latex>>
%% General settings
\setbeamertemplate*{background}{}
\setbeamerfont*{title}{size*={15}{16},series=\bfseries\scshape}
\setbeamerfont*{subtitle}{size*={12}{15},series=\upshape}
\setbeamerfont*{author}{size*={10}{12},series=\upshape}
\setbeamerfont*{date}{size*={10}{12},series=\upshape}
\setbeamertemplate{itemize item}{\color{black}$\bullet$}
\setbeamertemplate{itemize subitem}{\color{black}--}
\setbeamertemplate{itemize subsubitem}{\color{black}\tiny$\blacksquare$}
\setbeamertemplate{blocks}[default]
\setbeamerfont*{block title}{size=\normalsize}
\setbeamertemplate{section in toc}[square]
\setbeamertemplate{bibliography item}{\insertbiblabel} % insert label from bib(la)tex
\setbeamerfont{bibliography entry author}{size=\tiny}%
\setbeamerfont{bibliography entry title}{size=\tiny}
\setbeamerfont{bibliography entry journal}{size=\tiny}
\setbeamerfont{bibliography entry note}{size=\tiny}
%% Title page
\defbeamertemplate*{title page}{Bielefeld}[1][t]
{
\thispagestyle{empty}
\setlength{\baselineskip}{11pt}
% \vskip-0.15\paperheight % only needed with headlines sometimes ...
%% Title logo
\inserttitlelogo
% \vskip0.025\paperheight
%% Title graphic
\begin{beamercolorbox}[wd=\textwidth,ht=0.375\paperheight]{titlegraphic}
%% Savebox for \titlegraphic
%% In order to be able to directly include tikzpictures
\newsavebox\mytitlebox
\begin{lrbox}{\mytitlebox}
\begin{minipage}{\textwidth}
{\inserttitlegraphic}
\end{minipage}
\end{lrbox}
%% Autocrop \titlegraphic (inspired by https://tex.stackexchange.com/a/193558/61499)
\tikz\node[
minimum width=\textwidth,
minimum height=0.375\paperheight,
path picture={
\node at (path picture bounding box.center){
\usebox\mytitlebox
};
}]{};
\end{beamercolorbox}
\vskip-5pt
{\color{UBlightgreen}\rule{\textwidth}{7pt}}
\vskip0pt
%% Title, subtitle, author, date etc.
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}%
\vskip0.6ex
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}
\vskip0pt plus 1filll
\ifx\insertdate\@empty%
\else%
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate}, %
\fi
{\usebeamerfont{author}\usebeamercolor[fg]{author}\insertauthor}%
\par
}
\mode<all>
\mode<presentation>
<<version×tamp-latex>>
\setbeamertemplate{navigation symbols}{}
\defbeamertemplate*{sidebar}{Bielefeld}{}
% Frame title
\setbeamercolor{frametitle}{fg=black}
\setbeamerfont{frametitle}{size=\large,series=\bfseries}
% \defbeamertemplate*{frametitle}{Bielefeld}[1][]
% {
% \vspace*{2mm}
% \usebeamerfont{frametitle}\insertframetitle
% \vspace*{-1.5mm}
% }
% \defbeamertemplate*{headline}{Bielefeld} %headline format
% {
% \vspace*{2.5mm}
% \begin{beamercolorbox}[wd=\paperwidth,leftskip=1.01cm,rightskip=1.01cm]
% {headline}
% \hspace*{0mm}
% \insertheadlinelogo
% \end{beamercolorbox}
% }
\defbeamertemplate*{frametitle}{Bielefeld}[1][left] % inspired by the definition of the default frametitle
{%
% \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
% \@tempdima=\textwidth%
% \advance\@tempdima by\beamer@leftmargin%
% \advance\@tempdima by\beamer@rightmargin%
\hspace{-0.475cm} %due to sep in beamercolorbox
\begin{beamercolorbox}[sep=0.35cm,#1,wd=.82\textwidth]{frametitle}
\usebeamerfont{frametitle}%
% \vbox{}\vskip-1ex%
\vbox{}\vskip-0.8ex%
\if@tempswa\else\csname beamer@fte#1\endcsname\fi%
\strut\insertframetitle\strut\par%
{%
\ifx\insertframesubtitle\@empty%
\else%
{\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle\strut\par}%
\fi
}%
\vskip-1ex%
\if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...
\end{beamercolorbox}%
}
\addtobeamertemplate{frametitle}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east,xshift=-0.5cm,yshift=0.2ex] at (current page.north east) {\insertheadlinelogo};
% \node[anchor=north west,xshift=0.8cm,yshift=0.2ex] at (current page.north west) {\insertheadlinelogo};
\end{tikzpicture}}
\setbeamerfont{footline}{size=\tiny}
\defbeamertemplate*{footline}{Bielefeld} %footline format
{
\begin{beamercolorbox}[wd=\paperwidth,leftskip=1cm,rightskip=1cm]
{footline}
{\color{UBlightgreen}\vhrulefill{0.2pt}}
\end{beamercolorbox} \begin{beamercolorbox}[wd=\paperwidth,leftskip=1cm,rightskip=1cm,ht=0.37cm,dp=0.25cm]{footline}
~\insertframenumber{} | %
\insertshortauthor%
\ifx\insertinstitute\@empty%
\else%
\ (\insertshortinstitute)%
\fi%
, \insertshorttitle%
\ifx\insertdate\@empty%
\else%
, \insertshortdate
\fi
% \fussnote \hfill \crtext \hspace*{20mm}
\end{beamercolorbox}
}
\mode<all>
<<version×tamp-latex>>
\titlelogo{%
\includegraphics[width=3.967cm, keepaspectratio=true]{graphics/UB-LiLi-logo.pdf}
}
%% Old version with relative measures
% \titlelogo{%
% \includegraphics[width=.31\paperwidth, keepaspectratio=true]{graphics/UT-logo.pdf}
% \hskip0.4cm
% %% Trajan
% \begin{minipage}[t]{0.5\textwidth}
% \vskip-0.104\paperheight
% \includegraphics[width=.45\paperwidth, keepaspectratio=true]{graphics/UT-MNF-FBI-logo.pdf}
% \end{minipage}%
% %% Trajan + Arial
% % \begin{minipage}[t]{0.5\textwidth}
% % \setlength{\baselineskip}{11pt}
% % \vskip-0.108\paperheight
% % \includegraphics[width=.45\paperwidth, keepaspectratio=true]{graphics/UT-MNF-logo.pdf}\newline
% % \upshape\sffamily\color{UTred}\fontsize{7}{10}\selectfont\textbf{Fachbereich Informatik}
% % \end{minipage}%
% }
\headlinelogo{%
\includegraphics[width=2.52cm, keepaspectratio=true]{graphics/UB-LiLi-logo.pdf}
}
\RequirePackage{lipsum}
\titlegraphic{{\rmfamily \lipsum}}
Citation management and formatting of bibliographies.
The bibliography style I’m using is MUSS.
%==============================
% BibLaTeX settings
%------------------------------
\newcommand{\mycitestyle}{muss}
\newcommand{\mybibstyle}{muss}
\makeatletter
\@ifclassloaded{beamer}{\renewcommand{\mycitestyle}{numeric-comp}}{}
\@ifclassloaded{tikzposter}{\renewcommand{\mycitestyle}{numeric-comp}}{}
\makeatother
\usepackage[
bibstyle=\mybibstyle,
citestyle=\mycitestyle,
%% The remaining options are set in muss.bbx.
% natbib=true,
% refsection=chapter,
% maxbibnames=99,
% isbn=false,
% doi=false,
% eprint=false,
% backend=biber,
% sorting=ydnt, % sort in descending chronological order
% indexing=cite,
% labelnumber, % for numeric bibliography in beamer
% toc=bib % make bibliography appear in toc, incompatible with beamer
]{biblatex}
%% The bibliography file is specified like this
\addbibresource[datatype=bibtex]{references.bib}
%% Command for inserting bibliography here
\newcommand{\insertBib}{
\printbibliography[
% notkeyword=this
]
}
%% Compat definitions to make available BibTeX macros in BibLaTeX
% \let\citealt=\cite
% \let\cite=\textcite
% \let\citep=\parencite
% \let\citet=\cite
% \newcommand{\citeauthoryear}[1]{\citeauthor{#1} (\citeyear{#1})}
% \newcommand{\citealtauthoryear}[1]{\citeauthor{#1} \citeyear{#1}}
<<biblatex-beamer-settings>>
<<biblatex-tikzposter-settings>>
% Beamer settings
%-----------------
\makeatletter
\@ifclassloaded{beamer}{
%% Print ": " before postnote (numeric-comp uses comma)
\renewcommand*{\postnotedelim}{\addcolon\space}
%% Replace icons with numbers in bibliography
\setbeamertemplate{bibliography item}{[\thefield{labelnumber}]}
%% New command \footshortcite
\DeclareCiteCommand{\footshortcite}[\mkbibfootnote]
{\usebibmacro{prenote}%
\printnames[only-last-name]{author}%
\setunit{\adddot\space}%
\printfield{year}%
\setunit{\adddot\space}%
\printfield{title}}
{}
{\multicitedelim}
{\renewcommand*{\postnotedelim}{\adddot\space}%
\usebibmacro{postnote}}
\DeclareNameFormat{only-last-name}{%
\printtext{\namepartfamily}%
\ifgiveninits
{\addcomma\addspace\namepartgiveni}
{}%
\usebibmacro{name:andothers}}
%% Taken from MUSS v0.4
\DeclareCiteCommand{\fullcite}
{\defcounter{maxnames}{\blx@maxbibnames}% show all names
\usebibmacro{prenote}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
%% Taken from numberic-comp.cbx with additions ...
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{\color{gray}% added color
\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\let\multicitesubentrydelim=\supercitesubentrydelim
\let\multiciterangedelim=\superciterangedelim
\let\multicitesubentryrangedelim=\supercitesubentryrangedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}%
\bibopenbracket% added bracket
}
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}%
\bibclosebracket% added bracket
}
}{}
\makeatother\makeatother
% Tikzposter settings
%-----------------
\makeatletter
\@ifclassloaded{tikzposter}{
\DeclareFieldFormat{labelnumberwidth}{#1}
\defbibenvironment{bibliography}
{\footnotesize\noindent}
{\unspace}
{}
\renewbibmacro*{begentry}{%
\textbf{\color{HHUblue}%
\printtext[labelnumberwidth]{%
[\printfield{prefixnumber}%
\printfield{labelnumber}]}%
\space
% \setunit{\addspace}
}}
\renewcommand*{\finentrypunct}{\addperiod\space}
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{\color{gray} % added color
\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}%
\bibopenbracket}%
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}\bibclosebracket}
\DeclareCiteCommand{\citeauthor} % from sp-authoryear-comp.cbx; to add hyperref link
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\citeyear} % from sp-authoryear-comp.cbx; to add hyperref link
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\printfield[bibhyperref]{year}}
{\multicitedelim}
{\usebibmacro{postnote}}
}{}
\makeatother
The following is a alist of available cite commands. See \url{https://ctan.space-pro.be/tex-archive/macros/latex/contrib/biblatex/doc/biblatex.pdf#subsection.3.9} for a more detailed description.
\begin{itemize}
\item \verb=\nocite= \nocite{Bech:63}
\item \verb=\fullcite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \fullcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\textcite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \textcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\parencite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \parencite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\parencite*[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \parencite*[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\smartcite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \smartcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\footcite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \footcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\footfullcite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \footfullcite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\supercite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \supercite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\footcitetext[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \footcitetext[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\autocite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \autocite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\cite[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \cite[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\cite*[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \cite*[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\citeauthor[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \citeauthor[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\citeauthor*[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \citeauthor*[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\citeurl[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \citeurl[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\citetitle[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \citetitle[<prenote>][<postnote>]{Nallapati:etal:16}
\item \verb=\citeyear[<prenote>][<postnote>]{Nallapati:etal:16}= \newline \citeyear[<prenote>][<postnote>]{Nallapati:etal:16}
\end{itemize}
References are stored in \texttt{references.bib}.
<<biblatex-references-example>>
@Article{Bech:63,
author = {Bech, Gunnar},
title = {Grammatische {G}esetze im {W}iderspruch},
year = {1963},
volume = {12},
pages = {291--299},
journal = {Lingua}
}
@InProceedings{EckartDeCastilho:etal:16,
author = {Eckart de Castilho, Richard and M\'{u}jdricza-Maydt, \'{E}va and Yimam, Seid Muhie and Hartmann, Silvana and Gurevych, Iryna and Frank, Anette and Biemann, Chris},
title = {A Web-based Tool for the Integrated Annotation of Semantic and Syntactic Structures},
booktitle = {Proceedings of the Workshop on Language Technology Resources and Tools for Digital Humanities ({LT4DH})},
year = {2016},
pages = {76--84},
address = {Osaka, Japan}
}
@Book{Mueller:02,
author = {M\"uller, Stefan},
title = {Complex Predicates: {Verbal} Complexes, Resultative Constructions, and Particle Verbs in {German}},
year = {2002},
series = {Studies in Constraint-Based Lexicalism},
publisher = {CSLI Publications},
address = {Stanford}
}
@InProceedings{Nallapati:etal:16,
author = {Nallapati, Ramesh and Zhou, Bowen and dos Santos, Cicero and Çağlar Gulçehre and Xiang, Bing},
title = {Abstractive Text Summarization using Sequence-to-sequence {RNN}s and Beyond},
pages = {280--290},
booktitle = {Proceedings of The 20th {SIGNLL} Conference on Computational Natural Language Learning},
year = {2016},
address = {Berlin, Germany},
url = {https://www.aclweb.org/anthology/K16-1028},
doi = {10.18653/v1/K16-1028},
}
Drawing tree-shaped graphs with TikZ.
<<version×tamp-latex>>
%==============================
% Forest settings
%------------------------------
\usepackage{forest}
\makeatletter
\@ifpackagelater{forest}{2016/01/01}
{\useforestlibrary{linguistics}%
\useforestlibrary{edges}}
{}
\@ifpackagelater{forest}{2016/01/01}
{\newcommand{\forestPreamble}{default preamble}} % version >=2 of forest
{\newcommand{\forestPreamble}{.style}} % version <=1 of forest
\makeatother
\forestset{
\forestPreamble ={
% .style={ % version <=1 of forest
% default preamble={ % version >=2 of forest
for tree={
parent anchor=south,
child anchor=north,
% align=center, % bad: adds space below label
fit=rectangle,
base=top, % vertical orientation of nodes
% inner sep=3, % necesssary?
begin draw/.code={\begin{tikzpicture}[baseline=(current bounding box.center)]},
}},
htree/.style={for tree={grow'=east,parent anchor=east,child anchor=west,anchor=base west}},
sn edges/.style={for tree={parent anchor=south, child anchor=north}},
red subtree/.style={for tree={text=red},for descendants={edge=red}},
black subtree/.style={for tree={text=black},for descendants={edge=black}},
blue subtree/.style={for tree={text=blue},for descendants={edge=blue}},
green subtree/.style={for tree={text=green},for descendants={edge=green}},
gray subtree/.style={for tree={text=gray},for descendants={edge=gray}},
color subtree/.style={for tree={text=#1},for descendants={edge={draw=#1}}},
subtree color/.style={for tree={text=#1},for descendants={edge={draw=#1}}},
vcenter/.style={begin draw/.code={\begin{tikzpicture}[baseline=(current bounding box.center)]}},
empty nodes/.style={ % from the forest manual
for tree={
% calign=fixed edge angles,
yshift=1ex},
delay={where content={}{shape=coordinate,for parent={for children={anchor=north}}}{}}},
derivation tree/.style={.style={
for tree={parent anchor={},child anchor={},font=\ttfamily}}},
derivation/.style={for children={fit=tight}},
description/.style={
for tree={parent anchor={},child anchor={},edge=->}},
dt label/.style 2 args={
edge label={node[midway,font=\ttfamily\scriptsize, #1]{#2}},},
%% for drawing STUG sequences
%% conn, <-- and --> are take from https://tex.stackexchange.com/a/414444/61499
conn/.style n args=2{
tikz+={\draw [dashed] (#1) -- (#2);}},
-->/.style={ % draw horizontal line to predecessor
before drawing tree={
temptoksa=,
tempcounta/.option=level,
if nodewalk valid={n}{conn={}{!n}}{
for nodewalk={
while nodewalk valid={u}{
tempcountb/.option=n,
u,
if={> OR>{n children}{tempcountb} }{
tempcountc/.register=tempcountb,
tempcountc'+=1,
n/.register=tempcountc,
while nodewalk valid={1}{
1,
if={ > OR= {level}{tempcounta} }{
temptoksa/.option=name,
break=1
}{}
}
}{}
}
}{},
if temptoksa={}{}{conn/.process={_R {}{temptoksa}}}
},
},
},
<--/.style={ % draw horizontal line to successor
before drawing tree={
temptoksa=,
tempcounta/.option=level,
if nodewalk valid={p}{conn={}{!p}}{
for nodewalk={
while nodewalk valid={u}{
u,
if n=1{}{
p,
while nodewalk valid={last}{
last,
if={ > OR= {level}{tempcounta} }{
temptoksa/.option=name,
break=1
}{}
}
},
}
}{},
if temptoksa={}{}{conn/.process={_R {}{temptoksa}}}
},
},
},
t/.style={calign with current}, % trunk
lex/.style={ % terminal nodes with lexical material
no edge,
for parent={l sep=0ex},
yshift=3ex,
draw=gray,
content={\textit{##1}}},
c/.style args={#1}{ % visual link with argument
% edge label={node[xshift={0.8em},scale=0.8,fill=white,draw,inner sep=.10ex,circle]{#1}}
% tikz={\node[yshift={1.5ex},scale=0.8,fill=white,draw,inner sep=.10ex,circle, right=-0.5em of .east] {1};}
label={[yshift={0.5ex},scale=.8,circle, draw, fill=white, inner sep=.1ex, label distance=-.65em, anchor=west]north east:#1}},
Xs/.style={for tree={xshift=#1}},
Ys/.style={for tree={yshift=#1}},
%% Beamer overlays (https://tex.stackexchange.com/a/253384/61499)
invisible/.style={%
for tree={%
/tikz/invisible={#1},
edge={/tikz/invisible={#1}}}},
visible/.style={%
for tree={%
/tikz/visible={#1},
edge={/tikz/visible={#1}}}},
visible ancestors/.style={%
edge={/tikz/visible={#1}},
for ancestors={%
/tikz/visible={#1},
edge={/tikz/visible={#1}}}},
opaque/.style={%
for tree={%
/tikz/opaque={#1},
edge={/tikz/opaque={#1}}}},
alert/.style={%
for tree={%
/tikz/alert={#1},
edge={/tikz/alert={#1}}}},
only/.code args={<#1>}{% https://tex.stackexchange.com/a/417110/61499
\alt<#1>{}{\pgfkeysalso{before typesetting nodes={remove}}}},
unify children/.style={
if nodewalk valid={1}{
l sep=5pt,
for children={l=0mm},
for nodewalk={1}{
for siblings={no edge},
edge={decorate, decoration={brace, amplitude=5pt}},
edge path'={(!u1.west |- .north) -- (!ul.east |- .north)}
}}{}}
}
\input{packages/forest-settings}
\Forest{
[,phantom
[S,name=root,red subtree
[AUX [\textit{does}] ]
[S
[NP]
[VP,name=vp[V [\textit{say}]] [S*,name=foot]]]]
[S,Xs=5cm,Ys=2cm
[NP]
[S,name=s
[NP [$\varepsilon$] ]
[VP
[VP [V [\textit{walks}]]]
[PP]]]]
]
\draw[->,gray,thick,dashed,bend right=10](root)to(s);
\draw[->,gray,thick,dashed,bend right=10](foot)to(s);
}
\noindent $\Rightarrow$ \url{http://mirrors.ctan.org/graphics/pgf/contrib/forest/forest-doc.pdf}
% \Forest{
% [S [NP]
% [VP [V [\textit{eats}] ]
% [NP] ]]
% }
%% This example may cause problems together with TeX Live 2016
% \Forest{
% [,phantom
% [S,--> [NP,--> [D [the]]]]
% [S,--> [NP,--> [A [absent]]]]
% [S, [NP [N [student]]]]
% ]
% }
\Forest{
[S
[NP]
[VP
[V [\textit{eats}] ]
[NP] ]]
}
\begin{forest}
[,phantom,s sep=2em
[NP,name=peter,tier=1 [\textit{Peter}]]
%%%%%%%%%%%%%%%%%
[VP,name=easily_r,tier=1
[ADV [\textit{easily}]]
[VP*,name=easily_f]]
%%%%%%%%%%%%%%%%%
[S
[NP,name=rep_np1]
[VP,name=rep_vp,tier=1
[V [\textit{repaired}]]
[NP,name=rep_np2,tier=2]]]
%%%%%%%%%%%%%%%%%
[NP,name=fridge,tier=2 [\textit{the fridge},triangle]]
]
\draw[->,dashed,thick,draw=gray, bend angle=25, bend left] (peter) to (rep_np1);
\draw[->,dashed,thick,draw=gray, bend angle=10, bend right,shorten >=-0.6em] (easily_f) to (rep_vp.south west);
\draw[->,dashed,thick,draw=gray, bend angle=25, bend right] (fridge) to (rep_np2);
\end{forest}
Handling cross-references and hyperlinks.
%==============================
% Hyperref settings
%------------------------------
\usepackage[bookmarks=true,bookmarksopen=true,%
hyperindex=true,% Makes the page numbers of index entries into hyper-links.
breaklinks=true,% Allow links to break over lines.
draft=false,% All hypertext options are turned off.
plainpages=false,% When true, forces page anchors to be named by the Arabic form of the page number.
pdfauthor={},% Hide author name.
pdfkeywords={},%
colorlinks=false,% Do not color the text of links and anchors.
pdfborder={0 0 1},% The style of box around links.
]{hyperref}
\IfLanguageName{english}{
\renewcommand{\chapterautorefname}{Chapter}%
\renewcommand{\figureautorefname}{Figure}%
\renewcommand{\tableautorefname}{Table}%
\renewcommand{\sectionautorefname}{Section}%
\renewcommand{\subsectionautorefname}{Section}%
\renewcommand{\subsubsectionautorefname}{Section}%
\renewcommand{\Hfootnoteautorefname}{Footnote}%
}{}
Typesetting IPA symbols.
\ex. \textipa{[""Ekspl@"neIS@n]}
$\Rightarrow$ \url{http://en.wikibooks.org/wiki/LaTeX/Linguistics#IPA_characters}
Typeset linguistic examples.
\input{packages/linguex-settings}
<<version×tamp-latex>>
\usepackage{linguex}
\renewcommand{\firstrefdash}{}
\makeatletter
\@ifclassloaded{beamer}{%
\AtBeginDocument{
\setlength{\Exlabelsep}{0em} % for linguex examples
\setlength{\SubExleftmargin}{1.5em} % for linguex examples
\renewcommand\eachwordone{\sffamily} % for glossing with linguex
\renewcommand\eachwordtwo{\sffamily} % for glossing with linguex
% \setlength{\Extopsep}{1ex} % vertical margin in linguex examples
}
}{}
\makeatother
\ex. This is a simple example.
\exg. [Noch am Boden liegend$_i$], sei [auf ihn$_i$] eingetreten worden.\\
still on.the floor lying be on him PART.kicked got\\
`While he was still on the floor he was kicked.'\\
(Cf. (422) in \cite{Mueller:02})
\noindent $\Rightarrow$ \url{http://texdoc.net/texmf-dist/doc/latex/linguex/linguex-doc.pdf} \\
Note the Leipzig glossing rules: \url{http://www.eva.mpg.de/lingua/resources/glossing-rules.php}
<<linguex-example>>
<<ipa-example>>
Typeset program code.
\input{packages/listings-settings}
<<version×tamp-latex>>
%% Listings settings
\usepackage{listings}
\lstset{basicstyle=\ttfamily,
backgroundcolor=\color{gray!20},
% frame=single,
tabsize=2,
breaklines=true,
numbers=left,
numbersep=4pt,
numberstyle=\tiny,
stepnumber=1,
firstnumber=1,
}
%% Add syntax highlighting for specific programming languages
% \input{packages/listings-xmg-settings.tex}
% Syntax highlighting for XMG: https://xmg.phil.hhu.de/
\RequirePackage{color}
\definecolor{lightgray}{gray}{0.7}
\lstnewenvironment{xmg}{%
\lstset{language=,
numbers=left,numbersep=8pt,numberstyle=\color{lightgray},
% frame=l,
basicstyle=\small\ttfamily,%
xleftmargin=0.7cm,framexleftmargin=12pt,%
framerule=0.5mm,rulecolor=\color{lightgray},%
escapeinside={|\%}{\%|},%
commentstyle=\color{lightgray},
literate={->}{{{\textbf{->}}}}1 {<-}{{{\textbf{<-}}}}1 {\{}{{{\textbf{\{}}}}1 {\}}{{{\textbf{\}}}}}1 {\;}{{{\textbf{;}}}}1 {|}{{{\textbf{|}}}}1 {=}{{{\textbf{=}}}}1 {[}{{{\textbf{[}}}}1 {]}{{{\textbf{]}}}}1 {<}{{{\textbf{<}}}}1 {>}{{{\textbf{>}}}}1 {!}{{{\textbf{!}}}}1 {?}{{{\textbf{?}}}}1 {*=}{{{\textbf{*=}}}}1,%
morekeywords={node,type,feature,iface,include,class,import,export,declare,syn,sem,value, use, with, dims,frame,morph,lemma,morpho,fam,entry}
}}{}
\lstdefinestyle{xmg}{
% keywordstyle = \color{HHUblue}\bfseries,
% stringstyle=\color{red}\ttfamily,
commentstyle=\color{lightgray},
literate={->}{{{\textbf{->}}}}1 {<-}{{{\textbf{<-}}}}1 {\{}{{{\textbf{\{}}}}1 {\}}{{{\textbf{\}}}}}1 {\;}{{{\textbf{;}}}}1 {|}{{{\textbf{|}}}}1 {=}{{{\textbf{=}}}}1 {[}{{{\textbf{[}}}}1 {]}{{{\textbf{]}}}}1 {<}{{{\textbf{<}}}}1 {>}{{{\textbf{>}}}}1 {!}{{{\textbf{!}}}}1 {?}{{{\textbf{?}}}}1 {*=}{{{\textbf{*=}}}}1 {'c}{{\'c}}1,%
morekeywords={node,type,feature,iface,include,class,import,export,declare,syn,sem,value, use, with, dims,frame,morph,lemma,morpho,fam,entry}
}
\newcommand{\ixmg}{%
\lstinline[language=,keepspaces,%
literate={->}{{{\textbf{->}}}}1 {\{}{{{\textbf{\{}}}}1 {\}}{{{\textbf{\}}}}}1 {\;}{{{\textbf{;}}}}1 {|}{{{\textbf{|}}}}1 {=}{{{\textbf{=}}}}1 {[}{{{\textbf{[}}}}1 {]}{{{\textbf{]}}}}1 {<}{{{\textbf{<}}}}1 {>}{{{\textbf{>}}}}1 {!}{{{\textbf{!}}}}1 {?}{{{\textbf{?}}}}1 {*=}{{{\textbf{*=}}}}1,%
morekeywords={node,type,feature,include,class,import,export,declare,syn,sem,frame,morph,value, use, with, dims}
]}
<<version×tamp-latex>>
<<listings-xmg-settings>>
% Syntax highlighting for DuELME: https://duelme.clarin.inl.nl/
\RequirePackage{color}
\definecolor{lightgray}{gray}{0.7}
\lstnewenvironment{duelme}{%
\lstset{language=,
numbers=left,numbersep=8pt,numberstyle=\color{lightgray},
% frame=l,
basicstyle=\small\ttfamily,%
xleftmargin=0.7cm,framexleftmargin=12pt,%
framerule=0.5mm,rulecolor=\color{lightgray},%
escapeinside={|\%}{\%|},%
commentstyle=\color{lightgray}, morekeywords={PATERN,NAME,POS,PATTERN,MAPPING,EXAMPLE,MWE,SENTENCE,DESCRIPTION,COMMENT,LISTA,LISTB,SUBJECT,OBJECT,MODIFIER,RPRON,CONJUGATION,POLARITY,EXPRESSION,CL}}}{}
<<version×tamp-latex>>
<<listings-duelme-settings>>
% Syntax highlighting for PATR: https://en.wikipedia.org/wiki/PATR-II
\RequirePackage{color}
\definecolor{lightgray}{gray}{0.7}
\lstnewenvironment{patr-listing}{%
\lstset{language=,
numbers=left,numbersep=8pt,numberstyle=\color{lightgray},
% frame=l,
basicstyle=\small\ttfamily,%
xleftmargin=0.7cm,framexleftmargin=12pt,%
framerule=0.5mm,rulecolor=\color{lightgray},%
escapeinside={|\%}{\%|},%
commentstyle=\color{lightgray},
literate={:}{{{\textbf{:}}}}1 {\{}{{{\textbf{\{}}}}1 {\}}{{{\textbf{\}}}}}1 {=}{{{\textbf{=}}}}1 {[}{{{\textbf{[}}}}1 {]}{{{\textbf{]}}}}1 {<}{{{\textbf{<}}}}1 {>}{{{\textbf{>}}}}1 {!}{{{\textbf{!}}}}1,
morekeywords={Define,as,Word}}}{}
<<version×tamp-latex>>
<<listings-patr-settings>>
Here is an example with Python code:
\begin{lstlisting}[language=Python,
% float,
% caption=A floating example with Python code
]
from numpy import random
import matplotlib.pyplot as plt
import seaborn as sns
sns.distplot(random.normal(scale=2, size=1000), hist=False, label='normal')
sns.distplot(random.logistic(size=1000), hist=False, label='logistic')
plt.show()
\end{lstlisting}
Formulae in texts: $a^2 + b^2 = c^2$
\noindent Formulae in equation environment:
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
$\Rightarrow$ \url{http://en.wikibooks.org/wiki/LaTeX/Mathematics}
https://ctan.org/pkg/microtype
Micro-typographic extensions supported by pdfLaTeX and XeLaTeX.
\usepackage{microtype}
This package also adds support for flexible letter spacing (Sperren) of words with \textls
. Alternatively, one can use \so
of the soul package, which however tends to insert wider spaces between letters.
Typeset text in multiple columns (up to a maximum of 10).
\usepackage{multicol}
\begin{multicols}{3}
Text across three horizontal columns usinge \textwidth.
\end{multicols}
https://www.ctan.org/pkg/bibtex
This package is superseded by BibLaTeX.
\usepackage{natbib}
\setlength{\bibsep}{0mm}
%\setcitestyle{notesep={: }}
\bibpunct[: ]{(}{)}{;}{a}{}{;}
\bibliographystyle{bst/unified}
\newcommand{\insertBib}{
\bibliography{references}
}
\let\cite=\citet % in order to prevent inconsistencies between \cite and \citet
https://www.ctan.org/pkg/scrartcl
Change the layout of scrarticle from koma-script. This is more flexible than using the regular article class.
<<version×tamp-latex>>
%%%%%%%%%%%%%%%%%%%%%%%%%%
% SCRARTICLE SETTINGS %
%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{datetime}
% \usepackage{ifdraft} % Better avoid the draft option
\newcommand{\newlineTitle}{\\}
\usepackage{scrlayer-scrpage}
\ohead{\headmark}
\chead{}
\ihead{}
%\ifdraft{\ifoot[]{Draft of \today, \currenttime\ -- comments are welcome!}}{}
\ifbool{draftmode}{\ifoot[]{Draft of \today, \currenttime\ -- comments are welcome!}}{}
\cfoot{}
\ofoot[\pagemark]{\pagemark}
\pagestyle{scrheadings}
\makeatletter
\def\affiliation#1{\gdef\@affiliation{#1}}
\lehead{\@author}
\rohead{\renewcommand{\newlineTitle}{}\@title}
% quotes are indented at one side only.
\renewenvironment{quote}
{\list{}{\rightmargin0pt\leftmargin8mm}%{\rightmargin\leftmargin}%
\item\relax}
{\endlist}
% quotations are indented at one side only
% there is no indentation at the beginning of the quote
\renewenvironment{quotation}
{\list{}{\listparindent 1.5em%
% \itemindent \listparindent
% \rightmargin \leftmargin
\parsep \z@ \@plus\p@}%
\item\relax}
{\endlist}
\renewcommand{\maketitle}{
\thispagestyle{plain}
{\raggedright
% \ifdraft{{\large\color{gray} (Draft of \today, \currenttime)\par}}{}%
\ifbool{draftmode}{{\large\color{gray} (Draft of \today, \currenttime)\par}}{}%
{\LARGE\sffamily%
\ifx\@subject\empty\else{\textsc{(\@subject)\\[1ex]}}\fi%
\textbf{\@title}\\[1ex]\par}
{\Large\@author \\}%
\@ifundefined{@affiliation}{}
{ \vspace*{1ex}%
\large\@affiliation \\}}%
% \vspace*{\baselineskip}%
% \ifx\@epigram\empty%
% \else {\epigraph{\@epigram\\[-5ex]}{\@epigramsource}%
% \epigram{}\epigramsource{}}%
% \fi%
\vspace*{-3ex}
\begin{quote}
\abstract
\end{quote}
}
\makeatother
\input{scrarticle-settings}
Additional settings for tabular environments.
Issues:
- [ ] Adjustbox needs to be tested.
%% Rotate content of tabular cell: \rot{content}
\RequirePackage{adjustbox}
\newcolumntype{R}[2]{%
>{\adjustbox{angle=#1,lap=\width-(#2)}\bgroup}%
l%
<{\egroup}%
}
\newcommand*\rot{\multicolumn{1}{R{45}{1em}}}% no optional argument here, please!
\begin{tabular}{c|c|c}
\hline
cell 11 & cell 12 & cell 13 \\
\hline
cell 21 & cell 22 & cell 23 \\
\hline
\end{tabular}
https://ctan.org/pkg/booktabs/
Optimization of tables with two golden rules:
- Never, ever use vertical rules.
- Never use double rules.
\usepackage{booktabs} % Nicer tables
Example from the booktabs manual:
\begin{tabular}{@{}llr@{}} \toprule
\multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2}
Animal & Description & Price (\$) \\ \midrule
Gnat & per gram & 13.65 \\
& each & 0.01 \\
Gnu & stuffed & 92.50 \\
Emu & stuffed & 33.33 \\
Armadillo & frozen & 8.99 \\ \bottomrule
\end{tabular}
More space can be added with SRC_latex{\addlinespace[]}.
Color rows and columns of a table.
\usepackage{colortbl}
Merge cells vertically over multiple rows. Analogous to \multicolumns
built into LaTeX.
\usepackage{multirow}
https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/textpos/textpos.pdf
Absolute positioning of textblocks on a page.
%%%%%%%%%%%%%%%%%%%%%%%%%
% TEXTPOS SETTINGS %
%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{calc} % Enables the use of calc expressions: 0pt+1cm
\usepackage[
absolute, % Absolute positioning
overlay % Positioned textblocks will overlay any other parts of the text.
]{textpos}
\setlength{\TPHorizModule}{1em}
\setlength{\TPVertModule}{1ex}
\newlength{\textposOriginH}
\newlength{\textposOriginV}
\setlength{\textposOriginH}{10mm}
\setlength{\textposOriginV}{10mm}
\textblockorigin{\textposOriginH}{\textposOriginV}
\newcommand{\freeblock}[2]{
\begin{textblock}{0.1}(#1)
#2
\end{textblock}
}
- State “TODO” from [2024-01-24 Wed 09:07]
Comprehensive tool for typesetting graphics and diagrams.
Issues:
- [ ] Make settings more modular
<<version×tamp-latex>>
%==============================
% TikZ settings
%------------------------------
\usepackage{tikz}
\usepackage{tikz-dependency}
\tikzset{every tree node/.style={align=center,anchor=north}} % to allow linebreaks
\usetikzlibrary{calc} % for positioning arrows with ($(t.center)-(1,0)$)
\usetikzlibrary{shapes,decorations}
\usetikzlibrary{backgrounds,fit}
\usetikzlibrary{arrows}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{automata}
\usetikzlibrary{tikzmark}
\usetikzlibrary{decorations.pathreplacing} % needed for braces in unify children
% Define box and box title style (see http://www.texample.net/tikz/examples/boxes-with-text-and-math/)
\tikzstyle{mybox} = [draw=gray, very thick,
rectangle, rounded corners, inner sep=10pt, inner ysep=17pt,yshift=3pt]
\tikzstyle{fancytitle} =[draw=gray, very thick, fill=white,
rectangle, rounded corners, inner sep=5pt, inner ysep=5pt]
\tikzstyle{mydouble} = [double distance=1pt]
\tikzset{
%% Define standard arrow tip
>=stealth',
%% Define style for boxes
box/.style={
rectangle,
rounded corners,
draw=black, very thick,
text width=10em,
minimum height=2em,
text centered},
%% Define arrow style
arrow/.style={
->,
thick,
shorten <=2pt,
shorten >=2pt,},
%% Beamer overlays (https://tex.stackexchange.com/a/253384/61499)
invisible/.style={opacity=0,text opacity=0},
visible/.style={alt=#1{}{invisible}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}},
transparent/.style={opacity=0.1,text opacity=0.1},
opaque/.style={alt=#1{}{transparent}},
alerted/.style={color=alerted text.fg},
alert/.style={alt=#1{alerted}{}},
}
\newcommand\centertikz[1]{\tikz[baseline=(current bounding box.center)]{#1}}
\newcommand\tikzcenter{baseline=(current bounding box.center)}
\newcommand\tikztop{baseline=(current bounding box.north)}
\newcommand\tikztreeset[1]{\matrix [matrix of nodes,left delimiter=\{,right delimiter=\}](set){#1};}
\input{packages/tikz-settings}
https://tug.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf
Add todo notes to your documents.
\input{packages/todonotes-settings}
<<version×tamp-latex>>
\RequirePackage{soul} % Required by todonotes
\usepackage[textsize=scriptsize,textwidth=2.5cm]{todonotes}
\newcommand{\todoregion}[2]{\hl{#1}\todo{#2}}
The following are examples of using the todonotes package.
\begin{itemize}
\item The most relevant command is probably \verb|\todo[<options>]{<todo>}|:
\todo[
% ,author=Xavier
% ,color=green
% ,inline
% ,fancyline
% ,size=\scriptsize
]{Do something!}example with \verb|\todo|
\item Additionally, I have defined \verb|\todoregion{<region>}{<todo>}| for highlighting the region of the todo:
\todoregion{example}{Do something!} with \verb|\todoregion|
\end{itemize}
\noindent The list of todos can be printed with \verb|\listoftodos|.
Highlight text with lines.
\usepackage{ulem} % highlight text with lines
\normalem % do not overwrite \emph
This package provides a couple of commands to highlight text with lines:
\uline{underline text}
\uuline{double-underline text}
\uwave{wavy underline}
\sout{strike out}
\xout{strike out with skewed lines}
\dashuline{dashed underline}
\dotuline{dotted underline}
Collection of private macros on which the templates do not depend.
<<version×tamp-latex>>
<<TLmacros.tex>>
\input{TLmacros}
%%%%%%%%%%%%%%%%%%%%%%
% SYMBOLS %
%%%%%%%%%%%%%%%%%%%%%%
% \newcommand{\bsp}[1]{\textit{#1}} % Probably defines elsewhere
\newcommand{\am}{\parallel}
\newcommand{\unify}{\sqcup}
\newcommand{\word}{\overline}
\newcommand{\Nonterminals}{\mathcal{N}}
\newcommand{\Terminals}{\Sigma}
\newcommand{\Productions}{\mathcal{P}}
\newcommand{\svar}[1]
{\setbox2=\hbox{$\scriptstyle #1$}\lower.2ex\vbox{\hrule
\hbox{\vrule\kern1.25pt
\vbox{\kern1.25pt\box2\kern1.25pt}\kern1.25pt\vrule}\hrule}}
\newcommand{\ssvar}[1]
{\setbox2=\hbox{\scalebox{.7}{$#1$}}\lower.3ex\vbox{\hrule
\hbox{\vrule\kern1pt
\vbox{\kern1pt\box2\kern1pt}\kern1pt\vrule}\hrule}}
\newcommand{\anvar}{\rule{0.4em}{0.4pt}\,}
\newcommand{\trace}[0]{\raisebox{1pt}{\underline{$~~~$}}}
% % Taken from https://tex.stackexchange.com/a/60253/61499
% \makeatletter
% \newcommand*\myrel@kern[1]{\kern#1\dimexpr\macc@kerna}
% \def\widebar#1{% use \def to optionally overwrite \widebar
% \begingroup
% \def\mathaccent##1##2{%
% \myrel@kern{0.8}%
% \overline{\myrel@kern{-0.8}\macc@nucleus\myrel@kern{0.2}}%
% \myrel@kern{-0.2}%
% }%
% \macc@depth\@ne
% \let\math@bgroup\@empty \let\math@egroup\macc@set@skewchar
% \mathsurround\z@ \frozen@everymath{\mathgroup\macc@group\relax}%
% \macc@set@skewchar\relax
% \let\mathaccentV\macc@nested@a
% \macc@nested@a\relax111{#1}%
% \endgroup
% }
% \makeatother
%% Dingbats, i.e. symbolic, decorative glyphs
\RequirePackage{pifont}
\newcommand{\cmark}{\ding{51}} % checkmark
\newcommand{\xmark}{\ding{55}} % xmark
%% Instead of \operatorname{argmax}
\DeclareMathOperator*{\argmax}{argmax}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% COLORS & HIGHLIGHTING %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{myblue}{rgb}{0,0,0.70}
\definecolor{myred}{rgb}{0.8,0,0}
\definecolor{mydarkgreen}{rgb}{0,0.55,0}
\newcommand{\emphR}[1]{{\color{myred}#1}}
%%%%%%%%%%%%%%%%%%%%%%
% MISCELLANEOUS %
%%%%%%%%%%%%%%%%%%%%%%
% \newcommand{\circled}[1]{\textcircled{\raisebox{-0.9pt}{#1}}}
\DeclareRobustCommand\circled[1]{\tikz[baseline=(char.base)]{ % works better compared to \newcommand*
\node[shape=circle,draw,inner sep=.15ex] (char) {\small{#1}};}}
% \usepackage{circledsteps} % provides the macro \Circled; not included in TeXLive 2018
% \newcommand{circled}[1]{\Circled{#1}}
\newcommand{\prule}[3]{\ensuremath{\begin{array}{c} #1\\ \hline #2\end{array} ~~ #3}}
\newcommand{\minitab}[2][c]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\newlength{\thisWidth}
\newcommand*{\hspaceThis}[1]{\settowidth{\thisWidth}{#1}\hspace*{\thisWidth}}
\newcommand*{\hspaceMinusThis}[1]{\settowidth{\thisWidth}{#1}\hspace*{-\thisWidth}}
\newenvironment{changemargin}[2]{%
\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\item[]}{\end{list}}
% \newtheorem{definition}{Definition}
% \newtheorem{corollary}{Corollary}
% \newtheorem{theorem}{Theorem}
\newcommand\redout{\bgroup\markoverwith{\textcolor{red}{\rule[.4ex]{2pt}{1pt}}}\ULon}
\newcommand{\largerpage}[1][1]{
\enlargethispage{#1\baselineskip}}
Hiermit erkläre ich, dass ich die vorliegende Arbeit selbstständig verfasst und keine anderen Hilfsmittel als die angegebenen verwendet habe.
Insbesondere versichere ich, dass ich alle wörtlichen und sinngemäßen Übernahmen aus anderen Werken als solche kenntlich gemacht habe.
\vspace{10ex}
\noindent
\begin{tabular}{lcl}
\rule{6cm}{1pt} & \hspace{1cm} & \rule{6cm}{1pt} \\
Ort/Datum & & Unterschrift
\end{tabular}
More \LaTeX{} templates on \url{https://github.com/timmli/latex-templates}.
ABSCHLUSSARBEIT_TEST_DIR = test_abschlussarbeit
ABSCHLUSSARBEIT_FILES = $(shell ./extract_input_files.sh "abschlussarbeit-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
abschlussarbeit-main.tex \
references.bib
test_abschlussarbeit:
rm -fr $(ABSCHLUSSARBEIT_TEST_DIR)
mkdir $(ABSCHLUSSARBEIT_TEST_DIR)
cp -r --parents $(ABSCHLUSSARBEIT_FILES) $(ABSCHLUSSARBEIT_TEST_DIR)
cd $(ABSCHLUSSARBEIT_TEST_DIR); \
latexmk -pdf abschlussarbeit-main.tex
release_abschlussarbeit:
rm -fr temp
mkdir temp
cp -r --parents $(ABSCHLUSSARBEIT_FILES) temp
cd temp; zip -r abschlussarbeit-template.zip *; mv abschlussarbeit-template.zip ..
rm -fr temp
ABSTRACT_TEST_DIR = test_abstract
ABSTRACT_FILES = $(shell ./extract_input_files.sh "abstract-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
abstract-main.tex \
abstract-main.org \
references.bib
test_abstract:
rm -fr $(ABSTRACT_TEST_DIR)
mkdir $(ABSTRACT_TEST_DIR)
cp -r --parents $(ABSTRACT_FILES) $(ABSTRACT_TEST_DIR)
cd $(ABSTRACT_TEST_DIR); \
latexmk -pdf abstract-main.tex
release_abstract:
rm -fr temp
mkdir temp
cp -r --parents $(ABSTRACT_FILES) temp
cd temp; zip -r abstract-template.zip *; mv abstract-template.zip ..
rm -fr temp
ARTICLE_TEST_DIR = test_article
ARTICLE_FILES = $(shell ./extract_input_files.sh "article-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
article-main.tex \
article-main.org \
references.bib
test_article:
rm -fr $(ARTICLE_TEST_DIR)
mkdir $(ARTICLE_TEST_DIR)
cp -r --parents $(ARTICLE_FILES) $(ARTICLE_TEST_DIR)
cd $(ARTICLE_TEST_DIR); \
latexmk -pdf article-main.tex
release_article:
rm -fr temp
mkdir temp
cp -r --parents $(ARTICLE_FILES) temp
cd temp; zip -r article-template.zip *; mv article-template.zip ..
rm -fr temp
BOOK_TEST_DIR = test_book
BOOK_FILES = $(shell ./extract_input_files.sh "book-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
book-main.tex \
references.bib
test_book:
rm -fr $(BOOK_TEST_DIR)
mkdir $(BOOK_TEST_DIR)
cp -r --parents $(BOOK_FILES) $(BOOK_TEST_DIR)
cd $(BOOK_TEST_DIR); \
latexmk -pdf book-main.tex
release_book:
rm -fr temp
mkdir temp
cp -r --parents $(BOOK_FILES) temp
cd temp; zip -r book-template.zip *; mv book-template.zip ..
rm -fr temp
BEAMER_TEST_DIR = test_beamer
BEAMER_FILES = $(shell ./extract_input_files.sh "beamer-main.tex") \
$(wildcard beamer*) \
$(wildcard packages/*.sty) \
$(wildcard graphics/*.pdf) \
references.bib \
latexmkrc \
muss.bbx \
muss.cbx
test_beamer:
rm -fr $(BEAMER_TEST_DIR)
mkdir $(BEAMER_TEST_DIR)
cp -r --parents $(BEAMER_FILES) $(BEAMER_TEST_DIR)
cd $(BEAMER_TEST_DIR); \
latexmk -pdf beamer-main.tex
release_beamer:
rm -fr temp
mkdir temp
cp -r --parents $(BEAMER_FILES) temp
cd temp; zip -r beamer-template.zip *; mv beamer-template.zip ..
rm -fr temp
HAUSARBEIT_TEST_DIR = test_hausarbeit
HAUSARBEIT_FILES = $(shell ./extract_input_files.sh "hausarbeit-main.tex") \
muss.bbx \
muss.cbx \
$(wildcard packages/*.sty) \
references.bib \
hausarbeit-main.tex
test_hausarbeit:
rm -fr $(HAUSARBEIT_TEST_DIR)
mkdir $(HAUSARBEIT_TEST_DIR)
cp -r --parents $(HAUSARBEIT_FILES) $(HAUSARBEIT_TEST_DIR)
cd $(HAUSARBEIT_TEST_DIR); \
latexmk -pdf hausarbeit-main.tex
release_hausarbeit:
rm -fr temp
mkdir temp
cp -r --parents $(HAUSARBEIT_FILES) temp
cd temp; zip -r hausarbeit-template.zip *; mv hausarbeit-template.zip ..
rm -fr temp
POSTER_TEST_DIR = test_poster
POSTER_FILES = $(shell ./extract_input_files.sh "poster-main.tex") \
poster-main.tex \
graphics/sfb-logo-quer.pdf \
graphics/hhu-logo-hres.pdf \
$(wildcard packages/*.sty) \
muss.bbx \
muss.cbx
test_poster:
rm -fr $(POSTER_TEST_DIR)
mkdir $(POSTER_TEST_DIR)
cp -r --parents $(POSTER_FILES) $(POSTER_TEST_DIR)
cd $(POSTER_TEST_DIR); \
latexmk -pdf poster-main.tex
release_poster:
rm -fr temp
mkdir temp
cp -r --parents $(POSTER_FILES) temp
cd temp; zip -r poster-template.zip *; mv poster-template.zip ..
rm -fr temp
SHELL := /bin/bash
test_all: test_abschlussarbeit test_abstract test_article test_beamer test_book test_hausarbeit test_standalone
release_all: release_abschlussarbeit release_abstract release_article release_beamer release_book release_hausarbeit release_standalone
#-------------------------------------------------------------------------------
<<abschlussarbeit-makefile>>
#-------------------------------------------------------------------------------
<<abstract-makefile>>
#-------------------------------------------------------------------------------
<<article-makefile>>
#-------------------------------------------------------------------------------
<<beamer-makefile>>
#-------------------------------------------------------------------------------
<<book-makefile>>
#-------------------------------------------------------------------------------
<<hausarbeit-makefile>>
#-------------------------------------------------------------------------------
<<poster-makefile>>
#-------------------------------------------------------------------------------
<<standalone-makefile>>
#-------------------------------------------------------------------------------
STANDALONE_TEST_DIR = test_standalone
STANDALONE_FILES = $(shell ./extract_input_files.sh "standalone-main.tex") \
standalone-main.tex \
$(wildcard packages/*.sty)
test_standalone:
rm -fr $(STANDALONE_TEST_DIR)
mkdir $(STANDALONE_TEST_DIR)
cp -r --parents $(STANDALONE_FILES) $(STANDALONE_TEST_DIR)
cd $(STANDALONE_TEST_DIR); \
latexmk -pdf standalone-main.tex
release_standalone:
rm -fr temp
mkdir temp
cp -r --parents $(STANDALONE_FILES) temp
cd temp; zip -r standalone-template.zip *; mv standalone-template.zip ..
rm -fr temp
<<pdflatex-latexmk>>
# -*- mode: Perl; eval: (flycheck-mode -1);-*-
# Manual: http://mirror.physik-pool.tu-berlin.de/pub/CTAN/support/latexmk/latexmk.pdf
$cleanup_mode = 2;
# 1 for full cleanup,
# 2 for cleanup except for .dvi, .ps and .pdf files,
# 3 for cleanup except for dep and aux files.
$clean_ex = "*.fls";
$pdflatex = 'pdflatex -shell-escape %O %S';