macs.tex 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % These macros are for the TestamenTeX %
  3. % Written by Sam Flint, 2013. %
  4. % This is placed into the public domain, in the spirit of %
  5. % TeX itself, and for the benefit of all. %
  6. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  7. \font\mainfont=cmr10
  8. \font\chheadfont=cmssbx10
  9. \font\bkheadfont=cmssbx10 scaled \magstep2
  10. \font\titlefont=cmti10 scaled \magstep4
  11. \font\emphfont=cmti10
  12. \font\itheading=cmss10
  13. % Setup count registers
  14. % chapter
  15. \count10=1
  16. % verse
  17. \count11=1
  18. % book
  19. \count12=1
  20. % Macros
  21. %eject to odd
  22. \def\ejtoodd#1{\ifodd\count0\null\break\eject\null\break\eject\else\null\break\eject\fi}
  23. %title
  24. \def\title#1{\centerline{\titlefont #1}\vskip 26pt \centerline{\bkheadfont \versionname}\eject}
  25. %version
  26. \def\version#1{\def\versionname{The #1 Version}}
  27. %testament
  28. \def\testament#1{\ejtoodd{}\rightline{\titlefont The #1 Testament}\eject\count12=1}
  29. %book
  30. \def\book#1{{\bkheadfont #1\break}\count10=1\count11=1}
  31. %chapter
  32. \def\chapter{{\chheadfont \number\count10}\count11=1}
  33. %verse
  34. \def\verse{$ ^{\number\count11} $\advance\count11 by 1}
  35. %emphasis
  36. \def\emph#1{{\emphfont #1}}
  37. %ithead