Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-30 Thread Ulrike Fischer via ntg-context
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

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-30 Thread Pablo Rodriguez via ntg-context
On 1/29/23 17:58, Kalouguine Andre via ntg-context wrote: > On 28.01.2023 22:54, Hans Hagen via ntg-context wrote: >> […] >> so: this is all very viewer dependent! (The suggested comment method >> is more reliable.) >   > Unfortunately as I just found out, comments are also viewer dependent... >

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-29 Thread Kalouguine Andre via ntg-context
On 28.01.2023 22:54, Hans Hagen via ntg-context wrote: > On 1/28/2023 9:26 PM, Kalouguine Andre via ntg-context wrote: On 28.01.2023 > 17:37, Pablo Rodriguez via ntg-context wrote: > > Using Fedora 37 (and having just installed Okular), I see that > annotations are tricky to open in Okular. >

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Hans Hagen via ntg-context
On 1/28/2023 9:26 PM, Kalouguine Andre via ntg-context wrote: On 28.01.2023 17:37, Pablo Rodriguez via ntg-context wrote: Using Fedora 37 (and having just installed Okular), I see that annotations are tricky to open in Okular. First you have to select the Annotations tab on the left pane, go

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
On 28.01.2023 17:37, Pablo Rodriguez via ntg-context wrote: > Using Fedora 37 (and having just installed Okular), I see that > annotations are tricky to open in Okular. > > First you have to select the Annotations tab on the left pane, go to the > annotation and then right-click on it to open

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 14:31, Kalouguine Andre via ntg-context wrote: > Hi Pablo, Hi André, > [...]   > That's actually something I had never thought of, using PDF comments, > thanks!. When I faced a similar task, I thought it could be the way of solving the issue (how to copy and paste ConTeXt code and

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
Hi Pablo, > \showframe > \setupinteraction[state=start] > \starttext > \startbuffer[abc] > def foo(x): > if x == 0: > bar() > else: > baz(x) > foo(x - 1) > \stopbuffer > \comment[location=leftmargin, > space=yes, > buffer=abc, > title={Python code}] > {}\typebuffer[abc] > \stoptext > > This

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 03:01, Kalouguine Andre via ntg-context wrote: > Good day to everyone, > > 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. Hi André, I wonder whether I’m getting your point with the

[NTG-context] Subject: Leading spaces verbatim

2023-01-27 Thread Kalouguine Andre via ntg-context
Good day to everyone, 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. I believe the question has been asked before (though I confess I can't find the right search terms to find the answer again). I