[pmwiki-users] AsciiMath: Why all the whitespace?

Dominique Faure dominique.faure at gmail.com
Fri Jun 25 14:02:33 CDT 2010

On Fri, Jun 25, 2010 at 01:38, David Spitzley <dspitzle at wash.k12.mi.us> wrote:
> I'm working with AsciiMath, and its equation rendering is a miracle to behold.  However, the iframes that it generates have about a half-dozen lines worth of empty space underneath the equations, and I can't for the life of me figure out how to change it.  You can see it at http://www.davidaspitzley.org/PotatoPatch/index.php?n=Research.LocalEconomyModel .  This occurs in both Firefox 3.6.4 and IE 8.  I've checked the CSS and block boundaries of the iframe contents with Firefox's Web Developer Toolbar, and there doesn't seem to be anything in the empty area of the iframe, not even html tag, and I also can't find any height styling on the iframe element which would cause overuse of space.  Any suggestions as to how to rein in the ballooning iframes?

I had the same kind of consideration while developping the recipe.
That's why I made it handle a kind of style definition at markup

{$ %height=3.5em% ... $}

Anyway, you could always override the default css definitions in the
configuration file:

$HTMLStylesFmt['formula'] = "
div.eqn { margin: 0 2em; }
div.eqn table { width: 100%; }
div.eqn iframe {
 width: 100%;
 height: 80px;


More information about the pmwiki-users mailing list