ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] "Missing number, case 7, treated as zero" error message.
@ 2024-11-28 21:44 Jeong Dal via ntg-context
  2024-11-28 22:20 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal via ntg-context @ 2024-11-28 21:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeong Dal


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

Dear lister,

I have an error which I can not locate.
Please help me what is wrong in the following example.

Thanks for reading.

Regards,

Dalyoung

\useMPlibrary[dum]
\starttext
\startplacefigure[location=,reference=fig:gateNOT,title=]
  \startcombination[nx=2,ny=1]  
  {externalfigure[dummy][width=.25\textwidth]}{a}
  {externalfigure[dummy][width=.25\textwidth]}{b}
  \stopcombination
\stopplacefigure

\stoptext

Log file:

metapost        > library 'dum' is loaded
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern rm 12pt' is loaded
tex error       > tex error on line 5 in file /Users/graph/Library/Mobile Documents/com~apple~CloudDocs/Documents/test.tex: Missing number, case 7, treated as zero

<to be read again> 
    
    ]
<line 3.5> 
        {externalfigure[dummy][width=.25\textwidth]
    }{a}

 1     \useMPlibrary[dum]
 2     \starttext
 3     \startplacefigure[location=,reference=fig:gateNOT,title=]
 4      \startcombination[nx=2,ny=1]
 5 >>   {externalfigure[dummy][width=.25\textwidth]}{a}
 6      {externalfigure[dummy][width=.25\textwidth]}{b}
 7      \stopcombination
 8     \stopplacefigure


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

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

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

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

* [NTG-context] Re: "Missing number, case 7, treated as zero" error message.
  2024-11-28 21:44 [NTG-context] "Missing number, case 7, treated as zero" error message Jeong Dal via ntg-context
@ 2024-11-28 22:20 ` Wolfgang Schuster
  2024-11-28 22:30   ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2024-11-28 22:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jeong Dal via ntg-context


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

Jeong Dal via ntg-context schrieb am 28.11.2024 um 22:44:
> Dear lister,
>
> I have an error which I can not locate.
> Please help me what is wrong in the following example.
>
> Thanks for reading.
>
> Regards,
>
> Dalyoung
>
> \useMPlibrary[dum]
> \starttext
> \startplacefigure[location=,reference=fig:gateNOT,title=]
> \startcombination[nx=2,ny=1]
> {externalfigure[dummy][width=.25\textwidth]}{a}
> {externalfigure[dummy][width=.25\textwidth]}{b}

You're missing the backslash in front of \externalfigure.

Wolfgang


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

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

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

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

* [NTG-context] Re: "Missing number, case 7, treated as zero" error message.
  2024-11-28 22:20 ` [NTG-context] " Wolfgang Schuster
@ 2024-11-28 22:30   ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2024-11-28 22:30 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 11/28/2024 11:20 PM, Wolfgang Schuster wrote:
> Jeong Dal via ntg-context schrieb am 28.11.2024 um 22:44:
>> Dear lister,
>>
>> I have an error which I can not locate.
>> Please help me what is wrong in the following example.
>>
>> Thanks for reading.
>>
>> Regards,
>>
>> Dalyoung
>>
>> \useMPlibrary[dum]
>> \starttext
>> \startplacefigure[location=,reference=fig:gateNOT,title=]
>> \startcombination[nx=2,ny=1]
>> {externalfigure[dummy][width=.25\textwidth]}{a}
>> {externalfigure[dummy][width=.25\textwidth]}{b}
> 
> You're missing the backslash in front of \externalfigure.

in addition to WS's fix:

as a bonus, one can also say:

     {\externalfigure[dummy][width=.25tw]}{a}
     {\externalfigure[dummy][width=.25tw]}{b}

in which case you'd see the error

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2024-11-28 22:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-28 21:44 [NTG-context] "Missing number, case 7, treated as zero" error message Jeong Dal via ntg-context
2024-11-28 22:20 ` [NTG-context] " Wolfgang Schuster
2024-11-28 22:30   ` Hans Hagen 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).