macs.tex 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. % Setup count registers
  13. % chapter
  14. \count10=1
  15. % verse
  16. \count11=1
  17. % book
  18. \count12=1
  19. % Macros
  20. %eject to odd
  21. \def\ejtoodd#1{\ifodd\count0\null\break\eject\null\break\eject\else\null\break\eject\fi}
  22. %title
  23. \def\title#1{\centerline{\titlefont #1}\vskip 26pt \centerline{\bkheadfont \versionname}\eject}
  24. %version
  25. \def\version#1{\def\versionname{The #1 Version}}
  26. %testament
  27. \def\testament#1{\ejtoodd{}\rightline{\titlefont The #1 Testament}\eject\count12=1}
  28. %book
  29. \def\book#1{{\bkheadfont #1\break}\count10=1\count11=1}
  30. %chapter
  31. \def\chapter{{\chheadfont \number\count10}\count11=1}
  32. %verse
  33. \def\verse{$ ^{\number\count11} $\advance\count11 by 1}
  34. %emphasis
  35. \def\emph#1{}