I have the following stub document:
\documentclass[12pt]{article}
% packages used in this MS:
\usepackage{amsmath, amssymb, amsthm}
\usepackage{calc} % to allow duplicate page
% number 1
\usepackage{endnotes}
\usepackage{fancyhdr}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{mathtools} % for absolute value sign
\usepackage[pdftex]{hyperref}
\usepackage{setspace}
\usepackage{tabularx} % auto-calculates column % widths
\usepackage{textcomp}
\usepackage{url}
\usepackage{verbatim} % for comment environment
% personally-written macros in file:
\include{macros} % none of these get called in what follows
%%%%%%%%%%%%%%%%%%%% ACTUAL TEXT BEGINS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\setlength{\footskip}{10.15pt} % no footer at all
% set up running header---text part defined just below
\pagestyle{fancy}
\newcounter{alteredpagenum} % this will equal true page number minus 1
% to allow two "Page 1"s---needed for blind
% review
\setcounter{alteredpagenum}{1}
\newcommand\runninghead{MAXCOV-HITMAX}
\noindent Running head: \runninghead
\begin{center}
MAXCOV: When is it a dependable admixture method?
\end{center}
\vspace*{1.5in}
\begin{center}
Author Note
\end{center}
\renewcommand\baselineskip{2\baselineskip}
\setlength{\parindent}{0pt}
The author is on the emeritus faculty of Psychology at the University
of Minnesota---Twin Cities.
The author would like to acknowledge the generous assistance of Leslie
J. Yonce and Paul E. Meehl, as well as the stimulating article by
Maraun and Slaney.
Correspondence concerning this article should be addressed to:
William M. Grove
767 Meadowood Dr.
Woodbury, MN \hspace{.25in} 55125--1177
E-mail: [email protected]
\pagebreak
% says at this point (line 68), ``TeX capacity exceeded, sorry [main memory size=5000000].''
\end{document}
Note the comment about TeX complaining about capacity exceeded. I have tried and tried to simplify this file, checking & rechecking, and still always get the same error message. While I'm no LaTeX tyro I'm not a complete novice either, and it just escapes me what I'm doing wrong. Any ideas would be appreciated.
Sincerely, Will Grove
\includebefore\begin{document}is wrong, use\inputor better rename the file tomacros.styand use\usepackage{macros}(unrelated to the error in this case) – David Carlisle 20 hours agosetspace, which you are even loading. – egreg 19 hours ago