[NTG-context] Subject: Leading spaces verbatim

Ulrike Fischer news3 at nililand.de
Mon Jan 30 17:30:53 CET 2023


Am Sat, 28 Jan 2023 03:01:24 +0100 schrieb Kalouguine Andre via
ntg-context:

> I'm trying to make a verbatim block of text with copiable leading spaces
> so that students can just copy my Python code snippets into their IDE.

This basically doesn't work (quite unrelated to the tex code). 
The PDF viewers have all their own mind here and none of them is
really "code friendly". See e.g. 

https://tex.stackexchange.com/a/472112/2388

It works sometimes a bit better if the PDF is tagged, but there too
you can't currently rely on four spaces staying four spaces (and not
all PDF reader understand tagging).

Better attach files with code. 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the ntg-context mailing list