Skip to content

Commit

Permalink
Merge branch 'master' of github.molgen.mpg.de:EditionOpenAccess/eoa-p…
Browse files Browse the repository at this point in the history
…ublication-model
  • Loading branch information
EsGeh authored and EsGeh committed Apr 30, 2019
2 parents f70eab4 + 495962a commit 06d58f5
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 65 deletions.
8 changes: 4 additions & 4 deletions examples/eoatex/EOASample.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@

% The command \EOAtoc inserts the table of contents
\EOAtoc

% only works if tocdepth > 0
\listoffigures
%% Set page numberic to arabic
\pagenumbering{arabic}
%% Start page numbering with 1
Expand Down Expand Up @@ -96,9 +97,8 @@
\EOAtocentry{Location index}
\EOAprintlocationindex

% \EOAfacsimilepart{Facsimiles}
% \input{texfiles/09_facsimiles}

\EOAfacsimilepart{Facsimiles}
\input{texfiles/09_facsimiles}

% This marks the end of the document. Everything below that line is
% ignored
Expand Down
114 changes: 76 additions & 38 deletions examples/eoatex/preambel/pre_eoa.tex
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
% Version: 1.6
% 30/07/2015
% Last modifier: Georg

\documentclass[12pt,openright,twoside]{scrbook}
%with "draft" the PDF is compiled without images
% \documentclass[10pt,openright,twoside,draft]{scrbook}
\documentclass[10pt,openright,twoside]{scrbook}
\usepackage{xargs}

% Basic packages used for if-else
\usepackage{xifthen}
\usepackage{ifplatform}

\newboolean{isxml}
\setboolean{isxml}{false}

% new version
\usepackage[markcase=nouppercase]{scrlayer-scrpage}
\renewcommand*{\chaptermarkformat}{\thechapter .~}
\setkomafont{pagehead}{\footnotesize\upshape}
\ohead[]{\thepage}
\ihead[]{\leftmark}
\ofoot[]{}
% \usepackage[markcase=nouppercase]{scrlayer-scrpage}
% \renewcommand*{\chaptermarkformat}{\thechapter .~}
% \setkomafont{pagehead}{\footnotesize\upshape}
% \ohead[]{\thepage}
% \ihead[]{\leftmark}
% \ofoot[]{}

% 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{}}
\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}
Expand All @@ -53,7 +54,7 @@
\renewcommand{\figurename}{Abb.}%
}

\usepackage{csquotes}
\usepackage[autostyle]{csquotes}

% Definition of fonts for Chinese based on OS
\ifwindows
Expand Down Expand Up @@ -124,7 +125,9 @@
\ifthenelse%
{\equal{#1}{Sources}}%
%% changing format to A4. What about the margins?
{\usepackage[a4paper,inner=30mm,outer=30mm,top=14mm,bottom=20mm,includehead]{geometry}}%
{\usepackage[a4paper,inner=30mm,outer=30mm,top=14mm,bottom=20mm,includehead]{geometry}
\KOMAoption{fontsize}{12pt}
}%
% the else part
{
\ifthenelse%
Expand Down Expand Up @@ -218,6 +221,38 @@
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit}

% origdate, thanks to https://tex.stackexchange.com/questions/134644/how-to-get-automatically-origdate-with-the-date-in-a-citation
\DeclareFieldFormat{origdate}{\mkbibbrackets{##1}}
\renewbibmacro*{cite:labeldate+extradate}{%
\iffieldundef{origyear}
{}
{\printorigdate
\setunit{\addspace}}%
\iffieldundef{labelyear}
{}
{\printtext[bibhyperref]{\printlabeldateextra}}}

\DeclareCiteCommand{\citeorigyear}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\printfield{origyear}}
{\multicitedelim}
{\usebibmacro{postnote}}

\renewbibmacro*{date+extradate}{%
\iffieldundef{origyear}
{}
{\printorigdate
\setunit{\addspace}}%
\iffieldundef{labelyear}
{}
{\printtext[parens]{%
\iflabeldateisdate
{\printdateextra}
{\printlabeldateextra}}}}

% Bug fix for Windows
\defbibheading{none}[]{}
}
Expand All @@ -240,7 +275,7 @@
}{}%
\ifthenelse%
{\equal{#1}{monograph}}%
{\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=authoryear,backend=biber,autolang=hyphen,dateabbrev=false,urldate=long]{biblatex}
{\usepackage[mincitenames=1,maxcitenames=3,maxbibnames=100,style=authoryear,backend=biber,autolang=hyphen,dateabbrev=false,datecirca=true,dateuncertain=true,dateera=christian,urldate=long]{biblatex}
\newboolean{anthology}
\setboolean{anthology}{false}
\EOAbibtweaks
Expand All @@ -253,7 +288,7 @@
\EOAbibtweaks
}{}%
% Small font for Bibliography
% \renewcommand*{\bibfont}{\normalfont\changefontsizes{8pt}}
\renewcommand*{\bibfont}{\footnotesize}
}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -276,6 +311,10 @@
}{}
}

