* Detecting reference-errors
@ 2013-04-17 10:32 "H. Özoguz"
2013-04-17 10:55 ` Marco Patzer
0 siblings, 1 reply; 4+ messages in thread
From: "H. Özoguz" @ 2013-04-17 10:32 UTC (permalink / raw)
To: ntg-context
With \at[ref] one can get the pagenumber of a reference. If this
reference is not there (maybe in another file, not included at that
moment) there is no error given, but two question marks ??.
That is of course useful, but what if I WANT an error? Because that is
the only fast way to detect typing errors in references.
Else I will have ?? at the end in the book, not very nice
Huseyin
P.S.: Sorry for the other Mail with the wrong sender-adress.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Detecting reference-errors
2013-04-17 10:32 Detecting reference-errors "H. Özoguz"
@ 2013-04-17 10:55 ` Marco Patzer
2013-04-17 13:14 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Marco Patzer @ 2013-04-17 10:55 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 765 bytes --]
On 2013–04–17 "H. Özoguz" wrote:
> With \at[ref] one can get the pagenumber of a reference. If this
> reference is not there (maybe in another file, not included at that
> moment) there is no error given, but two question marks ??.
> That is of course useful, but what if I WANT an error? Because that
> is the only fast way to detect typing errors in references.
ConTeXt requires multiple passes to get the references right, which
means the first run would always fail if missing references trigger
an error and should be delayed to the second run. Seems possible,
though.
I use the following command to detect wrong references. It's not
pretty, but it does it's job reasonably well.
pdftotext <file.pdf> - | grep -E '\?\?|!!'
Marco
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Detecting reference-errors
2013-04-17 10:55 ` Marco Patzer
@ 2013-04-17 13:14 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2013-04-17 13:14 UTC (permalink / raw)
To: ntg-context
On 4/17/2013 12:55 PM, Marco Patzer wrote:
> On 2013–04–17 "H. Özoguz" wrote:
>
>> With \at[ref] one can get the pagenumber of a reference. If this
>> reference is not there (maybe in another file, not included at that
>> moment) there is no error given, but two question marks ??.
>> That is of course useful, but what if I WANT an error? Because that
>> is the only fast way to detect typing errors in references.
>
> ConTeXt requires multiple passes to get the references right, which
> means the first run would always fail if missing references trigger
> an error and should be delayed to the second run. Seems possible,
> though.
>
> I use the following command to detect wrong references. It's not
> pretty, but it does it's job reasonably well.
>
> pdftotext <file.pdf> - | grep -E '\?\?|!!'
If you run
\starttext
test \in{someplace}[somewhere]
\stoptext
there are messages in the log like:
references > unknown reference '[][somewhere]'
as well as a summary:
references > start problematic references
references > unknown > 1: [][somewhere]
references > stop problematic references
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Detecting reference-errors
@ 2013-04-17 10:31 "H. Özoguz"
0 siblings, 0 replies; 4+ messages in thread
From: "H. Özoguz" @ 2013-04-17 10:31 UTC (permalink / raw)
To: ntg-context
With \at[ref] one can get the pagenumber of a reference. If this
reference is not there (maybe in another file, not included at that
moment) there is no error given, but two question marks ??.
That is of course useful, but what if I WANT an error? Because that is
the only fast way to detect typing errors in references.
Else I will have ?? at the end in the book, not very nice :)
Huseyin
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-17 13:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-17 10:32 Detecting reference-errors "H. Özoguz"
2013-04-17 10:55 ` Marco Patzer
2013-04-17 13:14 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2013-04-17 10:31 "H. Özoguz"
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).