Skip to content
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

PROD: equations don't look great #43

Open
AllenDowney opened this issue May 30, 2018 · 1 comment
Open

PROD: equations don't look great #43

AllenDowney opened this issue May 30, 2018 · 1 comment

Comments

@AllenDowney
Copy link
Owner

AllenDowney commented May 30, 2018

Rendering of equations doesn't look very good. Page 30 is the first example to look at. Another is the exponents on page 116. And on page 118, the number 1.5 is spaced strangely.

Is there different DocBook I could generate to make these look better? Or can we tweak them by hand?

@kristenORM
Copy link

I think these will have to be tweaked by hand, unfortunately. I do know that we try to use plaintext markup for simpler equations rather than MathML, if the content doesn't really need special formatting/characters.

For instance,

<inlineequation><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>G</mml:mi><mml:mo>(</mml:mo><mml:mi>n</mml:mi><mml:mo>,</mml:mo><mml:mi>p</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inlineequation>

Could instead be rendered as

<emphasis>G</emphasis> (<emphasis>n</emphasis>, <emphasis>p</emphasis>)

I think this tactic would also help with the weird spacing in numbers like 1.5.

What about the exponents on pg 116 (which I see are already in XML rather than MathML) is a problem? I can run these by a colleague who has more experience with equations, but a general sense of how you want them to look instead would be a good starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants