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
thinspace will stay at a break but not hairspace, is this intended ? #2
Comments
Perhaps this is more relevant, produces the same image and shows the phenomenon of the kern staying at end of line.
|
ok, perhaps a more convincing example \documentclass{article}
\begin{document}
\begin{minipage}{\dimexpr 100pt+.16667em\relax}
\rule{45pt}{1pt}\ \ \rule{45.2pt}{1pt}x\,\linebreak[0]y
\rule{\linewidth}{1pt}\rlap{\smash{\rule{0.1pt}{2\baselineskip}}}
\end{minipage}
\end{document} and adding
|
- Add test case. - Use `\leavevmode\linebreak[0]\,` for THIN SPACE.
Thank you for the bug report. I have pushed a fix for this that uses |
and what about FIGURE SPACE and PUNCTUATION SPACE ? the |
about my last comment, perhaps wrong proposal: the box will be there at start of new line. For better uniformity with THIN SPACE the code would have to create a |
According to Whitespace character - Wikipedia, FIGURE SPACE is not breakable space. However, I think you have a point with PUNCTUATION SPACE. |
- Fix another aspect of GitHub issue #2. - Use \hspace{\fontcharwd \font `,} for punctuation space so that it is wrappable.
I have pushed 22f9ec7 to fix the issue with PUNCTUATION SPACE. |
This whole matter is complicated because for some reason LaTeX implemented Notice that Plain TeX has a |
- Use \allowbreak instead of \linebreak[0] for THIN SPACE. - GitHub issue #2.
So I have made the change to use |
I think this is fixed now. |
it is a question really, because I didn't check Unicode specs, but github is lacking an interface for that,
THIN SPACE is defined as
\leavevmode\,\linebreak[0]
, hence if a break occurs at the penalty, the kern\,
will stay at end of line.The break may also happen before the kern, then it will disappear at start of next line.edit: correction, due to the penalty following the kern, no break can happen before the kern (I got confused: if the kern had been followed by some glue, a break could happen before the kern; but not with penalties). TeX will complain of an overfull horizontal box, the kern will hang their invisibly in the margin.
On the other hand the HAIR SPACE is simply a glue, hence will not stay at end of a line. Is it deliberate that the two differ ? (this example is not convincing see next posts)
The text was updated successfully, but these errors were encountered: