From: jbf via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: jbf <roma83537@gmail.com>
Subject: a cross-reference query
Date: Tue, 10 May 2022 12:03:43 +1000 [thread overview]
Message-ID: <459a07bf-e2d9-d176-ed0b-7e3231ccec44@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2436 bytes --]
Hi list,
In an attempt to make a dictionary interactive in certain ways, perhaps
I am misusing the \in{}[] command here, but sometimes a reference works
and sometimes it doesn't. I have no idea why it doesn't. Here is the
situation:
Each dictionary entry is a section that has been defined as 'entry',
hence we have a \startentry[title=,marking=,reference=]...\stopentry
structure. Many entries can refer to other entries in the dictionary (in
most cases the headword is in Italian, but the definitions, explanations
are in English in all cases). in 90% of cases my referencing is working,
so here is an example of one that works when
\setupinteraction[state=start] is set:
\startentry[title={1aetà},marking={1aetà},reference={eta}]\\
1. youth. 2. first age. {\emnp.} \bullet\enspaceThe age between
adolescence and maturity and by extension all of the human being’sfirst
age (as opposed to old age).
Different cultures distinguish} age groupings in different ways. One
would be unlikely to find, in English, terms like first age, second age
etc. as recorded here. In fact there are probably only three general
groupings in English: young, middle-aged, elderly, and the boundaries
are rather flexible for these. Among the young category, English might
distinguish infants, children, adolescents young adults.
\rightarrow\enspace \in{giovani}[giovani]
\stopentry
In other words, there is an entry called 'giovani' and it begins
\startentry[title={giovani},marking={giovani},reference={giovani}]. That
correctly gives me a bold green clickable link which takes me to
'giovani'. There is no number or page reference involved. I simply want
the link to take me to the entry concerned.
But it does not always work. I have another entry called 'ad nutum'
(Latin, not Italian in this case) with a reference to 'segretario' many
pages on. I am absolutely sure I have the reference for segretario
properly set up, both in its own entry and by calling it as I did for
'giovani', namely this time as \in{segretario}[segretario] but it is not
recognized. This is not the only non-working case. There are several.
Can anyone give me a hint as to what I might be doing wrong? I realise
that usually these references call on page numbers or section numbers,
but I don't want/need (or do I?) to use those. I simply the reader to be
able to click on a hyperlink which takes them to the referenced entry.
Julian
[-- Attachment #1.2: Type: text/html, Size: 4702 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
___________________________________________________________________________________
next reply other threads:[~2022-05-10 2:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 2:03 jbf via ntg-context [this message]
2022-05-10 6:47 ` Henning Hraban Ramm via ntg-context
2022-05-10 7:10 ` jbf via ntg-context
2022-05-10 7:07 ` Taco Hoekwater via ntg-context
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=459a07bf-e2d9-d176-ed0b-7e3231ccec44@gmail.com \
--to=ntg-context@ntg.nl \
--cc=roma83537@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).