After playing around with options for wrapfig, margins, and fonts, I found some commands that make nice looking pull quotes. The problem is that when I try to encapsulate the commands into an environment, it stops working correctly. The quote gets placed at the end, or on the next page, in a totally wrong position.
Summary:
When I do \pq some text \pqend, it works.
When I do \newenvironment{pullquote}{\pq}{\pqend} and then \begin{pullquote}some text\end{pullquote}, it stops working.
Here is a minimal example showing what happens, and the definitions of \pq and \pqend. Any ideas on what is going on?
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{wrapfig}\newcommand{\pq}{\begin{wrapfigure}{o}[1cm]{7cm}\list{}{\leftmargin 0.1cm}\vspace{-0.2in}\item[]\fontfamily{phv}\selectfont\large}\newcommand{\pqend}{\vspace{-0.20in}\endlist\end{wrapfigure}}\newenvironment{pullquote}{\pq}{\pqend}\begin{document}The thought of writing at the time with no spelling correction,grammar correction, or in fact corrections of anykind. It is remarkable that there are not toomany spelling errors yet, although the contentcould definitely be improved. We pull bitsfrom the aether for you.It is remarkable that there are not toomany spelling errors yet, although the contentcould definitely be improved. We pull bitsfrom the aether for you. It is remarkable that there are not toomany spelling errors yet, although the contentcould definitely be improved. We pull 10789 bitsfrom the aether for you.\begin{pullquote}%\pqTo be or not to be, that is the question.Or at least that was the question until you killed me.%\pqend\end{pullquote}The thought of writing at the time with no spelling correction,grammar correction, or in fact corrections of anykind. It is remarkable that there are not toomany spelling errors yet, although the contentcould definitely be improved. We pull bitsfrom the {\ae}ther for you.It is remarkable that there are not toomany spelling errors yet, although the contentcould definitely be improved. We pull bitsfrom the aether for you. It is remarkable that there are not too