sed -i 's!<document-info>!<document-info><author><first-name>Виктор</first-name><last-name>Вагнер</last-name></author>!' $@
sed -i 's!</document-info>!<src-url>${SRC_URL}</src-url><id>${ID}</id><version>${VERSION}</version></document-info>!' $@
sed -i "s!</FictionBook>!<binary id='cover' content-type='image/jpeg'>`base64 -w 0 jasmina-title.jpg`</binary></FictionBook>!" $@
-jasmina.pdf: jasmina.tex all.tex
- pdflatex jasmina.tex
- pdflatex jasmina.tex
+jasmina.pdf: jasmina.tex all.tex cover3.png
+ xelatex jasmina.tex
+ xelatex jasmina.tex
all.tex: all.mdwn
pandoc -o all.tex all.mdwn
- sed -i 's! ---!~---!g' all.tex
+ 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
-\documentclass[11pt,openany]{article}
-\usepackage[papersize={140mm,200mm},top=12mm,bottom=18mm,inner=14mm,outer=16mm]{geometry}
-\usepackage[utf8x]{inputenc}
+\documentclass[10pt,openany]{book}
+\usepackage{fontspec}
+\setmainfont{DejaVuSerif}
\usepackage[russian]{babel}
-\usepackage{cmap}
-\usepackage[pdftex,colorlinks=true,linkcolor=blue,unicode=true]{hyperref}
+\usepackage[papersize={140mm,200mm},top=12mm,bottom=18mm,inner=14mm,outer=16mm]{geometry}
+\usepackage[xetex,colorlinks=true,linkcolor=blue,unicode=true]{hyperref}
+\usepackage{graphicx}
+\hyphenation{без-бож-ни-ков не-с-коль-ких Яс-ми-не}
\begin{document}
+\begin{titlepage}
+\includegraphics[width=\textwidth]{cover3.png}
+\end{titlepage}
+\tableofcontents
+\sloppy
\input all.tex
\end{document}