I'm trying to debug a class provided by some journal. From times to times, the text appears completely garbled, or does not appear at all (I believe it is printed somewhere but probably out of the page). This class is a complete (and useless) reimplementation of article, but I think I narrowed down the problem.
Consider the following document:
\documentclass[a4paper,10pt,twoside]{article}
\usepackage{lipsum}
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}
{4}{\z@}{12pt \@plus -3pt}{-.5em}
{\normalfont\normalsize\bfseries}}
\parskip\z@
\makeatother
\begin{document}
\lipsum[1-3]
\paragraph{New Par} \footnote{Oh}\lipsum[1-2]
\end{document}
While I believe that the \paragraph definition is inoffensive it seems
that, in combination with the \parskip\z@, the results get wrong:

Question: What fix should I give to the editor? Don't set \parskip to
zero? Is that really the problem? Is the problem in the definition of
\paragraph?

\textheight46.1cand it looks normal again. – percusse Dec 6 '12 at 3:35\p@is defined as1pt. Instead of0\p@you can use\z@, which is defined as0pt. – Aditya Dec 6 '12 at 3:37article, which uses the even stranger0\p@ \@plus \p@. – Michaël Dec 6 '12 at 3:41