5

I am want to wrap text around image using pull quote from Two-column text with circular insert, but I wasn't able even to compile example file correctly. Is there anybody that has pull quotes working?

Image here: Esperanto_star.png (direct link; licence: public domain, cf. https://commons.wikimedia.org/wiki/File:Esperanto_star.png)

Minimal example:

\documentclass{article}
\usepackage{lipsum}
\usepackage[latin]{babel}
\usepackage{graphicx}

\usepackage{pullquote}

\begin{document}

\begin{pullquote}
{image={Esperanto_star},imageopts={scale=0.1},shape=rectangular}
  \lipsum[1-4]
\end{pullquote}

\begin{pullquote}
{image={Esperanto_star},imageopts={scale=0.1},shape=image}
  \lipsum[1-4]
\end{pullquote}

\end{document}

Example output:

Screenshot

Marijn
  • 37,699
jendas
  • 53

1 Answers1

4

You did not tell us anything about your configuration, so let me write here first two points also written in documentation of pullquote:

  • ImageMagick must be installed. In Windows it must be in system path before Windows folders (because in Windows a convert.exe with a fully other functionality exists). When you use the installer, this is done automatically, but for the portable version you have to make sure this on your own.

  • You must compile with the option -shell-escape (for MiKTeX the original command is -enable-write18, but the former alias works, as well).

But there is a third point not explicitly mentioned:

When you give the option shape=image, then the image filename is handled over to ImageMagick’s convert, hence you must give the file extension! Otherwise convert will complain about this, but its error message is unfortunately not copied into the log file.

\documentclass{article}
\usepackage{lipsum}
\usepackage[latin]{babel}
\usepackage{graphicx}
\usepackage{pullquote}
\begin{document}

\begin{pullquote}
{image={Esperanto_star.png},imageopts={scale=0.1},shape=image}
  \lipsum[1-4]
\end{pullquote}

\end{document}

screenshot of example output

The white space between the lower star beams is no error, but can by design not be avoided.

Speravir
  • 19,491