Re: Bug in "article (paper)" document class

2012-10-28 Thread Jürgen Spitzmüller
Richard Heck wrote:
> I updated a few things a couple years ago, I think. That's my plan again.

Excellent (I only looked at the date of the class manual).

In the given case, the fix is easy (replace \@institution by \@author in line 
348 of paper.cls). This is very obviously a copy and paste error.

Jürgen


Re: Bug in "article (paper)" document class

2012-10-28 Thread Richard Heck

On 10/28/2012 05:11 AM, Jürgen Spitzmüller wrote:

Hendrik Weisser wrote:

If the "article (paper)" document class is used with the "titlepage"
class option, there's an interaction between the "author" and
"institution" environments. "author" by itself will not be displayed in
the document (PDF); "institution" (by itself or in combination with
"author") will produce the institution twice - first in the style of
"author" (replacing the author), then in the style of "institution".

I've attached a minimal LyX file that produces this behaviour and the
resulting PDF.

I hope you can fix this easily.

This is a bug in the LaTeX class file. Nothing we can do on the LyX side, only 
the maintainer of the paper class can fix this. However, the class has not been 
updated since 1996.

I updated a few things a couple years ago, I think. That's my plan again.

rh



Re: Bug in "article (paper)" document class

2012-10-28 Thread Jürgen Spitzmüller
Hendrik Weisser wrote:
> If the "article (paper)" document class is used with the "titlepage"
> class option, there's an interaction between the "author" and
> "institution" environments. "author" by itself will not be displayed in
> the document (PDF); "institution" (by itself or in combination with
> "author") will produce the institution twice - first in the style of
> "author" (replacing the author), then in the style of "institution".
> 
> I've attached a minimal LyX file that produces this behaviour and the
> resulting PDF.
> 
> I hope you can fix this easily.

This is a bug in the LaTeX class file. Nothing we can do on the LyX side, only 
the maintainer of the paper class can fix this. However, the class has not 
been updated since 1996. 

As a workaround, you can put the following code in your LaTeX preamble:

\if@titlepage
  \renewcommand\maketitle{\begin{titlepage}%
  \let\footnotesize\small
  \let\footnoterule\relax
  \let\real@thanks\thanks
  \DeclareRobustCommand\thanks{\real@thanks}
  \let \footnote \thanks
  \null\vfil
  \vskip 60\p@
  \if@center \begin{center} \else \begin{raggedright} \fi
 {\t@font \if@upper \uppercase\expandafter{\@title} \else
 \@title \fi \par}%
\vskip 3em%
 {\ifx\@subtitle\@empty\else
  \vskip.5em \st@font \@subtitle \par \fi}
  \vskip 1.5em
 {\a@font \lineskip .75em
\if@center\begin{tabular}[t]{c}\else\begin{tabular}[t]{@{}l@{}}\fi
 \@author \end{tabular} \par }
 {\ifx\@institution\@empty\else\vskip.5em
\in@font\bf \lineskip .75em
\if@center\begin{tabular}[t]{c}\else\begin{tabular}[t]{@{}l@{}}\fi
 \@institution \end{tabular} \par\fi}
  \vskip 1.5em%
{\large \@date \par}%   % Set date in \large size.
  \if@center \end{center} \else \end{raggedright} \fi
  \vfil\null
  \@thanks
  \end{titlepage}%
  \setcounter{footnote}{0}%
  \let\thanks\relax\let\maketitle\relax
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@institution{}
  \gdef\@subtitle{}}
\fi

HTH
Jürgen

> Best regards
> 
> Hendrik



Re: Bug in "article (paper)" document class

2012-10-27 Thread Richard Heck

On 10/27/2012 03:02 PM, Hendrik Weisser wrote:

Dear LyX developers,

I've happened across a bug in LyX 2.0.0 on Ubuntu 11.04.

If the "article (paper)" document class is used with the "titlepage" 
class option, there's an interaction between the "author" and 
"institution" environments. "author" by itself will not be displayed 
in the document (PDF); "institution" (by itself or in combination with 
"author") will produce the institution twice - first in the style of 
"author" (replacing the author), then in the style of "institution".


I've attached a minimal LyX file that produces this behaviour and the 
resulting PDF.


I hope you can fix this easily.

This is a silly bug in paper.cls itself, not in LyX. I'll see if I can 
fix it there.


rh



Bug in "article (paper)" document class

2012-10-27 Thread Hendrik Weisser

Dear LyX developers,

I've happened across a bug in LyX 2.0.0 on Ubuntu 11.04.

If the "article (paper)" document class is used with the "titlepage" 
class option, there's an interaction between the "author" and 
"institution" environments. "author" by itself will not be displayed in 
the document (PDF); "institution" (by itself or in combination with 
"author") will produce the institution twice - first in the style of 
"author" (replacing the author), then in the style of "institution".


I've attached a minimal LyX file that produces this behaviour and the 
resulting PDF.


I hope you can fix this easily.


Best regards

Hendrik


bug_example.lyx
Description: application/lyx


bug_example.pdf
Description: Adobe PDF document