ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Error Line Number
Date: Fri, 13 Jan 2012 10:08:03 +0100	[thread overview]
Message-ID: <CAG5iGsD6si5rreBZ1bqh1goDMXZRmpFXmkjUGc-GeEdSmzoPyQ@mail.gmail.com> (raw)
In-Reply-To: <1326395505.2847.24.camel@kip-laptop>


[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

On Thu, Jan 12, 2012 at 8:11 PM, Kip Warner <kip@thevertigo.com> wrote:

> On Thu, 2012-01-12 at 11:13 +0100, Hans Hagen wrote:
> > such a message comes from stored macros so there is no such
> > information
>
> So when you have a book of hundreds of pages in length split up over
> dozens of tex files and ConTeXt emits an error, how do you know what
> file / line number to examine?
>
Usually the strategy is to isolate the culprit by including progressively
lengthy  chunks of tex
from the begin to end
and then narrowing the selection until you find a macro or paragraph.
Then surround it with
\tracingall
...
\trancingnone
and you have a *huge* amount of informations.

(btw, discover where an error happens  it's  known to be problematic due
the inherently asynchronous nature of TeX
and the   macro programming language, where expansion can be  very hard to
understand)
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2012-01-13  9:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12  0:15 Kip Warner
2012-01-12 10:13 ` Hans Hagen
2012-01-12 19:11   ` Kip Warner
2012-01-13  9:08     ` luigi scarso [this message]
2012-01-13 13:36       ` Hans Hagen
2012-01-13 23:55       ` Kip Warner
2012-01-14  8:29         ` luigi scarso

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=CAG5iGsD6si5rreBZ1bqh1goDMXZRmpFXmkjUGc-GeEdSmzoPyQ@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.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).