| 1 |
|
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% LaTeX code to be added after \usepackage{sphinx} to enable % |
| 4 |
% the build by XeLaTeX, specific for Malayalam language % |
| 5 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 6 |
\usepackage{pdfpages} |
| 7 |
\usepackage{fontspec} |
| 8 |
\usepackage{polyglossia,xltxtra} |
| 9 |
\setdefaultlanguage{malayalam} |
| 10 |
\setmainfont[Script=Malayalam, HyphenChar="00AD]{Rachana} |
| 11 |
\newfontfamily\engfont[Mapping=tex-text]{FreeSerif} |
| 12 |
\def\xromn#1{{\fontencoding{T1}\fontfamily{cmr}\selectfont#1}} |
| 13 |
\def\squote{\xromn{`}} |
| 14 |
\def\esquote{\xromn{'}} |
| 15 |
\def\dquote{\xromn{``}} |
| 16 |
\def\edquote{\xromn{''}} |
| 17 |
\DeclareTextFontCommand{\myfont}{\engfont} |
| 18 |
\def\mdash{\myfont{\textemdash}} |
| 19 |
\def\ndash{\myfont{\textendash}} |
| 20 |
\lefthyphenmin=3 |
| 21 |
\righthyphenmin=4 |
| 22 |
\linespread{1.2} |
| 23 |
\widowpenalty=10000 |
| 24 |
\clubpenalty=10000 |
| 25 |
\raggedbottom |
| 26 |
\sloppy |
| 27 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 28 |
% end of inserted code % |
| 29 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 30 |
|