From: Victor Wagner Date: Mon, 30 May 2016 19:01:20 +0000 (+0300) Subject: Xelatex generation of pdf X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=876ce7a1f1c09070d10e5d7ef198ca5c8eaf14fe;p=fiction%2Fjasmina.git Xelatex generation of pdf --- diff --git a/Makefile b/Makefile index 46361f6..fcaa616 100644 --- a/Makefile +++ b/Makefile @@ -31,12 +31,13 @@ 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: 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 diff --git a/jasmina.tex b/jasmina.tex index 828c462..1ebb212 100644 --- a/jasmina.tex +++ b/jasmina.tex @@ -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}