From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104316 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Starostin Newsgroups: gmane.comp.tex.context Subject: Modifying the place of the year in APA. Date: Thu, 16 May 2019 22:30:46 +0300 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6481842508394473282==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34777"; mail-complaints-to="usenet@blaine.gmane.org" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu May 16 21:31:26 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hRM69-0008uv-Fm for gctc-ntg-context-518@m.gmane.org; Thu, 16 May 2019 21:31:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EF70F1395F7; Thu, 16 May 2019 21:31:05 +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 VfkJ6I6hXPD4; Thu, 16 May 2019 21:31:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15554139745; Thu, 16 May 2019 21:31:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A5BC139745 for ; Thu, 16 May 2019 21:31:03 +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 xQOrHYeD2STb for ; Thu, 16 May 2019 21:30:58 +0200 (CEST) Original-Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D17031395F7 for ; Thu, 16 May 2019 21:30:58 +0200 (CEST) Original-Received: by mail-wm1-f48.google.com with SMTP id c77so3278319wmd.1 for ; Thu, 16 May 2019 12:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MEJW8V4q1mDlred0mWFyI/fZidL/GEG0eJNDtllztDQ=; b=SelTbPJfHXZA6HrTAiLF9zYtoVEhmEtnzWpKXarNpGEWwVSF7tMYC0jBAJJCij4kmX rc2HcUC6LfAc+2kshf1QvnF0NKu3QUxbDwlqCTR9/nBWud4fWejl0TnodFctCluIYJuJ JuGgZfflEIhejYIbpkJ5LZNzSPBDrVbhgOHoV4VOW2h2txTh5N/Ras6MPanvfhW/GHhK HhxDPyJ3qf4cUN8Tu4dCPW2PLfd9R5V/7Q7OB/x1LV9s9VG5rG1IBOB/EOoQkRq5OzyC ETUCej9yE4XusSerMDCdSEMLIAxPLwQ8pEH/PfwpCfUophyAZF1ceinngHA/sFFmeBvK choQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MEJW8V4q1mDlred0mWFyI/fZidL/GEG0eJNDtllztDQ=; b=Tk+2k8IaeGy+38kVDN+S3R6XFsMig8rb7mcJaJ+RlCBzyvr42Q8hChSfweffYZd5DK ApJ6KObDBdBEeD55NUOJ/XJFgZEZV/0AOjw50Hn1RDkaBZQVZeIJMMXDlnVIZzLE8oWA 8inL6kWq3nutuyjgiD5Thb43XST6+KZHm3iKdXRYGmE9rUl8uwU0oUTyUG22w6nWW7zi B0GvASoGPzj3yiGT/3iy1kiYQbwCCmmtPTooXKtP85V7/O1PxfJ4nfRqdAkV5gIgB/0e IzBKHHWQ5ivvxhvreVqaK12KhNTta0UiylIInwSUFS6N8P5YroMQu7K5RzEgQWgirRZ1 fBtg== X-Gm-Message-State: APjAAAUUu+HO/xE5/yG4kF4ATTIZn8CWkND6HPw6t17j0E4vrGLTa9Tt gop7RYzKJR3cyqgUQ2zGuvZXYRNNmSa45gmulDZCCcEI X-Google-Smtp-Source: APXvYqzXVP47n0yiiR1+BhlHVkjEgHq2DznUqlLaWqVvvOtSNbogkz4e6WJYWaNDtD/wawQhYwvkj3htVnLEzTHzHEI= X-Received: by 2002:a7b:cb81:: with SMTP id m1mr30304832wmi.9.1558035058300; Thu, 16 May 2019 12:30:58 -0700 (PDT) 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.org gmane.comp.tex.context:104316 Archived-At: --===============6481842508394473282== Content-Type: multipart/alternative; boundary="000000000000329cf00589064ebd" --000000000000329cf00589064ebd Content-Type: text/plain; charset="UTF-8" In the publ-imp-apa.mkvi (is it already VI?) I found the key line which I would like to modify: \startsetups btx:apa:list:book \texdefinition{btx:apa:authoryear} \texdefinition{btx:apa:title-if-not-placed} ... \stopsetups This, as I understand, determines the order in which the items are listed. I need to: 1. place the year in the end 2. remove parentheses. Do I start with btx:apa:authoryear and redefine it? Do I use \texdefinition{btx:apa:suffixedyear} separately? and: in the following, where is the parenthesis? \starttexdefinition unexpanded btx:apa:suffixedyear \btxdoifelse {year} { \btxflush{year} \btxflushsuffix \btxdoif {month} { % month and day optional in publ-imp-apa.lua \btxcomma \btxflush{month} \btxdoif {day} { \btxspace \btxflush{day} } } } --000000000000329cf00589064ebd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In the publ-imp-apa.mkvi (is it already VI?) I found the key line= which I would like to modify:

\startsetups btx:apa= :list:book
=C2=A0 =C2=A0 \texdefinition{btx:apa:authoryear}
=
=C2=A0 =C2=A0 \texdefinition{btx:apa:title-if-not-placed}
..= .
\stopsetups

This, as I understand, det= ermines the order in which the items are listed. I need to: 1. place the ye= ar in the end 2. remove parentheses.=C2=A0

Do I st= art with=C2=A0btx:apa:authoryear and redefine it?

= Do I use=C2=A0\texdefinition{btx:apa:suffixedyear} separately?

and:

in the following, where is t= he parenthesis?

\starttexdefinition unexpande= d btx:apa:suffixedyear
=C2=A0 =C2=A0 \btxdoifelse {year} {
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 \btxflush{year}
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 \btxflushsuffix
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \btxdoif {= month} { % month and day optional in publ-imp-apa.lua
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \btxcomma
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 \btxflush{month}
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 \btxdoif {day} {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 \btxspace
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 \btxflush{day}
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }
= =C2=A0 =C2=A0 }=C2=A0

--000000000000329cf00589064ebd-- --===============6481842508394473282== 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== --===============6481842508394473282==--