From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: getting line numbers
Date: Fri, 3 Sep 2021 18:26:45 +0200 [thread overview]
Message-ID: <4e9f7785-1fad-02d8-e13d-a7a8c05209b1@xs4all.nl> (raw)
In-Reply-To: <nycvar.YAK.7.77.849.2109030949370.477524@ervasbepr.pvz.zptvyy.pn>
On 9/3/2021 3:53 PM, Aditya Mahajan via ntg-context wrote:
> On Fri, 3 Sep 2021, Thierry Horsin via ntg-context wrote:
>
>> Hi everybody
>>
>> Is there a way to have an automatic access to the current line number of a specific place inside a tex file ? To be more precise, here is what I would like to do.
>
> Also look at the filter module.
>
> https://github.com/adityam/filter
>
> Behind the scenes, it works by saving the content in an external file and then
> running it through any external program. It also allows for caching the
> result, and has many options for customizing the behavior.
you forgot to mention that it also makes sure that you only process when
there has been a change (after all calling gcc comes at a price)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2021-09-03 16:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-03 10:58 Thierry Horsin via ntg-context
2021-09-03 12:16 ` Hans Hagen via ntg-context
2021-09-03 12:20 ` Thierry Horsin via ntg-context
2021-09-03 13:53 ` Aditya Mahajan via ntg-context
2021-09-03 16:26 ` Hans Hagen via ntg-context [this message]
2021-09-05 10:26 ` Fabrice Couvreur via ntg-context
[not found] <mailman.418.1630685069.1197.ntg-context@ntg.nl>
2021-09-04 7:01 ` thierry horsin via ntg-context
2021-09-04 8:35 ` Hans Hagen via ntg-context
2021-09-04 10:18 ` Thierry Horsin via ntg-context
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=4e9f7785-1fad-02d8-e13d-a7a8c05209b1@xs4all.nl \
--to=ntg-context@ntg.nl \
--cc=j.hagen@xs4all.nl \
/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).