From 8a2134891b75a5e53df87d10db38dbd8a231bd55 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Wed, 15 Mar 2017 11:37:24 +0100 Subject: [PATCH] Initial import --- .gitignore | 181 +++++++++ LICENSE | 21 ++ README.md | 8 + facsim/README.md | 1 + images/README.md | 1 + inline/README.md | 1 + main_file.tex | 9 + preambel/dontdeleteindex.ist | 8 + preambel/pre_eoa.tex | 709 +++++++++++++++++++++++++++++++++++ preambel/pre_xml.tex | 274 ++++++++++++++ texfiles/chapter01.tex | 1 + texfiles/example.bib | 89 +++++ 12 files changed, 1303 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 facsim/README.md create mode 100644 images/README.md create mode 100644 inline/README.md create mode 100755 main_file.tex create mode 100644 preambel/dontdeleteindex.ist create mode 100755 preambel/pre_eoa.tex create mode 100644 preambel/pre_xml.tex create mode 100644 texfiles/chapter01.tex create mode 100644 texfiles/example.bib diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b294344 --- /dev/null +++ b/.gitignore @@ -0,0 +1,181 @@ +auto + +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 + +## Intermediate documents: +*.dvi +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +*.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.brf +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.snm +*.vrb + +# cprotect +*.cpt + +# fixme +*.lox + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs + +# gnuplottex +*-gnuplottex-* + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Comment the next line if you want to keep your tikz graphics files +*.tikz +*-tikzDictionary + +# listings +*.lol + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc +*.mtc[0-9] +*.mtc[1-9][0-9] + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# mylatexformat +*.fmt + +# nomencl +*.nlo + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# xindy +*.xdy + +# xypic precompiled matrices +*.xyc + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# Kile +*.backup + +# KBibTeX +*~[0-9]* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d9ca31f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Max Planck Institute for the History of Science + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..f8b08a5 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +Edition Open Access LaTeX template +================================== + +This project gives you the structure for a publication project within the framework of Edition Open Access. + +You should rename `main_file.tex` to something that better reflects your project. It will, however, stay your main file which contains links to all the other files. Files for individual chapters should be stored in the folder `texfiles`. + +Use the [EOA reference](http://edition-open-access.de/media/support/files/EOAReference.pdf) for further information about how to use our specific markup. diff --git a/facsim/README.md b/facsim/README.md new file mode 100644 index 0000000..094222a --- /dev/null +++ b/facsim/README.md @@ -0,0 +1 @@ +Put facsimile files into this folder. diff --git a/images/README.md b/images/README.md new file mode 100644 index 0000000..91cabcd --- /dev/null +++ b/images/README.md @@ -0,0 +1 @@ +Put images/figures into this folder. diff --git a/inline/README.md b/inline/README.md new file mode 100644 index 0000000..c945c04 --- /dev/null +++ b/inline/README.md @@ -0,0 +1 @@ +Inline images should be stored here. diff --git a/main_file.tex b/main_file.tex new file mode 100755 index 0000000..c9b046d --- /dev/null +++ b/main_file.tex @@ -0,0 +1,9 @@ +\input{preambel/pre_eoa} +\EOAbibliographytype{monograph} +\EOAbibliographydatabase{texfiles/example} +\EOAseries{Studies} +\begin{document} + +\include{texfiles/chapter01} + +\end{document} \ No newline at end of file diff --git a/preambel/dontdeleteindex.ist b/preambel/dontdeleteindex.ist new file mode 100644 index 0000000..b5bafbb --- /dev/null +++ b/preambel/dontdeleteindex.ist @@ -0,0 +1,8 @@ +headings_flag 1 +heading_prefix "\\par\\penalty-50\\textbf{" +heading_suffix "}\\\\\*\~\\\\\*" +symhead_positive "Symbols" +symhead_negative "symbols" +numhead_positive "Numbers" +numhead_negative "numbers" +delim_0 ",\~" diff --git a/preambel/pre_eoa.tex b/preambel/pre_eoa.tex new file mode 100755 index 0000000..98bf94d --- /dev/null +++ b/preambel/pre_eoa.tex @@ -0,0 +1,709 @@ +% Version: 1.6 +% 30/07/2015 +% Last modifier: Georg + +\documentclass[12pt,openright,twoside]{scrbook} +\usepackage{xargs} + +% Basic packages used for if-else +\usepackage{xifthen} +\usepackage{ifplatform} + +% Redefining the header +\usepackage{fancyhdr} +\pagestyle{fancy} % eigenen Seitestil aktivieren} +\fancyhfoffset{0pt} +\fancyhead[RO,LE]{\footnotesize \nouppercase\thepage} +\fancyhead[RE,LO]{\footnotesize \nouppercase\leftmark} +%Use to change the size of the header font +%\fancyhead[RO,LE]{\normalfont\changefontsizes{8pt} \nouppercase\thepage} +%\fancyhead[RE,LO]{\normalfont\changefontsizes{8pt} \nouppercase\leftmark} +\renewcommand\chaptermark[1]{\markboth{\thechapter. #1}{}} +\renewcommand{\headrulewidth}{0pt} +\fancyfoot{} +\fancypagestyle{plain}{% +\fancyhead{}} + +% Activate fontspec for various fonts +\usepackage[no-math]{fontspec} +\setmainfont{Times New Roman} +%\setsansfont[Mapping=tex-text]{Skia} +%\setromanfont{Geneva} + +% Activate Unicode-Support +\usepackage{xltxtra} +\usepackage{xunicode} + +% Polyglossia is being used instead of babel. +\usepackage{polyglossia} +\setmainlanguage{english} +\setotherlanguage[variant=polytonic]{greek} +\setotherlanguage{german} + +% Rename "Abbildung" to "Abb." for german texts +\addto\captionsgerman{% + \renewcommand{\figurename}{Abb.}% +} + +\usepackage{csquotes} + +% Definition of fonts for Chinese based on OS +\ifwindows +\newfontfamily\zhfont{DFKai-SB} +\newfontfamily\zhpunctfont{DFKai-SB} +\else +\newfontfamily\zhfont{BiauKai} +\newfontfamily\zhpunctfont{BiauKai} +\fi + +% The package zhspacing makes typesetting chinese much better +\usepackage{zhspacing} +\zhspacing + +% assigning explicit character classes for CJK ambiguous characters +\XeTeXcharclass`“=6 +\XeTeXcharclass`”=6 +\XeTeXcharclass`‘=6 +\XeTeXcharclass`’=6 +\XeTeXcharclass`’=6 +\XeTeXcharclass`…=6 + +% Definition of various fonts based on OS +\ifwindows +\newfontfamily\textchinese{DFKai-SB} +\newfontfamily\chinesefont{DFKai-SB} +\else +\newfontfamily\textchinese{BiauKai} +\newfontfamily\chinesefont{BiauKai} +\fi +\newfontfamily\germanfont{Times New Roman} +\newfontfamily\englishfont{Times New Roman} +\newfontfamily\greekfont{Times New Roman} +\newfontfamily\russianfont{Times New Roman} +\newfontfamily\hebrewfont{Times New Roman} +\newfontfamily\EOAmfont{XITS Math} +% Those fonts are being used in Berlin only, no need for Windows +\ifwindows +\else +\newfontfamily\Arial{ArialMT} +\newfontfamily\Courier{Courier} +\newfontfamily\Helvetica{Helvetica} +\newfontfamily\Verdana{Verdana} +\fi + +% Equation- and formula-fun +\usepackage{amsmath} +\usepackage{amsthm} +\usepackage{amssymb} +\usepackage{braket} +\usepackage{slashed} +% amsfonts and similar produce broken PDF X/4 - we need unicode-math +% and use the font XITS-Math (https://github.com/khaledhosny/xits-math) +\usepackage[bold-style=TeX,math-style=TeX]{unicode-math} +\setmathfont[active-frac=small]{XITS Math} +\setmathfont[version=bold,FakeBold=1.5]{XITS Math} +\DeclareMathSizes{8}{6.5}{6}{5} + +% Chemical formulas +\usepackage[version=3]{mhchem} + +% kt add marginnote +%\usepackage{marginnote} + + +% Definition of page dimensions depending on serie +\newcommand{\EOAseries}[1]{ +\ifthenelse% +{\equal{#1}{Sources}}% +%% changing format to A4. What about the margins? +%% {\usepackage[paperwidth=170mm,paperheight=240mm,inner=22mm,outer=20mm,top=14mm,bottom=20mm,includehead]{geometry}} +% inner was 22 +{\usepackage[a4paper,inner=30mm,outer=30mm,top=14mm,bottom=20mm,includehead]{geometry}} +{\usepackage[paperwidth=148mm,paperheight=210mm,inner=20mm,outer=15mm,top=13mm,bottom=15mm,includehead]{geometry}} +} + +\usepackage{pdflscape} + +% Schusterjungen und Hurenkinder +\clubpenalty = 10000 +\widowpenalty = 10000 +\displaywidowpenalty = 10000 + +% Mit raggedbottom wird verhindert, dass Seiten nach unten hin aufgefüllt werden, das Paket here ermöglicht die fixe Positionierung von Bildern +\usepackage{here} +\raggedbottom + +% Gestaltung von Auflistungen im Text +\usepackage{paralist} + +% soul-package being used for strikeout and spacing out +%\usepackage{letterspacing} + +% Für die Formatierung von URLs im Fließtext, escapen ist damit nicht mehr notwendig +\usepackage{url} +% enable breaking of URLs at uppercase letters +\urlstyle{rm} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% One Command to tweak the style of the bibliography +\newcommand{\EOAbibtweaks}{ +% Remove pp from references +\DeclareFieldFormat{postnote}{##1} +% Remove quotation marks from certain titles +\DeclareFieldFormat[thesis]{title}{\mkbibemph{##1}} +\DeclareFieldFormat[article]{title}{##1} +\DeclareFieldFormat[incollection]{title}{##1} +\DeclareFieldFormat[inproceedings]{title}{##1} +\DeclareFieldFormat[inbook]{title}{\mkbibemph{##1}} +\DeclareFieldFormat{title}{\mkbibemph{##1}} +% Remove pp from bibliography at all +\DeclareFieldFormat{pages}{##1}% +% Remove "In:" from articles +\renewbibmacro{in:}{% + \ifentrytype{article}{}{% + \printtext{\bibstring{in}\intitlepunct}}} +% Delete Vol. as praefix +\DeclareFieldFormat*{volume}{##1} +% Use : for pages of an article, use . for the rest +\renewcommand*{\bibpagespunct}{% +\ifentrytype{article}% +{% +\iffieldundef{Number}% +{\addcolon\hspace{0pt}}% +{}% +}% +{,\space}% +} +% Group Volume and Issue in {Brackets} +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% + \printfield{volume}% + \iffieldundef{number} + {} + {\mkbibparens{\printfield{number}}}% + \setunit{\addcomma\space}% + \printfield{eid}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \setunit{\addcolon\space}% + \usebibmacro{issue}% + \newunit} +% Bug fix for Windows +\defbibheading{none}[]{} +} + +% Einbindung des biblatex-Pakets mittels \EOAbibliographytype +\newcommand{\EOAbibliographytype}[1]{% +\ifthenelse% +{\equal{#1}{anthology}}% +{\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=authoryear,backend=biber,babel=hyphen]{biblatex} +\newboolean{anthology} +\setboolean{anthology}{true} +\EOAbibtweaks +}{}% +\ifthenelse% +{\equal{#1}{anthology-numeric}}% +{\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=numeric-comp,sorting=none,backend=biber,babel=hyphen]{biblatex} +\newboolean{anthology} +\setboolean{anthology}{true} +\EOAbibtweaks +}{}% +\ifthenelse% +{\equal{#1}{monograph}}% +{\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=authoryear,backend=biber,babel=hyphen]{biblatex} +\newboolean{anthology} +\setboolean{anthology}{false} +\EOAbibtweaks +}{}% +\ifthenelse% +{\equal{#1}{monograph-numeric}}% +{\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=numeric-comp,sorting=none,backend=biber,babel=hyphen]{biblatex} +\newboolean{anthology} +\setboolean{anthology}{false} +\EOAbibtweaks +}{}% +% Small font for Bibliography +% \renewcommand*{\bibfont}{\normalfont\changefontsizes{8pt}} +}% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% The command EOApublicationtype may be used to adjust some settings + +% If the type is essay, then the numbering of sections etc. need to be +% adjusted, ie. 1. Headline and not 0.1 Headline +\newboolean{essaynumbering} +\setboolean{essaynumbering}{false} +\newcommand{\EOApublicationtype}[1]{% +\ifthenelse% +{\equal{#1}{essay}}% +{ +\renewcommand{\thesection}{\arabic{section}} +\renewcommand{\theequation}{\arabic{equation}} +\renewcommand{\thefigure}{\arabic{figure}} +\renewcommand{\thetable}{\arabic{table}} +\setboolean{essaynumbering}{true} +}{} +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% ------------------- formatierung der Fussnoten Anfang --------- +\usepackage[flushmargin]{footmisc} +\setlength{\footnotemargin}{2.4mm} +% ------------------- formatierung der Fussnoten Ende --------- + +% cpation dient zur Realisierung der Bildunterschriften +\usepackage{caption} +% footnote-package needed to typeset footnotes in captions +% problem was that both footnotes and captions are fragile +\usepackage{footnote} +% Für die Einbindung von Grafiken +\usepackage{graphicx} +% Mit float wird die Option H bei der Positionierung von Grafiken ermöglicht +\usepackage{float} + +% Stichwortverzeichnis mit den Standard-TeX-Funktionen +%\usepackage{imakeidx} +%\makeindex[name=keywords] +%\makeindex[name=persons] +%\makeindex[name=locations] +%Use to add alphabetical headers within the index +%\usepackage{imakeidx} +\usepackage{imakeidx} +\makeindex[name=keywords,title=Subject Index,options=-s preambel/dontdeleteindex.ist] +\makeindex[name=persons,title=Name Index,options=-s preambel/dontdeleteindex.ist] +\makeindex[name=locations,title=Index of Locations,options=-s preambel/dontdeleteindex.ist] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Formatierung der Überschriften Anfang +\usepackage{setspace} +\usepackage{titlesec} +\usepackage{titletoc} + +\titleformat{\part}[block] +{\normalfont \rmfamily}% +{\singlespacing\raggedleft\textbf{Teil \thepart}\\}% +{0em}% +{\flushright\textbf} +\titlespacing*{\part} {0pt}{-30pt}{0pt} + +\titleformat{\chapter}[display] +{\normalfont \rmfamily\large} +{\singlespacing\textbf{Chapter \thechapter\quad}}% +{0em}% +{\raggedright\textbf} +\titlespacing*{\chapter} {0pt}{-30pt}{80pt} + +\titleformat{\section}[hang] +{\normalfont \rmfamily} +{\bfseries\thesection\quad}% +{0em}% +{\textbf} + +\titleformat{\subsection}[hang] +{\normalfont \rmfamily} +{\textbf\thesubsection\quad}% +{0em}% +{\textbf} + +\titleformat{\subsubsection}[hang] +{\normalfont \rmfamily} +{\textbf\thesubsection\quad}% +{0em}% +{\textbf} + +% Formatierung der Überschriften Ende +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Tiefe des Inhaltsverzeichnisses +\setcounter{tocdepth}{0} +%Use to repress subsections in the table of content (GP, 14.07.2015) +%\setcounter{tocdepth}{0} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Formatierung des Inhaltsverzeichnisses +\titlecontents{part}[0.2em]{\addvspace{1em}\bfseries}{}{}{\normalfont\rmfamily\hfill\contentspage} +\titlecontents{chapter}[3em]{\addvspace{1em}\bfseries}{\contentslabel{2.8em}}{}{\normalfont\rmfamily\dotfill\contentspage} +\titlecontents{section}[3em]{}{\contentslabel{2.8em}}{}{\dotfill\contentspage} +\makeatletter +\renewcommand\@pnumwidth{2em} +\makeatother +% Formatierung des Inhaltsverzeichnisses +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Definition einiger Makros zur Erhöhung des Bedienkomforts - Anfang + +% Makro für fetten Text +\newcommand{\EOAbold}[1]{\textbf{#1}} +% Makro für kursiven Text +\newcommand{\EOAemph}[1]{\emph{#1}} +% Makro für einen URL +\newcommand{\EOAurl}[1]{\protect\url{#1}} +% \newcommand{\EOAurl}[1]{\protect\href{#1}{#1}} +% Makro für hochgestellten Text +\newcommand{\EOAup}[1]{\textsuperscript{#1}} +% Makro für tiefgestelten Text +\newcommand{\EOAdown}[1]{\textsubscript{#1}} +% Makro for Greek Text: \greek{} +\newcommand{\EOAgreek}[1]{{\greekfont #1}} +% Makro for striked out Text +\newcommand{\EOAst}[1]{\st{#1}} +% Makro for letter spacing +\newcommand{\EOAls}[1]{} +% Makro for letter CAPS +% Since Times does not have Caps, we use Hoefler on OS X and Palatino Linotype on Windows +\newcommand{\EOAcaps}[1]{% +\ifwindows% +{\fontspec[Scale=0.7]{Palatino Linotype}\textsc{#1}}% +\else% +{\fontspec[Scale=1]{Hoefler Text}\textsc{#1}}% +\fi% +} +% Makro for Matgh font: \greek{} +\newcommand{\EOAmathfont}[1]{{\EOAmfont #1}} +% Makro for chinese Text: \EOAchinese{} +\newcommand{\EOAchinese}[1]{{\chinesefont #1}} +% Makro for russian Text: \EOArussian{} +\newcommand{\EOArussian}[1]{{\russianfont #1}} +% Makro for hebrew Text: \EOAhebrew{} +\newcommand{\EOAhebrew}[1]{{\hebrewfont #1}} +% Makro for Inline-Figure: \EOAinline{File} +\newcommand{\EOAinline}[1]{\includegraphics[height=0.85em,keepaspectratio]{#1}} +% New command for Footnotes +\newcommand{\EOAfn}[1]{\protect\footnote{#1}} +% New command for ~ +\newcommand{\EOAtilde}{\textasciitilde{}} +% New command for referencing objects (i.e. figures) +\newcommand{\EOAref}[1]{\ref{#1}} +% New command for referencing pages +\newcommand{\EOApageref}[1]{\pageref{#1}} +% New command for label +\newcommand{\EOAlabel}[1]{\label{#1}} +% New command for marking index entries +\newcommand{\EOAindex}[1]{\index[keywords]{#1}} +% New command for printing index +\newcommand{\EOAprintindex}{\printindex[keywords]} +% New command for marking person index entries +\newcommand{\EOAindexperson}[1]{\index[persons]{#1}} +% New command for printing person index +\newcommand{\EOAprintpersonindex}{\printindex[persons]} +% New command for marking person index entries +\newcommand{\EOAindexlocation}[1]{\index[locations]{#1}} +% New command for printing person index +\newcommand{\EOAprintlocationindex}{\printindex[locations]} +% New command for Table of Content +\newcommand{\EOAtoc}{\tableofcontents} +% New command for ToC-Entries +%% hier ist irgendwas passiert! +%% \newcommand{\EOAtocentry}[1]{\addtocontents{toc}{\hspace{15pt}\normalfont{\textbf{#1}}\par}} +\newcommand{\EOAtocentry}[1]{\addtocontents{toc}{\normalfont{\textbf{#1}}\par}} +% New command for parts +\newcommand{\EOApart}[1]{\part*{#1}} +% New command for parts +\newcommand{\EOAfacsimilepart}[1]{\part*{#1} +%--------------------- Formatting the facsimile part +\pagestyle{fancy} % eigenen Seitestil aktivieren} +\fancyhf{} % Alle Felder loeschen +\renewcommand{\headrulewidth}{0pt} +\fancyhead[EL,OR]{\footnotesize\thepage} +\fancypagestyle{plain}{% +\fancyhead{}} +} +% New command for numbered chapters +\newcommand{\EOAchapter}[2]{ +\chapter[#2]{#2} +\chaptermark{#1} +\ifthenelse{\boolean{anthology}}{ +\newrefsection +} +{} +} +% New command for not numbered chapters +\newcommand{\EOAchapternonumber}[2]{ +\setcounter{secnumdepth}{-1} +\setcounter{footnote}{0} +\chapter[#2]{#2} +\markboth{#1}{} +\ifthenelse{\boolean{anthology}}{ +\newrefsection +} +{} +\ifthenelse{\boolean{essaynumbering}}{ +\setcounter{section}{0} +\setcounter{equation}{0} +\setcounter{figure}{0} +\setcounter{table}{0} +} +{} +\setcounter{secnumdepth}{2} +} +% New command for Author in Headline +\newcommand{\EOAauthor}[1]{\\ \textnormal{\textit{ #1}}} +% New command for sections +\newcommand{\EOAsection}[1]{\section{#1}} +% New command for sections that won't appear in table of contents +\newcommand{\EOAsectionnotoc}[1]{\section*{#1}} +% New command for subsections +\newcommand{\EOAsubsection}[1]{\subsection{#1}} +% New command for subsections that won't appear in table of contents +\newcommand{\EOAsubsectionnotoc}[1]{\subsection*{#1}} +% New command for not numbered sections +\newcommand{\EOAsectionnonumber}[1]{\setcounter{secnumdepth}{-1}\section{#1}\setcounter{secnumdepth}{2}} +% New command for not numbered subsections +\newcommand{\EOAsubsectionnonumber}[1]{\setcounter{secnumdepth}{-1}\subsection{#1}\setcounter{secnumdepth}{2}} +% % New command for not numbered subsections that are excluded from toc +% \newcommand{\EOAsubsectionnonumbernotoc}[1]{\setcounter{secnumdepth}{-1}\subsection*{#1}\setcounter{secnumdepth}{2}} +%New command for subsubsection +\newcommand{\EOAsubsubsection}[1]{\subsubsection*{#1}} + +% New command for an empty page +\newcommand{\EOAemptypage}{\clearpage% +\thispagestyle{empty}% +     %-------------------------- using invisible characters +\newpage% +} +% New command for a pagebreak +\newcommand{\EOAnewpage}{ +\ifthenelse% +{\strcmp{\@currenvir}{EOAtranscripted}=1}% +{\newpage\EOAtranscriptedheader} +{\clearpage} +} +% New Environment for bilungual doublesided transcription +\newenvironment{EOAtranscripted}[2]{ +\renewcommand{\EOAtranscriptedheader}{\noindent\makebox[\textwidth][c]{\footnotesize\MakeUppercase{#2}}\vspace*{0.5cm}\\} +\makeatletter +\clearpage\if@twoside + \ifodd\c@page \hbox{}\newpage\if@twocolumn\hbox{}% + \newpage\fi\fi\fi +\makeatother +\noindent\makebox[\textwidth][c]{\footnotesize\MakeUppercase{#1}}\vspace*{0.5cm}\\ +}{\clearpage} +% Here definded pro forma in conjunction with EOAtranscripted +\newcommand{\EOAtranscriptedheader}{} +% Environment for quoting +\newenvironment{EOAquote}{\begin{quote}}{\end{quote}} +% Environment for Lists +\newenvironment{EOAlist}{\medskip\begin{compactenum}}{\end{compactenum}\medskip} +% Environment for undordered list +\newenvironment{EOAitems}{\medskip\begin{compactitem}}{\end{compactitem}\medskip} +% Command to define a theorem +\newcommand{\EOAnewtheorem}[2]{\newtheorem{#1}{#2}} +% Environment for descriptions +\newenvironment{EOAdescription}{\medskip\begin{description}}{\end{description}\medskip} +\renewcommand{\descriptionlabel}[1]{\hspace{\labelsep}\emph{#1}} +% New command for short equation +\newcommand{\EOAineq}[1]{$#1$} +% Environment for Equations +% Multilines may be used with \begin{split} and \\ to mark a linebreak +\newenvironment{EOAequation}[1]{\begin{equation} +\label{#1} +}{\end{equation}} +% Environment for Subequations +\newenvironment{EOAsubequations}[1]{\begin{subequations} +\label{#1} +}{\end{subequations}} +% Environment for unnumbered Equation +\newenvironment{EOAequationnonumber}{\begin{equation*}}{\end{equation*}} +% Environment for numbered Equation array +\newenvironment{EOAequationarray}[1]{\csname align\endcsname}{\csname endalign\endcsname\ignorespacesafterend} +% Environment for not numbered Equation array +\newenvironment{EOAequationarraynonumber}{\csname align*\endcsname}{\csname endalign*\endcsname\ignorespacesafterend} + +% Makro for Figure: \EOAfigure{File}{Caption}{Label}{Width}{Position} +\newcommand{\EOAfigure}[5]{ +% Redefinition and \makesavenoteenv necessary to enable footnotes in captions +\makesavenoteenv[figure*]{figure} +\begin{figure*}[#5] +\begin{center} +\includegraphics[width=0.#4\textwidth]{#1} +\captionsetup{singlelinecheck=false,font=footnotesize,format=hang,justification=centering, labelformat=empty}%, margin={2em,0em}} +\caption{#2} +%Use to center single-line captions and have captions longer than one line at the left (GP, 14.07.2015) +%\captionsetup{singlelinecheck=false,font=small,format=hang,justification=centering,singlelinecheck=true,font=small,format=hang,justification=raggedright} +%\caption{#2} +\label{#3} +%% adjusting space below figure +\vspace{-15pt} +\end{center} +\end{figure*} +} +% Makro for non numbered Figure: \EOAfigurenonumber{File}{Width}{Position} +\newcommand{\EOAfigurenonumber}[3]{ +% Redefinition and \makesavenoteenv necessary to enable footnotes in captions +\makesavenoteenv[figure*]{figure} +\begin{figure*}[#3] +\begin{center} +\includegraphics[width=0.#2\textwidth]{#1} +\end{center} +\end{figure*} +} +% Makro for Landscape-Figure: \EOAfigure{File}{Caption}{Label} +\newcommand{\EOAlsfigure}[3]{ +\begin{landscape} +\begin{figure}[p] +\begin{center} +\includegraphics[width=1.35\textwidth]{#1} +\captionsetup{singlelinecheck=false,font=small,format=hang,justification=raggedright} +\caption{#2} +\label{#3} +\end{center} +\end{figure} +\end{landscape} +} +% Makro for Facimile: \EOAfacsimile{File}{Label} +\newcommand{\EOAfacsimile}[4][]{% +\fancyhead[RE,LO]{\footnotesize \nouppercase #4}\begin{figure}[H] \begin{center} \label{#3} \includegraphics[width=1.0\textwidth]{#2} \end{center} \end{figure}\clearpage% +} +% Command for bibliographies as sections within a chapter +\newcommand{\EOAprintbibliography}{\printbibliography[heading=none]} +% Command for .bib-Database +\newcommand{\EOAbibliographydatabase}[1]{ +\bibliography{#1} +} +% Command for quotation Name Year, Page +\newcommand{\EOAciteauthoryear}[2][seitenangabe]{% +\ifthenelse% +{\equal{#1}{seitenangabe}}% +{\cite{#2}}% +{\cite[#1]{#2}}% +} +% Command for quotation Year, Page +\newcommand{\EOAciteyear}[2][seitenangabe]{% +\ifthenelse% +{\equal{#1}{seitenangabe}}% +{\cite*{#2}}% +{\cite*[#1]{#2}}% +} +% Command for manual quotation +\newcommand{\EOAcitemanual}[2][kuerzel]{% +\ifthenelse% +{\equal{#1}{kuerzel}}% +{\notecite{#2}}% +{\notecite[#1]{#2}}% +} +% Command for manual quotation +\newcommand{\EOAcitenumeric}[2][seitenangabe]{% +\ifthenelse% +{\equal{#1}{seitenangabe}}% +{\cites{#2}}% +{\cites[#1]{#2}}% +} +% Definition einiger Makros zur Erhöhung des Bedienkomforts - Ende +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%% Tables - Beginning + + +\usepackage{tabularx} +\usepackage{booktabs} + +% Middle rule should be thicker, therefor redfining lightrulewidth for \midrule +\setlength\lightrulewidth{1.2pt} + +\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} % linksbündig mit Breitenangabe +\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % zentriert mit Breitenangabe +\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} % rechtsbündig mit Breitenangabe + +\newcommand{\EOAtablehead}[2][1]{% +#2\\% +\midrule% +} + + +\newenvironment{EOAtable}[5][1]% +{ + + +\ifthenelse% +{\strcmp{#3}{nonumber}=0}% +{ +% if the caption is equal to 'no number', then omit caption and label +} +{ +% if the caption is not equal to 'no number', then use caption and label +\renewcommand{\tmpEOAtablecaption}{\captionsetup{singlelinecheck=false,font=small,format=hang,justification=raggedright}\caption{#3}} +\renewcommand{\tmpEOAtablelable}{\label{#4}} +} +\begin{table}[#5] +\begin{center} + +\ifthenelse% +{\strcmp{#1}{blank}=0}% +{ +% if the optional parameter is "blank" then omit borders +\begin{tabular}{#2} +\renewcommand{\tmpEOAtablebottomborder}{} +} +{ +% if the optional parameter is not "blank" or missing then enable borders +\renewcommand{\tmpEOAtablebottomborder}{\bottomrule} +\begin{tabular}{#2}% +\toprule% +} + +} +{ +\tmpEOAtablebottomborder +\end{tabular} +\end{center} +\tmpEOAtablecaption +\tmpEOAtablelable +\renewcommand{\tmpEOAtablecaption}{} +\renewcommand{\tmpEOAtablelable}{} +\end{table} +} +% Definition of temporary commands to enable the caption and the label in the ending part of the EOAtable-environment +\newcommand{\tmpEOAtablecaption}{} +\newcommand{\tmpEOAtablelable}{} +\newcommand{\tmpEOAtablebottomborder}{} + +%%%%%%%%%%%% Tables - End + +%%%%%%%%%%%% Letter - Beginning (Work in Progress) +\usepackage{framed} +\newcommand{\EOAletterhead}[4]{% +\begin{framed} +\noindent\emph{#1}\\ +\emph{#2}\\ +\emph{#3}, \emph{#4} +\end{framed} +} +\newcommand{\kopf}[1]{#1} +\newcommand{\kurz}[1]{#1} +%%%%%%%%%%%% Letter - End + +%%%%%%%%%%%% Box - Beginning (Work in Progress) +\usepackage{xcolor} +\definecolor{shadecolor}{gray}{0.9} +\newenvironment{EOAbox}% +{\begin{shaded}}% +{\end{shaded}} +%%%%%%%%%%%% Box - End + +% Some fixes concerning XeTeX and the n-dash + +\XeTeXinterchartokenstate=1 +\XeTeXcharclass`\–=150 +\XeTeXinterchartoks 150 0 = {\kern0em } + +% Give more space per line, makes hyphenation better +\setlength\emergencystretch{3em} + +\usepackage[colorlinks=false, + %% urlcolor=SteelBlue4, + %% linkcolor=DarkSlateGrey, + pdfusetitle, + pdfdisplaydoctitle=true, + pdfstartpage={1}, %what page to start at + pdfstartview={FitH}, %% zoom to pagewidth +]{hyperref} \ No newline at end of file diff --git a/preambel/pre_xml.tex b/preambel/pre_xml.tex new file mode 100644 index 0000000..c7c12bb --- /dev/null +++ b/preambel/pre_xml.tex @@ -0,0 +1,274 @@ +\documentclass{book} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Die Anweisung ist notwendig für die korrekte Nummerierung der