dfc icon indicating copy to clipboard operation
dfc copied to clipboard

Graph in LaTeX output

Open scrouthtv opened this issue 5 years ago • 1 comments

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.

scrouthtv avatar Dec 04 '20 23:12 scrouthtv

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.

rolinh avatar Dec 07 '20 20:12 rolinh