% removing chapter info
% \renewcommand{\thefigure}{\arabic{figure}}
% \renewcommand{\thetable}{\arabic{figure}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------- formatierung der Fussnoten Anfang ---------
\usepackage[flushmargin]{footmisc}
Expand Down Expand Up @@ -306,10 +345,9 @@
\newcommand{\EOAfnarabic}[1]{\protect\footnotearabic{#1}}
%%%%%%%%%%%% Footnote Sets --end


% ------------------- formatierung der Fussnoten Ende ---------

% cpation dient zur Realisierung der Bildunterschriften
% caption dient zur Realisierung der Bildunterschriften
\usepackage{caption}
% footnote-package needed to typeset footnotes in captions
% problem was that both footnotes and captions are fragile
Expand All @@ -328,8 +366,9 @@
%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]
% set noautomatic=true to disable generation of ind file (in case you made manual changes there)
\makeindex[name=keywords,title=Subject Index,options=-s preambel/dontdeleteindex.ist, noautomatic=false]
\makeindex[name=persons,title=Name Index,options=-s preambel/dontdeleteindex.ist, noautomatic=false]
\makeindex[name=locations,title=Index of Locations,options=-s preambel/dontdeleteindex.ist]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -383,10 +422,8 @@
% 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}
% Depth of table of contents. If value = 0, listoffigures will be empty
\setcounter{tocdepth}{1}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Formatierung des Inhaltsverzeichnisses
Expand All @@ -402,10 +439,10 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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 fetten Text
\newcommand{\EOAbold}[1]{\textbf{#1}}
% Makro für einen URL
\newcommand{\EOAurl}[1]{\protect\url{#1}}
% \newcommand{\EOAurl}[1]{\protect\href{#1}{#1}}
Expand Down Expand Up @@ -724,6 +761,7 @@
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{longtable}
% Middle rule should be thicker, therefore redefining lightrulewidth for \midrule
\setlength\lightrulewidth{1.2pt}
Expand Down
2 changes: 2 additions & 0 deletions examples/eoatex/preambel/pre_xml.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
\documentclass{book}
\newboolean{isxml}
\setboolean{isxml}{true}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Die Anweisung ist notwendig für die korrekte Nummerierung der <divX-Elemente
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
50 changes: 50 additions & 0 deletions examples/eoatex/texfiles/06_floats.tex
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,56 @@
\end{EOAtable}


\EOAsubsection{Longtable}

Longtables are possible, but they are only required for \LaTeX output.
In order to still stick to one source, there is the possibility to use
a case differentiation. The body of the table remains the same.

\ifthenelse{\boolean{isxml}}{
\begin{EOAtable}{L{2cm}C{3.5cm}C{3.5cm}R{4cm}}{Die Erstausgaben von Proklos’ Werken im 15. und 16. Jahrhundert. Vgl. \EOAciteauthoryear{Hsu_1993}.}{Tabelle_Die_Verbreitung_von_P.pdf}{H}
\EOAtablehead{Jahr & Ort, Drucker & Titel & Sprache}
}
{
\begin{longtable}[H]{L{1cm}C{4.5cm}C{4.5cm}R{3cm}}
% \centering
\caption{Die Erstausgaben von Proklos’ Werken im 15. und 16. Jahrhundert. Vgl. \EOAciteauthoryear{Hsu_1993}.}\label{Tabelle_Die_Verbreitung_von_P.pdf}\\
\toprule
Jahr & Ort, Drucker & Titel & Sprache\\\midrule\endfirsthead
\multicolumn{2}{l}{\emph{Tabelle~\thetable, Fortsetzung}} \vspace{4mm}\\
Jahr & Ort, Drucker & Titel & Sprache\\\midrule\endhead
\endfoot
\bottomrule
\endlastfoot}
1497 & Venedig: Aldus Manutius & \EOAemph{In Platonis Alcibiadem} & Latein, übers. v. Marsilio Ficino\\
1528 & Basel: Thomas Wolff & \EOAemph{De fide}, in: \EOAemph{Antidotum contra haereses}, S. 176–181 & Griech.-Lat., übers. v. Dionysius Exiguus\\
1531 & Basel, Johann Bebel & \EOAemph{De motu} & Griechisch\\
1532 & Basel: Michael Isengrin & \EOAemph{In Alcibiadem. De sacrificio et magia} & Latein, übers. v. Marsilio Ficino\\
1533 & Basel: Simon Grynaeus & \EOAemph{In Euclidis elementorum librum I} & Griechisch\\
1534 & Basel: Johann Walder & \EOAemph{In Timaeum. Politikon} & Griechisch\\
1537 & – & \EOAemph{Scholia in Homerum} & –\\
1541 & Basel: Heinrich Petri & \EOAemph{Hypotyposis astronomicarum positionum. Ptolemaei Geographia} & Griechisch\\
1542 & Paris: Jakob Bogard & \EOAemph{De motu} & Griechisch\\
1551 & Basel: Heinrich Petri & \EOAemph{Hypotyposis. Ptolemaei Geographia} & Latein, übers. v. Giorgio Valla\\
1554 & Basel: Johann Oporinus & \EOAemph{Paraphrasis in quattuor Ptolemaei libros de siderum effectionibus} & Griechisch\\
1560 & Paris, Guilelmus Morelius & \EOAemph{De liturgia} & Griechisch, hg. v. Claudio de Sainctes\\
1560 & Padua: Percacino & \EOAemph{In Euclidis elementorum librum I} & Latein, übers. v. Francesco Barozzi\\
1562 & Basel: Perna & \EOAemph{De motu} & Latein, übers. v. Josef Waldanius\\
1576 & Basel: Henricpetri & \EOAemph{Opera} & Latein, übers. v. Marsilio Ficino\\
1577 & Paris: Federicus Morellus & \EOAemph{De conscribendis epistolis} & Griechisch\\
1583 & Ferrara: Dominicus Mamarellus & \EOAemph{Elementa Theologica et Physica} & Latein, übers. v. Francesco Patrizi\\
1591 & Basel: Heinrich Petri & \EOAemph{Commentaria in Tetrabiblon} & Griechisch\\
1592 & Bremen: Bernhard Peters & \EOAemph{De significationibus eclipsium} & Griechisch\\
1496 & Florenz: Lorenzo d’Alopa & \EOAemph{Timaeus} & Latein, übers. v. Marsilio Ficino\\
1497 & Venedig: Aldus Manutius & \EOAemph{In Alcibiadem; De sacrificio et magia} & Latein, übers. v. Marsilio Ficino\\
1590 & Frankfurt, apud Andreae Wecheli haeredes Claudium, Marnium et Iohannem Aubrium & \EOAemph{Chrestomathia} & Griech.-Lat., übers. v. Andrea Schotto, Komm. v. Petri Johann Nunnesius\\
1618 & Hamburg/Frankfurt: Aemilius Portus & \EOAemph{Procli ln Platonis Theologiam libri sex} & Griechisch, Hg. Aemilius Portus\\
1635 & Leiden. Elzevir & \EOAemph{Paraphrasis in Ptolemaei Tetrabiblion} & Griechisch\\
1565 & Paris: Charles Perier & \EOAemph{Deux livres de Proclus du mouvement} & Französisch, übers. v. Pierre Forcadel de Beziés
\ifthenelse{\boolean{isxml}}{
\end{EOAtable}}
{\end{longtable}}

\EOAsection{Figures}

Images are also floating objects. The command takes five parameters:
Expand Down
12 changes: 6 additions & 6 deletions examples/exampleTEI.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://www.tei-c.org/ns/1.0" change="eoa_edition">
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://www.tei-c.org/ns/1.0" change="metopes_edition">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down Expand Up @@ -273,7 +273,7 @@
<!-- \EOAciteauthoryear{} -->
<p>If you want to include a longer quote in a text, use the block quote feature. And inside that we also introduce you to how you can insert footnotes (<bibl><ref target="#Piaget_1985" type="authoryear">Piaget 1985</ref></bibl>).</p>
<!-- \begin{EOAquote} \end{EOAquote}-->
<quote>A rather short block quote.<note n="1" place="bottom" xml:id="chap03_ftn1"><p><bibl><ref type="authoryear" target="#Kaulbach_1960"/><citedRange from="320" to="322"/></bibl></p></note></quote>
<quote>A rather short block quote.<note n="1" place="bottom" xml:id="chap03_ftn1"><p><bibl><ref target="#Kaulbach_1960" type="authoryear"/><citedRange from="320" to="322"/></bibl></p></note></quote>
<p>Poems<note n="2" place="bottom" xml:id="chap03_ftn2"><p>If you don't want a paragraph to be indented, use noindent</p></note> and verses can be included with the EOAverse environment:</p>
<lg type="verse">
<l>Prudence and knowledge descend</l>
Expand Down Expand Up @@ -327,7 +327,7 @@
<!-- <ref type="url" target="http://www.tex.stackexchange.com">TeX exchange</ref></p> -->
<div n="1" type="section" xml:id="sec51">
<head>Labels</head>
<p>Elements<index spanTo="#indInd" indexName="keyword"><term>Indexing</term></index> can be assigned labels so that they can be referred to: sections<note n="1" place="bottom" xml:id="chap05_ftn1"><p>Cross reference to Chapter <ref target="#chap2" type="number"/></p></note>, images<note n="2" place="bottom" xml:id="chap05_ftn2"><p>There is a nice image in section <ref target="#sec2image2" type="number"/>.</p></note>, tables<note n="3" place="bottom" xml:id="chap05_ftn3"><p>There is a table in section <ref target="#sec3table1" type="number"/></p></note>. A lot of things can be cross-referenced.</p>
<p>Elements<index indexName="keyword" spanTo="#indInd"><term>Indexing</term></index> can be assigned labels so that they can be referred to: sections<note n="1" place="bottom" xml:id="chap05_ftn1"><p>Cross reference to Chapter <ref target="#chap2" type="number"/></p></note>, images<note n="2" place="bottom" xml:id="chap05_ftn2"><p>There is a nice image in section <ref target="#sec2image2" type="number"/>.</p></note>, tables<note n="3" place="bottom" xml:id="chap05_ftn3"><p>There is a table in section <ref target="#sec3table1" type="number"/></p></note>. A lot of things can be cross-referenced.</p>
<!-- start of index here-->
<!-- \EOAindexperson{James Joyce} \EOAindexlocation{Zürich} -->
<p>By the way, Joyce<index indexName="person"><term>James Joyce</term></index> is a very good author. Read some of his stuff. It may be useful for indexing some of your key terms in the text so that we can later link to catalogues that tells the reader more about the things. Joyce died in Zurich<index indexName="location"><term>Zürich</term></index>. You cannot read anything about him in neither Walkowski's work of <bibl><ref target="#walkowski_digital_2016" type="year"/></bibl> nor in <bibl><ref target="#Carvalho2012" type="authoryear"/></bibl>!</p>
Expand All @@ -345,8 +345,8 @@
<div n="3" type="section" xml:id="sec53">
<head>Citations</head>
<p>The bibliographic information is kept in a separate database. The text file only contains references to the specific database entry. Examples of citations are distributed throughout this document. It also possible to customize the citations with <bibl><ref target="#Asper_2009" type="authoryear">Plat. tim.</ref></bibl>.<index indexName="keyword"><term sortKey="PavendishPharles2">Pavendish, Lord Pharles (son of the second puke of Pevonshire)</term><index><term>duty of service</term></index></index></p>
<p>Another important issue is the sorting of entries where a two publications have the same authors and the same year: <bibl><ref type="authoryear" target="#Maccagni_1967b"/></bibl> and <bibl><ref type="authoryear" target="#Maccagni_1967a"/></bibl>.</p>
<p>We can also cite newspapers: <bibl><ref type="authoryear" target="#wenk_riesenschweinerei_2016"/></bibl><anchor xml:id="indInd"/></p>
<p>Another important issue is the sorting of entries where a two publications have the same authors and the same year: <bibl><ref target="#Maccagni_1967b" type="authoryear"/></bibl> and <bibl><ref target="#Maccagni_1967a" type="authoryear"/></bibl>.</p>
<p>We can also cite newspapers: <bibl><ref target="#wenk_riesenschweinerei_2016" type="authoryear"/></bibl><anchor xml:id="indInd"/></p>
<!-- <bibl><ref target="#Gert2011"/><citedRange from="128"
to="128"/></bibl> -->
<!--<ref type="bibliog" target="#Gert2011" pages="128"/>-->
Expand All @@ -373,7 +373,7 @@
</choice>
</head>
<p>Floating environments are bigger constructs like figures and tables, said Gamba in <bibl><ref target="#Gamba_2008" type="year"/></bibl>.<note n="a" place="bottom" type="alph" xml:id="ftnalph1"><p>This chapter also showcases the use of two different sets of footnotes, alphabetic and arabic. This is a per-chapter-setting.</p></note></p>
<p>If you want to, you can leave the placing of them to the typesetting system, in order to avoid bigger stretches of white space (cf. <bibl><ref type="authoryear" target="#Hsu_1993"/></bibl>).<note n="1" place="bottom" type="arabic" xml:id="ftnarab1"><p> Here comes a footnote with arabic number as marker, which means it is is the other apparatus</p></note></p>
<p>If you want to, you can leave the placing of them to the typesetting system, in order to avoid bigger stretches of white space (cf. <bibl><ref target="#Hsu_1993" type="authoryear"/></bibl>).<note n="1" place="bottom" type="arabic" xml:id="ftnarab1"><p> Here comes a footnote with arabic number as marker, which means it is is the other apparatus</p></note></p>
<div n="1" type="section" xml:id="numsec3-1">
<head>Tables</head>
<p>The following lines of code produce a table consisting of 4 columns and 3 rows.</p>
Expand Down
Loading

0 comments on commit 06d58f5

Please sign in to comment.