# [NTG-context] MLA Bibliography

Kip Warner kip at thevertigo.com
Thu Apr 19 01:40:23 CEST 2012

On Wed, 2012-04-18 at 12:27 +0200, Philipp Gesang wrote:
> Sorry, my bad. I forgot that the builtin “\cite” macro takes
> bracketed args, not braced ... So, the listing below is tested,
> make sure you have the file context/bib/sample.bib in \$PWD:
>
> ········································································
> \setupbibtex[
>   database=sample,
>   sort=author,
> ]
>
> \setuppublications[
>   alternative=apa,
> ]
>
> \glet\originalcite\cite
> \let\cite\relax
>
> \unprotect
>
> \def\cite{\dodoubleempty\do_cite}
>
> \def\do_cite[#1][#2]{%
>   %%% Wraps citations into footnotes.
>   \iffirstargument
>     \startfootnote
>     \ifsecondargument
>       \originalcite[#1][#2]%
>     \else
>       \originalcite[#1]%
>     \fi
>     \stopfootnote
>   \fi%
> }
>
> \protect
>
> \starttext
>
> \section{nova methodos referendi}
> \input knuth\cite[hh2010]
>
> \stoptext \endinput

Thanks a lot Philipp. That's pretty comprehensive.

> You get footnote citations (see above). The problem is how you
> (or your bib style, for that matter) define *full citation*. If
> it’s ok to have the crippled version like “Leibniz, G. W.”
> instead of “Leibniz, Gottfried Wilhelm” or (as I needed it)
> without inversion “Gottfried Wilhelm Leibniz”, it might suffice
> to use “\cite[alternative=data][my_bib_key]”.

Yes, I've been using data for now. I'm just struggling to figure out how
to stylize it properly.

> I’ve been following this thread and it would appear that most
> people who are in some way working with citations /
> bibliographies are avoiding the built-in facilities.

I think the problem is that a lot of us jumped into ConTeXt's
bibliography support without realizing that it is not really mature
enough to be usable for professional use yet. It takes a lot of work.

> I confess
> I’m no exception; writing my own bib support was in fact a
> prerequisite that made Context usable for me in the first place.
> It handles these full citations, inverted author or not, but it’s
> by no means a general solution. If you’re really stuck with your
> citation issues I can mail you the repo off-list, but you will
> code in order to adapt it in any way.

Thanks a lot for the generous offer, but sadly I probably wouldn't know
what to do with it. Unlike a lot of people on this list, my first
exposure to digital typesetting came with ConTeXt which would make such
a thing very painful. On top of that, I'd have to be more comfortable
with Lua.

> On the other hand, there’s been an announcement by Paul Isambert
> some time ago that his *Librarian* package cooperates with
> Context in some way:
> > http://archive.contextgarden.net/message/20100405.024343.6e4aa50d.en.html
> From the documentation it looks pretty powerful. Have never used
> it myself, though.
>
> Sorry for the delay, exams and stuff ...
> Philipp

No problem Philipp. Thanks for your help.

--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120418/dd700381/attachment.pgp>