MFOberwolfach / SNAPSHOTS

LaTeX document class for the snapshots of modern mathematics from Oberwolfach
http://www.mfo.de/math-in-public/snapshots
Other
2 stars 7 forks source link

Compilation errors in abstract when environments are used #82

Closed porst17 closed 9 years ago

porst17 commented 9 years ago

The abstract

\begin{abstract}
    Some test
    \begin{quote}
        A quote
    \end{quote}
   Some more text
\begin{abstract}

won't compile since hyperref is unable to strip away LaTeX environment code from the text.

porst17 commented 9 years ago

The fix is two-fold.

  1. I created a patch for the hyperref package which currently has a bug causing the usage of LaTeX environments in PDF meta data to fail. The bug has been reported to the author of hyperref and is also discussed here (by me).
  2. Many useful LaTeX environments cause paragraph breaks (like quote) which are entirely unsupported by hyperref. Therefore, I added an optional parameter to the abstract environment where you (or the author himself) can place the plain text version of the abstract. In template.tex, it now looks like this:

    \begin{abstract}[Plain text abstract used as PDF meta data (optional)]
    This is your abstract. It should give ...
    \end{abstract}

This should be self-explaining, i.e. we don't need further comments.

@RufT: Do you think this is a sufficient solution?

RufT commented 9 years ago

Excellent! Thank you!