summaryrefslogtreecommitdiffstats
path: root/log.sty
blob: 519c074844a5571a6b90d8b6ea8960d90f4d6b5a (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
\usepackage{pdfpages}
\usepackage[
  inner=2.4cm,
  outer=2.5cm,
  top=2.5cm,
  bottom=2.5cm,
  paperwidth=15.5cm,
  paperheight=22.5cm,
  headheight=0.70cm]{geometry}
\usepackage{xltxtra}
\usepackage{fontspec}
\usepackage{fancyhdr}
\usepackage[final]{microtype}


% Use Malayalam Hyphenation with Polyglossia
\usepackage{polyglossia}
\setdefaultlanguage{malayalam}
\setotherlanguage{english}
\setmainfont[Script=Malayalam,HyphenChar="200C]{Rachana}
%\setmainfont[Script=Malayalam,HyphenChar="200C,AutoFakeBold=1.5,AutoFakeSlant=0.2]{Rachana}
\newfontfamily\malayalamfonttt{PT Sans Narrow} %Suppress error with \url fixed width fonts
\newfontfamily\englishfont{URW Palladio L}
\newfontfamily\email{PT Sans Narrow}

\usepackage{framed}
%\definecolor{shadecolor}{rgb}{0}
\usepackage[hyphens]{url}
\usepackage{graphicx}

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

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

\linespread{1.1} %line spacing
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
\sloppy


\newcommand{\divline}{\begin{center}\line(1,0){20}\end{center}}

\newcommand{\secstar}[1]{\thispagestyle{empty}\clearpage\phantomsection\section*{\addcontentsline{toc}{section}{#1}\centering #1}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-1ex \@plus 0.1ex \@minus 0.1ex}%
                                     {0ex \@plus .1ex}%
                                     {\normalfont\large\bfseries}}

%\renewcommand{\chaptermark}[1]{\marknone{#1}{}}
%\newcommand{\newchapter}[1]{\thispagestyle{empty}\chapter*{\addcontentsline{toc}{chapter}{#1} #1}}

\usepackage{titlesec}
\titleformat{\chapter}[display]
{\normalfont\bfseries\filright}
{\hspace*{5em}\LARGE\thechapter}
{1ex}
{\titlerule[0pt]
\vspace{0ex}%
\hspace*{4em}\LARGE}
[\vspace{0ex}%
{\titlerule[0pt]}]


%% 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}

%% Adjust vertical space before a paragraph
%\makeatletter
%\renewcommand{\paragraph}{%
%  \@startsection{paragraph}{4}%
%  {\z@}{5.5ex \@plus 1ex \@minus .2ex}{-1em}%
%  {\normalfont\normalsize\bfseries}%
%}
%\makeatother

%% No page header for ToC
\makeatletter
\renewcommand\tableofcontents{%
  \section*{\contentsname}% or \chapter* but that looks ugly
  \pagestyle{empty}%
  \enlargethispage*{2\baselineskip}
  \@starttoc{toc}}
\makeatother

%% No Appendix number
\makeatletter
\renewcommand\appendix{\par
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
  \gdef\@chapapp{\appendixname}%
  \gdef\thechapter{}}
\makeatother

\usepackage{enumitem}	% to adjust item list linespacing