From: Bruce Horrocks <ntg@scorecrow.com>
To: ntg-context mailing list <ntg-context@ntg.nl>
Subject: [NTG-context] Re: It works after a few changes but ..
Date: Tue, 21 Nov 2023 23:19:34 +0000 [thread overview]
Message-ID: <F0641B0D-3A52-499D-9C88-59598E6FA5B1@scorecrow.com> (raw)
In-Reply-To: <843340a4996a47ea9b26831c7ab067ff@univie.ac.at>
> On 20 Nov 2023, at 08:54, Ursula Hermann <ursula.hermann@univie.ac.at> wrote:
>
> Dear Bruce,
>
> Yes, I need also margintext.
What do you want to appear in the margin: the theorem number or the section number of the current section?
In other words, what should replace the "hard coded" 2.1.1 that you have in your example?
>
>
>> On 17 Nov 2023, at 14:06, Ursula Hermann <ursula.hermann@univie.ac.at> wrote:
>>
>> \margintext{2.1.1}{\starttheorem {The square on the hypotenuse is
>> equal to the sum of the squares on the other two sides. Ach is das
>> schön, dass du da bist} \stoptheorem
>
> The spurious parentheses seem to be a side-effect of having unmatched curly brackets in the bit that I have quoted.
>
> The following eliminates them:
>
> \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm]
> \margintext{\blackrule[color=black, height=0.25ex, width=1cm]\\}\blackrule[color=black, height=0.25ex, width=7cm] \setupenumerations [ before={\blank[big]},
> after={\blank[big]},
> location=serried,
> width=broad,
> distance=0.5em,
> headstyle=bold,
> titlestyle=normal,
> way=bytext,
> conversion=numbers]
> \defineenumeration
> [theorem]
> [ text=Theorem,
> title=yes,
> style=italic,
> list=all,
> listtext={Theorem }]
> \starttext
> \margintext{2.1.1}{\starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schön, dass du da bist \stoptheorem } \stoptext
>
> I see also in this thread that you have sad "yes" to Aditya's suggestion. But that doesn't have the margintext. Do you still want/need margintext?
—
Bruce Horrocks
Hampshire, UK
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2023-11-21 23:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-17 14:06 [NTG-context] " Ursula Hermann
2023-11-17 14:47 ` [NTG-context] " Aditya Mahajan
2023-11-17 16:11 ` Ursula Hermann
2023-11-18 14:47 ` Bruce Horrocks
2023-11-20 8:54 ` Ursula Hermann
2023-11-21 23:19 ` Bruce Horrocks [this message]
2023-11-23 9:25 ` Ursula Hermann
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=F0641B0D-3A52-499D-9C88-59598E6FA5B1@scorecrow.com \
--to=ntg@scorecrow.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).