-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathSamhitaBook-kindle.tex
69 lines (62 loc) · 2.35 KB
/
SamhitaBook-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
% !TeX program = XeLaTeX
% !TeX root = SamhitaBook-kindle.tex
\documentclass[oneside,14pt]{book}
\usepackage{etoolbox}
\usepackage{extsizes}
\newbool{kindle}
\newbool{print}
\setbool{kindle}{true}
\setbool{print}{false}
\ifbool{kindle}{\usepackage[paperwidth=104.5mm,paperheight=139.5mm,left=3mm,right=3mm,top=9mm,bottom=9mm]{geometry}
\addtolength{\headsep}{-8mm}
\addtolength{\footskip}{-4mm}
\addtolength{\textheight}{8mm}}{\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 \thepage}]
{\fancyplain{}{{\leftmark\ \chaptertitle}}}
\rhead[\fancyplain{}{{\leftmark\ \chaptertitle)}}]
{\fancyplain{}{\pagenumfont \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]{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
\setcounter{page}{0}
\pagenumbering{arabic}
%\renewcommand{\sect}[1]{\chapter[#1]{॥#1॥}}
\setlength{\emergencystretch}{3em}
\makeatletter
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}
\makeatother
\newcounter{anuvakam}
\newcommand{\anuvakamend}[1][]{\refstepcounter{anuvakam}%[-1ex]
\baselineskip=12pt\ifthenelse{\equal{#1}{}}{\mbox{}}{{\scriptsize #1॥}}\nolinebreak[4]\vhrulefill{1.6pt}\raisebox{-3pt}{\bfseries{[\devanumber{\arabic{anuvakam}}]}}%\hrulefill
\vspace{-1pt}
}
\newcommand{\prashnaend}[5]{\begingroup\scriptsize
{#1}\\#2\\#3%
\endgroup
\begin{center}
#4॥\\#5
\closesection
\end{center}
\clearpage}
\input{"kandas/TaittiriyaSamhita-Kandas.tex"}
\clearemptydoublepage
%\mbox{}\clearemptydoublepage
\end{document}