From 42379560a3d3bf4ab285e617a4f9e2f8f9a3d5ad Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 15 Jun 2019 01:39:14 +0000 Subject: [PATCH] Use XeLaTeX --- Makefile | 2 +- faif-2.0.tex | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7334cb0..6a64778 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ all: - rubber --pdf faif-2.0.tex + rubber -m xelatex faif-2.0.tex open: all xdg-open faif-2.0.pdf diff --git a/faif-2.0.tex b/faif-2.0.tex index 9e75335..763c534 100644 --- a/faif-2.0.tex +++ b/faif-2.0.tex @@ -7,13 +7,22 @@ %% no Back-Cover Texts. A copy of the license is included in the %% file called ``gfdl.tex''. -\documentclass[pdftex, 10pt]{book} +\documentclass[10pt]{book} \usepackage{url} -\usepackage[utf8x]{inputenc} \usepackage[Lenny]{fncychap} \clubpenalty=10000 \widowpenalty=10000 +\usepackage{polyglossia} +\setmainlanguage{russian} +\setotherlanguage{english} + +\usepackage{fontspec} +\setmainfont{Liberation Serif} +\newfontfamily{\cyrillicfonttt}{Liberation Mono} +\setsansfont{Liberation Sans} +\setmonofont{Liberation Mono} + %% PDF setup \usepackage{hyperref} \hypersetup{colorlinks=true,