Browse Source

Changed the creation of PDF to LaTeX; using justified outout.

felics 1 year ago
parent
commit
b0b3e10afa
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      Makefile

+ 11
- 3
Makefile View File

@@ -37,7 +37,7 @@ $(TEXTFILE_BASENAME).txt: $(SOURCE_MD)
37 37
 
38 38
 $(TEXTFILE_BASENAME).tex: $(SOURCE_MD)
39 39
 # 	multimarkdown -t latex -s -o $(TEXTFILE_BASENAME).tex --lang=de $(SOURCE_MD)
40
-	pandoc -f markdown -t latex -s -o $(TEXTFILE_BASENAME).tex $(SOURCE_MD) # Try xelatex to compile.
40
+	pandoc -f markdown -t latex -H LaTeX_additional_preamble.tex -s -o $(TEXTFILE_BASENAME).tex $(SOURCE_MD) # Try xelatex to compile.
41 41
 
42 42
 $(TEXTFILE_BASENAME).context: $(SOURCE_MD)
43 43
 	pandoc -f markdown -t context -s -o $(TEXTFILE_BASENAME).context  $(SOURCE_MD)
@@ -50,6 +50,14 @@ $(TEXTFILE_BASENAME).snippet.html: $(SOURCE_MD)
50 50
 	markdown -o $(TEXTFILE_BASENAME).snippet.html $(SOURCE_MD)
51 51
 #	pandoc -f markdown -t html4 -o $(TEXTFILE_BASENAME).html $(SOURCE_MD)
52 52
 
53
-$(TEXTFILE_BASENAME).pdf: $(SOURCE_MD)
53
+$(TEXTFILE_BASENAME).pdf: $(SOURCE_MD) $(TEXTFILE_BASENAME).tex # $(TEXTFILE_BASENAME).html
54 54
 #	mkd2pdf $(SOURCE_MD)
55
-	pandoc -s -f markdown --pdf-engine=wkhtmltopdf -M 'pagetitle=Anleitung Spiel "Kontakt"' -o $(TEXTFILE_BASENAME).pdf $(SOURCE_MD)
55
+#	pandoc -s -f markdown --pdf-engine=wkhtmltopdf -M 'pagetitle=Anleitung Spiel "Kontakt"' -o $(TEXTFILE_BASENAME).pdf $(SOURCE_MD)
56
+#	wkhtmltopdf -s A4 -O portrait -T 2cm -B 2cm -L 1.5cm -R 1.5cm --title 'Anleitung Spiel "Kontakt"' $(TEXTFILE_BASENAME).html $(TEXTFILE_BASENAME).pdf
57
+
58
+#	pdflatex $(TEXTFILE_BASENAME).tex
59
+#	rm -f $(TEXTFILE_BASENAME).log $(TEXTFILE_BASENAME).aux
60
+
61
+	latexmk -gg -pdf $(TEXTFILE_BASENAME).tex
62
+	latexmk -c $(TEXTFILE_BASENAME).tex
63
+