ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Joshua Krämer" <joshua.kraemer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: ntg-context-wvrSQK3plZs@public.gmane.org
Subject: Re: Bibliography: only surname in small caps
Date: Mon, 30 Jun 2014 21:24:32 +0200	[thread overview]
Message-ID: <20140630212432.79cab509@medea1.site> (raw)
In-Reply-To: <F64842A3-AB9A-4CE1-9612-3CE9F948A064@uni-bonn.de>

On 2014-06-30, 16:24, Thomas A. Schmitz wrote:

> You would define your own command. Something like
> 
> \def\myinvertedauthor#1#2#3#4#5%
>     {{\sc #3}%
>     \bibdoif{#1}{\bibalternative{surnamesep}#4\unskip}%
>     \bibdoifelse{#2}{\bibalternative{vonsep}#2\unskip}{\unskip}%
>     \bibdoifelse{#5}{\bibalternative{juniorsep}#5\unskip}{\unskip}%
> }

Thanks for your answer, Thomas.  This is how I've done it now:


\unprotect\def\myinvertedshortauthor#1#2#3#4#5%
  {\bibdoif{#2}{#2\bibalternative\c!vonsep}%
   {\smallcaps #3}%
   \bibdoif{#5}{\bibalternative\c!juniorsep#5}%
   \bibdoif{#4}{\bibalternative\c!surnamesep#4\unskip}}
\protect

\setuppublicationlist [artauthor=\myinvertedshortauthor,
author=\myinvertedshortauthor, editor=\myinvertedshortauthor]


It works perfectly.

I'm looking forward to the new bibliography system, but on the other
hand, I'm glad I can stick with the old system for this project,
because everything else is already set up as needed.

Kind regards,
Joshua


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context-wvrSQK3plZs@public.gmane.org / 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
___________________________________________________________________________________


  reply	other threads:[~2014-06-30 19:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-30 13:08 Joshua Krämer
2014-06-30 14:24 ` Thomas A. Schmitz
2014-06-30 19:24   ` Joshua Krämer [this message]
2014-07-01  0:39   ` Hans Hagen
     [not found] <mailman.340.1404142408.2240.ntg-context@ntg.nl>
2014-06-30 17:36 ` Robert Blackstone
2014-06-30 19:34   ` Joshua Krämer

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=20140630212432.79cab509@medea1.site \
    --to=joshua.kraemer-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=ntg-context-wvrSQK3plZs@public.gmane.org \
    /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).