From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54137 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: Re: Bib-Module and ibid / ibidem Date: Fri, 06 Nov 2009 23:14:49 +0100 Message-ID: References: <4AF45B6D.9080100@rwth-aachen.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart1753172.aoV7mqztpD" X-Trace: ger.gmane.org 1257545739 30952 80.91.229.12 (6 Nov 2009 22:15:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2009 22:15:39 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 06 23:15:32 2009 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 1N6X5e-0008Se-IC for gctc-ntg-context-518@m.gmane.org; Fri, 06 Nov 2009 23:15:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EE0BC9C88; Fri, 6 Nov 2009 23:13: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 BgStXs7nfINN; Fri, 6 Nov 2009 23:13:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2C8CC9C58; Fri, 6 Nov 2009 23:13:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91739C9C68 for ; Fri, 6 Nov 2009 23:13:34 +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 Oi+8oWKzzqzK for ; Fri, 6 Nov 2009 23:13:30 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 28A24C9C44 for ; Fri, 6 Nov 2009 23:13:29 +0100 (CET) Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N6X5N-0008LK-VT for ntg-context@ntg.nl; Fri, 06 Nov 2009 23:15:13 +0100 Original-Received: from p54b4ce2d.dip.t-dialin.net ([84.180.206.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 23:15:13 +0100 Original-Received: from aksdb by p54b4ce2d.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Nov 2009 23:15:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.comp.tex.context Original-Lines: 88 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54b4ce2d.dip.t-dialin.net User-Agent: KNode/4.3.3 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:54137 Archived-At: --nextPart1753172.aoV7mqztpD Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Marcel Nohl wrote: > Hello, > > are there any plans for the bib-module to support ibid. citation, or is > someone actually working on it at the moment? If not, is someone using > a workaround for this? > > Thanks in advance, > Marcel If I understand you right, you want footnote citations with a special handling of repeated citations? In that case I indeed have a workaround. I attached it to this mail. It will print out the first citation full (alternative=data), each further citation short (author, year and title) and each direct repetition with "Ebenda" (which is the German version of "ibidem", afaics). You can ofcourse change these strings, they are defined at the top of the file. Examples: \mycite[some_bib_entry] \mycite[prefix={Vgl. }, page=123, chapter={Introduction}, suffix={some more text.}][some_bib_entry] I hope that helps. Best regards, Andreas. --nextPart1753172.aoV7mqztpD Content-Type: text/x-tex; name="mycite.tex" Content-Disposition: attachment; filename="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,#1]% \doinsertmycite[#2]{\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 \appendtoks \global\setvalue{mycitelast}{} \to\everyaftershipout --nextPart1753172.aoV7mqztpD 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 ___________________________________________________________________________________ --nextPart1753172.aoV7mqztpD--