HI! So I did as you proposed \def\mycite[#1]{[{\cite[author][#1]},({\cite[year][#1]})]} in my preamble environment file also I did \setupbibtex[database=referenser] \setuppublications [alternative=apa,criterium=all] % inherits from adityas thesis example Do not why it is there \let\initializepubslist\relax \def\mycite[#1]{[{\cite[author][#1]},({\cite[year][#1]})]} and did \mycite[ref] Here is the output: ! Missing \endcsname inserted. <to be read again> \@@pvauthorcolor \doactivatecolor ...\ifcsname (cs:\currentpalet #1 )\endcsname \csname (cs:\c... \doattributes ...rtcolor [\csname #1#3\endcsname ] \else \let \dostopattribut... \dogotospace ...edwords {#1}\processisolatedword } \else #1\relax \fi }\else ... \doifreferencefoundelse ...ce \ifreferencefound #2 \else #3\fi \egroup \dores... \dogoto ...#2]}} {\unknownreference {#2}#1\relax } \egroup \referenceinfo {<}... ... l.25 ...tmekaniska effekter\mycite[Gombosi1998pot] kap 3, sid 53. Detta är ... ? end output Something went wrong with the macro? ons 2009-01-21 klockan 14:55 +0100 skrev Taco Hoekwater:
Jan-Erik Hägglöf wrote:
Example: These statements has been declared by [authorlastname,(year)]
Please give a code sample how to make this work!
Why are you using the "aps" style if you don't want aps-style output? That does not make sense. It seems that "apa" is much closer to what you want?
Best wishes, Taco
In apa-style there is "author (year)" appearance, and I just want "[authorlastname,(year)]" result with those hooks.
The bib module has no support for just "authorlastname" (as opposed to "author"), if you want that then you have to edit the bbl file.
For the rest of the citation formatting: it is easiest to define your own macro:
\def\mycite[#1]{[{\cite[author][#1]},({\cite[year][#1]})]}
Best wishes, Taco