From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78356 Path: news.gmane.org!not-for-mail From: "Schmitz Thomas A." Newsgroups: gmane.comp.tex.context Subject: Re: Bibliography, unicode strings, @ELECTRONIC, sorting and bibtex Date: Tue, 18 Sep 2012 13:41:56 +0200 Message-ID: References: <20120918122858.265bbad1@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347968548 26746 80.91.229.3 (18 Sep 2012 11:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2012 11:42:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 18 13:42:32 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TDwCD-0004ee-AU for gctc-ntg-context-518@m.gmane.org; Tue, 18 Sep 2012 13:42:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 963DD101F6; Tue, 18 Sep 2012 13:42:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FKibIfFifyBU; Tue, 18 Sep 2012 13:42:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 751AD101EB; Tue, 18 Sep 2012 13:42:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 63C43101EB for ; Tue, 18 Sep 2012 13:42:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id t-6x5enY+LrP for ; Tue, 18 Sep 2012 13:42:20 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 13693101E6 for ; Tue, 18 Sep 2012 13:42:19 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8IBe2q1029314 for ; Tue, 18 Sep 2012 13:40:08 +0200 Original-Received: from [87.178.35.190] (account tschmit1@uni-bonn.de HELO [192.168.0.31]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 25761636 for ntg-context@ntg.nl; Tue, 18 Sep 2012 13:42:12 +0200 In-Reply-To: <20120918122858.265bbad1@homerow> X-Mailer: Apple Mail (2.1486) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WI0zE2Wo - 8da8be197a46 - 20120918 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78356 Archived-At: On Sep 18, 2012, at 12:28 PM, Marco Patzer wrote: > Hi, > > I have some questions regarding the bibliography. > > 1) > The style files bibl-ams.tex, bibl-ssa.tex, etc contain strings like > ``, ~. This does not make sense to me. The `` ends up like that in > the output and the tilde might interfere with the \asciimode > setting. Wouldn't it be better to use the proper Unicode glyphs > (U+201C, U+00A0, etc.) nowadays? I assume the files are old MkII > files and not being updated since. Example: > > \setupbibtex [database=sample] > \setuppublications [alternative=ssa] > \starttext > \cite[hh2010a] > \cite[Eijkhout1991] > \cite[hh2010] > \placepublications [criterium=cite] > \stoptext > You're right, this is old code that needs to be fixed. The problem is that users of bibtex in ConTeXt are a minority, and users of such precooked styles a tiny minority - I use bibtex quite often, but wouldn't know how to fix these styles and have never used them. So if you're sure about what to do, fix them and send Hans a patch. > 2) > The @ELECTRONIC type does not work (already mentioned in the wiki). > It does not show up in the references list. I guess no one bothered > adding them and it's up to me to add the corresponding entries. > > Maybe someone has already prepared a working file for the APA style? Possible. I have @ELECTRONIC definitions in my own private style files, but have never used APA. > > 3) > How to sort the bibliography by author? According to the bib manual > I expected this to work: > > \setupbibtex [database=sample] > \setuppublications [alternative=apa, criterium=cite, sort=author] You haven't read carefully enough, it's sorttype=author > \starttext > \cite[hh2010a] > \cite[Eijkhout1991] > \placepublications > \stoptext > > 4) > \completepublications produces an empty page. Is that intended? > > \setupbibtex [database=sample] > \setuppublications [alternative=ssa, criterium=cite] > \starttext > \cite[hh2010a] > \completepublications > \stoptext > http://archive.contextgarden.net/message/20110923.091734.6b388a11.en.html > 5) (side question) > What is BibTeX used for in ConTeXt? As far as I can see, it reads > the .bib database and generates a .bbl file which then is read in by > ConTeXt. Why do we need an external tool for this? Why does ConTeXt > not read in the .bib database and directly save it as a Lua table? Because nobody has coded that part yet? This may not be as easy as you make it sound because quite a few heuristics go into parsing bibtex files (e.g., look at the way in which bibtex divides names into first name, last name, von-part, jr-part). Over the years, I have read and heard many complaints about bibtex and many announcements that something infinitely better is just around the corner, to be delivered in all its glory "real soon now." For the time being, I don't see any real replacement, but I may be wrong. 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 ___________________________________________________________________________________