You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just went to rebuild a book we published in January and got a layout problem that wasn't an issue with the same code run on whatever SILE version I had in January.
Here is an MWE:
\begin[papersize=a6]{document}
\nofolios\noindent\script[src=packages/lorem]
\script[src=packages/frametricks]
\float[bottomboundary=1.3ex,rightboundary=2spc]{\font[family=Symbola,size=3em]{✛}}Sadly this pagragraph is going to eat the following one for lunch. In a perfect world this paragraph would wrap its respectable 6 or so lines and then let the typesetter leave hmode. But no, without an extra \\par command it doesn't break right and just runs into the next paragraph — awkwardly with the pagragraph indent space inline.
\indent
This should be a stand alone paragraph indented starting on a fresh line.
\end{document}
And I get something like this:
Explicitly adding what should be a duplicate paragraph break by adding \par at the end of the first paragraph fixes this up:
But that explicit second break shouldn't be necessary and in the case of auto-applied styles like catching the first paragraph of chapters, almost impossible to code.
Incidentally, adding an explicit call to leaveHmode() anywhere in the paragraph after the frame breaks will also enable the natural paragraph break to work as expected (but introduces spacing issues of its own of course).
The text was updated successfully, but these errors were encountered:
I was able to make my document behave by hacking an extra leaveHmode() into the typesetter's endline() function:
localendline=SILE.typesetter.endlineSILE.typesetter.endline=function (self)
self:leaveHmode()
returnendline(self)
end
I would patch this into the core but it just doesn't make sense and it seems like there might be a bug elsewhere. There is already one call to leaveHmode() in the endline() function so why it would need two to work is a mystery to me right now. Maybe after more coffee?
I just went to rebuild a book we published in January and got a layout problem that wasn't an issue with the same code run on whatever SILE version I had in January.
Here is an MWE:
And I get something like this:
Explicitly adding what should be a duplicate paragraph break by adding
\par
at the end of the first paragraph fixes this up:But that explicit second break shouldn't be necessary and in the case of auto-applied styles like catching the first paragraph of chapters, almost impossible to code.
Incidentally, adding an explicit call to
leaveHmode()
anywhere in the paragraph after the frame breaks will also enable the natural paragraph break to work as expected (but introduces spacing issues of its own of course).The text was updated successfully, but these errors were encountered: