From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112626 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joey McCollum via ntg-context Newsgroups: gmane.comp.tex.context Subject: Different authorconversion for citation alternatives and bibliographic entries Date: Fri, 27 Aug 2021 21:11:09 -0400 Message-ID: <68E2F79C-FEF3-4941-9850-976CA732D7B9@hxcore.ol> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0224160066553569543==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16364"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joey McCollum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 28 03:21:00 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJn1o-00041m-H4 for gctc-ntg-context-518@m.gmane-mx.org; Sat, 28 Aug 2021 03:21:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F0B1C286D6A; Sat, 28 Aug 2021 03:20:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MwoqfX5YAcI6; Sat, 28 Aug 2021 03:20:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3960D286DB6; Sat, 28 Aug 2021 03:20:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8DCF0286DB5 for ; Sat, 28 Aug 2021 03:20:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58mrAHJVivsm for ; Sat, 28 Aug 2021 03:20:22 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.44; helo=mail-qv1-f44.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 721F8286D6A for ; Sat, 28 Aug 2021 03:20:22 +0200 (CEST) Original-Received: by mail-qv1-f44.google.com with SMTP id s16so3216912qvt.13 for ; Fri, 27 Aug 2021 18:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:date:from:subject:thread-topic:message-id:to:cc :content-transfer-encoding; bh=njQvZxTEBCiz0wGtNlnEb/pOVnfJTWoYusqxsACDNns=; b=neFsLDvw5EKssmR7Qo6JYARR+qrNLjdZJhHmyWA1laH32UJR4LwJe8VmN2j+h+NH4l bxIBLzR/U1qXPFPLouBPxQENDx0eF1qoiQYxTZriuh8CfyfjS4XSqASA1+dIfAf1D0LS iv2quCjoEyhchaca8jxpUwcYbNKVLNiBgh78tGoG7opS5Wzhe6QwkIDo13ZuGDjGkeFd P+P8ma9pwWNXmv7C15FDVEZPEkUYMSKHebdWqgo7zKVZ6u14gTqFexpHSGSxzO3beVXa 3DiStoyVTSqPLvd9e6sxDznsZVrxHySWMMSZd0Or1/M3qFyEa0PhJ/9NaVztAEVBLaj4 Fq5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:from:subject:thread-topic :message-id:to:cc:content-transfer-encoding; bh=njQvZxTEBCiz0wGtNlnEb/pOVnfJTWoYusqxsACDNns=; b=L5JtZyRAfFSO84+PjSjZ8VMXzLiUO0pTdppDmn979XTvxT6TF7LQfepfetwcZutuop ieHbn7D7jbxLeWpWjSBmeqo4XdQZGlE/daQtlY460N3gJzS6pmDdb+vmHGrsT8rUdJcT Zo23UXEA1kZfbsMvfuPt74rVlU7HXSOQv1DcWDS2MGZgnuJ3TbkYEmwH6WGYdzcIqZbk KOiGvMqwTTpAqNCZC347uX5qrOz+tfJZ6JiOamu5Zsoef/ZqO9XU4x4xDMf65EAp+nrG Ja3qPomUWXP4zYjd8CN8rtKNM0T0HCt4TNH36HGynlnVj2kvyXxR/R2veaNvryNYQqBQ qfDA== X-Gm-Message-State: AOAM531DvAiHowHdMVoetUNgqkZ82kHg89mjK9Vzd6cy3x10YQlBRD8L AFDF8SJQjDvI3f9QBeAFL0W5vOQwALI= X-Google-Smtp-Source: ABdhPJzfRMF8qfG/P8VPfDzRYd+m+QAZHwUSD9tNBGYQ80IL9dV/DDqd1oPOtSNz4nVF2Rpg38Nkew== X-Received: by 2002:ad4:5804:: with SMTP id dd4mr12416135qvb.18.1630113620426; Fri, 27 Aug 2021 18:20:20 -0700 (PDT) Original-Received: from HUME-15KJMX1 ([2600:8806:a300:1550:e1ba:c6be:dc4d:59c8]) by smtp.gmail.com with ESMTPSA id b19sm6093564qkc.7.2021.08.27.18.20.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Aug 2021 18:20:20 -0700 (PDT) Thread-Topic: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112626 Archived-At: --===============0224160066553569543== Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

I dea= lt with this issue at length in a separate thread (=E2=80=9CDifferent autho= r rendering in entry citation vs. list=E2=80=9D) a couple months after you = asked about this, so for the benefit of anyone who has been following this = thread specifically, I=E2=80=99ll describe the solution I found here.

 

There are (at = least) a few commands defined in publ-imp-ini.mkiv that can help conditiona= lly render author fields according to cite parameters rather than list para= meters. The first, \btxflushauthornormal{author} (where author can be repla= ced by another name-type field, if I understand correctly), will flush the = specified field according to the =E2=80=9Cnormal=E2=80=9D authorconversion.= There are similar commands for \btxflushauthorname, \btxflushauthornormals= hort, \btxflushauthorinverted, and \btxflushauthorinvertedshort, if you nee= d a different conversion.

If you also want to use other cite-specifi= c name-rendering parameters, like etallimit, etaldisplay, and etaloption, t= hen the \currentbtxciteauthorbyfield (which does not accept an argument and= will only render the author field or any field in the author set) will do = this.

 

To = handle citation alternative-dependent formatting, you can use the \currentb= txcitealternative as follows:

```
\doifelse {\currentbtxcitealter= native} {entry} {

=C2=A0=C2=A0=C2=A0 % Normal short= conversion for entry citations

=C2=A0=C2=A0=C2=A0 = \btxflushauthornormalshort{author}

} {

=C2=A0=C2=A0=C2=A0 % Normal conversion for list citations

<= p class=3DMsoNormal>=C2=A0=C2=A0=C2=A0 \btxflushauthornormal{author}

}
```

Joey

= --===============0224160066553569543== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0224160066553569543==--