maranget / hevea

Hevea is a fast latex to html translator
http://hevea.inria.fr
Other
98 stars 12 forks source link

Implement environment minipage with all four parameters #57

Open cspiel opened 3 years ago

cspiel commented 3 years ago

tl;dr: minipage env now works with Hevea; layout still sucks.

Modern LaTeX allows for up to three optional parameters to be passed to the environment minipage besides the mandatory argument width:

This P/R implements a faithful translation for Hevea, which works for HTML and text output modes.

The new minipage plays well with HTML flow, in particular it displays as inline-block, but the fundamental problem of minipages not behaving as "words" prevail. See the attached sample file minipage-example.zip that exercises almost all old and features.

To integrate manipages into the HTML flow and thus closely mimick the LaTeX behavior more code is necessary. I'm working on a prototype.