From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing ConTeXt users list for <ntg-context@ntg.nl>
Subject: two buglets
Date: Thu, 11 Feb 2010 16:52:14 +0100 [thread overview]
Message-ID: <BE064DB0-8931-4A32-8988-D5D085B0FBF3@uni-bonn.de> (raw)
Hi all,
working on a book project with index and bibliography, I discovered two small bugs (at least I think they are bugs):
1. index sorts uppercase letters after lowercase letters. Minimal example:
\starttext
\index{Aardvark}Aardvark
\index{azygous}azygous
\page
\setupregister[index][n=1]
\placeregister[index]
\stoptext
I would expect azygous to follow Aardvark, but it is sorted before.
2. (Maybe not a bug, but a somewhat unfriendly behavior): When a \cite command refers to a non-existent key and sort=bbl, ConTeXt bombs out with a lua error:
! LuaTeX error ...text/tex/texmf-context/tex/context/base/bibl-tra.lua:77: attempt to compare nil with number
stack traceback:
...text/tex/texmf-context/tex/context/base/bibl-tra.lua:77: in function <...text/tex/texmf-context/tex/context/base/bibl-tra.lua:76>
[C]: in function 'sort'
...text/tex/texmf-context/tex/context/base/bibl-tra.lua:84: in function 'flush'
<main ctx instance>:1: in main chunk.
\typesetpubslist ...hacks.flush("\@@pbsorttype ")}
\doendoflist
\dodoplacepublications ...sttrue \typesetpubslist
\inpublistfalse \endgroup ...
l.37 \placepublications[criterium=all]
minimal example (the typo \cite[clarke199] instead of \cite[clarke1999a] is there on purpose to demonstrate the problem):
\setuppublications[state=start,
sorttype=bbl,
refcommand=authornum,
numbering=yes]
\setuppublicationlist[samplesize={VSdK90},totalnumber=2]
\startpublication[k=champion2004,t=book,
a={{Champion}},y=2004,
n=10,s=Cha04]
\author[]{Craige~B.}[C.~B.]{}{Champion}
\pubyear{2004}
\title{Cultural Politics in Polybius's {\em Histories}}
\city{Berkeley}
\pubname{Univ. of California Pr.}
\stoppublication
\startpublication[k=clarke1999a,t=book,
a={{Clarke}},y=1999b,
n=9,s=Cla99b]
\author[]{Katherine}[K.]{}{Clarke}
\pubyear{1999\maybeyear{b}}
\title{Between Geography and History: Hellenistic Constructions of the Roman
World}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication
\starttext
\cite[champion2004]
\cite[clarke199]
\page
\placepublications[criterium=all]
\stoptext
Could this error be handled more gracefully, i.e. intercepted?
All best
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2010-02-11 15:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 15:52 Thomas A. Schmitz [this message]
2010-02-11 17:17 ` Hans Hagen
2010-02-11 17:35 ` Thomas A. Schmitz
2010-02-11 19:29 ` Hans Hagen
2010-02-11 21:27 ` Thomas A. Schmitz
2010-02-11 18:14 ` David Rogers
2010-10-03 8:24 ` Thomas A. Schmitz
2010-10-03 10:29 ` Hans Hagen
2010-10-03 10:58 ` Thomas A. Schmitz
2010-10-03 15:10 ` Hans Hagen
2010-10-03 15:43 ` Thomas A. Schmitz
2010-10-05 12:15 ` Philipp Gesang
2010-10-05 12:39 ` Hans Hagen
2010-10-05 13:29 ` Thomas A. Schmitz
2010-10-05 21:17 ` Philipp Gesang
2010-10-05 21:27 ` Hans Hagen
2010-10-05 21:55 ` Philipp Gesang
2010-10-06 7:50 ` Hans Hagen
2010-02-11 17:19 ` Hans Hagen
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=BE064DB0-8931-4A32-8988-D5D085B0FBF3@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--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).