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