Comments (8)
[deleted comment]
from thinkstats.
[deleted comment]
from thinkstats.
This is much better now that the attributes generated in tralics are getting
passed along and rendered in the MathML generated by plasTeX.
Only two remaining issues I see:
1) Sqrt symbol is too heavy, but that seems to be a MathML thing.
2) The Sigma and Pi for \sum and \prod are too small. Looks like displaystyle
is not getting propagated?
Original comment by [email protected]
on 5 Jul 2013 at 6:23
from thinkstats.
Reference on displaystyle
http://www.w3.org/TR/REC-MathML/chap3_4.html
Looks like it can be an "part of the environment inherited by the rendering
process of every MathML expression". Looks like it is set in an <mstyle> tag.
So maybe I should be generating a top-level <mstyle> tag with
displaystyle="true"?
Original comment by [email protected]
on 8 Jul 2013 at 5:55
from thinkstats.
Here's the DocBook for the equation at the top of page 112:
<informalequation><mml:math mode="display" overflow="scroll"
xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:munder><mml:mo>∑
</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:mo>-</mml:mo><mml:mo
form="prefix">log</mml:mo><mml:mi>σ</mml:mi><mml:mo>-</mml:mo><mml:mfrac><mml:m
n>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:msup><mml:mfenced open="("
close=")"
separators=""><mml:mfrac><mml:mrow><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi
></mml:msub><mml:mo>-</mml:mo><mml:mi>μ</mml:mi></mml:mrow><mml:mi>σ</mml:mi><
/mml:mfrac></mml:mfenced><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math></in
formalequation>
Two issues: the minus sign should be treated as a prefix operator, so the space
between - and log should be smaller.
And the sigma should be bigger.
Original comment by [email protected]
on 9 Jul 2013 at 8:01
from thinkstats.
From Sanders:
We're now testing an upgraded version of the MathML rendering that should
resolve the issues below, but it's still experimental,
so we're triggering it with a new "role" on the book element:
<book role="animal-ah61">
Would this be something you could generate in your DocBook output? If so, I'd
recommend doing that moving forward to make
sure you're seeing our latest and greatest MathML rendering.
Anyway, I regenerated a PDF using that "role" and you can grab the results on
the Atlas dashboard. Take a look and let me know
if the equation on page 112 looks good to you now.
Original comment by [email protected]
on 10 Jul 2013 at 1:41
from thinkstats.
Added
<book role="animal-ah61">
to Renderers/DocBook/Themes/book/default-layout.xml
Original comment by [email protected]
on 10 Jul 2013 at 1:44
from thinkstats.
Ok, I am declaring this "good enough" and closing the issue.
Original comment by [email protected]
on 11 Jul 2013 at 6:17
- Changed state: Fixed
from thinkstats.
Related Issues (16)
- Broken link in the book HOT 3
- thinkbayes DocBook: tables don't have lines HOT 1
- thinkbayes DocBook: some display equations have spurious {{ HOT 2
- thinkbayes DocBook: one display equation has spurious commas HOT 7
- thinkbayes DocBook: cross references are redundant HOT 2
- thinkbayes DocBook: exercises should be labelled as exercises HOT 2
- thinkbayes DocBook: ensuremath seems to fail for inline formulas HOT 3
- thinkbayes DocBook: <bar> tag has no effect HOT 1
- Remove sort side effect in thinkstats.Trim HOT 1
- Links have strange formatting, like this "❤tt♣✿✴✴❤♣✷✵✶✵" HOT 1
- Patch for /trunk/thinkbayes/book.tex HOT 1
- thinkbayes DocBook: definition of exercise environment appears in the text HOT 1
- thinkbayes DocBook: \p{} command yields huge inline formulas HOT 3
- thinkbayes DocBook: paintball figure has dark background HOT 2
- thinkbayes DocBook: emphasis role=math does not yield italics HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkstats.