ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \dontleavethemode
@ 2023-09-12  9:19 Ursula Hermann
  2023-09-12  9:48 ` [NTG-context] \dontleavethemode Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Ursula Hermann @ 2023-09-12  9:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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.

I get:
Command Line:   context.exe --synctex=-1 "pablo.tex"
Startup Folder: C:\Users\Hermann\Downloads\context-mswin\tex\texmf-context\tex\context\test\mkiv


resolvers       | formats | executing runner 'run luametatex format': luametatex --jobname="./pablo.tex" --socket --shell-escape --fmt=C:/Users/Hermann/Downloads/context-mswin/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=C:/Users/Hermann/Downloads/context-mswin/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui  --c:currentrun=1 --c:fulljobname="./pablo.tex" --c:input="./pablo.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="-1" --c:texmfbinpath="C:/Users/Hermann/Downloads/context-mswin/tex/texmf-mswin/bin"
system          >
system          > ConTeXt  ver: 2023.09.03 19:03 LMTX  fmt: 2023.9.4  int: english/english
system          >
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './pablo', input './pablo.tex', result './pablo'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source     > level 1, order 2, name './pablo.tex'
modules         > using user prefixed file 's-layout-show'
modules         > 's-layout-show' is loaded
open source     > level 2, order 3, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/modules/mkxl/s-layout-show.mkxl'
loading         > ConTeXt Page Macros / Runtime Macros
resolvers       > lua > loading file 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkiv/page-run.lua' succeeded
close source    > level 2, order 3, name 'C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/modules/mkxl/s-layout-show.mkxl'
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
pack quality    > underfull hbox at line 7 in file './pablo.tex':  (badness 1490)
pack quality    > underfull hbox at line 7 in file './pablo.tex': Me (badness 1448)
tex error       > tex error on line 7 in file ./pablo.tex: Undefined control sequence

<line 3.7>
    \margintext{\blackrule\\{Me}}\dontleavethemode
    \blackrule

1     \setuppapersize[A8,landscape]
2     \setuplayout[leftmargin=2.5cm,
3                  leftmargindistance=0.5cm,
4                  backspace=2.9cm,
5                  width=4cm]
6     \showframe
7 >>  \margintext{\blackrule\\{Me}}\dontleavethemode\blackrule
8     margintext{\blackrule[color=black, height=0.05ex, width=1cm]\\Me}\blackrule[color=black, height=0.05ex, width=4cm]
9     \starttext
10     \startformula
11     a^n + b^n = c^n.
12     \stopformula
13     \stoptext
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


_____________________________________________________________________

ConTeXt Compilation Report (Pages: 0)

Errors: 0   Warnings: 0   Bad Boxes: 0

Thanks
Uschi



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

[-- Attachment #2: blackrule1.pdf --]
[-- Type: application/pdf, Size: 9189 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [NTG-context] Re: \dontleavethemode
  2023-09-12  9:19 [NTG-context] \dontleavethemode Ursula Hermann
@ 2023-09-12  9:48 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2023-09-12  9:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Ursula Hermann


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-12  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12  9:19 [NTG-context] \dontleavethemode Ursula Hermann
2023-09-12  9:48 ` [NTG-context] \dontleavethemode Wolfgang Schuster

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).