ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau <braslau.list@comcast.net>
To: Dmitry Starostin <starostin.dmitry@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Creating one's own style
Date: Sat, 18 May 2019 14:37:15 -0600	[thread overview]
Message-ID: <20190518143715.396214a7@comcast.net> (raw)
In-Reply-To: <CAEXD3vYGkXeNcOSfxs1--45Rzi=XXPTYD3SZC=1C5g_7AoJc4Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

On Sat, 18 May 2019 09:16:24 +0300
Dmitry Starostin <starostin.dmitry@gmail.com> wrote:

> Thank you for the instructions on how to make one's own style.
> 
> I only need to change the formatting in the bibliography list, the
> formatting of the notes in the text is entirely up to the requirement.
> 
> A strange effect (full MWE in attachment):

Corrected MWE attached.


--
Alan

[-- Attachment #2: Context_bib.pdf --]
[-- Type: application/pdf, Size: 8098 bytes --]

[-- Attachment #3: Context_bib.tex --]
[-- Type: text/x-tex, Size: 1358 bytes --]

%\enabletrackers[publications.setups]

\setuplanguage[ru]
\setupbodyfont[dejavu]
\mainlanguage[russian]
\setupindenting[big,yes]
\setbreakpoints[compound]

\startbuffer[bib]

@Book{Declercq:2000,
  author      = {Declercq, Georges},
  title       = {Anno Domini: The origins of the Christian era},
  address     = {Turnhout},
  publisher   = {Brill},
  year        = {2000},
  shorttitle  = {Anno Domini}, % ignored
  shorthand   = {Declercq},    % ignored
  language    = {english},
  hyphenation = {english},     % ignored
  pagetotal   = {206},         % ignored
  pages       = {206},
}

\stopbuffer

\usebtxdataset[bib.buffer]
\usebtxdefinitions[apa]

\setupbtx[apa:cite:authoryear][left={[},right={]}]

\startsetups btx:apa:list:book
  \btxdoif {author} {
      \btxflush{author}
      \btxcomma
  }
  \btxdoifelse {title}
      {\btxflush{title}\btxperiod}
      {No Title}
  \btxdoif {address}
      {\btxspace\emdash\btxspace\btxflush{address}\btxcomma}
  \btxdoif {publisher}
      {\btxspace\btxflush{publisher}\btxcomma}
  \btxdoif {year}
      {\btxspace \btxflush{year} \btxperiod}
  \removeunwantedspaces
\stopsetups

\starttext

\startbodymatter

Test.\cite[Declercq:2000]

\stopbodymatter

\startbackmatter
\startchapter[title=Bibliography]
\placelistofpublications[criterium=all,sorttype=authoryear]
\stopchapter
\stopbackmatter

\stoptext

[-- Attachment #4: 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:[~2019-05-18 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-18  6:16 Dmitry Starostin
2019-05-18 20:37 ` Alan Braslau [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=20190518143715.396214a7@comcast.net \
    --to=braslau.list@comcast.net \
    --cc=ntg-context@ntg.nl \
    --cc=starostin.dmitry@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).