Commit d8df878d authored by Sergey Goncharov's avatar Sergey Goncharov
Browse files

Initial commit

parents
%-------------------------------------------------------------------------------
% Color theme file
%-------------------------------------------------------------------------------
\mode<presentation>
% Farbdefinitionen
\definecolor{faublue}{RGB}{0,51,102}
\definecolor{faugrey}{RGB}{150,150,150}
% Struktur
\setbeamercolor{structure}{fg=faublue}
% Titel
\setbeamercolor{title page}{fg=white}
\setbeamercolor{titlelike}{parent=structure}
\setbeamercolor{frametitle}{parent=titlelike}
% normaler Text
\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=red}
\setbeamercolor{example text}{fg=green!50!black}
% Fusszeile
\setbeamercolor{footline}{fg=faugrey}
% Ueberschriften
\setbeamercolor{caption}{fg=black}
\setbeamercolor{caption name}{fg=black}
%%%%%%%%%%%%%%%%%%%%%%%% Aufzaehlungen und Listen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Enumerate item
\setbeamercolor{enumerate item}{fg=faublue}
\setbeamercolor{enumerate subitem}{fg=faublue}
\setbeamercolor{enumerate subsubitem}{fg=faublue}
% Itemize item
\setbeamercolor{itemize item}{fg=faublue}
\setbeamercolor{itemize subitem}{fg=faublue}
\setbeamercolor{itemize subsubitem}{fg=faublue}
% Description item
\setbeamercolor{description item}{fg=faublue}
\setbeamercolor{description subitem}{fg=faublue}
\setbeamercolor{description subsubitem}{fg=faublue}
%%%%%%%%%%%%%%%%%%%%%% Aufzaehlungen und Listen Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode
<all>
%-------------------------------------------------------------------------------
% Font theme file
%-------------------------------------------------------------------------------
\mode<presentation>
% Schriftart Helvetica
\usepackage[scaled]{helvet}
\renewcommand*{\familydefault}{\sfdefault} % Standard ist serifenlos
\AtBeginDocument{\fontsize{20}{24}\selectfont}
% normaler Text
\setbeamerfont{normal text}{size=\fontsize{20}{24}} % ignored currently, its not implemented yet!
% Titel
\setbeamerfont{title}{series=\bfseries,size=\fontsize{36}{42}}
\setbeamerfont{subtitle}{series=\normalfont,size=\fontsize{36}{42}}
\setbeamerfont{frametitle}{size=\fontsize{24}{28},series=\bfseries}
% Fusszeile
\setbeamerfont{footline}{size=\fontsize{10}{12}}
%%%%%%%%%%%%%%%%%%%%%%%% Aufzaehlungen und Listen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Enumerate item
\setbeamerfont{enumerate item}{size=\fontsize{20}{24}}
\setbeamerfont{enumerate subitem}{size=\fontsize{18}{22}}
\setbeamerfont{enumerate subsubitem}{size=\fontsize{16}{20}}
% Itemize item
\setbeamerfont{itemize item}{size=\fontsize{20}{24}}
\setbeamerfont{itemize subitem}{size=\fontsize{18}{22}}
\setbeamerfont{itemize subsubitem}{size=\fontsize{16}{20}}
% Enumerate and itemize body
\setbeamerfont{itemize/enumerate body}{size=\fontsize{20}{24}}
\setbeamerfont{itemize/enumerate subbody}{size=\fontsize{18}{22}}
\setbeamerfont{itemize/enumerate subsubbody}{size=\fontsize{16}{20}}
%%%%%%%%%%%%%%%%%%%%%% Aufzaehlungen und Listen Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode
<all>
%-------------------------------------------------------------------------------
% Inner theme file
%-------------------------------------------------------------------------------
\mode<presentation>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Titelseite %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{title page}
{%
\setlength{\unitlength}{1mm}
\begin{picture}(254,190.5)(17.4,0) % Ursprung (0,0) minus linke Marginalie
% Hintergrundbild Schloss
\put(0,55.4){%
\pgfuseimage{fauschloss}
}
% Trennbalken
\put(0,55.4){\color{faublue}\rule{\paperwidth}{4mm}}
% Titel FAU
\put(17.4,110.7){%
\begin{minipage}[b][45mm][t]{226mm}
\usebeamerfont{title}{\raggedright\inserttitle\par}
\end{minipage}
}
% Autor, Datum, etc
\put(17.4,66){%
\begin{minipage}[b][30mm][b]{113mm}
\fontsize{18}{22}\selectfont % Schriftgroesse und Zeilenabstand
\ifx\insertauthor\empty\else
\insertauthor
\fi
\ifx\insertdate\empty\else
\newline\insertdate
\fi
\ifx\insertinstitute\empty\else
\newline\insertinstitute
\fi
\end{minipage}
}
% Projekt-/Lehrstuhl-Box
\put(17.4,0){%
\begin{minipage}[b][37.5mm][c]{125.45mm}
\raggedleft % Ausrichtung am rechten Rand
\color{black}
\fontsize{16}{20}\selectfont % Schriftgroesse und Zeilenabstand
\usebeamertemplate{projectbox}
\end{minipage}
}
% Logo-Box mit FAU-Logo
\put(153.45,0){%
\begin{minipage}[b][37.5mm][c]{89.95mm}
\raggedleft % Ausrichtung am rechten Rand
\pgfuseimage{faulogo}
\end{minipage}
}
\end{picture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Titelseite Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Section-Seite %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AtBeginSection{%
\frame[plain,c]{%
\setlength{\unitlength}{1mm}
\begin{picture}(254,190.5)(17.4,0) % Ursprung (0,0) minus linke Marginalie
% Hintergrundbild Schloss abgeschnitten
\put(0,135.1){%
\pgfuseimage{fauschlosscropped}
}
% Trennbalken
\put(0,135.1){\color{faublue}\rule{\paperwidth}{4mm}}
% Titel der Section
\put(17.4,75.3){%
\begin{minipage}[b][25mm][t]{226mm}
\fontsize{28}{34}\selectfont % Schriftgroesse und Zeilenabstand
\color{faublue}
\bfseries % fett
\insertsection
\end{minipage}
}
% Projekt-/Lehrstuhl-Box
\put(17.4,0){%
\color{black}
\begin{minipage}[b][37.5mm][c]{125.45mm}
\raggedleft % Ausrichtung am rechten Rand
\color{black}
\fontsize{16}{20}\selectfont % Schriftgroesse und Zeilenabstand
\usebeamertemplate{projectbox}
\end{minipage}
}
% Logo-Box mit FAU-Logo
\put(153.45,0){%
\begin{minipage}[b][37.5mm][c]{89.95mm}
\raggedleft % Ausrichtung am rechten Rand
\pgfuseimage{faulogo}
\end{minipage}
}
\end{picture}
}% end frame
}
%%%%%%%%%%%%%%%%%%%%%%%%%% Section-Seite Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%% Aufzaehlungen und Listen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Enumerate item
\setbeamertemplate{enumerate item}{\insertenumlabel.}
\setbeamertemplate{enumerate subitem}{\insertenumlabel.\insertsubenumlabel}
\setbeamertemplate{enumerate subsubitem}{\insertenumlabel.\insertsubenumlabel.\insertsubsubenumlabel}
% Itemize item
\setbeamertemplate{itemize item}{\textbullet}
\setbeamertemplate{itemize subitem}{\textbullet}
\setbeamertemplate{itemize subsubitem}{\textbullet}
%%%%%%%%%%%%%%%%%%%%%% Aufzaehlungen und Listen Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode
<all>
%-------------------------------------------------------------------------------
% Outer theme file
%-------------------------------------------------------------------------------
\mode<presentation>
% Seitenanpassung
\usepackage{geometry}
\geometry{paperwidth=254mm,paperheight=190.5mm,left=0mm,right=0mm,top=0mm,bottom=0mm} % Papiergroesse
\setbeamersize{text margin left=17.4mm,text margin right=10.6mm} % Marginalien fuer Inhalt
% Deaktivierung der Navigationssymbole
\setbeamertemplate{navigation symbols}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Folientitel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{frametitle}
{%
\insertframetitle\\[24pt]
}
%%%%%%%%%%%%%%%%%%%%%%%%%%% Folientitel Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Kopfzeile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}
{%
\setlength{\unitlength}{1mm}
\begin{picture}(254,34.8)(0,0)
% Trennbalken
\put(17.4,10.8){\color{faublue}\rule{226mm}{0.75pt}}
% Projekt-/Lehrstuhl-Box
\put(17.4,10.8){%
\begin{minipage}[b][24mm][c]{155.71mm}
\raggedleft % Ausrichtung am rechten Rand
\color{black}
\fontsize{13}{17}\selectfont % Schriftgroesse und Zeilenabstand
\usebeamertemplate{projectboxsmall}
\end{minipage}
}
% Logo-Box mit FAU-Logo
\put(183.71,10.8){%
\begin{minipage}[b][24mm][c]{59.69mm}
\pgfuseimage{faulogosmall}
\end{minipage}
}
\end{picture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Kopfzeile Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Fusszeile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{footline}
{%
\setlength{\unitlength}{1mm}
\begin{picture}(254,12.5)(0,0)
% Box fuer Info
\put(17.4,0){%
\begin{minipage}[b][12.5mm][c]{169.5mm}
\ifx\insertdate\empty\else
\insertdate\quad|\quad
\fi
\ifx\insertauthor\empty\else
\insertauthor\quad|\quad\
\fi
\ifx\insertinstitute\empty\else
\insertinstitute\quad|\quad
\fi
\insertshorttitle
\end{minipage}
}
% Box fuer Seitenzahl
\put(230.9,0){%
\begin{minipage}[b][12.5mm][c]{12.5mm}
\raggedleft % Ausrichtung am rechten Rand
\insertframenumber % Seitenzahl
\end{minipage}
}
\end{picture}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Fusszeile Ende %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode
<all>
%-------------------------------------------------------------------------------
% Main file
%-------------------------------------------------------------------------------
\mode<presentation>
% Einbinden der einzelnen Theme-Dateien
\usefonttheme{fau-4-3}
\usecolortheme{fau-4-3}
\useinnertheme{fau-4-3}
\useoutertheme{fau-4-3}
% Graphiken
% FAU-Logos fuer Titelseiten und Kopfzeilen
% FAU allgemein
%\pgfdeclareimage[height=15mm]{faulogo}{art/fau-logo}
%\pgfdeclareimage[height=10mm]{faulogosmall}{art/fau-logo}
% Medizinische Fakultaet
%\pgfdeclareimage[height=20.7mm]{faulogo}{art/fau-logo-med}
%\pgfdeclareimage[height=13.8mm]{faulogosmall}{art/fau-logo-med}
%% Naturwissenschaftliche Fakultaet
%\pgfdeclareimage[height=24mm]{faulogo}{art/fau-logo-nat}
%\pgfdeclareimage[height=16mm]{faulogosmall}{art/fau-logo-nat}
%% Philosophische Fakultaet und Fachbereich Theologie
%\pgfdeclareimage[height=24mm]{faulogo}{art/fau-logo-philtheo}
%\pgfdeclareimage[height=16mm]{faulogosmall}{art/fau-logo-philtheo}
%% Fachbereich Rechtswissenschaft
%\pgfdeclareimage[height=24mm]{faulogo}{art/fau-logo-recht}
%\pgfdeclareimage[height=16mm]{faulogosmall}{art/fau-logo-recht}
%% Rechts- und Wirtschaftswissenschaftliche Fakultaet
%\pgfdeclareimage[height=24mm]{faulogo}{art/fau-logo-rechtwirt}
%\pgfdeclareimage[height=16mm]{faulogosmall}{art/fau-logo-rechtwirt}
%% Technische Fakultaet
\pgfdeclareimage[height=20.7mm]{faulogo}{art/fau-logo-tech}
\pgfdeclareimage[height=13.8mm]{faulogosmall}{art/fau-logo-tech}
%% Fachbereich Wirtschaftswissenschaften
%\pgfdeclareimage[height=24mm]{faulogo}{art/fau-logo-wirtschaft}
%\pgfdeclareimage[height=16mm]{faulogosmall}{art/fau-logo-wirtschaft}
%
\pgfdeclareimage[width=\paperwidth,height=135.1mm]{fauschloss}{art/4_3_title} % Hintergrundgraphik fuer Titelseite
\pgfdeclareimage[width=\paperwidth,height=55.4mm]{fauschlosscropped}{art/4_3_chapter} % Hintergrundgraphik fuer Section-Seite
\mode
<all>
\documentclass[t]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\usepackage{graphicx}
\usetheme{fau-4-3}
% Title page
\title[Kurztitel]{Vortragstitel}
\author{Vorname Nachname}
\date{Ort, Datum}
\institute{Musterlehrstuhl}
\begin{document}
% Optinale Box links neben dem FAU-Logo
%\setbeamertemplate{projectbox}{\includegraphics[height=24mm]{projekt-logo-muster}}
%\setbeamertemplate{projectboxsmall}{\includegraphics[height=16mm]{projekt-logo-muster}}
\frame[plain,c]{\titlepage} % plain-Option deaktiviert Kopf- und Fusszeile
\section{Abschnitts\"uberschrift}
\begin{frame}
\frametitle{Folien\"uberschrift}
\begin{itemize}
\item Aufz\"ahlungspunkt
\end{itemize}
\end{frame}
\section{Vielen Dank f\"ur Ihre Aufmerksamkeit!}
\end{document}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="8.88889in"
height="5.55556in"
viewBox="0 0 640 400"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
sodipodi:docname="logo.svg">
<metadata
id="metadata9">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs7" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1600"
inkscape:window-height="843"
id="namedview5"
showgrid="false"
inkscape:zoom="1.6141471"
inkscape:cx="471.4005"
inkscape:cy="265.36969"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg2"
inkscape:snap-grids="true"
inkscape:snap-global="true"
inkscape:object-paths="true" />
<g
id="g3764"
transform="matrix(1.5,0,0,1.5,-136.71648,-44.782744)">
<path
inkscape:connector-curvature="0"
id="path3004"
d="m 284.04505,99.000177 c -6.18793,0.746928 -11.00803,6.189763 -17.47717,5.482743 -29.03953,0.53125 -58.09535,-0.23263 -87.12867,0.63212 -18.121,0.61898 -36.05392,9.8503 -46.29846,24.90898 -1.62693,2.78205 -3.92001,6.30688 -2.38396,9.58425 4.07337,3.61577 9.89701,-0.53487 13.8626,-2.47747 4.59993,-2.50757 7.83037,-6.78478 10.34911,-11.25 1.08785,-1.83129 2.79836,-3.65459 5.16845,-3.17137 12.75679,-0.33962 25.53029,-0.59643 38.28875,-0.37593 1.54399,-0.23366 1.13387,0.55197 0.59684,1.50902 -4.46867,13.69792 -7.2929,27.9148 -11.06982,41.84683 -4.65189,17.84703 -8.66183,35.91876 -16.10203,52.83092 -0.52355,1.80738 -1.82666,3.58898 -1.72454,5.46862 2.1789,1.4546 5.20934,1.23837 7.74774,0.96848 8.63471,-1.54499 14.43998,-9.32035 17.90541,-16.82433 8.91602,-19.02776 12.61204,-39.88208 17.60135,-60.16891 1.97757,-8.4659 3.90122,-16.94518 5.9009,-25.4054 13.44431,-0.32468 26.94197,0.25464 40.3465,-0.98912 10.54655,-1.36385 21.79018,-5.81463 27.42375,-15.35097 1.29482,-1.93069 2.61273,-5.492 -0.22522,-6.734231 -0.87083,-0.370984 -1.83141,-0.552464 -2.78153,-0.484232 z"
style="stroke-width:1.25;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path3006"
d="m 238.85362,202.11953 c -6.61618,-0.0747 -12.49441,5.86936 -12.35361,12.48873 -0.25309,5.77868 4.09305,11.25261 9.68469,12.5 4.89461,0.72915 10.63805,-0.57053 13.24324,-5.16892 2.28415,-3.43705 2.36638,-8.03786 1.04729,-11.83558 -1.8164,-4.67032 -6.41982,-8.32269 -11.62161,-7.98423 z"
style="stroke-width:1.25;stroke-miterlimit:4;stroke-dasharray:none" />
<path
inkscape:connector-curvature="0"
id="path3010"
d="m 319.19144,122.89657 c -10.13874,-0.51388 -20.01625,3.1473 -28.53603,8.38963 -5.58265,3.7095 -10.33165,8.66316 -14.50414,13.91306 -5.35646,7.85779 -8.671,17.24339 -8.47511,26.82961 -0.69602,10.34404 1.10202,20.99727 6.58808,29.91543 9.21269,15.71181 27.13859,26.23407 45.53531,25.40045 11.31966,0.0361 22.85113,-1.54926 32.99123,-6.8053 6.97583,-3.63432 14.02028,-8.2117 18.12363,-15.12037 1.74824,-3.36516 1.77298,-8.65979 -2.19595,-10.43919 -3.48913,-1.44091 -7.6152,-0.6165 -10.44712,1.83142 -8.7256,5.96445 -17.50042,13.02672 -28.39297,14.24966 -11.42935,1.43777 -24.09083,-0.38573 -32.87161,-8.34459 -5.52793,-5.0642 -9.19598,-12.20567 -10.16892,-19.67342 -0.31742,-6.05023 -0.70563,-12.30116 0.62916,-18.21786 2.9475,-11.42919 12.2301,-20.72927 23.56003,-23.93304 8.63128,-2.53231 12.69132,-2.26795 18.71936,-1.316 9.14676,1.3518 16.9151,7.78743 21.99633,14.9514 2.81258,3.4038 4.49389,8.16128 8.59736,10.3173 3.79221,1.64077 9.93434,-0.008 10.74325,-4.71377 1.25651,-8.43246 0.65288,-16.49261 0.82582,-24.99339 -0.0532,-3.56184 -0.0367,-8.37895 -3.52853,-10.38292 -4.02345,-1.94763 -9.55347,-1.37496 -11.61506,3.1741 -0.76161,0.82044 -0.89465,3.33443 -2.50745,2.10978 -8.16636,-3.45842 -16.57074,-6.98478 -25.59571,-7.01987 -3.15506,-0.1352 -6.31358,-0.14095 -9.47096,-0.12212 z"
style="stroke-width:1.25;stroke-miterlimit:4;stroke-dasharray:none"
sodipodi:nodetypes="ccccccccccccccccccccccccc" />
<path
inkscape:connector-curvature="0"
id="path3012"
d="m 463.85359,122.73891 c -3.80568,0.9462 -4.16103,2.67387 -5.61539,4.36231 -5.95305,-0.80951 -9.62693,-3.14915 -20.62697,-4.15557 -10.65809,-0.21768 -22.22677,-1.05191 -32.30494,3.07028 -10.3295,3.82037 -18.50104,13.80952 -18.75569,25.02074 -1.10795,9.61261 3.72837,19.48146 11.94968,24.54852 8.36252,5.5676 18.71231,6.55196 28.52789,6.79705 7.3357,0.38929 14.67842,0.92023 21.98307,1.66296 5.26993,0.76312 10.36609,4.48711 11.22747,9.98875 1.70064,6.49205 -2.77625,12.86428 -8.47972,15.58558 -6.2976,3.53735 -13.84287,2.47148 -20.79954,2.74774 -10.80278,0.10441 -21.99454,-4.30645 -28.50225,-13.14188 -2.79705,-3.15323 -4.09988,-8.49724 -8.72748,-9.51577 -4.20367,-1.13413 -8.46813,2.72686 -8.09685,6.99325 -0.13703,7.93952 -0.57802,15.93749 0.0901,23.85134 1.0896,3.64264 4.46859,7.70823 8.70495,6.57658 3.48993,-0.51798 6.43843,-2.52645 9.16666,-4.5946 5.49036,0.59333 10.77565,2.8838 16.33285,3.41274 14.27534,1.77547 29.51249,1.54152 42.7212,-4.69652 12.15208,-5.94173 18.52006,-21.02474 15.16891,-33.97522 -2.20194,-8.77054 -9.80343,-15.2354 -18.26053,-17.75418 -12.14327,-3.35571 -24.9071,-2.94971 -37.36635,-4.11487 -6.19359,-0.49916 -13.41291,-1.15956 -17.63887,-6.25032 -2.51107,-2.76234 -2.02879,-6.7512 -1.68919,-10.16891 2.32805,-7.769 10.56438,-12.45708 18.43468,-12.42117 8.39047,-0.4568 17.40282,-0.0379 24.43188,5.11105 6.0441,3.97763 10.47261,9.76776 15.53433,14.77633 3.19675,2.50389 8.67622,1.57883 10.25901,-2.42117 1.7301,-4.50536 1.22919,-9.53039 1.47212,-14.27927 -0.28125,-4.87652 0.37831,-10.02499 -1.91131,-14.50452 -1.57636,-2.36224 -4.6788,-2.61618 -7.22972,-2.51125 z"
style="stroke-width:1.25;stroke-miterlimit:4;stroke-dasharray:none"
sodipodi:nodetypes="ccccccccccccccccccccccccccccccc" />
</g>
</svg>
# Create a list of all latex files, which look like root documents
SRCNAMES = $(shell grep -l "^[^%]*{document}" *.tex)
ifdef SRCNAME
SRCNAMES := $(SRCNAME).tex
endif
ifeq ($(words $SRCNAMES), 1)
SRCNAME = $(SRCNAMES)
endif
PDFNAMES = $(foreach FILE, $(SRCNAMES:.tex=.pdf), $(FILE))
DVINAMES = $(foreach FILE, $(SRCNAMES:.tex=.dvi), $(FILE))
BBLNAMES = $(foreach FILE, $(SRCNAMES:.tex=.bbl), $(FILE))
#$(warning SRCNAMES: $(SRCNAMES))
#$(warning PDFNAMES: $(PDFNAMES))
#$(warning BBLNAMES: $(BBLNAMES))
#$(warning SRCNAME: $(SRCNAME))
# The resource file for bibtool
BIBRCNAME = bibtool.rc
# Calculate the path to the current dir when run recursively
THISDIR = $(dir $(lastword $(MAKEFILE_LIST)))
export TEXINPUTS:=${TEXINPUTS};$(THISDIR)//;$(THISDIR)/Corporate/4-3
BIBSRC = $(wildcard *.bib)
TEXSRC = $(wildcard *.tex)
#-- Software Environment Setup -------------------------------
SHELL = /bin/bash
LATEX = latex -src
BIBTEX = bibtex
DVIPS = dvips
PDFPS = pdftops
PDF = max_print_line=1000 pdflatex -shell-escape -src -halt-on-error -synctex=1 -interaction nonstopmode -file-line-error-style
OPEN = xdg-open
# Mac-specific definitions
ifeq ($(shell uname), Darwin)
<------>OPEN=open
endif
.PHONY: default
default: pdf # Default goal
.PHONY: dvi
dvi : $(DVINAMES) # Compile dvi's
.PHONY: pdf
pdf : $(PDFNAMES) # Compile pdf's
.PHONY: over
over : clean pdf # Force recompile
.PHONY: clean
clean :
@echo Soft clean
-rm *.blg *.log *.out $(DVINAMES) $(PDFNAMES) 2>/dev/null ; true
.PHONY: cleanall
cleanall : clean
@echo Hard clean
-rm *~ *.aux *.bbl *.lof *.lot *.toc *.ps *.cit *.synctex.gz 2>/dev/null ; true
.PHONY: cleanaux
cleanaux :
-rm *.blg *.log *.out *.dvi*.aux *.bbl *.lof *.lot *.toc *.ps *.cit *.synctex.gz 2>/dev/null ; true
.PHONY: show
show: $(PDFNAMES)
for file in $(PDFNAMES); do $(OPEN) $$file; done
.PHONY: edit
edit: $(SRCNAMES)
for file in $(SRCNAMES); do $(OPEN) $$file; done
%.bbl: $(BIBSRC)
@echo Recreate the .aux file
$(PDF) $(@:.bbl=.tex) >/dev/null || cat $(@:.bbl=.log)
@echo Recreate the .bbl file
$(BIBTEX) $(@:.bbl=.aux) | true
@echo Flush the citation hash
test -s $(@:.pdf=.cit) || echo '' | md5sum > $(@:.pdf=.cit)
%.aux : %.pdf;
%.dvi: %.tex # Cancel the default rule
%.dvi: $(TEXSRC) $(wildcard $(THISDIR)*.tex)
@echo If compilation fails manipuate the timestamp to prevent recognission of .dvi as ready
$(LATEX) $(@:.dvi=.tex) || (touch --date="`date -R -r $(@:.dvi=.tex)`" $@ & false)
@echo If the citations were updated recompile the .bbl file
grep -o -G "Citation \`[^']*" $(@:.dvi=.log) | md5sum -c $(@:.dvi=.cit) || $(BIBTEX) $(@:.dvi=.aux)
while grep -q "Rerun to get cross-references right." $(@:.dvi=.log); \
do $(LATEX) $(@:.dvi=.tex); done
@echo Update the missing citation hash
grep -o -G "Citation \`[^']*" $(@:.dvi=.log) | md5sum > $(@:.dvi=.cit)
%.pdf: %.tex # Cancel the default rule
%.pdf: $(TEXSRC) $(wildcard $(THISDIR)*.tex) %.bbl
@echo Compiling $@
($(PDF) $(@:.pdf=.tex) >/dev/null) || (touch --date="`date -R -r $(@:.pdf=.tex)`" $@ & cat $(@:.pdf=.log) & false)
@echo Recompile tikz images
@if [ -s $(@:.pdf=.makefile) ]; \
then \
$(MAKE) -e -f $(@:.pdf=.makefile); \
$(PDF) $(@:.pdf=.tex) >/dev/null; \
fi
@echo Create $(@:.pdf=.cit) if it does not exist
test -s $(@:.pdf=.cit) || echo '' | md5sum > $(@:.pdf=.cit)
@echo If the citations were updated recompile the .bbl file
grep -o -G "Citation \`[^']*" $(@:.pdf=.log) | md5sum -c $(@:.pdf=.cit) || ($(BIBTEX) $(@:.pdf=.aux); $(PDF) $(@:.pdf=.tex) >/dev/null)
@echo -n "Search for dangling references.. "
@if grep -q "Rerun to get cross-references right." $(@:.pdf=.log); \
then \
echo "Run LaTeX twice no matter how silly it is" \
$(PDF) $(@:.pdf=.tex) >/dev/null; \
$(PDF) $(@:.pdf=.tex) >/dev/null; \
else \
echo "None"; \
fi
@echo Update the citation hash
grep -o -G "Citation \`[^']*" $(@:.pdf=.log) | md5sum > $(@:.pdf=.cit)
%.ps : %.pdf
$(PDFPS) -level1 $< # Create .ps from .pdf
.PHONY: bib
bib: bibtex
.PHONY: bibtool
bibtool: $(BIBSRC)
#Normalise all bibfiles
for bf in $(BIBSRC); do \