Closed cspiel closed 3 years ago
@maranget: chapter 4.2 will be wrong when this P/R gets merged. :roll_eyes:
Hi, I'll keep 4.2, adding that the \rule command now works as in latex. Do you have an idea of a command that hevea does not implement completely and that you would refrain from implementing?
@maranget: As of today, I'm not aware of any such LaTeX command, but my "active subset" of LaTeX consistes mainly of macros needed for writing program documentation.
Implement macro
\rule
with SVG. Its properties nicely match the LaTeX original as it is rendered inline and zero-width width or height lead to an invisible "strut".Try it for example with
The implementation is not backward compatible. It breaks the previously valid call
\rule{}{}
(which is invalid LaTeX code, though). Replacing those calls with a suitably tailored\@hr
restores the old behavior and is fully backward compatible.If we ever should merge this P/R the OCaml compiler guys may want to apply