From 876ce7a1f1c09070d10e5d7ef198ca5c8eaf14fe Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Mon, 30 May 2016 22:01:20 +0300 Subject: [PATCH] Xelatex generation of pdf --- Makefile | 9 +++++---- jasmina.tex | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 9 deletions(-) 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} -- 2.39.2