Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph in LaTeX output #25

Open
scrouthtv opened this issue Dec 4, 2020 · 1 comment
Open

Graph in LaTeX output #25

scrouthtv opened this issue Dec 4, 2020 · 1 comment

Comments

@scrouthtv
Copy link

This is a thing I noticed working on #24 :
If I draw a graph in the latex output, every empty graph element is outputted as a \-:

dev & \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- & 0\% & 2.8G & 2.8G & /dev

However, using pdflatex (and I'm pretty sure every other TeX compiler), the \- is interpreted as a suggestion to hyphenate.
So this graph is drawn is empty:
image
If I were to replace every \- with a simple -, it instead is drawn just like the text ouptut:
image
(notice the tiny line in between)

Is the current behaviour supposed to be like that? I read in the source that there might be an overhaul to the latex graph output at some point, but what about now?

If you want to change this, I can do it with #24 as well.

@rolinh
Copy link
Owner

rolinh commented Dec 7, 2020

This is intriguing. Here is what I get using pdflatex (pdfTeX 3.14159265-2.6-1.40.21 (TeX Live 2020/Arch Linux)), which seems correct to me:
image

EDIT: OK, I see what you mean now, sorry. Something does not look right in my case, probably because with the default font, the hyphen is not as wide as the equal sign. I actually wonder if not printing any char would be preferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants