summaryrefslogtreecommitdiffstats
path: root/log.sty
blob: 3286f32da174f3991c637a3b4f2fb41cf4c3da8d (plain)
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
\usepackage{pdfpages}
\usepackage[
  inner=0.75in,
  outer=0.75in,
  top=0.75in,
  bottom=0.75in,
  paperwidth=13.970cm,
  paperheight=21.589cm]{geometry}
\usepackage{xltxtra}
\usepackage{fontspec}
\usepackage{fancyhdr}
\usepackage[final]{microtype}

% Use Malayalam Hyphenation with Polyglossia
\usepackage{polyglossia}
\setdefaultlanguage{malayalam}
\setmainfont[Script=Malayalam]{Meera}
\newfontfamily\malayalamfonttt{Latin Modern Mono} %Suppress error with \url fixed width fonts

\usepackage{framed}
\usepackage{url}
\usepackage{graphicx}

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\linespread{1.1}
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\sloppy


\newcommand{\secstar}[1]{\cleardoublepage\phantomsection\section*{\addcontentsline{toc}{section}{#1}\centering #1}}

\newfontfamily\engtext{Charis SIL}

\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\bfseries\filcenter}
{\LARGE\thechapter}
{1ex}
{\titlerule[2pt]
\vspace{2ex}%
\LARGE}
[\vspace{1ex}%
{\titlerule[2pt]}]


%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%
  \@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}