From: Ulrike Fischer via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Ulrike Fischer <news3@nililand.de>
Subject: Re: Subject: Leading spaces verbatim
Date: Mon, 30 Jan 2023 17:30:53 +0100 [thread overview]
Message-ID: <7xxsr0yu0ao5.dlg@nililand.de> (raw)
In-Reply-To: <1fab8ba4d867e3968ce761a02dd1ea74@ens-lyon.fr>
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/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2023-01-30 16:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-28 2:01 Kalouguine Andre via ntg-context
2023-01-28 12:55 ` Pablo Rodriguez via ntg-context
2023-01-28 13:31 ` Kalouguine Andre via ntg-context
2023-01-28 16:37 ` Pablo Rodriguez via ntg-context
2023-01-28 20:26 ` Kalouguine Andre via ntg-context
2023-01-28 21:54 ` Hans Hagen via ntg-context
2023-01-29 16:58 ` Kalouguine Andre via ntg-context
2023-01-30 10:54 ` Pablo Rodriguez via ntg-context
2023-01-30 16:30 ` Ulrike Fischer via ntg-context [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7xxsr0yu0ao5.dlg@nililand.de \
--to=ntg-context@ntg.nl \
--cc=news3@nililand.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).