forked from stotrasamhita/vedamantra-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vedamantrabook-print.tex
36 lines (31 loc) · 1.29 KB
/
vedamantrabook-print.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% !TeX program = XeLaTeX
% !TeX root = vedamantrabook.tex
\documentclass[twoside,12pt]{book}
\usepackage{etoolbox}
\newbool{kindle}
\newbool{print}
\setbool{kindle}{false}
\setbool{print}{true}
\ifbool{kindle}{\usepackage[paperwidth=126mm,paperheight=168mm,left=5mm,right=5mm,top=15mm,bottom=20mm]{geometry}}{\usepackage[top=1.5cm, bottom=1.8cm, left=1.5cm, right=1.5cm,paperwidth=148mm,paperheight=210mm]{geometry}}
\input{preamble}
\ifbool{print}{%Margin changes for print
\addtolength{\evensidemargin}{-0.5cm}
\addtolength{\oddsidemargin}{0.5cm}}{}
\begin{document}
\newcommand{\titletext}{वेदमन्त्राः}
\input{frontmatter}
\renewcommand{\partname}{विभागः}
\renewcommand{\thepart}{{\dndigit{\arabic{part}}}}
\Large
% \setmainfont[Script=Devanagari,Mapping=tex-text]{Sanskrit 2003}
%\setmainfont[Script=Devanagari,Mapping=tex-text,FakeStretch=1.08]{Sanskrit 2003}
%\setmainfont[Script=Devanagari,Mapping=tex-text]{Chandas}
\setmainfont[Script=Devanagari,Mapping=tex-text]{Siddhanta}
\fontsize{19pt}{23pt}\selectfont
%The following alters word spacing to ensure that words aren't too close to one another!
\spaceskip=1\fontdimen2\font plus 1\fontdimen3\font minus 1.25\fontdimen4\font
\input{mantras}
\newpage\mbox{}
\clearemptydoublepage
%\mbox{}\clearemptydoublepage
\end{document}