| 1 |
\documentclass[a4paper]{article} |
| 2 |
|
| 3 |
\usepackage[paperwidth=100mm,margin=.1mm,ignoreall]{geometry} % prose |
| 4 |
%\usepackage[paperwidth=62.5mm,margin=.1mm,ignoreall]{geometry} % poem |
| 5 |
\usepackage[dvipsnames,svgnames]{xcolor} |
| 6 |
\usepackage{graphicx,listings} |
| 7 |
|
| 8 |
\usepackage[path={./fonts/}]{rit-fonts} |
| 9 |
\newfontfamily\en[Path={./fonts/},Extension=.ttf]% |
| 10 |
{Linux-Libertine} |
| 11 |
[BoldFont=*-Bold] |
| 12 |
\def\thesection{\en\arabic{section}} |
| 13 |
\def\thesubsection{\en\thesection.\arabic{subsection}} |
| 14 |
\def\f#1{\gdef\thef{\en #1}} |
| 15 |
\newfontfamily\lstfont[Scale=.8]{MPLUSCodeLatin} |
| 16 |
\usepackage{tcolorbox} |
| 17 |
|
| 18 |
\colorlet{bgcol}{white} |
| 19 |
\colorlet{frcol}{black!10} |
| 20 |
\def\thetitle{Regular} |
| 21 |
|
| 22 |
\makeatletter |
| 23 |
\def\title#1{\def\next{#1}\xdef\thetitle |
| 24 |
{\expandafter\strip@prefix\meaning\next}} |
| 25 |
\makeatother |
| 26 |
|
| 27 |
\newtcolorbox{prosebox}{colback=bgcol,width=99.8mm, %.63\linewidth, |
| 28 |
halign title=flush left, |
| 29 |
before=, after=\par\newpage, |
| 30 |
% before skip=0\baselineskip, after skip=0\baselineskip, |
| 31 |
colbacktitle={black!10}, |
| 32 |
coltitle=black, |
| 33 |
fonttitle=\lstfont\footnotesize, |
| 34 |
box align=top, |
| 35 |
colframe=frcol, |
| 36 |
title={\thetitle}} |
| 37 |
|
| 38 |
%\addfontfeatures{Scale=2,Color=red,Numbers=Lining} |
| 39 |
|
| 40 |
\def\myprose{പ്രതിരോധരാഷ്ട്രീയവും ആധുനിക കലാപാരമ്പര്യങ്ങളിലെ |
| 41 |
വിനിമയവൈഭവങ്ങളും തമ്മിലിണക്കി, അവരവരുടെ ദേശീയ കലാസാഹിത്യത്തിന്റെ |
| 42 |
പരമ്പരാഗത രൂപങ്ങളെ ഭാവുകത്വപരമായി ഉയർത്തി, നീതിയോടു് ആഭിമുഖ്യം വളർത്തി, |
| 43 |
ഇങ്ങനെ ഒരു പ്രതിസംസ്കാരത്തിന്റെ ജനകീയവും അഗാധവും സമകാലികവും |
| 44 |
ഭൗതികവുമായ ജാഗ്രത പാകി.} |
| 45 |
|
| 46 |
\def\halfprose{പ്രതിരോധരാഷ്ട്രീയവും ആധുനിക കലാപാരമ്പര്യങ്ങളിലെ |
| 47 |
വിനിമയവൈഭവങ്ങളും തമ്മിൽ \dots} |
| 48 |
|
| 49 |
\usepackage[active,luatex,tightpage]{preview} |
| 50 |
\renewcommand\PreviewBbAdjust{0pt -5pt 0pt 0pt} |
| 51 |
\PreviewEnvironment{prosebox} |
| 52 |
|
| 53 |
|
| 54 |
\begin{document} |
| 55 |
\ifluatex\prehyphenchar="0000\else\defaulthyphenchar="0000\fi |
| 56 |
\pagestyle{empty} |
| 57 |
|
| 58 |
\parindent0pt |
| 59 |
\parskip=1\baselineskip plus 2pt minus 2pt |
| 60 |
|
| 61 |
\hyphenpenalty=0 |
| 62 |
\lefthyphenmin=3 |
| 63 |
\righthyphenmin=3 |
| 64 |
\tolerance=500 |
| 65 |
\emergencystretch=1em |
| 66 |
|
| 67 |
\title{RIT Rachana Regular} |
| 68 |
\begin{prosebox} |
| 69 |
\Rachana |
| 70 |
\myprose |
| 71 |
\end{prosebox} |
| 72 |
|
| 73 |
\title{RIT Panmana Regular} |
| 74 |
\begin{prosebox} |
| 75 |
\Panmana |
| 76 |
\myprose |
| 77 |
\end{prosebox} |
| 78 |
|
| 79 |
\title{RIT Lekha Regular} |
| 80 |
\begin{prosebox} |
| 81 |
\Lekha |
| 82 |
\addfontfeature{Scale=.8} |
| 83 |
\myprose |
| 84 |
\end{prosebox} |
| 85 |
|
| 86 |
\title{RIT MeeraNew} |
| 87 |
\begin{prosebox} |
| 88 |
\Meera |
| 89 |
\myprose |
| 90 |
\end{prosebox} |
| 91 |
|
| 92 |
\title{RIT TN Joy} |
| 93 |
\begin{prosebox} |
| 94 |
\Joy |
| 95 |
\myprose |
| 96 |
\end{prosebox} |
| 97 |
|
| 98 |
\title{\usepackage[ScaleRM=1.5,...]{rit-fonts}} |
| 99 |
\begin{prosebox} |
| 100 |
\Rachana |
| 101 |
\addfontfeatures{Scale=1.5} |
| 102 |
\advance\baselineskip 5pt |
| 103 |
\ifluatex\prehyphenchar="0000\else\defaulthyphenchar="0000\fi |
| 104 |
\halfprose |
| 105 |
\end{prosebox} |
| 106 |
|
| 107 |
\title{\usepackage[Numbers=OldStyle,...]{rit-fonts}} |
| 108 |
\begin{prosebox} |
| 109 |
\Rachana \addfontfeatures{Numbers=OldStyle} |
| 110 |
\ifluatex\prehyphenchar="0000\else\defaulthyphenchar="0000\fi രചനയിൽ |
| 111 |
പഴയരീതിയിലുള്ള അക്കങ്ങളുണ്ടു്. 1234567890. ഇവ സാധാ\-രണ അക്കങ്ങളെ അപേക്ഷിച്ചു് |
| 112 |
പാഠവുമായി ഒത്തുപോകുന്നതാണു്. |
| 113 |
\end{prosebox} |
| 114 |
|
| 115 |
\title{RIT Sundar Bold} |
| 116 |
\begin{prosebox} |
| 117 |
\Sundar |
| 118 |
\myprose |
| 119 |
\end{prosebox} |
| 120 |
|
| 121 |
\title{RIT Keraleeyam Regular} |
| 122 |
\begin{prosebox} |
| 123 |
\Keraleeyam |
| 124 |
% \addfontfeature{Scale=.8} |
| 125 |
\myprose |
| 126 |
\end{prosebox} |
| 127 |
|
| 128 |
\title{RIT Uroob Regular} |
| 129 |
\begin{prosebox} |
| 130 |
\Uroob |
| 131 |
% \addfontfeature{Scale=.8} |
| 132 |
\myprose |
| 133 |
\end{prosebox} |
| 134 |
|
| 135 |
\title{RIT Karuna Bold} |
| 136 |
\begin{prosebox} |
| 137 |
\Karuna |
| 138 |
% \addfontfeature{Scale=.8} |
| 139 |
\myprose |
| 140 |
\end{prosebox} |
| 141 |
|
| 142 |
\title{RIT Chingam Regular} |
| 143 |
\begin{prosebox} |
| 144 |
\Chingam |
| 145 |
% \addfontfeature{Scale=.8} |
| 146 |
\myprose |
| 147 |
\end{prosebox} |
| 148 |
|
| 149 |
\title{RIT Ezhuthu Regular} |
| 150 |
\begin{prosebox} |
| 151 |
\Ezhuthu |
| 152 |
% \addfontfeature{Scale=.8} |
| 153 |
\myprose |
| 154 |
\end{prosebox} |
| 155 |
|
| 156 |
\title{RIT Kutty Bold} |
| 157 |
\begin{prosebox} |
| 158 |
\Kutty |
| 159 |
% \addfontfeature{Scale=.8} |
| 160 |
\myprose |
| 161 |
\end{prosebox} |
| 162 |
|
| 163 |
\title{RIT Thaara Regular} |
| 164 |
\begin{prosebox} |
| 165 |
\Thaara |
| 166 |
% \addfontfeature{Scale=.8} |
| 167 |
\myprose |
| 168 |
\end{prosebox} |
| 169 |
|
| 170 |
\title{RIT Ala Regular} |
| 171 |
\begin{prosebox} |
| 172 |
\Ala |
| 173 |
% \addfontfeature{Scale=.8} |
| 174 |
\myprose |
| 175 |
\end{prosebox} |
| 176 |
|
| 177 |
\title{RIT Lasya Regular} |
| 178 |
\begin{prosebox} |
| 179 |
\Lasya |
| 180 |
% \addfontfeature{Scale=.8} |
| 181 |
\myprose |
| 182 |
\end{prosebox} |
| 183 |
|
| 184 |
\title{RIT Keram Bold} |
| 185 |
\begin{prosebox} |
| 186 |
\Keram |
| 187 |
% \addfontfeature{Scale=.8} |
| 188 |
\myprose |
| 189 |
\end{prosebox} |
| 190 |
|
| 191 |
\title{RIT Indira Bold} |
| 192 |
\begin{prosebox} |
| 193 |
\Indira |
| 194 |
% \addfontfeature{Scale=.8} |
| 195 |
\myprose |
| 196 |
\end{prosebox} |
| 197 |
|
| 198 |
\end{document} |
| 199 |
|