PCCMathSAC / apex-mbx

Repository for a conversion of APEX Calculus to MathBook XML
2 stars 10 forks source link

Final section in Chapter 3 #87

Closed CVollet closed 7 years ago

CVollet commented 7 years ago

I'm not exactly sure how to deal with the number lines. The text breaks in odd spots. Also, I updated the graphs with what I know how to do (asymptotes, points, etc), but there are a lot of \draw commands that I didn't mess with.

Alex-Jordan commented 7 years ago

I have some experience with number lines from ORCCA. We have a specific style defined for them. Currently looks like examples at: http://spot.pcc.edu/math/orcca/section-notation-for-intervals.html When I catch up to these APEX sections, I could try implementing something similar.

Managing image widths from TeX-generated images is more complicated than it might seem from looking at HTML output on a wide screen. I still haven't completely solved the issue, but I'm making progress. If it's a pgfplots image, I now feel that I can get things near-ideal in all output modes with no special knowledge required of the author. It takes some custom XSL though. I'm not yet ready to package it into a formal PR to mathbook, and I probably won't be until I get something similar put together for generic tikz images.

To see what I mean though, in the new CLM HTML, on this page there are pgfplots images with three different widths. And yet all the font sizes are consistent (as they are in the print). To get this to happen without tedious manual tweaking was not easy.

Once something like this is in place, 47% is no longer necessary for font consistency, but is still good to make one xy-plane have the same absolute size as another. That's not important with number lines that don't need to have that kind of consistency with xy-planes.