Matej Cepl wrote:

> On 2003-08-04, 11:41 GMT, Angus Leeming wrote:
>> Ok, I've had a play. It seems to work fine so long as my textclass
>> defines 'maketitle'. Thus using 'scrartcl' is fine but using
>> 'article' latex complains with 'undefined control sequence
>> \maketitle' or somesuch.
> 
> You have to copy definition of \maketitle from the original class
> file. Why you cannot change this original definition of [EMAIL PROTECTED]
> (which is from the original article.cls):
> 
>    [EMAIL PROTECTED]
>      \newpage
>      \null
>      \vskip 2em%
>      \begin{center}%
>      \let \footnote \thanks
>        {\LARGE [EMAIL PROTECTED] \par}%
>        \vskip 1.5em%
>        {\large
>          \lineskip .5em%
>          \begin{tabular}[t]{c}%
>            [EMAIL PROTECTED]
>          \end{tabular}\par}%
>        \vskip 1em%
>        {\large [EMAIL PROTECTED]
>      \end{center}%
>      \par
>      \vskip 1.5em}
> 
> Please, elaborate what exactly is the problem?

See the three (stripped down) versions of your original example:

Matej_scrartcl.lyx is your original koma script article. All is fine.
Matej_article.lyx is the same, but the textclass is now 'article'. 
This fails to compile.

! Undefined control sequence.
[EMAIL PROTECTED] ...empty \else \noindent [EMAIL PROTECTED] 
                                                  [EMAIL PROTECTED] 
[EMAIL PROTECTED] \n...
l.72 \maketitle

Matej_article_def.lyx replaces the '[EMAIL PROTECTED]' 
command of your original suggestion with the '[EMAIL PROTECTED]' 
above. Behold! All is fine again.

-- 
Angus
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\newcommand{\mytitleno}{10.2}
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@ttmplen}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
     \clearpage
     \let\footnote\thanks
     [EMAIL PROTECTED]@empty \else
         [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \fi
     \fi
     [EMAIL PROTECTED]@empty \else
         \noindent\begin{minipage}[t]{\textwidth}
         [EMAIL PROTECTED]
         \end{minipage}\par
     \fi
     \null
     \vskip 2em%
     {\titlefont\huge 
     \par \mytitleno [EMAIL PROTECTED] %
      [EMAIL PROTECTED] [EMAIL PROTECTED] \hfill }%
     \vskip 1.5em%
   \begin{center}%
     {\Large
       \lineskip .5em%
       \begin{tabular}[t]{c}%
         [EMAIL PROTECTED]
       \end{tabular}\par}%
     \vskip \z@ [EMAIL PROTECTED] 1em
   \end{center}%
   \par
   \vskip 2em}
\end_preamble
\language english
\inputencoding auto
\fontscheme helvet
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 2
\papersides 1
\paperpagestyle empty

\layout Title

Effects of Aerosols on the Properties
\newline 
of Arctic Clouds
\layout Author

Timothy J.
 Garrett
\begin_inset Foot
collapsed true

\layout Standard


\emph on 
Corresponding author address: 
\emph default 
Timothy J.
 Garrett, 135 S 1460 E, Room 819 Salt Lake City, UT 84112-0110; e-mail:
 [EMAIL PROTECTED]
\end_inset 


\begin_inset Formula $\,{}^{1}$
\end_inset 

, Xiquan Dong
\begin_inset Formula $^{2}$
\end_inset 

, Gerald G.
 Mace
\begin_inset Formula $^{1}$
\end_inset 

, Chuanfeng Zhao
\begin_inset Formula $^{1}$
\end_inset 


\newline 

\begin_inset Formula $^{1}$
\end_inset 

University of Utah, Salt Lake City, Utah
\newline 

\begin_inset Formula $^{2}$
\end_inset 

University of North Dakota, Grand Forks, North Dakota
\layout Section

Introduction
\layout Standard


\family sans 
Aerosols in the Arctic follow a seasonal cycle\SpecialChar \ldots{}

\the_end
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\newcommand{\mytitleno}{10.2}
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@ttmplen}
[EMAIL PROTECTED]

   [EMAIL PROTECTED]
     \newpage
     \null
     \vskip 2em%
     \begin{center}%
     \let \footnote \thanks
       {\LARGE [EMAIL PROTECTED] \par}%
       \vskip 1.5em%
       {\large
         \lineskip .5em%
         \begin{tabular}[t]{c}%
           [EMAIL PROTECTED]
         \end{tabular}\par}%
       \vskip 1em%
       {\large [EMAIL PROTECTED]
     \end{center}%
     \par
     \vskip 1.5em}
\end_preamble
\language english
\inputencoding auto
\fontscheme helvet
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 2
\papersides 1
\paperpagestyle empty

\layout Title

Effects of Aerosols on the Properties
\newline 
of Arctic Clouds
\layout Author

Timothy J.
 Garrett
\begin_inset Foot
collapsed true

\layout Standard


\emph on 
Corresponding author address: 
\emph default 
Timothy J.
 Garrett, 135 S 1460 E, Room 819 Salt Lake City, UT 84112-0110; e-mail:
 [EMAIL PROTECTED]
\end_inset 


\begin_inset Formula $\,{}^{1}$
\end_inset 

, Xiquan Dong
\begin_inset Formula $^{2}$
\end_inset 

, Gerald G.
 Mace
\begin_inset Formula $^{1}$
\end_inset 

, Chuanfeng Zhao
\begin_inset Formula $^{1}$
\end_inset 


\newline 

\begin_inset Formula $^{1}$
\end_inset 

University of Utah, Salt Lake City, Utah
\newline 

\begin_inset Formula $^{2}$
\end_inset 

University of North Dakota, Grand Forks, North Dakota
\layout Section

Introduction
\layout Standard


\family sans 
Aerosols in the Arctic follow a seasonal cycle\SpecialChar \ldots{}

\the_end
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrartcl
\begin_preamble
\newcommand{\mytitleno}{10.2}
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]@ttmplen}
[EMAIL PROTECTED]
[EMAIL PROTECTED]
     \clearpage
     \let\footnote\thanks
     [EMAIL PROTECTED]@empty \else
         [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] \fi
     \fi
     [EMAIL PROTECTED]@empty \else
         \noindent\begin{minipage}[t]{\textwidth}
         [EMAIL PROTECTED]
         \end{minipage}\par
     \fi
     \null
     \vskip 2em%
     {\titlefont\huge 
     \par \mytitleno [EMAIL PROTECTED] %
      [EMAIL PROTECTED] [EMAIL PROTECTED] \hfill }%
     \vskip 1.5em%
   \begin{center}%
     {\Large
       \lineskip .5em%
       \begin{tabular}[t]{c}%
         [EMAIL PROTECTED]
       \end{tabular}\par}%
     \vskip \z@ [EMAIL PROTECTED] 1em
   \end{center}%
   \par
   \vskip 2em}
\end_preamble
\language english
\inputencoding auto
\fontscheme helvet
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 2
\papersides 1
\paperpagestyle empty

\layout Title

Effects of Aerosols on the Properties
\newline 
of Arctic Clouds
\layout Author

Timothy J.
 Garrett
\begin_inset Foot
collapsed true

\layout Standard


\emph on 
Corresponding author address: 
\emph default 
Timothy J.
 Garrett, 135 S 1460 E, Room 819 Salt Lake City, UT 84112-0110; e-mail:
 [EMAIL PROTECTED]
\end_inset 


\begin_inset Formula $\,{}^{1}$
\end_inset 

, Xiquan Dong
\begin_inset Formula $^{2}$
\end_inset 

, Gerald G.
 Mace
\begin_inset Formula $^{1}$
\end_inset 

, Chuanfeng Zhao
\begin_inset Formula $^{1}$
\end_inset 


\newline 

\begin_inset Formula $^{1}$
\end_inset 

University of Utah, Salt Lake City, Utah
\newline 

\begin_inset Formula $^{2}$
\end_inset 

University of North Dakota, Grand Forks, North Dakota
\layout Section

Introduction
\layout Standard


\family sans 
Aerosols in the Arctic follow a seasonal cycle\SpecialChar \ldots{}

\the_end

Reply via email to