-
Notifications
You must be signed in to change notification settings - Fork 35
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
With graphics layout TeX can't break line containing successive \tikz drawings #213
Comments
Why do you use \hspace* instead of simply \hspace? |
@u-fischer I have updated my question |
somehow the \hspace is not generating a breakpoint which is suprising but I haven't looked why. It does break if you add an explicit breakpoint though, e.g.
is not allowing a break at the glue, ie the direction change preventing the glue from being seens as the "first glue in a sequence". That may be documented somewhere, but perhaps this is actually an engine bug. |
It’s wrong with |
This is not a bug, but a feature. See section 3.3.3 of LuaTeX's manual (Controlling glue with \breakafterdirmode): \breakafterdirmode=1
\documentclass{article}
\usepackage{tikz}
\usepackage[bidi=basic,arabic,provide=*,layout=graphics]{babel}
\parindent=0pt
\newcommand{\tikzcircle}{\tikz[baseline=-0.5ex]{\node[draw=red,circle,minimum width=2em,align=center] at (0,0) {1};}\hspace{5pt}}
\begin{document}
\foreach \x in {1,...,30}{%
\tikzcircle
}%
\end{document} |
@Udi-Fogiel Thank you. Because of the way bidi works in |
@Udi-Fogiel After investigating a bit further, I still think it’s a bug or at least a misfeature. Some |
@jbezos You are probably right. I did not noticed they fixed the spacing problem around displayed math (with If this mode was added for backwards compatibility, should Sorry if this is not the correct place to discuss this. But, discussing about bugs in LuaTeX's directionality and their fix, I've noticed there is weird behavior for I've noticed that with |
@Udi-Fogiel I think a bug or even a clearly counter-intuitive behavior should be fixed. This wouldn’t be the first time Dealing with intrinsically ‘mixed’ stuff (graphics, math and tabular) is not trivial, because we I can’t know what a box actually contains. See for example #221. Currently, standard LaTeX math is patched by
|
The text was updated successfully, but these errors were encountered: