From d048ffa9adb7b5b123d92688347f59528d03bd56 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Tue, 14 Aug 2018 17:31:55 +0200 Subject: [PATCH 01/14] Beginning of code --- data/tei2eoatex.xsl | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index 7993e92..2d2eace 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -22,6 +22,37 @@ + + + + % LaTeX output + + \input{ + + } + + + + % single file + + + + + + \EOAbibliographytype{ @@ -47,7 +78,7 @@ - + \begin{EOAquote} \end{EOAquote} From c0776e4c8f95442065d317bd8ff178299b1d994d Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Wed, 15 Aug 2018 11:53:12 +0200 Subject: [PATCH 02/14] Stable version part and chapter headings are missing --- data/tei2eoatex.xsl | 79 +++++++++++++++++++++++++++++++-------------- 1 file changed, 55 insertions(+), 24 deletions(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index 2d2eace..9f9becb 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -22,37 +22,64 @@ - + + %beginning of chapter + + + - - % LaTeX output - \input{ - + } + % end of chapter - + % single file + + \end{document} - + @@ -90,11 +124,6 @@ - - \begin{document} \EOAtoc \newpage %beginning of chapter - - % end of chapter \end{document} - \EOAsection From e6aef43086a92c59bf30a8661eb43bf4e060b270 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Wed, 15 Aug 2018 12:17:55 +0200 Subject: [PATCH 03/14] Chapter headings --- data/tei2eoatex.xsl | 112 +++++++++++++++++++++++++------------------- 1 file changed, 64 insertions(+), 48 deletions(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index 9f9becb..43fe822 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -11,6 +11,9 @@ @@ -35,7 +38,7 @@ \EOAbibliographydatabase{ } - \begin{document} \EOAtoc \newpage + \begin{document} % \input{texfiles/frontmatter.tex} \EOAtoc \newpage %beginning of chapter - - - - + + + { + + }{ + + } + + + { + + }{ + + } + + + + + INFO: Chapter has not ID + + + \EOAlabel{ + + } + + \input{ } @@ -124,37 +144,6 @@ - - \EOAemph{ @@ -341,11 +330,6 @@ } - - \EOAref{ @@ -429,3 +413,35 @@ \EOAprintbibliography + + + From af95a26951bdd715a24915d0c680a17851c3713d Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Wed, 15 Aug 2018 17:36:04 +0200 Subject: [PATCH 04/14] Frontmatter --- data/tei2eoatex.xsl | 660 ++++++++++++++++++++++++++++++-------------- 1 file changed, 456 insertions(+), 204 deletions(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index 43fe822..f494ec6 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -6,16 +6,33 @@ exclude-result-prefixes="xs tei" version="2.0"> - - + + + + + + + + + + + + + --> - %beginning of chapter + ⸎ beginning of chapter \EOAchapter - - - nonumber - - - INFO: Section has number - - - - - { - - }{ - - } - - - { - - }{ - - } - - - - - INFO: Chapter has not ID - - - \EOAlabel{ - - } - - + + + nonumber + + + INFO: Section has number + + + + + { + + + }{ + + + + + { + + }{ + + + + + + + + + + \EOAauthor{ + + + + + + + \EOAauthor{ + + + + + and + + + + + \EOAauthor{ + + + + + + , + + + and + + + + + + INFO: No chapter author. + } + + + } + } + + + INFO: Chapter has not ID + + + \EOAlabel{ + + } + + \input{ } - % end of chapter + ⸎ end of chapter - % single file + ⸎ single file \end{document} - - + \vspace{10mm} \noindent\EOAbold{Edition Open Access Development Team}\\[2mm] + + \vspace{10mm} \noindent + + \vspace{3pt} \noindent + + \newpage + ⸎ Page 3: Title, subtitle, author/editor, series, year \begin{minipage}[t]{90mm} + \vspace*{12mm} \begin{center} \Large { + + }\\ \vspace{2mm} \large{ + + } \end{center} \vspace{10mm} \begin{center} \large - - \input{preambel/pre_eoa} - \EOAseries{ - - } + + + + + + + + + + + + + + + + + and + + + + + + + + + + , + + + and + + + + + + No book author. + + + + + + + + + (ed.) + + + (Hrsg.) + + + + + + + (eds.) + + + (Hrsg.) + + + + + + + \end{center} \vspace{126mm} \begin{center} \large {\EOAbold{ + + }} \end{center} \end{minipage}\newpage + ⸎ Page 4: Complete Series Information, Communicator, Assistance, Gratitude, + ⸎ ISBN-Number, License \begin{flushleft} \noindent + + \\ \noindent + + \\ \vspace{4mm} \noindent Submitted by: + Gerd Graßhoff + \\ \vspace{4mm} \noindent Editorial Team:\\ + Lindy Divarci, Bendix Düker, Sylvia Szenti + \\ \vspace{4mm} \noindent Image Processing: \\ + Digitization group of the Max Planck Institute for the History of Science\\ + ⸎ \noindent Sponsoring Institutions: optional info + + \noindent Scholarly Support: + + + + + \noindent Financial Support: + + + + \vspace{4mm} \noindent Cover Image:\\ \noindent + + \\ \vspace{4mm} \noindent + + \end{flushleft} + \vfill \begin{flushleft} \begin{footnotesize} \noindent ISBN + + \\ First published + + by + + ,\\ Max Planck Institute for the History of Science\\ + + \\ Printed and distributed by\\ + + \\ Published under + + \\ + + \\[2mm] The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografie; detailed bibliographic data are available in the Internet at http://dnb.d-nb.de. + \end{footnotesize} \end{flushleft} \newpage \normalsize + ⸎ Page 5: Complete Series Information, \noindent \small\EOAbold{ + + }\\ \vspace{6pt} \noindent + + \vspace{30pt} \noindent\small\EOAbold{Scientific Board}\\ \vspace{3pt} + \begin{footnotesize} \noindent + + \end{footnotesize} \clearpage \mbox{} ⸎ \newpage + ⸎ Optional: Pages 5 and 6: Dedication, followed by a blank page + + \vspace*{25mm} \begin{center} + + \end{center} \clearpage \mbox{} + + ⸎ \newpage \normalsize + ⸎ Following pages use normal page style, which is fancy + \pagestyle{fancy} + - - \begin{document} \EOAtoc \newpage %beginning of chapter - - % end of chapter \end{document} - + + +\input{preambel/pre_eoa} +\EOAseries{ + +} + + + + \begin{document} \EOAtoc \newpage %beginning of chapter + +% end of chapter \end{document} + + + --> @@ -138,95 +366,102 @@ \end{EOAquote} - - + + - + + + + \EOAemphor{ + + } + + + \EOAemph{ } - - - \EOAchapter - + - - - + + { + + } + { + + COMMENT next with thanks to https://www.oxygenxml.com/forum/topic712.html + + + - \EOAauthor{ - - - - + \EOAauthor{ + + + + - \EOAauthor{ - - - - - and - - + \EOAauthor{ + + + + + and + + - \EOAauthor{ - - - - - - , - - - and - - - + \EOAauthor{ + + + + + + , + + + and + + + - INFO: No chapter author. - } + INFO: No chapter author. + } - - } - - + + } + - INFO: Chapter has not ID + INFO: Chapter has not ID - \EOAlabel{ - - } + \EOAlabel{ + + } - - - + + + --> - + \EOAsection @@ -330,6 +565,7 @@ } + \EOAref{ @@ -343,7 +579,7 @@ - \refstepcounter{figure}% + \refstepcounter{figure}⸎ @@ -361,87 +597,103 @@ {ht} - - - - - - - - - - - - - - - - - - + + \EOAprintbibliography - + + + + + - + - + + + + + + - - \EOAprintbibliography - - + + + + + + + +--> + - + From c2981a0f982f624c5888b7fe32f3e913978cd54f Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Fri, 17 Aug 2018 09:57:16 +0200 Subject: [PATCH 05/14] Missing parts --- data/tei2eoatex.xsl | 1 + 1 file changed, 1 insertion(+) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index f494ec6..d1b9195 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -10,6 +10,7 @@ + - + (ed.) @@ -271,9 +281,22 @@ contexts, a double replacement is performed. \\ \noindent \\ \vspace{4mm} \noindent Submitted by: + + + + + + Gerd Graßhoff \\ \vspace{4mm} \noindent Editorial Team:\\ - Lindy Divarci, Bendix Düker, Sylvia Szenti + + + + + + + + \\ \vspace{4mm} \noindent Image Processing: \\ Digitization group of the Max Planck Institute for the History of Science\\ ⸎ \noindent Sponsoring Institutions: optional info @@ -566,7 +589,6 @@ contexts, a double replacement is performed. } - \EOAref{ @@ -599,7 +621,65 @@ contexts, a double replacement is performed. - \EOAprintbibliography + + + \EOAprintbibliography + + + \EOAprintindex + + + \EOAprintpersonindex + + + \EOAprintlocationindex + + + [WARNING:] Unrecognized processing instruction + + + + + + + + + + DEBUG + + + + + + + + + + + + + and + + + + + + + + + + , + + + and + + + + + + No book author. + + From ec018c132a028c852f9adbff79d657483bff7534 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Mon, 20 Aug 2018 15:02:38 +0200 Subject: [PATCH 07/14] Markup working now --- data/tei2eoatex.xsl | 267 +++++++------------------------------------- 1 file changed, 41 insertions(+), 226 deletions(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index d418606..177c79d 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -10,11 +10,8 @@ @@ -48,7 +45,7 @@ contexts, a double replacement is performed. ⸎ LaTeX output, generated by a script \input{preambel/pre_eoa} \EOAseries{ - + } \EOAbibliographytype{ @@ -81,27 +78,23 @@ contexts, a double replacement is performed. { - + }{ - + { - + }{ - + - @@ -172,13 +165,13 @@ contexts, a double replacement is performed. ⸎ Last used for Studies 8: Space volume \pagestyle{empty} \pagenumbering{roman} \setcounter{page}{1} ⸎ ⸎ Page 1: Just the title \begin{center} \Large{ - + }\\ \vspace{2mm} \large{ - + } \end{center} \newpage ⸎ Page 2: Series Editors, Team, Board, Edition Open Access description, year \begin{center} \large \EOAbold{ - + } \end{center} \vspace{15mm} \noindent\EOAbold{ @@ -188,15 +181,15 @@ contexts, a double replacement is performed. \vspace{10mm} \noindent\EOAbold{Edition Open Access Development Team}\\[2mm] \vspace{10mm} \noindent - + \vspace{3pt} \noindent - + \newpage ⸎ Page 3: Title, subtitle, author/editor, series, year \begin{minipage}[t]{90mm} \vspace*{12mm} \begin{center} \Large { - + }\\ \vspace{2mm} \large{ - + } \end{center} \vspace{10mm} \begin{center} \large @@ -204,48 +197,6 @@ contexts, a double replacement is performed. - - - @@ -271,7 +222,6 @@ contexts, a double replacement is performed. - \end{center} \vspace{126mm} \begin{center} \large {\EOAbold{ }} \end{center} \end{minipage}\newpage @@ -280,40 +230,34 @@ contexts, a double replacement is performed. \\ \noindent - \\ \vspace{4mm} \noindent Submitted by: - - + \\ \vspace{4mm} \noindent Submitted by: + - - Gerd Graßhoff \\ \vspace{4mm} \noindent Editorial Team:\\ - - - + - - \\ \vspace{4mm} \noindent Image Processing: \\ Digitization group of the Max Planck Institute for the History of Science\\ ⸎ \noindent Sponsoring Institutions: optional info \noindent Scholarly Support: - + \noindent Financial Support: - + \vspace{4mm} \noindent Cover Image:\\ \noindent - + + \\ \vspace{4mm} \noindent - + \end{flushleft} \vfill \begin{flushleft} \begin{footnotesize} \noindent ISBN @@ -324,25 +268,25 @@ contexts, a double replacement is performed. ,\\ Max Planck Institute for the History of Science\\ \\ Printed and distributed by\\ - + \\ Published under - + \\ \\[2mm] The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografie; detailed bibliographic data are available in the Internet at http://dnb.d-nb.de. \end{footnotesize} \end{flushleft} \newpage \normalsize ⸎ Page 5: Complete Series Information, \noindent \small\EOAbold{ - + }\\ \vspace{6pt} \noindent - + \vspace{30pt} \noindent\small\EOAbold{Scientific Board}\\ \vspace{3pt} \begin{footnotesize} \noindent - + \end{footnotesize} \clearpage \mbox{} ⸎ \newpage ⸎ Optional: Pages 5 and 6: Dedication, followed by a blank page \vspace*{25mm} \begin{center} - + \end{center} \clearpage \mbox{} ⸎ \newpage \normalsize @@ -351,33 +295,8 @@ contexts, a double replacement is performed. - - @@ -399,7 +318,7 @@ contexts, a double replacement is performed. - \EOAemphor{ + \EOAemph{ } @@ -409,76 +328,7 @@ contexts, a double replacement is performed. } - + - - - From 8405303b45eb401e6c59cab1f7f52c555962474e Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Mon, 20 Aug 2018 15:44:32 +0200 Subject: [PATCH 08/14] Working on EOApart --- data/tei2eoatex.xsl | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index 177c79d..9381a86 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -57,14 +57,24 @@ contexts, a double replacement is performed. \begin{document} \input{texfiles/frontmatter.tex} \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \newpage - + + + \EOApart{ + + + + INFO: No ID for section + } + + + }\EOAlabel{ + + } + + + + ⸎ beginning of chapter \EOAchapter @@ -147,17 +157,20 @@ contexts, a double replacement is performed. \input{ - + } ⸎ end of chapter - + + ⸎ single file - + + + \end{document} @@ -329,13 +342,13 @@ contexts, a double replacement is performed. } - + - + + + + + \EOAsection From 4c00607a8faff161c24789cd717fa2712585d2d7 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Mon, 20 Aug 2018 16:11:06 +0200 Subject: [PATCH 09/14] part ok, but filenames needed to be adapted --- data/tei2eoatex.xsl | 210 ++++++++++++++++++++++---------------------- 1 file changed, 104 insertions(+), 106 deletions(-) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index 9381a86..acae009 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -11,7 +11,6 @@ @@ -61,115 +60,114 @@ contexts, a double replacement is performed. \EOApart{ - - - INFO: No ID for section - } - - - }\EOAlabel{ - - } - - - - - - ⸎ beginning of chapter - \EOAchapter - - - nonumber - - - INFO: Section has number - - - - - { - - - }{ - - - - - { - - }{ - - - - - - - - - \EOAauthor{ - - - - - - - \EOAauthor{ - - - - - and - - - - - \EOAauthor{ - - - - - - , - - - and - - - - - - INFO: No chapter author. - } - - - } - } - INFO: Chapter has not ID + INFO: No ID for section + } - \EOAlabel{ + }\EOAlabel{ } - \input{ - - } - ⸎ end of chapter - - - - - ⸎ single file - - - - + + ⸎ beginning of chapter + \EOAchapter + + + nonumber + + + INFO: Section has number + + + + + { + + + }{ + + + + + { + + }{ + + + + + + + + + \EOAauthor{ + + + + + + + \EOAauthor{ + + + + + and + + + + + \EOAauthor{ + + + + + + , + + + and + + + + + + INFO: No chapter author. + } + + + } + } + + + INFO: Chapter has not ID + + + \EOAlabel{ + + } + + + \input{ + + } + ⸎ end of chapter + + + + + ⸎ single file + + + + + \end{document} @@ -345,9 +343,9 @@ contexts, a double replacement is performed. - - - + + + \EOAsection @@ -493,7 +491,7 @@ contexts, a double replacement is performed. ] - \EOAprintbibliography + \EOAprintbibliography @@ -507,7 +505,7 @@ contexts, a double replacement is performed. \EOAprintlocationindex - [WARNING:] Unrecognized processing instruction + WARNING: Unrecognized processing instruction From 2bfd147560c0e5b4c875a988d56bd67913e1ee42 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Mon, 20 Aug 2018 16:35:15 +0200 Subject: [PATCH 10/14] Modularized part or chapter structure --- data/hasnoparts.xsl | 117 +++++++++++++++++++++++++++++++++ data/hasparts.xsl | 137 +++++++++++++++++++++++++++++++++++++++ data/tei2eoatex.xsl | 153 ++------------------------------------------ 3 files changed, 258 insertions(+), 149 deletions(-) create mode 100644 data/hasnoparts.xsl create mode 100644 data/hasparts.xsl diff --git a/data/hasnoparts.xsl b/data/hasnoparts.xsl new file mode 100644 index 0000000..2db516e --- /dev/null +++ b/data/hasnoparts.xsl @@ -0,0 +1,117 @@ + + + + + ⸎ LaTeX output, generated by a script + \input{preambel/pre_eoa} + \EOAseries{ + + } + + \EOAbibliographytype{ + + } + \EOAbibliographydatabase{ + + } + \begin{document} \input{texfiles/frontmatter.tex} + \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \newpage + + + \EOAchapter + + + nonumber + + + INFO: Section has number + + + + + { + + }{ + + + + { + + }{ + + + + + + + + + \EOAauthor{ + + + + + + + \EOAauthor{ + + + + + and + + + + + \EOAauthor{ + + + + + + , + + + and + + + + + + INFO: No chapter author. + } + + + } + } + + + INFO: Chapter has not ID + + + \EOAlabel{ + + } + + + \input{ + + } + + + + ⸎ single file + + + + \end{document} + + + + + diff --git a/data/hasparts.xsl b/data/hasparts.xsl new file mode 100644 index 0000000..bb6fc29 --- /dev/null +++ b/data/hasparts.xsl @@ -0,0 +1,137 @@ + + + + + ⸎ LaTeX output, generated by a script + \input{preambel/pre_eoa} + \EOAseries{ + + } + + \EOAbibliographytype{ + + } + \EOAbibliographydatabase{ + + } + \begin{document} \input{texfiles/frontmatter.tex} + \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \newpage + + + + \EOApart{ + + + + INFO: No ID for section + } + + + }\EOAlabel{ + + } + + + + + \EOAchapter + + + nonumber + + + INFO: Section has number + + + + + { + + }{ + + + + { + + }{ + + + + + + + + + \EOAauthor{ + + + + + + + \EOAauthor{ + + + + + and + + + + + \EOAauthor{ + + + + + + , + + + and + + + + + + INFO: No chapter author. + } + + + } + } + + + INFO: Chapter has not ID + + + \EOAlabel{ + + } + + + \input{ + + } + + + + + ⸎ single file + + + + + + + \end{document} + + + + + diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex.xsl index acae009..1b11658 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex.xsl @@ -40,137 +40,11 @@ contexts, a double replacement is performed. - - ⸎ LaTeX output, generated by a script - \input{preambel/pre_eoa} - \EOAseries{ - - } - - \EOAbibliographytype{ - - } - \EOAbibliographydatabase{ - - } - \begin{document} \input{texfiles/frontmatter.tex} - \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \newpage - - - - \EOApart{ - - - - INFO: No ID for section - } - - - }\EOAlabel{ - - } - - - - - ⸎ beginning of chapter - \EOAchapter - - - nonumber - - - INFO: Section has number - - - - - { - - - }{ - - - - - { - - }{ - - - - - - - - - \EOAauthor{ - - - - - - - \EOAauthor{ - - - - - and - - - - - \EOAauthor{ - - - - - - , - - - and - - - - - - INFO: No chapter author. - } - - - } - } - - - INFO: Chapter has not ID - - - \EOAlabel{ - - } - - - \input{ - - } - ⸎ end of chapter - - - - - ⸎ single file - - - - - - - \end{document} + + + + ⸎ New version: 160205 reflecting hierarchy of EOA over MPRL ⸎ Last used for Studies 8: Space volume @@ -326,14 +200,6 @@ contexts, a double replacement is performed. - - - - \EOAemph{ - - } - - \EOAemph{ @@ -342,11 +208,6 @@ contexts, a double replacement is performed. - - - - - \EOAsection @@ -420,12 +281,6 @@ contexts, a double replacement is performed. } - - \EOAfn{ From 734b0349e9dcc3fbdbce90339d7fd3acd5eb488d Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Mon, 20 Aug 2018 16:59:32 +0200 Subject: [PATCH 11/14] Modularization the other way round --- .../{tei2eoatex.xsl => tei2eoatex-common.xsl} | 38 ------------------- ...{hasnoparts.xsl => tei2eoatex-noparts.xsl} | 36 ++++++++++++++++++ data/{hasparts.xsl => tei2eoatex-parts.xsl} | 37 ++++++++++++++++++ 3 files changed, 73 insertions(+), 38 deletions(-) rename data/{tei2eoatex.xsl => tei2eoatex-common.xsl} (93%) rename data/{hasnoparts.xsl => tei2eoatex-noparts.xsl} (81%) rename data/{hasparts.xsl => tei2eoatex-parts.xsl} (84%) diff --git a/data/tei2eoatex.xsl b/data/tei2eoatex-common.xsl similarity index 93% rename from data/tei2eoatex.xsl rename to data/tei2eoatex-common.xsl index 1b11658..9c7672d 100644 --- a/data/tei2eoatex.xsl +++ b/data/tei2eoatex-common.xsl @@ -6,44 +6,6 @@ exclude-result-prefixes="xs tei" version="2.0"> - - - - - - - - - - - - - - - - - WARNING: Unmatched element: - - - - - - - ⸎ New version: 160205 reflecting hierarchy of EOA over MPRL diff --git a/data/hasnoparts.xsl b/data/tei2eoatex-noparts.xsl similarity index 81% rename from data/hasnoparts.xsl rename to data/tei2eoatex-noparts.xsl index 2db516e..b38ca45 100644 --- a/data/hasnoparts.xsl +++ b/data/tei2eoatex-noparts.xsl @@ -6,6 +6,42 @@ exclude-result-prefixes="xs tei" version="2.0"> + + + + + + + + + + + + + + + + + WARNING: Unmatched element: + + + + + ⸎ LaTeX output, generated by a script \input{preambel/pre_eoa} diff --git a/data/hasparts.xsl b/data/tei2eoatex-parts.xsl similarity index 84% rename from data/hasparts.xsl rename to data/tei2eoatex-parts.xsl index bb6fc29..bd19bb3 100644 --- a/data/hasparts.xsl +++ b/data/tei2eoatex-parts.xsl @@ -6,6 +6,43 @@ exclude-result-prefixes="xs tei" version="2.0"> + + + + + + + + + + + + + + + + + + WARNING: Unmatched element: + + + + + ⸎ LaTeX output, generated by a script \input{preambel/pre_eoa} From 4182504c6b7ad657b3a88506e6986d6a7adb7331 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Tue, 21 Aug 2018 15:01:11 +0200 Subject: [PATCH 12/14] List of contributors --- data/tei2eoatex-common.xsl | 41 +++++++++++++++++++++++++++++++++++++ data/tei2eoatex-noparts.xsl | 32 +++++++++++++++++++++-------- data/tei2eoatex-parts.xsl | 31 +++++++++++++++++++--------- 3 files changed, 85 insertions(+), 19 deletions(-) diff --git a/data/tei2eoatex-common.xsl b/data/tei2eoatex-common.xsl index 9c7672d..fa70f2b 100644 --- a/data/tei2eoatex-common.xsl +++ b/data/tei2eoatex-common.xsl @@ -6,6 +6,47 @@ exclude-result-prefixes="xs tei" version="2.0"> + + + ⸎ List of contributors + + + + + + \noindent\textbf{ + + + + + } + + \noindent + + \\ + + \noindent + + \\ + + + \noindent + + \\ + + + + + + + + + + + + + + ⸎ New version: 160205 reflecting hierarchy of EOA over MPRL diff --git a/data/tei2eoatex-noparts.xsl b/data/tei2eoatex-noparts.xsl index b38ca45..4382419 100644 --- a/data/tei2eoatex-noparts.xsl +++ b/data/tei2eoatex-noparts.xsl @@ -8,9 +8,10 @@ + + @@ -40,23 +41,36 @@ contexts, a double replacement is performed. - + - ⸎ LaTeX output, generated by a script + ⸎ LaTeX output, generated by a script on + + \input{preambel/pre_eoa} - \EOAseries{ - - } - \EOAbibliographytype{ } \EOAbibliographydatabase{ } + \EOAseries{ + + } \begin{document} \input{texfiles/frontmatter.tex} - \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \newpage + \EOAtoc \newpage \pagenumbering{arabic} \setcounter{page}{1} + + + + \EOAchapternonumber{List of Contributors}{List of Contributors} + \input{texfiles/contributors.tex} + + + + INFO: Not writing list of contributors + + + \EOAchapter @@ -148,6 +162,6 @@ contexts, a double replacement is performed. \end{document} - + diff --git a/data/tei2eoatex-parts.xsl b/data/tei2eoatex-parts.xsl index bd19bb3..f27a850 100644 --- a/data/tei2eoatex-parts.xsl +++ b/data/tei2eoatex-parts.xsl @@ -8,10 +8,10 @@ + @@ -41,23 +41,36 @@ contexts, a double replacement is performed. - + - ⸎ LaTeX output, generated by a script + ⸎ LaTeX output, generated by a script on + + \input{preambel/pre_eoa} - \EOAseries{ - - } - \EOAbibliographytype{ } \EOAbibliographydatabase{ } + \EOAseries{ + + } \begin{document} \input{texfiles/frontmatter.tex} - \EOAtoc \pagenumbering{arabic} \setcounter{page}{1} \newpage + \EOAtoc \newpage \pagenumbering{arabic} \setcounter{page}{1} + + + + \EOAchapternonumber{List of Contributors}{List of Contributors} + \input{texfiles/contributors.tex} + + + + INFO: Not writing list of contributors + + + @@ -163,8 +176,6 @@ contexts, a double replacement is performed. - - \end{document} From 2df6277ac5ebcbcd9b11651c8c128441abf115a6 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Tue, 21 Aug 2018 15:07:27 +0200 Subject: [PATCH 13/14] Smaller edits --- data/tei2eoatex-noparts.xsl | 3 +-- data/tei2eoatex-parts.xsl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/data/tei2eoatex-noparts.xsl b/data/tei2eoatex-noparts.xsl index 4382419..c7a88cb 100644 --- a/data/tei2eoatex-noparts.xsl +++ b/data/tei2eoatex-noparts.xsl @@ -141,7 +141,7 @@ contexts, a double replacement is performed. } - INFO: Chapter has not ID + INFO: Chapter has no ID \EOAlabel{ @@ -162,6 +162,5 @@ contexts, a double replacement is performed. \end{document} - diff --git a/data/tei2eoatex-parts.xsl b/data/tei2eoatex-parts.xsl index f27a850..b86b8cf 100644 --- a/data/tei2eoatex-parts.xsl +++ b/data/tei2eoatex-parts.xsl @@ -78,7 +78,7 @@ contexts, a double replacement is performed. - INFO: No ID for section + INFO: No ID for part } @@ -180,6 +180,5 @@ contexts, a double replacement is performed. \end{document} - From fc43017dec704de410ddaec8dc799ebad8ee8712 Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Tue, 21 Aug 2018 15:47:41 +0200 Subject: [PATCH 14/14] XSL documentation --- README.md | 2 ++ doc/XSL.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 doc/XSL.md diff --git a/README.md b/README.md index c4df3ec..c244e1b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,8 @@ create a LaTeX file, or the TEI file can be converted into the customized DocBook format from above workflow so that the existing tools can be used. +See `doc/XSL.md` for a documentation of the XSL workflow. + ## Examplary workflow To install the whole toolchain, clone at least this repository as well diff --git a/doc/XSL.md b/doc/XSL.md new file mode 100644 index 0000000..3a8c016 --- /dev/null +++ b/doc/XSL.md @@ -0,0 +1,34 @@ +# The XSL workflow + +A 2.0 XSL processor is required to perform the transformation of the +TEI manuscript to LaTeX files. It has been successfully used with +Saxon-HE 9.7.0.21J, found at +[sourceforge](https://sourceforge.net/projects/saxon/files/Saxon-HE/9.7/SaxonHE9-7-0-21J.zip/download). + +There are two files to choose from, depending on whether the highest +element of a publication is part (`tei2eoatex-parts.xsl`) or chapter +(`tei2eoatex-noparts.xsl`). Both scripts then import +`tei2eoatex-common.xsl` which contains the rest of the templates. + +There is command line parameter available which toggles the creation +and inclusion of a List of Contributors (mainly used in edited books). +It is set to `false` by default. Enable it by adding + + contributors=1 + +to the command line. + +## Output + +The transformation will create a number of files that closely +resembles the structure in the classic EOATeX way. There is one main +file that links to the separate chapter files which are located in a +directory `texfiles`. + +## Working with the LaTeX files + +The LaTeX files are considered temporary files to create a PDF version +of the TEI text. All changes to the contents and structure of the text +should be made in the master TEI file. However, some elements need to +be fixed at the LaTeX level, e.g. the placement and size of images, +line and page breaks or hyphenation.