Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with wrapfig as one paragraph text is not correctly terminated #16

Open
u-fischer opened this issue Apr 4, 2019 · 0 comments
Open

Comments

@u-fischer
Copy link

lipsum add a (imho unnecessary) group around the whole processing. And if only one paragraph is typeset it doesn't add a par before ending the group. That is a problem for wrapfig as it looses its \everypar settings:

\documentclass{article}
\usepackage{wrapfig}
\usepackage{lipsum}
\textwidth=5cm
\begin{document}

\begin{wrapfigure}{o}{2cm}
XXX\\XXX\\XXX
\end{wrapfigure}
\lipsum[43]

\bigskip

%wrong:
\begin{wrapfigure}{o}{2cm}
XXX\\XXX\\XXX
\end{wrapfigure}
{abc abc abc abc abc abc abc abc abc abc
 abc abc abc abc abc abc abc abc abc abc}

\bigskip
% better (but not group at all would be best):
\begin{wrapfigure}{o}{2cm}
XXX\\XXX\\XXX
\end{wrapfigure}
{abc abc abc abc abc abc abc abc abc abc
 abc abc abc abc abc abc abc abc abc abc
 \par}

\end{document}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant