First thanks to everyone who help me get a CLS layout working recently. I'm having a new problem now. I have an phm.sty file provided by a conference and I'm trying to use it. I've added it to MikTeX and can create a .ps using the command line but I can't get it to work in LyX. I've followed the instructions in 5.2.3 but I'm still not doing something right. I assumed that the .sty file is meant to be used with the article.cls because the code I compiled from the command line started as:
\documentclass[twocolumn]{article} %\usepackage{fancyhdr,fancyheadings} \usepackage{phm} \usepackage{times} \usepackage{graphicx} %\pdfpagewidth 8.5in %\pdfpageheight 11in \begin{document} So I edited the article.layout to read: #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[article, phm.sty]{article(phm)} and added the following to the very end of the .layout AddToPreamble \usepackage{phm} \usepackage{times} \usepackage{graphicx} EndPreamble I've also tried just selecting the article class, selecting two column document and adding the three packages to the preamble figuring this would be equivalent. However I always get the "Missing \cr inserted." and "Misplaced \cr." errors. The problem seems to stem from the \maketitle command. I say this because if I remove the title and authors from the document it make a DVI fine. If I create a new document with only a title I get errors. By adding packages one at a time I narrowed it down to the phm package. Inside the phm.sty I've found the code that defines the \maketitle behaviour \d...@maketitle{\vbox to \titlebox{\hsize\textwidth \linewidth\hsize \vskip 0.625in minus 0.125in \centering {\huge\bf \...@title \par} \vskip 0.2in plus 1fil minus 0.1in {\def\and{\unskip{\rm\bf ,}\enspace}% \def\And{\unskip{\rm\bf ,\enspace and}\enspace}% \hbox to \linewidth\bgroup\large\bf \hfil\hfil \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\lar...@author \end{tabular} \hss\egroup \hfil\hfil\egroup} %\vskip 0.2in plus 1fil minus 0.1in {\hbox to \linewidth\bgroup\small\textit{ \hfil\hfil \hbox to 0pt\bgroup\hss \begin{tabular}[t]{c}\small\address \end{tabular} \hss\egroup \hfil\hfil}\egroup} \vskip 0.3in plus 2fil minus 0.1in }} Normally I'd just think there was an error in there but it does compile from the command line so it must be something I'm doing. I'm going to attach my .sty and layout files and any help would be appreciated. Danny
phm.sty
Description: Binary data
phm.layout
Description: Binary data