Comments (2)
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.
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)
- Create a target for library HOT 1
- New release? HOT 1
- Support more constructs HOT 11
- Misalignment HOT 1
- Switch to math from a text block HOT 1
- 1.17 building fails HOT 5
- v1.18 build failure on Linux & macOS HOT 3
- Use Unicode subscripts/superscripts where available? HOT 13
- Unicode primes HOT 4
- LaTeX token don't work correctly HOT 2
- manpage not up to date HOT 8
- Gui for utftex HOT 3
- maintainer-clean fails on mac-os
- \% is not supported and breaks things HOT 10
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 libtexprintf.