ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Ursula Hermann <ursula.hermann@univie.ac.at>
Subject: [NTG-context] Re: \dontleavethemode
Date: Tue, 12 Sep 2023 11:48:25 +0200	[thread overview]
Message-ID: <c4014b70-c850-e0ee-17f5-fab56322359e@gmail.com> (raw)
In-Reply-To: <3f1f8c9e9ac64397826f21f0608a5dfc@univie.ac.at>


[-- Attachment #1.1: Type: text/plain, Size: 1327 bytes --]

Ursula Hermann schrieb am 12.09.2023 um 11:19:
>
> Dear List,
>
> I have done an little example with a \blackrule:
>
> \setuppapersize[A8,landscape]
>
> \setuplayout[leftmargin=2.5cm,
>
> leftmargindistance=0.2cm,
>
> backspace=2.9cm,
>
> width=4cm]
>
> \starttext
>
> \margintext{\blackrule[color=black, height=0.05ex, 
> width=1cm]\\Me}\blackrule[color=black, height=0.05ex, width=4cm]
>
> \startformula
>
> a^n + b^n = c^n.
>
> \stopformula
>
> \stoptext
>
> My Question is , where to put margintext, with \dontleavethemode, with 
> blackrule, because if I put it after \starttext:
>
> \margintext{\blackrule\\{Me}}\dontleavehmode\blackrule
>
> Before :
>
> \margintext{\blackrule[color=black, height=0.05ex, 
> width=1cm]\\Me}\blackrule[color=black, height=0.05ex, width=4cm] there 
> is no pdf after compiling.
>
> [...]
>
> <line 3.7>
>
>     \margintext{\blackrule\\{Me}}\dontleavethemode
>
> \blackrule
>
> [...]
>
> The control sequence at the end of the top line of your error message 
> was never
>
> \def'ed. You can just continue as I'll forget about whatever was 
> undefined.
>
> mtx-context | fatal error: return code: 1
>

You get a error message because you have a spelling error in the name of 
the \dontleavehmode command.

You wrote "dontleave*the*mode" but the correct name "dontleave*h*mode".

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 5942 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2023-09-12  9:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12  9:19 [NTG-context] \dontleavethemode Ursula Hermann
2023-09-12  9:48 ` Wolfgang Schuster [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=c4014b70-c850-e0ee-17f5-fab56322359e@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=ursula.hermann@univie.ac.at \
    /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).