From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55722 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: Re: Bibliography -- complete inline citations in footnotes Date: Thu, 21 Jan 2010 12:22:44 +0100 Message-ID: References: <674630171001202237l2c0e306aq1f2a9de5e80d9c87@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3495173.d0ALf2pfGB" X-Trace: ger.gmane.org 1264073032 12930 80.91.229.12 (21 Jan 2010 11:23:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2010 11:23:52 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 21 12:23:45 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NXv8a-0002NQ-8B for gctc-ntg-context-518@m.gmane.org; Thu, 21 Jan 2010 12:23:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38BFAC9D92; Thu, 21 Jan 2010 12:23:44 +0100 (CET) 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 kwAQDuWXjkdV; Thu, 21 Jan 2010 12:23:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BB2E5C9D6E; Thu, 21 Jan 2010 12:23:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 979F3C9D6E for ; Thu, 21 Jan 2010 12:23:17 +0100 (CET) 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 dAmI24zBQIx9 for ; Thu, 21 Jan 2010 12:23:10 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id A5619C9D6A for ; Thu, 21 Jan 2010 12:23:08 +0100 (CET) Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXv7y-0002Es-2r for ntg-context@ntg.nl; Thu, 21 Jan 2010 12:23:06 +0100 Original-Received: from p54b4eca0.dip.t-dialin.net ([84.180.236.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jan 2010 12:23:06 +0100 Original-Received: from aksdb by p54b4eca0.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jan 2010 12:23:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.comp.tex.context Original-Lines: 100 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54b4eca0.dip.t-dialin.net User-Agent: KNode/4.3.4 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55722 Archived-At: --nextPart3495173.d0ALf2pfGB Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Piotr Lesnicki wrote: > Hi, > I'm new to ConTeXt and I'm greatly appreciating the rejuvenation it > brings me in typesetting after several years using LaTeX. > > I'm confronted to a few little problems though, the main one being > that I'd need to have references both in the footnotes and at the end > of a document. Under LaTeX I found that the "inlibib" package is doing > exactly that, inserting some "ibid" and "op.cit." when required for > repeting references. After reading the bibmod-doc, I thought I would > temporarly solve the problem by simply using > \setuppublications[refcommand=data] which I thought would put the > reference in the same format as in the bibliography, but it doesn't > compile. > > Does any one have a solution? > > > Piotr Hi Piotr, I did assemble such a solution (with much help from Hans and Wolfgang). It's not enough to put it into a complete module yet (although I will probably do that sometime soon) and it currently only works with a recent beta of MkIV. (It can also be changed easily to work with MkII, but it won't correctly recognize repeating citations over page breaks ... long story ;-)) Just put the attached file into the same dir (or near) your document where you want to use it and include it with "\module[mycite]". To use it simply replace \cite[key] with something like \mycite[key] [page=123, chapter=1.5, suffix={Some manual inserted text.}] These three parameters are each optional. Since I wrote this for a German document, you may also want to modify the strings in the head of t-mycite.tex. ("Ebenda" = "Ibidem", "S." = Page, "vgl." = compare/reference, "Kap." = chapter) Best Regards, Andreas. --nextPart3495173.d0ALf2pfGB Content-Type: text/x-tex; name="t-mycite.tex" Content-Disposition: attachment; filename="t-mycite.tex" Content-Transfer-Encoding: quoted-printable \def\mycite{\dodoubleempty\domycite} \def\defaultciterepeat{Ebenda} \def\defaultciteprefix{Vgl. } \def\defaultcitepage{S. } \def\defaultcitechapter{Kap. } \def\domycite[#1][#2]{% \ifsecondargument% \getparameters[MCP][prefix=3D\defaultciteprefix,page=3D,chapter=3D,su= ffix=3D,#2]% \doinsertmycite[#1]{\MCPprefix}{% \expandoneargafter\doifnotempty{\MCPpage}{\ \defaultcitepage\MCPpag= e.}% \expandoneargafter\doifnotempty{\MCPchapter}{\ \defaultcitechapter\= MCPchapter.}% \expandoneargafter\doifnotempty{\MCPsuffix}{\ \MCPsuffix}% }% \else% \doinsertmycite[#1]{\defaultciteprefix}{}% \fi% } \def\doinsertmycite[#1]#2#3{% \footnote{% #2%prefix \doifelse{\getvalue{mycitelast}}{#1}% {\doifemptyelse{#2}% {\defaultciterepeat}% {\expandoneargafter\lowercase{\defaultciterepeat}}%If there's a p= refix, lower-case the cite-repeat string .% }% {\doifelse{\getvalue{mycitepast #1}}{used}% {\bgroup% \getcitedata[title][#1] to \bibtitle% \getcitedata[arttitle][#1] to \bibarttitle% \cite[alternative=3Dauthoryear][#1]. {\it\bibtitle\bibarttitle}.= % \egroup}% {\cite[alternative=3Ddata][#1]}% }% #3%suffix }% \setvalue{mycitelast}{#1}% \setvalue{mycitepast #1}{used}% } %Reset last citation on page break (which we check when placing footnotes= ) \appendtoks \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}} \to\everyinsidenoteinsert --nextPart3495173.d0ALf2pfGB Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --nextPart3495173.d0ALf2pfGB--