From: Victor Wagner Date: Mon, 27 Oct 2014 05:04:07 +0000 (+0300) Subject: Добавлено правило для генерации pdf X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=3493f41f422e038d28da3fbebe1b623a44d3e096;p=fiction%2Fjasmina.git Добавлено правило для генерации pdf --- diff --git a/Makefile b/Makefile index 794217c..16c68d0 100644 --- 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//*(Фрагмент недописан)*/' "$$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 index 0000000..8dc8f26 --- /dev/null +++ b/preamble.tex @@ -0,0 +1,11 @@ +\documentclass[a5paper]{article} +\usepackage[utf8x]{inputenc} +\usepackage[russian]{babel} +\title{Рани Ясмина} +\author{В.Вагнер} +\begin{document} +\maketitle +\tableofcontents +\input all.tex +\end{document} +