]> wagner.pp.ru Git - fiction/jasmina.git/commitdiff
Добавлено правило для генерации pdf
authorVictor Wagner <vitus@wagner.pp.ru>
Mon, 27 Oct 2014 05:04:07 +0000 (08:04 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Mon, 27 Oct 2014 05:04:07 +0000 (08:04 +0300)
Makefile
preamble.tex [new file with mode: 0644]

index 794217c2d5994d209138dbf488609bcb199964ce..16c68d0cd964595c596f67e6b89b342ec545695c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,20 @@
 all: jasmina.html jasmina.epub
 
+fb2: jasmina.fb2.zip
+pdf: jasmina.pdf
+
 all.mdwn: order.lst $(wildcard *.txt)
        for i in `cat order.lst`; do sed 's/<TBD>/*(Фрагмент недописан)*/' "$$i"; echo ""; done > $@
 jasmina.html: all.mdwn
        pandoc -t html --toc -s all.mdwn -o jasmina.html
 jasmina.epub: all.mdwn
        pandoc -t epub  all.mdwn -o jasmina.epub
+jasmina.fb2.zip: jasmina.fb2
+       zip $@ $+
+jasmina.fb2:   all.mdwn
+       pandoc -t fb2 all.mdwn -o jasmina.fb2
+jasmina.pdf: preamble.tex all.tex
+       pdflatex preamble.tex
+       pdflatex preamble.tex
+all.tex: all.mdwn
+       pandoc -o all.tex all.mdwn
diff --git a/preamble.tex b/preamble.tex
new file mode 100644 (file)
index 0000000..8dc8f26
--- /dev/null
@@ -0,0 +1,11 @@
+\documentclass[a5paper]{article}
+\usepackage[utf8x]{inputenc}
+\usepackage[russian]{babel}
+\title{Рани Ясмина}
+\author{В.Вагнер}
+\begin{document}
+\maketitle
+\tableofcontents
+\input all.tex
+\end{document}
+