On 07/01/2010 03:46 PM, Andy S Feng wrote:
Hi Vincent and Richard, now i am getting a different problem, I'm new to lyx
1.6.6.1 so i must be doing something erroneous. Let me detail my steps
1. Make copy of article.layout renamed as article-aer.layout
2. Changed -
\DeclareLaTeXClass{article}
To
\DeclareLaTeXClass[article, aer.sty]{article (aer)}
And added -
Preamble
\usepackage{aer}
EndPreamble
Better to use "AddToPreamble" here, lest you accidentally over-write
something.
3. Saved article-aer.layout in C:\Program Files\LyX16\Resources\layouts
4. Open lyx, reconfigure, exit lyx
5. Reopen lyx, start new document, go to documents\settings choose "article
(aer)" as document class, clicked OK
6. Tried a test document
I did this much, with the attached layout file and aer.sty (from CTAN),
and the simplest possible test file (nothing but "sss"), and it compiled
fine. What else is in your document?
Richard
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[article, aer.sty]{articlei (aer)}
# Article textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[email protected]>
# Transposed by Pascal André <[email protected]>
# Heavily modifed and enhanced by serveral developers.
Format 11
Input stdclass.inc
SecNumDepth 3
TocDepth 3
NoStyle Chapter
NoStyle Chapter*
AddToPreamble
\usepackage{aer}
EndPreamble
Style Part
Align Left
AlignPossible Left
TopSep 2
BottomSep 1.5
Font
Size Larger
EndFont
End
Style Part*
Align Left
AlignPossible Left
TopSep 2
BottomSep 1.5
Font
Size Larger
EndFont
End
\message{Document style option `aer.sty' (29 May 1993) for LaTeX 2.09.}
\textwidth=28pc
\textheight=46pc
\def\bysame{\leavevmode\hbox to\leftmargin{\leaders\hrule height 3pt depth -2.5pt\hfill\,\,}}
\def\thebibliography#1{\section*{\refna...@mkboth
{\uppercase{\refname}}{\uppercase{\refname}}}\list
{...@biblabel{\arabic{enumiv}}}{\labelwidth=12pt
\labelsep=0pt
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\itemsep=0pt\parsep=0pt
\usecounter{enumiv}%
\le...@enumiv\@empty
\def\theenumiv{\arabic{enumiv}}}%
\def\newblock{\hskip .11em plus.33em minus.07em}%
\sloppy\clubpenalty4000\widowpenalty4000
\raggedright
\sfcode`\.=1000\relax}