enter image description hereThe example below is a newsletter with two news items.

The first item has a wrapfigure to include a graphic. The second does not

But the resulting PDF (made with PDFLaTeX) has a blank area close to the as if the second item had a graphic too.

Any suggestions would be helpful.

Sorry about the extensive preamble - that's direct from the full document (which has dozens of news items).

\usepackage{graphicx}![enter image description here][2]
\usepackage[top=2cm, bottom=1cm, left=1.5cm, right=1.5cm]{geometry}
\hypersetup{pdfpagemode=FullView, colorlinks=true,
 pdfhighlight=/P,linkbordercolor=.9 1 1, linkcolor=blue, citecolor=black,pdftex}
% Different font in captions
\makeatletter % Allow the use of @ in command names
\sbox\@tempboxa{{\captionfonts #2}}%
\ifdim \wd\@tempboxa >\hsize
{\captionfonts #2\par}
\hbox to\hsize{\hfil\box\@tempboxa\hfil}%
\makeatother % Cancel the effect of \makeatletter


\fancyhead[co, ce]{\thepage{}}
\fancyhead[le ro]{Demo newsleter pages}

% Item 01
% =========================

\subsection*{news item 1 heading}

\caption{caption for item-01}
\href{http://www.publicdomainpictures.net/view-image.php?image=9353&picture=sunset-on-a-california-beach&large=1}{[source of public domain image]}


% Item 02
% =========================

\subsection*{news item 2}


  • Add \leavevmode before \href – egreg Jan 26 '12 at 15:25
  • \leavevmode certainly looks good, thanks; why not upgrade your comment to an answer, and perhaps x-ref to this explanation a little more here: tex.stackexchange.com/questions/22852/… – DavidT Jan 26 '12 at 16:24

The command \href doesn't start LR mode by itself. Due to how wrapfigure works (the details are rather technical), the appearance of \href in vertical mode blocks the reset mechanism of the special paragraph shape required for placing the figure. So the simple solution is


See Function and usage of \leavevmode for some details about \leavevmode.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.