From fb5b2fb4844e0e31f4b624109fbac843aa715f75 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Mon, 12 Aug 2019 01:40:20 -0400 Subject: added font macros --- mla8.tex | 41 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/mla8.tex b/mla8.tex index f3be21b..5cf9ce9 100644 --- a/mla8.tex +++ b/mla8.tex @@ -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 -- cgit