• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xymostech / XymosTeX / 84
82%

Build:
DEFAULT BRANCH: master
Ran 28 Jun 2021 03:27AM UTC
Jobs 1
Files 41
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
84

push

travis-ci-com

xymostech
Add support for superscript/subscript combinations

This combines the code from the superscript and subscript routines to
generate combined superscripts+subscripts. The math needed to
calculate the shifts is a little more complicated, but not too
much. Also, this generates a vertical box instead of just a shifted
box.

It took me a while to get the math here figured out, mostly because
the height of the resulting boxes kept ending up different from what
TeX produces. I eventually realized that the instructions in the
TeXbook are slightly incorrect, instead of a vbox with height `h(x) +
u` and depth `d(y) + v`, a vbox with height `h(x) + u + v` and depth
`d(y)` is produced, with an added shift of `v`. This ends up looking
exactly the same, but it's easier to just make my code do the same
thing as TeX, so I went with that.

As a side note, I'm really enjoying writing the tests for these math
conversion cases. Instead of trying to describe the output using
structs, etc, just finding the equivalent representation in TeX makes
things easy to test and easy to write.

6422 of 7079 relevant lines covered (90.72%)

2.19 hits per line

Jobs
ID Job ID Ran Files Coverage
3 84.3 28 Jun 2021 03:27AM UTC 0
90.72
Travis Job 84.3
Source Files on build 84
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #84
  • 2bbb7e07 on github
  • Prev Build on master (#83)
  • Next Build on master (#85)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc