diff --git a/HOWTO.md b/HOWTO.md new file mode 100644 index 0000000..081fb0c --- /dev/null +++ b/HOWTO.md @@ -0,0 +1,33 @@ +Wenn der Artikel bereits im Markdown-Format vorhanden ist, beginne mit Schritt +3. + +1. Umbenennung der Datei nach dem Schema `erstautorin-yyyy-mm-dd.xxx` wobei + `erstautorin` der Nachname der Erstautorin oder des Erstautors in + Kleinbuchstaben, `yyyy-mm-dd` das Datum der Einreichung und `xxx` die + Dateiendung ist. + +2. Falls es sich nicht bereits um eine DOCX-Datei handelt (Dateiendung `docx`), + Konvertierung in dieses Format, z.B. mit Word oder http://cloudconvert.org/ + +3. Konvertierung der DOCX-Datei nach Markdown mit Hilfe von Pandoc: + + ``` + pandoc -o erstautorin-yyyy-mm-dd.md erstautorin-yyyy-mm-dd.docx + ``` + +4. Erstellung einer YAML-Datei `erstautorin-yyyy-mm-dd.yml` für die Metadaten + entsprechend der Vorlage `vorlage.yml` und Bearbeitung der Markdown-Datei + `erstautorin-yyyy-mm-dd.md` mit einem Texteditor: + + - Titel, Abstract, Keywords, (Informationen über die) Autoren etc. + gehören *nur* in die YAML-Datei + + - ... + +5. Sicherstellen, dass sich die Datei `ip-logo.png` im aktuellen Verzeichnis + befindet. + +6. Erstellung der HTML- und PDF-Version + + - ....(ausführlichere Anleitung folgt)... + diff --git a/Makefile b/Makefile index 0bc7547..5e0944a 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,20 @@ -default: vorlage.pdf vorlage.html vorlage.docx vorlage.odt +# Verzeichnis, in dem sich dieses Mafile befindet +DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + +vorlage: vorlage.pdf vorlage.html vorlage.docx vorlage.odt # Artikel-Vorlage für Pandoc (LaTeX und HTML) TEMPLATE=informationspraxis-artikel-vorlage -LATEX_OPTIONS=--template $(TEMPLATE).tex -HTML_OPTIONS=--template $(TEMPLATE).html +LATEX_OPTIONS=--template $(DIR)/$(TEMPLATE).tex +HTML_OPTIONS=--template $(DIR)/$(TEMPLATE).html # Einstellungen zum PDF-Seitenlayout. # Grundlagen siehe # und +ENDNOTES=1 + LATEX_OPTIONS+=-V fontfamily=arev LATEX_OPTIONS+=-V fontsize=12pt LATEX_OPTIONS+=-V papersize=a4paper @@ -17,7 +22,7 @@ LATEX_OPTIONS+=-V documentclass=article LATEX_OPTIONS+=-V headheight=20mm -V headsep=10mm LATEX_OPTIONS+=-V footskip=20mm LATEX_OPTIONS+=-V top=30mm -V bottom=40mm -V left=25mm -V right=25mm -LATEX_OPTIONS+=-V endnotes=1 +LATEX_OPTIONS+=-V endnotes=$(ENDNOTES) LATEX_OPTIONS+=-V lang=ngerman LATEX_OPTIONS+=-V graphics=1 @@ -32,8 +37,11 @@ LATEX_OPTIONS+=-V graphics=1 .md.tex: cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S $(LATEX_OPTIONS) -o $@ - -.md.pdf: - cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S $(LATEX_OPTIONS) -o $@ - +#.md.pdf: +# cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S $(LATEX_OPTIONS) -o $@ - + +.tex.pdf: + yes "" | pdflatex $< .md.docx: cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S -o $@ - diff --git a/README.md b/README.md index e4c369b..ea1869a 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ erstellt werden: Unter einem Unix-System mit LaTeX und Pandoc lässt sich die Vorlage folgendermaßen nach PDF, HTML, DOCX und ODT konvertieren: - make + make vorlage Die HTML-Version ist bislang noch nicht angepasst und die DOCX-Version enthält (absichtlich) keine Metadaten sondern nur den Artikelinhalt. diff --git a/informationspraxis-artikel-vorlage.tex b/informationspraxis-artikel-vorlage.tex index 4574d30..41d12a0 100644 --- a/informationspraxis-artikel-vorlage.tex +++ b/informationspraxis-artikel-vorlage.tex @@ -128,6 +128,8 @@ $if(lang)$ $endif$ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[german=quotes]{csquotes} + % Seitenlayout \usepackage[ % showframe, @@ -148,12 +150,17 @@ $endif$ %% Kopfzeile & Fußzeile ab zweiter Seite \pagestyle{fancy} -\lhead{\footnotesize $for(author)$$author.name$$sep$, $endfor$: $title$} +\lhead{\footnotesize + $for(author)$$author.name$$sep$, $endfor$: + $if(title-short)$$title-short$$else$$title$$endif$ +} \lfoot{\footnotesize \href{http://www.informationspraxis.de}{\underline{\smash{www.informationspraxis.de}}} - $if(doi)$\;/\; \href{http://dx.doi.org/$doi$}{doi $doi$}$endif$ $if(license)$\\$license$$endif$ } +\cfoot{\footnotesize $if(doi)$\href{http://dx.doi.org/$doi$}{doi $doi$}$else$ + \leavevmode\color{red}\textbf{$if(accepted)$PREPRINT$else$REVIEW-VERSION$endif$}$endif$ +} \rfoot{\textbf{\thepage}} %% Kopfzeile & Fußzeile Titelseite @@ -177,21 +184,34 @@ $endif$ \subsubsection*{Schlüsselwörter} $for(keywords)$$keywords$$sep$, $endfor$ + $if(title-en)$ \subsection*{$title-en$} + $endif$ + $if(abstract-en)$ \subsubsection*{Abstract} $abstract-en$ + $endif$ + $if(keywords-en)$ \subsubsection*{Keywords} $for(keywords-en)$$keywords-en$$sep$, $endfor$ + $endif$ \subsubsection*{Classification} - $for(jita)$$jita$$sep$, $endfor$ + $for(jita)$$jita$$sep$\\ $endfor$ \vfill {\small - {\bfseries Einreichung / Annahme / Veröffentlichung}\\ - $received$ / $accepted$ / $published$} + {\bfseries Einreichung + $if(accepted)$/ Annahme$endif$ + $if(published)$/ Veröffentlichung$endif$ + }\\ + $received$ + $if(accepted)$/ $accepted$ + $if(published)$/ $published$$endif$ + $else${\bfseries\textcolor{red}{REVIEW-VERSION}}$endif$ + } \pagebreak }