diff options
author | Holden Rohrer <hdawg7797@yahoo.com> | 2019-08-12 01:40:20 -0400 |
---|---|---|
committer | Holden Rohrer <hdawg7797@yahoo.com> | 2019-08-12 01:40:20 -0400 |
commit | fb5b2fb4844e0e31f4b624109fbac843aa715f75 (patch) | |
tree | ececccb910e9af8939f1a4a46ff39128a12b0f38 | |
parent | 26391848f945173b6fc07c7b7c78a6a2788438e4 (diff) |
added font macros
-rw-r--r-- | mla8.tex | 41 |
1 files changed, 39 insertions, 2 deletions
@@ -9,6 +9,43 @@ \font\fourteenit=ptmri7t at 14pt \font\twelveit=ptmri7t at 12pt +%%\font value reference for checks + +{ +\fourteenrm \xdef\fourteenrmid{\the\font} +\fourteenit \xdef\fourteenitid{\the\font} +\fourteenbf \xdef\fourteenbfid{\the\font} +\twelverm \xdef\twelvermid{\the\font} +\twelveit \xdef\twelveitid{\the\font} +\twelvebf \xdef\twelvebfid{\the\font} +} + +%%semantic fonts + +\def\large{% + \edef\curfont{\the\font}% + \ifx\curfont\twelvermid \fourteenrm \fi% + \ifx\curfont\twelvebfid \fourteenbf \fi% + \ifx\curfont\twelveitid \fourteenit \fi% + \baselineskip=28pt% +} + +\def\it{% + \edef\curfont{\the\font}% + \ifx\curfont\twelvermid \twelveit \fi% + \ifx\curfont\fourteenrmid \fourteenit \fi% + \ifx\curfont\twelvebfid \twelveit \fi% + \ifx\curfont\fourteenbfid \fourteenit \fi% +} + +\def\bf{% + \edef\curfont{\the\font}% + \ifx\curfont\twelvermid \twelvebf \fi% + \ifx\curfont\fourteenrmid \fourteenbf \fi% + \ifx\curfont\twelveitid \twelvebf \fi% + \ifx\curfont\fourteenitid \fourteenbf \fi% +} + %math family \font\twelvermop=zptmcm7t at 12pt @@ -50,12 +87,12 @@ \noindent\@date \par } \def\titlespacing{} \def\spaceaftertitle{\def\titlespacing{\bigskip}} %gives the option of adding a large space after the title -\def\title#1{\line{\hfil \fourteenrm \baselineskip=28pt #1 \hfil} \titlespacing} +\def\title#1{\line{\hfil \large #1 \hfil} \titlespacing} %%running header \nopagenumbers -\vsize=9.5in +\vsize=\dimexpr 9.5in \relax \voffset=\dimexpr 12pt - 0.5in \relax \def\firsthead{} %a store for the first page's running header \def\numberfirstpage{\def\firsthead{\@last\ 1}} %optionally enables numbering on first page to same as others |