TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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}


share|improve this question
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
up vote 6 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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