% The author of this work is Amit Raj Dhawan
% This work has been released under
% Creative Commons Attribution-Share Alike 3.0 Unported License
% on July 19, 2010. For details visit:
% http://creativecommons.org/licenses/by-sa/3.0/.
%
% roman text (Family 0)
\def\twentyrm{\font\fzzozznzzt=rm-qplr at20pt \fzzozznzzt}%
\def\eighteenrm{\font\fzzozznzzt=rm-qplr at18pt \fzzozznzzt}%
\def\sixteenrm{\font\fzzozznzzt= rm-qplr at16pt \fzzozznzzt}%
\def\fourteenrm{\font\fzzozznzzt=rm-qplr at14pt \fzzozznzzt}%
\def\twelverm{\font\fzzozznzzt=  rm-qplr at12pt \fzzozznzzt}%
\font\tenrm=        rm-qplr% rm-qplr (TeX encoding) offers better rendering of letters D and T, and has the ff ligature.
\def\ninerm{\font\fzzozznzzt=       rm-qplr at9pt \fzzozznzzt}%
\def\eightrm{\font\fzzozznzzt=      rm-qplr at8pt \fzzozznzzt}%
\font\sevenrm=      rm-qplr at7pt
\def\sixrm{\font\fzzozznzzt=        rm-qplr at6pt \fzzozznzzt}%
\font\fiverm=       rm-qplr at5pt
%
% math italic (Family 1)
\def\twentyi{\font\fzzozznzzt=   zplmr7m at20pt \fzzozznzzt}%
\def\eighteeni{\font\fzzozznzzt= zplmr7m at18pt \fzzozznzzt}%
\def\sixteeni{\font\fzzozznzzt=  zplmr7m at16pt \fzzozznzzt}%
\def\fourteeni{\font\fzzozznzzt= zplmr7m at14pt \fzzozznzzt}%
\def\twelvei{\font\fzzozznzzt=   zplmr7m at12pt \fzzozznzzt}%
\font\teni=         zplmr7m
\def\ninei{\font\fzzozznzzt=        zplmr7m at9pt \fzzozznzzt}%
\def\eighti{\font\fzzozznzzt=       zplmr7m at8pt \fzzozznzzt}%
\font\seveni=       zplmr7m at7pt
\def\sixi{\font\fzzozznzzt=         zplmr7m at6pt \fzzozznzzt}%
\font\fivei=        zplmr7m at5pt
%
% math symbols (Family 2)
\def\twentysy{\font\fzzozznzzt=  zplmr7y at20pt \fzzozznzzt}%
\def\eighteensy{\font\fzzozznzzt=zplmr7y at18pt \fzzozznzzt}%
\def\sixteensy{\font\fzzozznzzt= zplmr7y at16pt \fzzozznzzt}%
\def\fourteensy{\font\fzzozznzzt=zplmr7y at14pt \fzzozznzzt}%
\def\twelvesy{\font\fzzozznzzt=  zplmr7y at12pt \fzzozznzzt}%
\font\tensy=        zplmr7y
\def\ninesy{\font\fzzozznzzt=       zplmr7y at9pt \fzzozznzzt}%
\def\eightsy{\font\fzzozznzzt=      zplmr7y at8pt \fzzozznzzt}%
\font\sevensy=      zplmr7y at7pt
\def\sixsy{\font\fzzozznzzt=        zplmr7y at6pt \fzzozznzzt}%
\font\fivesy=       zplmr7y at5pt
%
% math extension (Family 3)
\def\twentyex{\font\fzzozznzzt=  zplmr7v at20pt \fzzozznzzt}%
\def\eighteenex{\font\fzzozznzzt=zplmr7v at18pt \fzzozznzzt}%
\def\sixteenex{\font\fzzozznzzt= zplmr7v at16pt \fzzozznzzt}%
\def\fourteenex{\font\fzzozznzzt=zplmr7v at14pt \fzzozznzzt}%
\def\twelveex{\font\fzzozznzzt=  zplmr7v at12pt \fzzozznzzt}%
\font\tenex=        zplmr7v
\def\nineex{\font\fzzozznzzt=       zplmr7v at9pt \fzzozznzzt}%
\def\eightex{\font\fzzozznzzt=      zplmr7v at8pt \fzzozznzzt}%
\font\sevenex=      zplmr7v at7pt
\def\sixex{\font\fzzozznzzt=        zplmr7v at6pt \fzzozznzzt}%
\font\fiveex=       zplmr7v at5pt
%
% italic text (Family 4)
\def\twentyit{\font\fzzozznzzt=  rm-qplri at20pt \fzzozznzzt}%
\def\eighteenit{\font\fzzozznzzt=rm-qplri at18pt \fzzozznzzt}%
\def\sixteenit{\font\fzzozznzzt= rm-qplri at16pt \fzzozznzzt}%
\def\fourteenit{\font\fzzozznzzt=   rm-qplri at14pt \fzzozznzzt}%
\def\twelveit{\font\fzzozznzzt=  rm-qplri at12pt \fzzozznzzt}%
\font\tenit=        rm-qplri
\def\nineit{\font\fzzozznzzt=       rm-qplri at9pt \fzzozznzzt}%
\def\eightit{\font\fzzozznzzt=      rm-qplri at8pt \fzzozznzzt}%
\font\sevenit=      rm-qplri at7pt
\def\sixit{\font\fzzozznzzt=        rm-qplri at6pt \fzzozznzzt}%
\font\fiveit=       rm-qplri at5pt
%
% slanted text (Family 5)
\def\twentysl{\font\fzzozznzzt=  pxsl at20pt \fzzozznzzt}%
\def\eighteensl{\font\fzzozznzzt=pxsl at18pt \fzzozznzzt}%
\def\sixteensl{\font\fzzozznzzt= pxsl at16pt \fzzozznzzt}%
\def\fourteensl{\font\fzzozznzzt=   pxsl at14pt \fzzozznzzt}%
\def\twelvesl{\font\fzzozznzzt=  pxsl at12pt \fzzozznzzt}%
\font\tensl=        pxsl
\def\ninesl{\font\fzzozznzzt=       pxsl at9pt \fzzozznzzt}%
\def\eightsl{\font\fzzozznzzt=      pxsl at8pt \fzzozznzzt}%
\font\sevensl=      pxsl at7pt
\def\sixsl{\font\fzzozznzzt=        pxsl at6pt \fzzozznzzt}%
\font\fivesl=       pxsl at5pt
%
% boldface text (Family 6)
\def\twentybf{\font\fzzozznzzt=  rm-qplb at20pt \fzzozznzzt}%
\def\eighteenbf{\font\fzzozznzzt=   rm-qplb at18pt \fzzozznzzt}%
\def\sixteenbf{\font\fzzozznzzt= rm-qplb at16pt \fzzozznzzt}%
\def\fourteenbf{\font\fzzozznzzt=   rm-qplb at14pt \fzzozznzzt}%
\def\twelvebf{\font\fzzozznzzt=  rm-qplb at12pt \fzzozznzzt}%
\font\tenbf=        rm-qplb
\def\ninebf{\font\fzzozznzzt=       rm-qplb at9pt \fzzozznzzt}%
\def\eightbf{\font\fzzozznzzt=      rm-qplb at8pt \fzzozznzzt}%
\font\sevenbf=      rm-qplb at7pt
\def\sixbf{\font\fzzozznzzt=        rm-qplb at6pt \fzzozznzzt}%
\font\fivebf=       rm-qplb at5pt
%
% typewriter text (Family 7)
\def\twentytt{\font\fzzozznzzt=  cmtt10 at20pt \fzzozznzzt}%
\def\eighteentt{\font\fzzozznzzt=   cmtt10 at18pt \fzzozznzzt}%
\def\sixteentt{\font\fzzozznzzt= cmtt10 at16pt \fzzozznzzt}%
\def\fourteentt{\font\fzzozznzzt=cmtt10 at14pt \fzzozznzzt}%
\def\twelvett{\font\fzzozznzzt=  cmtt10 at12pt \fzzozznzzt}%
\font\tentt=        cmtt10
\def\ninett{\font\fzzozznzzt=       cmtt9 \fzzozznzzt}%
\def\eighttt{\font\fzzozznzzt=      cmtt8 \fzzozznzzt}%
\font\seventt=      cmtt10 at7pt
\def\sixtt{\font\fzzozznzzt=        cmtt10 at6pt \fzzozznzzt}%
\font\fivett=       cmtt10 at5pt
%
% Family 0 (roman text)
\textfont0=\tenrm
\scriptfont0=\sevenrm
\scriptscriptfont0=\fiverm
\def\rm{\fam=0 \tenrm}%
%
% Family 1 (math italic)
\textfont1=\teni
\scriptfont1=\seveni
\scriptscriptfont1=\fivei
\def\mit{\fam=1}%
%
% Family 2 (math symbol)
\textfont2=\tensy
\scriptfont2=\sevensy
\scriptscriptfont2=\fivesy
\def\cal{\fam=2}%
%
% Family 3 (math extension)
\textfont3=\tenex
\scriptfont3=\sevenex
\scriptscriptfont3=\fiveex
%
% Family 4 (italic text)
\def\it{\fam=\itfam \tenit}%
\textfont\itfam=\tenit
\scriptfont\itfam=\sevenit
\scriptscriptfont\itfam=\fiveit
%
% Family 5 (slanted text)
\def\sl{\fam=\slfam \tensl}%
\textfont\slfam=\tensl
\scriptfont\slfam=\sevensl
\scriptscriptfont\slfam=\fivesl
%
% Family 6 (boldface text)
\def\bf{\fam=\bffam \tenbf}%
\textfont\bffam=\tenbf
\scriptfont\bffam=\sevenbf
\scriptscriptfont\bffam=\fivebf
%
% Family 7 (typewriter text)
\def\tt{\fam=\ttfam \tentt}%
\textfont\ttfam=\tentt
\scriptfont\ttfam=\seventt
\scriptscriptfont\ttfam=\fivett
%
% italic boldface
\def\twentyitbf{\font\fzzozznzzt=   rm-qplbi at20pt \fzzozznzzt}%
\def\eighteenitbf{\font\fzzozznzzt= rm-qplbi at18pt \fzzozznzzt}%
\def\sixteenitbf{\font\fzzozznzzt=  rm-qplbi at16pt \fzzozznzzt}%
\def\fourteenitbf{\font\fzzozznzzt=    rm-qplbi at14pt \fzzozznzzt}%
\def\twelveitbf{\font\fzzozznzzt=   rm-qplbi at12pt \fzzozznzzt}%
\font\itbf=            rm-qplbi
\def\nineitbf{\font\fzzozznzzt=        rm-qplbi at9pt \fzzozznzzt}%
\def\eightitbf{\font\fzzozznzzt=       rm-qplbi at8pt \fzzozznzzt}%
\font\sevenitbf=       rm-qplbi at7pt
\def\sixitbf{\font\fzzozznzzt=         rm-qplbi at6pt \fzzozznzzt}%
\font\fiveitbf=        rm-qplbi at5pt
%
% slanted boldface
\def\twentyslbf{\font\fzzozznzzt=   pxbsl at20pt \fzzozznzzt}%
\def\eighteenslbf{\font\fzzozznzzt= pxbsl at18pt \fzzozznzzt}%
\def\sixteenslbf{\font\fzzozznzzt=  pxbsl at16pt \fzzozznzzt}%
\def\fourteenslbf{\font\fzzozznzzt=    pxbsl at14pt \fzzozznzzt}%
\def\twelveslbf{\font\fzzozznzzt=   pxbsl at12pt \fzzozznzzt}%
\font\slbf=            pxbsl
\def\nineslbf{\font\fzzozznzzt=        pxbsl at9pt \fzzozznzzt}%
\def\eightslbf{\font\fzzozznzzt=       pxbsl at8pt \fzzozznzzt}%
\font\sevenslbf=       pxbsl at7pt
\def\sixslbf{\font\fzzozznzzt=         pxbsl at6pt \fzzozznzzt}%
\font\fiveslbf=        pxbsl at5pt
%
% caps
\def\twentycaps{\font\fzzozznzzt=   rm-qplr-sc at20pt \fzzozznzzt}%
\def\eighteencaps{\font\fzzozznzzt= rm-qplr-sc at18pt \fzzozznzzt}%
\def\sixteencaps{\font\fzzozznzzt=  rm-qplr-sc at16pt \fzzozznzzt}%
\def\fourteencaps{\font\fzzozznzzt=    rm-qplr-sc at14pt \fzzozznzzt}%
\def\twelvecaps{\font\fzzozznzzt=   rm-qplr-sc at12pt \fzzozznzzt}%
\font\caps=            rm-qplr-sc  % rm-qplr-sc of TeX Gyre or pplrc7t of Adobe can also be used.
\def\ninecaps{\font\fzzozznzzt=        rm-qplr-sc at9pt \fzzozznzzt}%
\def\eightcaps{\font\fzzozznzzt=       rm-qplr-sc at8pt \fzzozznzzt}%
\font\sevencaps=       rm-qplr-sc at7pt
\def\sixcaps{\font\fzzozznzzt=         rm-qplr-sc at6pt \fzzozznzzt}%
\font\fivecaps=        rm-qplr-sc at5pt
%
\def\twentycapsbf{\font\fzzozznzzt=   rm-qplb-sc at20pt \fzzozznzzt}%
% caps boldface
\def\eighteencapsbf{\font\fzzozznzzt= rm-qplb-sc at18pt \fzzozznzzt}%
\def\sixteencapsbf{\font\fzzozznzzt=  rm-qplb-sc at16pt \fzzozznzzt}%
\def\fourteencapsbf{\font\fzzozznzzt=    rm-qplb-sc at14pt \fzzozznzzt}%
\def\twelvecapsbf{\font\fzzozznzzt=   rm-qplb-sc at12pt \fzzozznzzt}%
\font\capsbf=            rm-qplb-sc % rm-qplb-sc of TeX Gyre or pplrc7t of Adobe can also be used.
\def\ninecapsbf{\font\fzzozznzzt=        rm-qplb-sc at9pt \fzzozznzzt}%
\def\eightcapsbf{\font\fzzozznzzt=       rm-qplb-sc at8pt \fzzozznzzt}%
\font\sevencapsbf=       rm-qplb-sc at7pt
\def\sixcapsbf{\font\fzzozznzzt=         rm-qplb-sc at6pt \fzzozznzzt}%
\font\fivecapsbf=        rm-qplb-sc at5pt
% 
% AMS Symbols
\def\loadmsam{\font\tenmsa=pxsya \font\sevenmsa=pxsya at7pt \font\fivemsa=pxsya at5pt \fam\msafam \textfont\msafam=\tenmsa \scriptfont\msafam=\sevenmsa \scriptscriptfont\msafam=\fivemsa \global\let\loadmsam\empty}%
\def\loadmsbm{\font\tenmsb=pxsyb \font\sevenmsb=pxsyb at7pt \font\fivemsb=pxsyb at5pt \fam\msbfam \textfont\msbfam=\tenmsb \scriptfont\msbfam=\sevenmsb \scriptscriptfont\msbfam=\fivemsb \global\let\loadmsbm\empty}%
\def\UseAMSsymbols{\loadmsam\loadmsbm}%
%
%
\rm