Coder Social home page Coder Social logo

Comments (2)

bartp5 avatar bartp5 commented on June 3, 2024

That would be tweaking a bit. I use center aligning for the "drawn" symbols. The sum symbol here is 4 characters high, so it is aligned at the second character. As you noted correctly, I use different characters for the bottom and top line. This way the bottom line is a bit higher and the top line a bit lower, so these lines stay close to the rest of the symbol. However, as the bottom line is high, the alignment seems off.

The best way to fix that would be to draw the sum character differently. This is not so hard to do, I already have different "styles" for such drawn symbols. If you run ufftex with the -A option utftex will draw (often ugly) ASCII symbols. In the ASCII style you will see that at least the alignment is better:

utftex -A '\sum_{i=6}^{10}\binom{A}{i}'

10
__ /A\
\  | |
/_ \i/
i=6

vs

utftex '\sum_{i=6}^{10}\binom{A}{i}'

10
⎯⎯
╲  ⎛A⎞
╱  ⎜ ⎟
⎺⎺ ⎝i⎠

i=6

I could go for the ASCII version, or come up with some other way to draw a sum symbol. I once started with using the unicode Summation Top and Bottom symbols, which appear to be made for this. However, In many fonts these look awful, so it depends also on that.

utftex '⎲\\⎳'
⎲
⎳

from libtexprintf.

bartp5 avatar bartp5 commented on June 3, 2024

I figured I cannot really take into account that there are fonts for which the unicode Summation Top and Bottom symbols look terrible. I added suggestions in the README for a good font to use. I close this issue.

from libtexprintf.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.