From 2759869b70d99a3f30fec9358d7deb022c5db0da Mon Sep 17 00:00:00 2001 From: Hans-Helge Buerger Date: Thu, 6 Jun 2013 23:14:45 +1000 Subject: [PATCH] Add Root Path to tex files %!TEX root = ../dokumentation.tex If you add this line as first line to your .tex files it is possible to compile the document from any file. LaTeX sees this root path and will start compiling in dokumentation.tex --- ads/abstract.tex | 2 ++ ads/acronyms.tex | 4 +++- ads/deckblatt.tex | 2 ++ ads/erklaerung.tex | 4 +++- ads/glossary.tex | 2 ++ ads/header.tex | 4 +++- ads/sperrvermerk.tex | 4 +++- content/01kapitel.tex | 2 ++ content/02kapitel.tex | 2 ++ 9 files changed, 22 insertions(+), 4 deletions(-) diff --git a/ads/abstract.tex b/ads/abstract.tex index 8c82ece..371e198 100644 --- a/ads/abstract.tex +++ b/ads/abstract.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + \pagestyle{empty} \renewcommand{\abstractname}{Zusammenfassung} diff --git a/ads/acronyms.tex b/ads/acronyms.tex index c200461..13c6312 100644 --- a/ads/acronyms.tex +++ b/ads/acronyms.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + \chapter*{Abkürzungsverzeichnis} %nur verwendete Akronyme werden letztlich im Dokument angezeigt \begin{acronym}[YTMMM] @@ -6,4 +8,4 @@ \chapter*{Abkürzungsverzeichnis} \acro{AGPL}{Affero GNU General Public License} \acro{API}{Application Programming Interface} \acro{WYSIWYG}{What You See Is What You Get} -\end{acronym} \ No newline at end of file +\end{acronym} diff --git a/ads/deckblatt.tex b/ads/deckblatt.tex index 43ca77e..b097445 100644 --- a/ads/deckblatt.tex +++ b/ads/deckblatt.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + \begin{titlepage} \begin{longtable}{p{.4\textwidth} p{.4\textwidth}} {\includegraphics[height=2.6cm]{images/logo.png}} & diff --git a/ads/erklaerung.tex b/ads/erklaerung.tex index a2434c4..2445866 100644 --- a/ads/erklaerung.tex +++ b/ads/erklaerung.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + \thispagestyle{empty} \section*{Erklärung} @@ -22,4 +24,4 @@ \section*{Erklärung} \abgabeort, \datumAbgabe \vspace{4em} -\autor \ No newline at end of file +\autor diff --git a/ads/glossary.tex b/ads/glossary.tex index d530a88..a38aea4 100644 --- a/ads/glossary.tex +++ b/ads/glossary.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + % % vorher in Konsole folgendes aufrufen: % makeglossaries makeglossaries dokumentation.acn && makeglossaries dokumentation.glo diff --git a/ads/header.tex b/ads/header.tex index 6e10b0c..85f6523 100644 --- a/ads/header.tex +++ b/ads/header.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + % % Nahezu alle Einstellungen koennen hier getaetigt werden % @@ -164,4 +166,4 @@ % werden keine Kommentare mehr gedruckt. \usepackage{comment} \specialcomment{k}{\begingroup\color{red}}{\endgroup} -%\excludecomment{k} \ No newline at end of file +%\excludecomment{k} diff --git a/ads/sperrvermerk.tex b/ads/sperrvermerk.tex index e517e5d..7668039 100644 --- a/ads/sperrvermerk.tex +++ b/ads/sperrvermerk.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + \thispagestyle{empty} % Sperrvermerk direkt hinter Titelseite \section*{Sperrvermerk} @@ -5,4 +7,4 @@ \section*{Sperrvermerk} \vspace*{2em} Die vorliegende {\arbeitsart} mit dem Titel {\itshape \titel} ist mit einem Sperrvermerk versehen und wird ausschließlich zu Prüfungszwecken am Studiengang {\studiengang} der Dualen Hochschule Baden-Württemberg {\abgabeort} vorgelegt. -Jede Einsichtnahme und Veröffentlichung – auch von Teilen der Arbeit – bedarf der vorherigen Zustimmung durch die {\firma}. \ No newline at end of file +Jede Einsichtnahme und Veröffentlichung – auch von Teilen der Arbeit – bedarf der vorherigen Zustimmung durch die {\firma}. diff --git a/content/01kapitel.tex b/content/01kapitel.tex index 44db912..4ceae2f 100644 --- a/content/01kapitel.tex +++ b/content/01kapitel.tex @@ -1,3 +1,5 @@ +%!TEX root = ../dokumentation.tex + \chapter{Das erste Kapitel} Erste Erwähnung eines Akronyms wird als Fußnote angezeigt. Jede weitere wird nur verlinkt: \ac{AGPL}. Zweite Erwähnung \ac{AGPL} diff --git a/content/02kapitel.tex b/content/02kapitel.tex index bf6cc3c..f2d815a 100644 --- a/content/02kapitel.tex +++ b/content/02kapitel.tex @@ -1 +1,3 @@ +%!TEX root = ../dokumentation.tex + \chapter{Das zweite Kapitel}