ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Description together with itemize, luametatex
@ 2023-03-06  8:43 Gerion Entrup via ntg-context
  2023-03-06 13:34 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Gerion Entrup via ntg-context @ 2023-03-06  8:43 UTC (permalink / raw)
  To: ntg-context; +Cc: Gerion Entrup


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

Hi,

I'm trying to use a description environment in conjunction with an
itemize with the latest luametatex. Is this supposed to work?

Here is an MWE:
```
\definedescription[desc][headstyle=bold]

\starttext
Foo

\desc{Some title} Some text
	\startitemize
		\item Some item
	\stopitemize

\stoptext
```

This currently fails with:
```
resolvers       | formats | executing runner 'run luametatex format': /home/gerion/context/tex/texmf-linux-64/bin/luametatex --jobname="./test.tex" --fmt=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/home/gerion/context/tex/texmf-linux-64/bin"
system          >
system          > ConTeXt  ver: 2023.02.23 21:26 LMTX  fmt: 2023.3.4  int: english/english
system          >
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/home/gerion/context/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 '/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './test', input './test.tex', result './test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './test.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern rm 12pt' is loaded
lua error       > lua error on line 8 in file ./test.tex:

registered function call [809]: ...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: attempt to index a nil value (local 'd')
stack traceback:
	...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: in function <...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:442>
	(...tail calls...)
 1     \definedescription[desc][headstyle=bold]
 2
 3     \starttext
 4     Foo
 5
 6     \desc{Some title} Some text
 7     	\startitemize
 8 >>  		\item Some item
 9     	\stopitemize
10
11     \stoptext
12
mtx-context     | fatal error: return code: 1
```

Best,
Gerion

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 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] 3+ messages in thread

* Re: Description together with itemize, luametatex
  2023-03-06  8:43 Description together with itemize, luametatex Gerion Entrup via ntg-context
@ 2023-03-06 13:34 ` Aditya Mahajan via ntg-context
  2023-03-06 14:19   ` Gerion Entrup via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan via ntg-context @ 2023-03-06 13:34 UTC (permalink / raw)
  To: Gerion Entrup via ntg-context; +Cc: Aditya Mahajan

On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote:

> Hi,
> 
> I'm trying to use a description environment in conjunction with an
> itemize with the latest luametatex. Is this supposed to work?
> 
> Here is an MWE:
> ```
> \definedescription[desc][headstyle=bold]
> 
> \starttext
> Foo
> 
> \desc{Some title} Some text
> 	\startitemize
> 		\item Some item
> 	\stopitemize
> 
> \stoptext

Use \startdesc ... \stopdesc

\definedescription[desc][headstyle=bold]

\starttext
Foo

\startdesc[title={Some title}]
  Some text
        \startitemize
                \item Some item
        \stopitemize
\stopdesc

\stoptext

___________________________________________________________________________________
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] 3+ messages in thread

* Re: Description together with itemize, luametatex
  2023-03-06 13:34 ` Aditya Mahajan via ntg-context
@ 2023-03-06 14:19   ` Gerion Entrup via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Gerion Entrup via ntg-context @ 2023-03-06 14:19 UTC (permalink / raw)
  To: Aditya Mahajan via ntg-context; +Cc: Gerion Entrup


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

Am Montag, 6. März 2023, 14:34:28 CET schrieb Aditya Mahajan via ntg-context:
> On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote:
> 
> > Hi,
> > 
> > I'm trying to use a description environment in conjunction with an
> > itemize with the latest luametatex. Is this supposed to work?
> > 
> > Here is an MWE:
> > ```
> > \definedescription[desc][headstyle=bold]
> > 
> > \starttext
> > Foo
> > 
> > \desc{Some title} Some text
> > 	\startitemize
> > 		\item Some item
> > 	\stopitemize
> > 
> > \stoptext
> 
> Use \startdesc ... \stopdesc
> 
> \definedescription[desc][headstyle=bold]
> 
> \starttext
> Foo
> 
> \startdesc[title={Some title}]
>   Some text
>         \startitemize
>                 \item Some item
>         \stopitemize
> \stopdesc
> 
> \stoptext

That worked. Thank you!

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 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] 3+ messages in thread

end of thread, other threads:[~2023-03-06 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-06  8:43 Description together with itemize, luametatex Gerion Entrup via ntg-context
2023-03-06 13:34 ` Aditya Mahajan via ntg-context
2023-03-06 14:19   ` Gerion Entrup via ntg-context

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