ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* New style alternative for \cite?
@ 2007-03-08 17:59 Oliver Buerschaper
  2007-03-09 12:44 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Buerschaper @ 2007-03-08 17:59 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Hi Taco,

I'd like to typeset my references in a sort of "authortitle" citation  
style in the main text (actually hidden away in footnotes, so the  
final length of the phrase is not an issue):

T. Hoekwater, ConTeXt Publication Module

How could this be done? After a quick glance at the module's source I  
figured this might take me weeks if not months to work it out myself :-(

Thanks for your help and best wishes,
Oliver

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: New style alternative for \cite?
  2007-03-08 17:59 New style alternative for \cite? Oliver Buerschaper
@ 2007-03-09 12:44 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2007-03-09 12:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Oliver Buerschaper wrote:
> Hi Taco,
> 
> I'd like to typeset my references in a sort of "authortitle" citation  
> style in the main text (actually hidden away in footnotes, so the  
> final length of the phrase is not an issue):
> 
> T. Hoekwater, ConTeXt Publication Module
> 
> How could this be done? After a quick glance at the module's source I  
> figured this might take me weeks if not months to work it out myself :-(

That took a bit of doing because the macro that is supposed to help
setting this stuff up is broken :-(

Here is a macro that comes close to what you had in mind, I hope.
The main weakness is that it only supports one main author, as it
is now (that is because of "\getcitedata[author1]")

   \def\MYauthor#1#2#3#4#5{#4 #3}
   \def\specialcite#1[#2]%
      {\bgroup
       \getcitedata[author1][#2] to \mauthors
       \getcitedata[title][#2] to \mtitle
       \expandafter\MYauthor\mauthors, \mtitle
       \egroup}

Best wishes, Taco

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-09 12:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-08 17:59 New style alternative for \cite? Oliver Buerschaper
2007-03-09 12:44 ` Taco Hoekwater

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).