There are other instances of this error report on google but most of those seem to be associated with bug reports of various forms. Not sure what is going wrong here...You can't use `macro parameter character #' in horizontal mode
Code: Select all
\documentclass[a4paper]{article}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{color,enumerate}
\usepackage{hyperref}
\newcommand{\profs}{Professor A}
\newcommand{\subj}{Subject B}
\newlength{\toppush}
\setlength{\toppush}{2\headheight}
\addtolength{\toppush}{\headsep}
% newcommand - htitle
\newcommand{\htitle}[2]{
\noindent\vspace*{-\toppush}\newline\parbox{6.5in}
%1
{\textit{Subject B}\hfill\newline
University of Brobdingnag \hfill #2\newline
\profs\newline
\mbox{}\hrulefill\mbox{}}
%2
\vspace*{1ex}\mbox{}\newline
\begin{center}
{\Large\bf #1}
\end{center}
}
% newcommand - handout
\newcommand{\handout}[3]{
\thispagestyle{empty}
\markboth{Problem set #1}{Problem set #1}
\pagestyle{myheadings}
\htitle{#2}{#3}
}
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{0in}
\setlength{\textheight}{8.5in}
\begin{document}
\handout{4}{Problem Set #1}{\today}
\begin{center}
\end{center}
\begin{enumerate}
\item
\item
\item
\end{enumerate}
\end{document}