Open Piaoshi opened 6 months ago
Simplified \circledtext{1}
to {\indent}
.
\circledtext{1}
uses \coffin_typeset:Nnnnn
in a group and the latter expl3 function starts with \mode_leave_vertical:
.
\documentclass{article}
\usepackage{wrapstuff}
\begin{document}
\begin{wrapstuff}
\Large\bfseries Wrapped stuff
\end{wrapstuff}
{\indent}%
Text text
\end{document}
Using pdflatex or xealatex or lualatex, the error raised is
! Extra }, or forgotten \endgroup.
Workaround: prepend the \circledtext{1}
that starts the paragraph with \leavevmode
.
Thanks,\leavevmode
is the solution, though I am not clear about \leavevmode
.
Does \leavevmode
have side effect? Is it OK if I use \leavevmode
after every wrapstuff?
Or put it in wrapstuff package?
Better to prepend \leavevmode
/\mode_vertical_leave:
to \circiledtext
instead.
Duplicate of #11