6

Please somebody explain me why this

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}

\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{wrapfig}

\begin{document}

\begin{wrapfigure}{l}{3cm}
\includegraphics[width=3cm]{download.jpg}
\end{wrapfigure}

foobar

\lipsum[1]

\end{document}

does exactly what I want and produces OK while this (notice {foobar} instead of foobar) gives me this weirdness: bad

To be specific, I want to use {\large foobar}.

5

Put a \mbox{} before like \mbox{}{\large foobar}.

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}

\usepackage{lipsum}
\usepackage[demo]{graphicx}
\usepackage{wrapfig}

\begin{document}

\begin{wrapfigure}{l}{3cm}
\includegraphics[width=3cm]{download.jpg}
\end{wrapfigure}

\mbox{}{\large foobar}

\lipsum[1]

\end{document}

enter image description here

  • 1
    It works... I'm giving up on trying to figure LaTeX out. – Egor Tensin Aug 22 '14 at 1:14

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.