X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=Makefile;h=a73fdb59a5ac0272c12f5bff43f2ee47b6990e55;hb=7c250b212376ecfd636883f585abc1d106e58565;hp=e9bfc4ba76ee3bee688771e4bcf71e1bbf6f177b;hpb=0800206029de203ba9c0a09bacc9a0044a6fcffb;p=fiction%2Fjasmina.git
diff --git a/Makefile b/Makefile
index e9bfc4b..a73fdb5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ SRC_URL=http://www.wagner.pp.ru/~vitus/fiction
ID=90860948-65dc-11e5-bd77-bc5ff453db06
VERSION=0.$(shell date +%s)
-all: jasmina.html jasmina.epub
+all: jasmina.html jasmina.epub jasmina.fb2.zip
fb2: jasmina.fb2.zip
pdf: jasmina.pdf
@@ -31,8 +31,14 @@ jasmina.fb2: all.mdwn annotation.html jasmina-title.jpg Makefile
sed -i 's!!ÐикÑоÑÐагнеÑ!' $@
sed -i 's!!${SRC_URL}${ID}${VERSION}!' $@
sed -i "s!!`base64 -w 0 jasmina-title.jpg`!" $@
-jasmina.pdf: preamble.tex all.tex
- pdflatex preamble.tex
- pdflatex preamble.tex
+jasmina.pdf: jasmina.tex all.tex jasmina-title.jpg
+ xelatex jasmina.tex
+ xelatex jasmina.tex
all.tex: all.mdwn
pandoc -o all.tex all.mdwn
+ sed -i -e 's! ---!~---!g' -e 's!\([а-Ñ]\)-\([Ð-Яа-Ñ]\)!\1"=\2!g' all.tex
+ sed -i -e 's!\\section{!\\part{!' -e 's!\\subsection{!\\chapter{!' all.tex
+
+notes: all.mdwn
+ # List all the footnotes
+ grep '^\[\^' all.mdwn|sort -n -k 1.3