ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
To: ntg-context@ntg.nl
Subject: placelistofsynonyms without tabulate
Date: Mon, 30 Mar 2020 17:14:06 +0200	[thread overview]
Message-ID: <F59BA65E-2989-47DF-AA7A-7173813A493C@gmail.com> (raw)
In-Reply-To: <mailman.1789.1585575277.1332.ntg-context@ntg.nl>

Following Aditya’s recommendation on making a glossary with ConTeXt (https://tex.stackexchange.com/questions/152248/make-a-glossary-with-context) and have looked through several older and newer manuals under “abbreviations” and into the source. 

However, I cannot figure out if there is a simple way to define my own command to achieve the following:

\definesynonyms[glossary][glossaries][\fullgloss]%[#4]
% I wonder also what #4 is supposed to do?
\setupsynonyms[glossary][headstyle=bold]

\glossary[US]{United States}{The US is a country in the Americas.}
\glossary[UK]{United Kingdom}{The UK is a country in Europe.}

% CURRENT RESULT (guessing from what I understand from the source this is converted internally to):

\placelistofglossaries

\starttabulate[|||]
\NC {\bf United Kingdom} \NC The UK is a country in Europe. \NC \NR
\NC {\bf United States} \NC The US is a country in the Americas. \NC \NR
\stoptabulate

% DESIRED RESULT

\unexpanded\def\myglossary#1#2#3{{\bf #1}#2} % or similar

\placelistofglossaries[command=\myglossary]

{\bf United Kingdom.} The UK is a country in Europe. Nice would be even if 
            this could be indented at some point, but tastes may vary on 
            indention for sure.

{\bf United States.} The US is a country in the Americas.

% or using itemize etc.

I am aware that \placelistofsynonyms has a command=... option, but it doesn’t do anything for me. Also, the location=inmarigin option (which I suppose could be used to tweak the desired result in a way) stopped working in MKIV (?) and I can see in the source that it has a “fixed” assignment to location=left.

Any hints very welcome. :)
___________________________________________________________________________________
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:[~2020-03-30 15:14 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.1789.1585575277.1332.ntg-context@ntg.nl>]

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=F59BA65E-2989-47DF-AA7A-7173813A493C@gmail.com \
    --to=benjamin.buchmuller@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).