forked from stotrasamhita/vedamantra-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AraNyakabook-kindle.tex
49 lines (44 loc) · 1.9 KB
/
AraNyakabook-kindle.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
37
38
39
40
41
42
43
44
45
46
47
48
49
% !TeX program = XeLaTeX
% !TeX root = AraNyakabook-kindle.tex
\documentclass[oneside,12pt]{book}
\usepackage{etoolbox}
\newbool{kindle}
\newbool{print}
\setbool{kindle}{true}
\setbool{print}{false}
\ifbool{kindle}{\usepackage[paperwidth=126mm,paperheight=168mm,left=4mm,right=4mm,top=9mm,bottom=9mm]{geometry}
\addtolength{\headsep}{-4mm}}{\usepackage[top=1.5cm, bottom=1.8cm, left=1.5cm, right=1.5cm,paperwidth=148mm,paperheight=210mm]{geometry}}
\input{preamble}
\newcommand{\chaptertitle}{}
\renewcommand{\chapt}[1]{%
\chapter[#1]{\fontspec[FakeBold=1.0,FakeStretch=1.0,Script=Devanagari,Mapping=tex-text]{Sanskrit 2003}॥#1॥}%
\renewcommand{\chaptertitle}{(#1)}
}
\lhead[\fancyplain{}{\pagenumfont\large\thepage}]
{\fancyplain{}{{\leftmark\ \chaptertitle}}}
\rhead[\fancyplain{}{{\leftmark\ \chaptertitle)}}]
{\fancyplain{}{\pagenumfont\large\thepage}}
\fancyfoot[C]{\mbox{}}
\renewcommand{\footrulewidth}{0.4pt}% default is 0pt
\ifbool{print}{%Margin changes for print
\addtolength{\evensidemargin}{-0.5cm}
\addtolength{\oddsidemargin}{0.5cm}}{}
\begin{document}
\newcommand{\titletext}{तैत्तिरीय\linebreak\mbox{}\linebreak आरण्यकम्}
\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}
%\setmainfont[Script=Devanagari,Mapping=tex-text]{Sanskrit 2003}
\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{aranyakas}
\newpage\mbox{}
\clearemptydoublepage
%\mbox{}\clearemptydoublepage
\end{document}