From: Andreas Schneider <aksdb@gmx.de>
To: ntg-context@ntg.nl
Subject: Re: Bib-Module and ibid / ibidem
Date: Fri, 06 Nov 2009 23:14:49 +0100 [thread overview]
Message-ID: <hd274p$tj4$1@ger.gmane.org> (raw)
In-Reply-To: <4AF45B6D.9080100@rwth-aachen.de>
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mycite.tex --]
[-- Type: text/x-tex; name="mycite.tex", Size: 1452 bytes --]
\def\mycite{\dodoubleempty\domycite}
\def\defaultciterepeat{Ebenda}
\def\defaultciteprefix{Vgl. }
\def\defaultcitepage{S. }
\def\defaultcitechapter{Kap. }
\def\domycite[#1][#2]{%
\ifsecondargument%
\getparameters[MCP][prefix=\defaultciteprefix,page=,chapter=,suffix=,#1]%
\doinsertmycite[#2]{\MCPprefix}{%
\expandoneargafter\doifnotempty{\MCPpage}{\ \defaultcitepage\MCPpage.}%
\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 prefix, lower-case the cite-repeat string
.%
}%
{\doifelse{\getvalue{mycitepast #1}}{used}%
{\bgroup%
\getcitedata[title][#1] to \bibtitle%
\getcitedata[arttitle][#1] to \bibarttitle%
\cite[alternative=authoryear][#1]. {\it\bibtitle\bibarttitle}.%
\egroup}%
{\cite[alternative=data][#1]}%
}%
#3%suffix
}%
\setvalue{mycitelast}{#1}%
\setvalue{mycitepast #1}{used}%
}
%Reset last citation on page break
\appendtoks
\global\setvalue{mycitelast}{}
\to\everyaftershipout
[-- Attachment #3: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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 prev parent reply other threads:[~2009-11-06 22:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 17:22 Marcel Nohl
2009-11-06 22:14 ` Andreas Schneider [this message]
2009-11-07 12:29 ` Marcel Nohl
2009-11-07 6:59 ` Taco Hoekwater
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='hd274p$tj4$1@ger.gmane.org' \
--to=aksdb@gmx.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).