ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Tomáš V via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: "Tomáš V" <awinety@gmail.com>
Subject: Re:  Changing the style of author’s surname in a custom bibliographical style
Date: Wed, 15 Sep 2021 18:40:26 +0200	[thread overview]
Message-ID: <107244fb-e84b-0ba3-93d6-ff7965eedd82@gmail.com> (raw)
In-Reply-To: <06c38068-17d4-b119-cddd-781cbdebb442@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2171 bytes --]

I’ve found an answer to my first problem. The functions, that print out 
the names in the list, are defined in publ-imp-author.mkvi. I copied the 
responsible function to publ-imp-iso690.mkiv, edited one line (see code 
below) and everything works as intended.

Tomáš

% publ-imp-iso690.mkiv
\startbtxrenderingdefinitions[iso690]
\definebtx
      [iso690]
      [
          default=default,
          specification=iso690,
      ]
\definebtxrendering
      [iso690]
      [
          specification=iso690,
          numbering=yes,
      ]
\setupbtx[default:list]
      [
          authorconversion=inverted,
      ]
% field definitions
\starttexdefinition btx:iso690:author
      \btxdoif {author} {
          \btxflush{author}
          \btxperiod
      }
\stoptexdefinition
% book definition
\startsetups btx:iso690:list:book
      \texdefinition{btx:iso690:author}
      \removeunwantedspaces
\stopsetups

% surname to small caps in list
\startsetups \s!btx:\s!list:\s!author:inverted
     \fastsetup{\s!btx:\s!list:\s!author:concat}
     \ifx\currentbtxvons\empty \else
         \texdefinition{\s!btx:\s!cite:\s!author:\s!de}
         \doifnotmode {\s!btx:\s!de} {
             \currentbtxvons
             \btxparameter{\c!separator:vons}
         }
     \fi
     \ifx\currentbtxsurnames\empty \else
         \WORDS{\currentbtxsurnames}        % <-- changed line
         \ifx\currentbtxjuniors\empty \else
             \btxparameter{\c!separator:juniors}
             \currentbtxjuniors
         \fi
     \fi
     \ifx\currentbtxfirstnames\empty
         % firstnames are optional
     \else
         \btxparameter{\c!separator:invertedfirstnames}
         \currentbtxfirstnames
     \fi
     \ifx\currentbtxvons\empty \else
         \doifmode {\s!btx:\s!de} {
             \btxparameter{\c!separator:vons}
             \currentbtxvons
         }
     \fi
     \fastsetup{\s!btx:\s!list:\s!author:others}
\stopsetups

[-- Attachment #1.2: Type: text/html, Size: 3136 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-09-15 16:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-11 10:04 Tomáš V via ntg-context
2021-09-15 16:40 ` Tomáš V via ntg-context [this message]

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=107244fb-e84b-0ba3-93d6-ff7965eedd82@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=awinety@gmail.com \
    /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).