Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread Taco Hoekwater
Mojca Miklavec wrote: Line Number I don't know of any way, but TeX sometimes complains on errors and outputs the line number along. There is \inputlineno in TeX, so \the\inputlineno or the lua equivalent \ctxlua{tex.inputlineno} will work. Best wishes, Taco

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread luigi scarso
On Fri, Jul 3, 2009 at 8:56 AM, Taco Hoekwater t...@elvenkind.com wrote: Mojca Miklavec wrote: Line Number I don't know of any way, but TeX sometimes complains on errors and outputs the line number along. There is \inputlineno in TeX, so \the\inputlineno or the lua equivalent

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread Taco Hoekwater
luigi scarso wrote: On Fri, Jul 3, 2009 at 8:56 AM, Taco Hoekwater t...@elvenkind.com mailto:t...@elvenkind.com wrote: Mojca Miklavec wrote: Line Number I don't know of any way, but TeX sometimes complains on errors and outputs the line number

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread luigi scarso
On Fri, Jul 3, 2009 at 9:14 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: On Fri, Jul 3, 2009 at 8:56 AM, Taco Hoekwater t...@elvenkind.com mailto:t...@elvenkind.com wrote: Mojca Miklavec wrote: Line Number I don't know of any

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread Taco Hoekwater
luigi scarso wrote: we need something like a stack trace; also a lua try/except construct should be nice . stack trace of tex? ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread luigi scarso
On Fri, Jul 3, 2009 at 9:33 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: we need something like a stack trace; also a lua try/except construct should be nice . stack trace of tex? No no, sorry -- I mean traceback, something like this Traceback (innermost last):

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread Taco Hoekwater
luigi scarso wrote: No no, sorry -- I mean traceback, something like this Traceback (innermost last): Yeah, I though so. Repeat question: for TeX (macros)? ___ If your question is of interest to others as

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread luigi scarso
On Fri, Jul 3, 2009 at 9:47 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: No no, sorry -- I mean traceback, something like this Traceback (innermost last): Yeah, I though so. ok Repeat question: for TeX (macros)? Is it impossible ? -- luigi

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread Taco Hoekwater
luigi scarso wrote: Repeat question: for TeX (macros)? Is it impossible ? Right now: yes. Later: doable. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread luigi scarso
On Fri, Jul 3, 2009 at 10:06 AM, Taco Hoekwater t...@elvenkind.com wrote: luigi scarso wrote: Repeat question: for TeX (macros)? Is it impossible ? Right now: yes. Later: doable. So doable . Given that I like to lost in code, where should I start to look ? -- luigi

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread Taco Hoekwater
luigi scarso wrote: On Fri, Jul 3, 2009 at 10:06 AM, Taco Hoekwater t...@elvenkind.com mailto:t...@elvenkind.com wrote: luigi scarso wrote: Repeat question: for TeX (macros)? Is it impossible ? Right now: yes. Later: doable. So doable .

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-03 Thread luigi scarso
On Fri, Jul 3, 2009 at 10:18 AM, Taco Hoekwater t...@elvenkind.com wrote: Not now, you will need a bit of luatex interfacing that is not programmed yet. ok -- stop here . Eventually at eurotex . -- luigi ___ If

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-02 Thread Mojca Miklavec
Hello, Did you take a look at the thread How to Determine the Current File Name and Line Number in the ConTeXt Source? from yesterday? On Wed, Jul 1, 2009 at 20:18, ivo welch wrote: Current File Name There's \jobname, but if you read from other files this won't help you. Line Number I

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-01 Thread ivo welch
is there also a way to determine the current output page number on which typesetting is currently being made? (I know this is a difficult problem in LaTeX, and I presume the same is the case for ConTeXt, because it uses the same underlying TeX engine.) /iaw

Re: [NTG-context] How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source?

2009-07-01 Thread Hans Hagen
ivo welch wrote: is there also a way to determine the current output page number on which typesetting is currently being made? (I know this is a difficult problem in LaTeX, and I presume the same is the case for ConTeXt, because it uses the same underlying TeX engine.) \realpageno \userpageno