- #1
DrWahoo
- 53
- 0
I use this when making exams for all my courses. It goes in the preable or the very beginning of the .tex file. Note the use of the commands, I also include commands imported by the file macros! Macros is simiply a .tex file defining your own commands. I have included in another post a list of over 600 simple commands that makes typesetting in latex much easier.
Anyways, here is the start of the .tex file, you put your information below this in the .tex file. Please note, the macros file and the code here(must be contained in the same folder path, otherwise you macros/commands won't load and you will get errors in the compiler.
Anyways, here is the start of the .tex file, you put your information below this in the .tex file. Please note, the macros file and the code here(must be contained in the same folder path, otherwise you macros/commands won't load and you will get errors in the compiler.
Code:
\documentclass[12pt]{article}
\usepackage{graphicx}
\addtolength{\textwidth}{1.5in}
\addtolength{\hoffset}{-1.in}
\addtolength{\textheight}{2.0in}
%\addtolength{\voffset}{-1.68in}
\addtolength{\voffset}{-0.8in}
\newcommand {\rreal}{\mbox{$R\!\!\!\!\!l\,\,\,\,$}}
\newcommand{\graphspace}{\vspace{2in}}
\newcommand{\eqnspace}{\hspace{.1in}}
\newcommand{\toppageoneexam}{\vspace{-.4in} \mbox{ } \hspace{-.6in}
\parbox[t]{7.8in}
{\noindent {\bf Name:} \hspace{.01in}
$\underline{\mbox{\hspace{3.5in}}}$\ \ {\bf Section:} \underline{\hspace{.5in}} }}
%\newcommand{\toppageexam}{\vspace{-.4in} \parbox[t]{7.5in}
%{\noindent {\bf Name:} \hspace{.01in}
%$\underline{\mbox{\hspace{3.5in}}}$\\ }}
\newcommand{\toppageexam}{\vspace{-.6in} \hspace{-.6in}
\parbox[t]{6.5in}
{\noindent {\bf Name:} \hspace{.01in}
$\underline{\mbox{\hspace{3.5in}}}$ \ \ {\bf Section:} \underline{\hspace{.5in}} }}
\include{macros}
\begin{document}