]> wagner.pp.ru Git - fiction/jasmina.git/commitdiff
Xelatex generation of pdf
authorVictor Wagner <vitus@wagner.pp.ru>
Mon, 30 May 2016 19:01:20 +0000 (22:01 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Mon, 30 May 2016 19:01:20 +0000 (22:01 +0300)
Makefile
jasmina.tex

index 46361f6d5448bd364d639b4d019040fc5db2b733..fcaa616f07351c18e19a19d696890052abc25aa5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,12 +31,13 @@ jasmina.fb2:        all.mdwn annotation.html jasmina-title.jpg Makefile
        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
index 828c4627aafc6a2f16647b014fb06ae9c0228aa9..1ebb212be7e5064d83155e9393c46bfe135c5626 100644 (file)
@@ -1,9 +1,16 @@
-\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}