Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Beam me up, Scotty! It ate my phaser!


computers / comp.text.tex / Re: Callouts on code listings

SubjectAuthor
* Callouts on code listingsPeter Flynn
`* Re: Callouts on code listingsHolger Schieferdecker
 `- Re: Callouts on code listingsPeter Flynn

1
Callouts on code listings

<kg050vFmc9oU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6738&group=comp.text.tex#6738

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Callouts on code listings
Date: Tue, 27 Jun 2023 14:03:27 +0100
Lines: 7
Message-ID: <kg050vFmc9oU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 2gmN4z+yivFadiW7n4bhZAc8MVx8799pREArA9Ty5GQGEOlSF6
Cancel-Lock: sha1:aV15Fcs6y/gjaYk8kLPuylJ1Vgw=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Content-Language: en-US
 by: Peter Flynn - Tue, 27 Jun 2023 13:03 UTC

I'd like to use callouts (labels with arrows) on some code listings, but
it appears that the callouts package doesn't handle the lstlisting
environment from the listings package.

Are there other options short of creating an image for every listing?

Peter

Re: Callouts on code listings

<u7gng2Ugle5L1@news.in-ulm.de>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6743&group=comp.text.tex#6743

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!newsfeed.in-ulm.de!not-for-mail
From: spamless@gmx.de (Holger Schieferdecker)
Newsgroups: comp.text.tex
Subject: Re: Callouts on code listings
Date: Wed, 28 Jun 2023 09:29:07 +0200
Organization: [ posted via ] IN-Ulm
Lines: 14
Message-ID: <u7gng2Ugle5L1@news.in-ulm.de>
References: <kg050vFmc9oU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.in-ulm.de B68D6D27B7B2A45211654BB00C0BBEF3
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
In-Reply-To: <kg050vFmc9oU1@mid.individual.net>
 by: Holger Schieferdecke - Wed, 28 Jun 2023 07:29 UTC

Am 27.06.2023 um 15:03 schrieb Peter Flynn:
> I'd like to use callouts (labels with arrows) on some code listings, but
> it appears that the callouts package doesn't handle the lstlisting
> environment from the listings package.
>
> Are there other options short of creating an image for every listing?

The tikzmark package has an additional library to support listings.
There is a small example in the manual. And maybe this[1] answer is
helpful as well.

Holger

[1] https://tex.stackexchange.com/a/657454

Re: Callouts on code listings

<kg2kbrF3mjpU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6744&group=comp.text.tex#6744

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Callouts on code listings
Date: Wed, 28 Jun 2023 12:37:31 +0100
Lines: 20
Message-ID: <kg2kbrF3mjpU1@mid.individual.net>
References: <kg050vFmc9oU1@mid.individual.net> <u7gng2Ugle5L1@news.in-ulm.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net YRanQHX0pQ1533Weqie9KAAoth2fPvVzcDee3QvPFdyIV3dkKi
Cancel-Lock: sha1:KCluWb1RHBooS6XBwNWjodW7HpQ=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Content-Language: en-US
In-Reply-To: <u7gng2Ugle5L1@news.in-ulm.de>
 by: Peter Flynn - Wed, 28 Jun 2023 11:37 UTC

On 28/06/2023 08:29, Holger Schieferdecker wrote:
> Am 27.06.2023 um 15:03 schrieb Peter Flynn:
>> I'd like to use callouts (labels with arrows) on some code
>> listings, but it appears that the callouts package doesn't handle
>> the lstlisting environment from the listings package.
>>
>> Are there other options short of creating an image for every listing?
>
> The tikzmark package has an additional library to support listings.
> There is a small example in the manual. And maybe this[1] answer is
> helpful as well.

Thanks very much, that's very useful.

> [1] https://tex.stackexchange.com/a/657454

In the process I discovered that using \lstinputlisting{filename} *is*
accepted by the callouts package.

Peter

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor