home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 334_01 / header.tex < prev    next >
Text File  |  1991-02-05  |  2KB  |  65 lines

  1. % Header file for gnutex.tex
  2. %
  3.  
  4. % Spacing
  5. \newcommand{\singlespace}
  6.   {\addtolength{\baselineskip}{-.333\baselineskip}}
  7. \newcommand{\doublespace}
  8.   {\addtolength{\baselineskip}{.5\baselineskip}}
  9.  
  10. % Spacing for the whole document 
  11. \newcommand{\currentspace}{} % use this for single space
  12. % \newcommand{\currentspace}{\doubleespace} % use this for double space
  13.  
  14. % Common abbreviations
  15. % (Remember to put '\ ' after if an interword space is
  16. %  desired rather than end-of-sentence space. Same for '.etc)' ).
  17. \newcommand{\eg}{{\em e.g.}}        % e.g.
  18. \newcommand{\ie}{{\em i.e.}}        % i.e.
  19. \newcommand{\etc}{{\em etc.}}        % etc.
  20. \newcommand{\vs}{{\em vs.}}        % vs.
  21. \newcommand{\usec}{{$\mu$}sec}    % microseconds
  22.  
  23. % \boxfigure{pos}{wid}{text}:  A figure with a box around it
  24. %
  25. % pos    the usual figure placement arg: eg. htbp
  26. % wid    the width of the figure, in some units: eg. 5in
  27. % text    the contents of the figure, including picture/caption/label/etc
  28. %
  29. \newlength{\boxwidth}
  30. \newcommand{\boxfigure}[3]{
  31.     \begin{figure}[#1]
  32.         \setlength{\boxwidth}{#2}
  33.         \addtolength{\boxwidth}{.1in}
  34.  
  35.         \centering
  36.         \framebox[\boxwidth]{
  37.             \begin{minipage}{#2}
  38.             #3
  39.             \end{minipage}
  40.         }
  41.     \end{figure}  
  42. }
  43.  
  44. % use \fullboxwidth for arg 2 of boxfigure to get box of size \textwidth
  45.  
  46. % To show a syntax for a gnutex command
  47. \newenvironment{syntax}{\begin{quote}\tt}{\end{quote}}
  48.  
  49. \documentstyle[titlepage,11pt]{article}
  50.  
  51. % Margins
  52. \sloppy
  53. \setlength{\textwidth}{6.5in}
  54. \setlength{\textheight}{9in}
  55. \setlength{\topmargin}{-0.5in}
  56. \setlength{\oddsidemargin}{0pt}
  57. \setlength{\evensidemargin}{0pt}
  58.  
  59. % see above
  60. \newlength{\fullboxwidth}
  61. \setlength{\fullboxwidth}{\textwidth}
  62. \addtolength{\fullboxwidth}{-0.1in}
  63.  
  64.