Vorlagen-Inhalt als DOCX

This commit is contained in:
Jakob Voss 2014-09-15 12:33:35 +02:00
parent ae5e9e39a3
commit d7c385c0a7
4 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
default: vorlage.pdf vorlage.html default: vorlage.pdf vorlage.html vorlage.docx
# Artikel-Vorlage für Pandoc (LaTeX und HTML) # Artikel-Vorlage für Pandoc (LaTeX und HTML)
TEMPLATE=informationspraxis-artikel-vorlage TEMPLATE=informationspraxis-artikel-vorlage
@ -23,7 +23,7 @@ LATEX_OPTIONS+=-V graphics=1
# Konvertierungsregeln von Markdown (Artikel) und YAML (Metadaten) nach HTML & PDF # Konvertierungsregeln von Markdown (Artikel) und YAML (Metadaten) nach HTML & PDF
.SUFFIXES: .md .html .tex .pdf .SUFFIXES: .md .html .tex .pdf .docx .odt
.PHONY: clean .PHONY: clean
.md.html: .md.html:
@ -35,6 +35,9 @@ LATEX_OPTIONS+=-V graphics=1
.md.pdf: .md.pdf:
cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S $(LATEX_OPTIONS) -o $@ - cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S $(LATEX_OPTIONS) -o $@ -
.md.docx:
cat $(patsubst %.md,%.yml,$<) $< | pandoc -s -S -o $@ -
clean: clean:
rm -f *.{log,aux,toc} rm -f *.{log,aux,toc}

View File

@ -14,9 +14,12 @@ und die dazugehörigen Metadaten in der Datei
* `vorlage.yml` * `vorlage.yml`
Unter einem Unix-System mit LaTeX und Pandoc lässt sich die Vorlage Unter einem Unix-System mit LaTeX und Pandoc lässt sich die Vorlage
folgendermaßen nach HTML und PDF konvertieren: folgendermaßen nach PDF, HTML und DOCX konvertieren:
make vorlage.html vorlage.pdf make
Die HTML-Version ist bislang noch nicht angepasst und die DOCX-Version enthält
(absichtlich) keine Metadaten sondern nur den Artikelinhalt.
# Anleitung # Anleitung

BIN
vorlage.docx Normal file

Binary file not shown.

BIN
vorlage.pdf Normal file

Binary file not shown.