zestedesavoir / latex-template

LaTeX template used for PDF exports
MIT License
16 stars 19 forks source link

We can copy code without the line numbers #105

Closed Situphen closed 5 years ago

Situphen commented 5 years ago

Related to this topic Solution found on here

Heziode commented 5 years ago

It is nice !

The only thing I have to reproach is that it shifts the numbers.

Screenshot_line-numbers

pierre-24 commented 5 years ago

Thus, maybe adding a \hspace{.5em} or something like that before \small\textcolor ... will do the trick ;)

Situphen commented 5 years ago

I added % at the end of the lines so that it doesn't shift the numbers, so we're good!

This solution doesn't seem to work with Firefox's PDF reader but seems to work with Elementary OS's default PDF reader so I guess it depends if the PDF reader support the AccSup annotations. Can you try with different PDF readers as well ?

Heziode commented 5 years ago

This solution doesn't seem to work with Firefox's PDF reader but seems to work with Elementary OS's default PDF reader so I guess it depends if the PDF reader support the AccSup annotations.

Yep.

Can you try with different PDF readers as well ?

Works for me with ungoogled-chromium and Okular on Archlinux.

pierre-24 commented 5 years ago

Works for me on evince (Ubuntu 18.04). And at least it is better than nothing :)

artragis commented 5 years ago

@sandhose can you deploy it please?