[texhax] bug on vertical spacing w/ hyperref+seminar

Laurent MUGNIER Laurent.Mugnier at onera.fr
Tue Mar 2 15:52:10 CET 2004


Hello,

With seminar (and slidesec.sty) the vertical spacing between a slide heading and 
the text changes depending on whether hyperref is loaded or not.

This bug occurs at least when the following combination is true:
- the text begins with an itemize environment,
- the slide heading is centered (default with \slideheading{} as defined in 
slidesec.sty).

It seems that with hyperref, there is a blank line before the first item of the 
itemize environment that constitutes the text.

This occurs with v6.73n that comes w/ our 2.0 teTeX distribution as well as with 
the latest v6.74m downloaded today.

I attach a minimal example. Commented out is a possible redefinition of 
\makeslideheading which is used by the \slideheading command of slidesec.sty. If 
one removes the "\centering" and the "\par" then the bug disappears, but the 
"\par" is necessary for the centering to work )-;

Any help will be most welcome...
Thanks in advance,


        Laurent Mugnier.
-------------- next part --------------
\documentclass[a4]{seminar}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc} 

\usepackage{semhelv,slidesec}

\input{seminar.bug}
\autoslidemarginstrue
\input{seminar.bg2}% cf. http://www.tug.org/applications/Seminar/
\rotateheaderstrue

\renewcommand{\printlandscape}{\special{landscape}}% useful WITHOUT hyperref


% WITH hyperref, uncomment the following 5 lines:
\usepackage[ps2pdf]{hyperref}
\makeatletter
  \renewcommand{\printlandscape}{%
    \def\special at paper{\the\paperheight,\the\paperwidth}}% avec hyperref
\makeatother


%% to make your own slide headings (with slidesec.sty):
% \renewcommand{\makeslideheading}[1]{%
%    \begingroup% useful if \makeslideheading or \heading used directly
%  \centering\Large{}#1\par% \par is necessary for centering
%    \endgroup% but \par makes an empty line if text begins w/ itemize
% }

% Note : vertical spacing between slideheading and text changes depending on
% whether hyperref is loaded or not!


\begin{document}
\markright{Exemple de transparent avec \LaTeXe{} et seminar}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{slide} 

\slideheading{Slide heading} 
%Hello there % hyperref OK if text does NOT begin w/ itemize
\begin{itemize}
\item An item:
\begin{itemize}
 \item yes  
 \item maybe
 \item no
 \item yes  
 \item maybe
 \item no
 \end{itemize}
\item An item
\item An item
\item An item
\item An item
\item An item.
\end{itemize}

\end{slide}


\end{document}
%Hyperref's Bug report address: Heiko Oberdiek <oberdiek at uni-freiburg.de>


More information about the texhax mailing list