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

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


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 

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 --------------



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

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

% WITH hyperref, uncomment the following 5 lines:
    \def\special at paper{\the\paperheight,\the\paperwidth}}% avec hyperref

%% 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!

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


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


%Hyperref's Bug report address: Heiko Oberdiek <oberdiek at uni-freiburg.de>

More information about the texhax mailing list