From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26466 Path: news.gmane.org!not-for-mail From: Ulf Martin Newsgroups: gmane.comp.tex.context Subject: crossref in bibtex Date: Thu, 23 Mar 2006 14:50:39 +0100 Message-ID: <4422A7AF.2070101@web.de> Reply-To: ulfmartin@web.de, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1143121898 21758 80.91.229.2 (23 Mar 2006 13:51:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2006 13:51:38 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 23 14:51:35 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FMQD1-0005II-RY for gctc-ntg-context-518@m.gmane.org; Thu, 23 Mar 2006 14:50:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 41B971279F; Thu, 23 Mar 2006 14:50:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25506-05-3; Thu, 23 Mar 2006 14:50:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 81E2012798; Thu, 23 Mar 2006 14:50:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BB3B112798 for ; Thu, 23 Mar 2006 14:50:31 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25506-05-2 for ; Thu, 23 Mar 2006 14:50:30 +0100 (CET) Original-Received: from fmmailgate05.web.de (fmmailgate05.web.de [217.72.192.243]) by ronja.ntg.nl (Postfix) with SMTP id 5819512791 for ; Thu, 23 Mar 2006 14:50:30 +0100 (CET) Original-Received: by fmmailgate05.web.de (8.12.10/8.12.10/webde Linux 0.7) with ESMTP id k2NDoUXA001401 for ; Thu, 23 Mar 2006 14:50:30 +0100 Original-Received: from [212.202.168.158] (helo=[212.202.168.158]) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.106 #94) id 1FMQCr-0003YR-00 for ntg-context@ntg.nl; Thu, 23 Mar 2006 14:50:29 +0100 User-Agent: Thunderbird 1.5 (Macintosh/20051201) Original-To: ntg-context@ntg.nl X-Sender: ulfmartin@web.de X-MIME-Autoconverted: from 8bit to quoted-printable by fmmailgate05.web.de id k2NDoUXA001401 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26466 Archived-At: Dear ConText Users Being an age-old LaTeX user I thought I should give ConText a try. But then I stumbled over the first problem when trying to use BibTeX: Crossrefs don't seem to work properly. - the work that uses a crossref is listed incompletely in the publication list - the crossref'd work itself isn't included at all. I haven't found a solution on the web. * * * Details. I have a source file (cut for the relevant parts): -- start of content.tex -- \environment mainsetup \version[concept] \starttext Es wird eine \quotation{=DCbersichtliche Darstellung} angestrebt (vgl. = \cite[wittgenstein-1997-philosophische-untersuchungen]\ =A7~132, S.~304f.). \completepublications \stoptext -- end of content.tex -- The setup file is in the directory above (for use in multiple docs, as = suggested in the ConText documentation): -- start of mainsetup.tex -- \enableregime[utf] \usemodule[bib] \setuppublications[alternative=3Daps] \setuppublications[sorttype=3Dbbl] \setupbibtex [database=3D{~/Textsammlung/Central}, sort=3Dauthor] \setupheadtext[de][pubs=3DLiteratur] \startenvironment mainsetup \setupbodyfont[11pt] \mainlanguage[de] \stopenvironment -- end of mainsetup.tex -- The relevant part of the Central.bib is this (in this order, BibTeX = expexts uses of crossrefs to appear before the resp. crossref'd entry): -- start of Central.bib -- @STRING{cy-fm =3D "Frankfurt (Main)"} @STRING{pb-skp =3D "Suhrkamp"} @STRING{wittgenstein =3D "Wittgenstein, Ludwig"} @incollection{wittgenstein-1997-philosophische-untersuchungen, Crossref =3D {wittgenstein-1984-werkausgabe}, Edition =3D 11, Note =3D {Text neu durchgesehen von Joachim Schulte}, Pages =3D {225-580}, Title =3D {Philosophische Untersuchungen}, Volume =3D 1, Year =3D 1997 } @book{wittgenstein-1984-werkausgabe, Address =3D cy-fm, Author =3D wittgenstein, Booktitle =3D {Werkausgabe}, Isbn =3D 3518099884, Publisher =3D pb-skp, Title =3D {Werkausgabe}, Year =3D 1984 } -- end of Central.bib -- The PDF output file after % texexec --pdf content % bibtext content % texexec --pdf content yields something like (characters may be distrupted due to conversion = from UTF-8): -- start of content.pdf rendered as plain text -- Es wird eine "=DCbersichtliche Darstellung" der relevanten Begriffe = angestrebt (vgl. [1] =A7 132, S. 304f.). Literatur 1 L. WittgensteinIn [??], p. 225-580. Text neu durchgesehen von Joachim = Schulte. -- end of context.pdf -- A hint to the solution for an expert could be the bbl file. Note that = the order of the entries is turned around: -- start of content.bbl -- \startpublication[k=3Dwittgenstein-1984-werkausgabe,t=3Dbook, a=3D{Wittgenstein},y=3D1984, n=3D141,s=3DWit84] \author[]{Ludwig}[L.]{}{Wittgenstein} \pubyear{1984} \title{Werkausgabe} \isbn{3518099884} \city{Frankfurt (Main)} \pubname{Suhrkamp} \stoppublication \startpublication[k=3Dwittgenstein-1997-philosophische-untersuchungen,t=3Di= ncollec% tion, a=3D{Wittgenstein},y=3D1997, n=3D140,s=3DWit97] \artauthor[]{Ludwig}[L.]{}{Wittgenstein} \pubyear{1997} \arttitle{Philosophische untersuchungen} \crossref{wittgenstein-1984-werkausgabe} \pages{225-580} \pages{225-580} \pubname{Suhrkamp} \note{Text neu durchgesehen von Joachim Schulte} \stoppublication -- end of content.bbl -- So: - The reference as such is found correctly. - The entry in the References has and but not , <edition> and <volume>, and <year>. - The crossreference is not properly processed. (and, actually, multiple pages should produce "pp." not "p.") It should be something like 1 L. Wittgenstein (1984) Werkausgabe. Frankfurt (Main): Suhrkamp. 2 L. Wittgenstein (1997) Philosophische Untersuchungen. In [1], Bd. 1, = S. 225-580. Text neu durchgesehen von Joachim Schulte. (If ordered by author first, then year. Note also that in \language[de] = "vol." should be "Bd." and "p." be "S.".) Coding for all files is UTF-8, things works as it they should in LaTeX. Any ideas of what to do or hints where to find more info? * * * Additional question: what is the best way to generate the bbl file in = the project directory? (I use "Central.bib" for all my documents). Using % texexec mainsetup in the projects directory produces many unnecessary files (e.g. a dvi = file) as it is only meant as a setup file. * * * I general, I like ConText. Strangely, it plays well with my mindset, as = does the whole layout orientation with my taste. However, proper bibliography processing is a "killer feature" for me -- = I have virtually no document whithout references. (I wonder, what the = direction of the ConText development here is; arguably, odd old BibTeX = has reached an end of its history and support for more modern and = complete, e.g. XML-based formats would be preferable (say, MODS) -- = considering the seeminly nice XML support that is already there.) Cheers & Thanks in advance! Ulf Martin