ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LMTX issue with multple question blocks
@ 2019-11-07 14:50 Jan Willem Flamma
  2019-11-07 16:06 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Willem Flamma @ 2019-11-07 14:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear list members,

The below MWE runs fine and generates a usable PDF.

If I uncomment the second question block and run the MWE on a OS X system it generates an unusable PDF and a nearly empty log file:

open source     > level 1, order 1, name 'cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 2019.11.7  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > files > jobname 'co-intro', input './co-intro', result 'co-intro'
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 2, order 3, name './co-intro.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
open source     > level 3, order 4, name 'knuth.tex'
close source    > level 3, order 4, name 'knuth.tex'

I cannot reproduce the problem on a Windows system. 

Can somebody on an OS X system check and confirm the issue?

Thanks,
Jan Willem Flamma

====

\defineblock[question]
\defineblock[answer]

\hideblocks[question]
\hideblocks[answer]

\defineenumeration[question]
\defineenumeration[answer]

\starttext

\input knuth

\beginquestion
\startquestion
Question text
\startitemize[a]
\item Answer A
\item Answer B
\item Answer C
\stopitemize
\stopquestion
\endquestion
\beginanswer
\startanswer
A
\stopanswer
\endanswer

%\beginquestion
%\startquestion
%Questions text
%\startitemize[a]
%\item Answer A
%\item Answer B
%\item Answer C
%\stopitemize
%\stopquestion
%\endquestion
%\beginanswer
%\startanswer
%A
%\stopanswer
%\endanswer

\useblocks[question]

\stoptext


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

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

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

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

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

* Re: LMTX issue with multple question blocks
  2019-11-07 14:50 LMTX issue with multple question blocks Jan Willem Flamma
@ 2019-11-07 16:06 ` Hans Hagen
  2019-11-07 16:36   ` Rik Kabel
  2019-11-07 19:08   ` Jan Willem Flamma
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2019-11-07 16:06 UTC (permalink / raw)
  To: Jan Willem Flamma, mailing list for ConTeXt users

On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:
> Dear list members,
> 
> The below MWE runs fine and generates a usable PDF.
> 
> If I uncomment the second question block and run the MWE on a OS X 
> system it generates an unusable PDF and a nearly empty log file:
> 
> open source     > level 1, order 1, name 'cont-yes.mkiv'
> system          >
> system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 
> 2019.11.7  int: english/english
> system          >
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name 
> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name 
> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> 
> system          > files > jobname 'co-intro', input './co-intro', result 
> 'co-intro'
> 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 2, order 3, name './co-intro.tex'
> fonts           > preloading latin modern fonts (second stage)
> fonts           > 'fallback modern-designsize rm 12pt' is loaded
> open source     > level 3, order 4, name 'knuth.tex'
> close source    > level 3, order 4, name 'knuth.tex'
> 
> I cannot reproduce the problem on a Windows system.
> 
> Can somebody on an OS X system check and confirm the issue?
What if you wipe the tuc file?

No message?

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LMTX issue with multple question blocks
  2019-11-07 16:06 ` Hans Hagen
@ 2019-11-07 16:36   ` Rik Kabel
  2019-11-07 17:19     ` Hans Hagen
  2019-11-07 19:08   ` Jan Willem Flamma
  1 sibling, 1 reply; 7+ messages in thread
From: Rik Kabel @ 2019-11-07 16:36 UTC (permalink / raw)
  To: ntg-context


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

On 11/7/2019 11:06, Hans Hagen wrote:
> On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:
>> Dear list members,
>>
>> The below MWE runs fine and generates a usable PDF.
>>
>> If I uncomment the second question block and run the MWE on a OS X 
>> system it generates an unusable PDF and a nearly empty log file:
>>
>> open source     > level 1, order 1, name 'cont-yes.mkiv'
>> system          >
>> system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 
>> 2019.11.7  int: english/english
>> system          >
>> system          > 'cont-new.mkiv' loaded
>> open source     > level 2, order 2, name 
>> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> system          > beware: some patches loaded from cont-new.mkiv
>> close source    > level 2, order 2, name 
>> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>>
>> system          > files > jobname 'co-intro', input './co-intro', 
>> result 'co-intro'
>> 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 2, order 3, name './co-intro.tex'
>> fonts           > preloading latin modern fonts (second stage)
>> fonts           > 'fallback modern-designsize rm 12pt' is loaded
>> open source     > level 3, order 4, name 'knuth.tex'
>> close source    > level 3, order 4, name 'knuth.tex'
>>
>> I cannot reproduce the problem on a Windows system.
>>
>> Can somebody on an OS X system check and confirm the issue?
> What if you wipe the tuc file?
>
> No message?
>
> Hans

I can confirm the same problem on a Win64 problem. I get the same log 
file (with 2019.10.29 15:09 for the version and my file/directory names).

There is a console message that is, perhaps, meaningful:

    This is LuaMetaTeX, Version 2.00.0
    runtime error : input file 'virtual://block.question.' is not found,
    quitting
    mtx-context     | fatal error: return code: 1

-- 
Rik


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

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

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

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

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

* Re: LMTX issue with multple question blocks
  2019-11-07 16:36   ` Rik Kabel
@ 2019-11-07 17:19     ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2019-11-07 17:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/7/2019 5:36 PM, Rik Kabel wrote:
> On 11/7/2019 11:06, Hans Hagen wrote:
>> On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:
>>> Dear list members,
>>>
>>> The below MWE runs fine and generates a usable PDF.
>>>
>>> If I uncomment the second question block and run the MWE on a OS X 
>>> system it generates an unusable PDF and a nearly empty log file:
>>>
>>> open source     > level 1, order 1, name 'cont-yes.mkiv'
>>> system          >
>>> system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 
>>> 2019.11.7  int: english/english
>>> system          >
>>> system          > 'cont-new.mkiv' loaded
>>> open source     > level 2, order 2, name 
>>> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>>> system          > beware: some patches loaded from cont-new.mkiv
>>> close source    > level 2, order 2, name 
>>> '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>>>
>>> system          > files > jobname 'co-intro', input './co-intro', 
>>> result 'co-intro'
>>> 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 2, order 3, name './co-intro.tex'
>>> fonts           > preloading latin modern fonts (second stage)
>>> fonts           > 'fallback modern-designsize rm 12pt' is loaded
>>> open source     > level 3, order 4, name 'knuth.tex'
>>> close source    > level 3, order 4, name 'knuth.tex'
>>>
>>> I cannot reproduce the problem on a Windows system.
>>>
>>> Can somebody on an OS X system check and confirm the issue?
>> What if you wipe the tuc file?
>>
>> No message?
>>
>> Hans
> 
> I can confirm the same problem on a Win64 problem. I get the same log 
> file (with 2019.10.29 15:09 for the version and my file/directory names).
> 
> There is a console message that is, perhaps, meaningful:
> 
>     This is LuaMetaTeX, Version 2.00.0
>     runtime error : input file 'virtual://block.question.' is not found,
>     quitting
>     mtx-context     | fatal error: return code: 1
in data-vir.lua

local filename = suffix and f_virtual_y(path,n,suffix) or 
f_virtual_n(path,n)

the last n should be suffix, so

local filename = suffix and f_virtual_y(path,n,suffix) or 
f_virtual_n(path,suffix)

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: LMTX issue with multple question blocks
  2019-11-07 16:06 ` Hans Hagen
  2019-11-07 16:36   ` Rik Kabel
@ 2019-11-07 19:08   ` Jan Willem Flamma
  2019-11-07 19:19     ` Wolfgang Schuster
  1 sibling, 1 reply; 7+ messages in thread
From: Jan Willem Flamma @ 2019-11-07 19:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Rik: thank you for testing and confirming.

Hans,

Wiping the tuc file (or others) does not solve the issue.
The data-vir.lua file already contains the proposed change. 

Jan Willem

> On 7 Nov 2019, at 17:06, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 11/7/2019 3:50 PM, Jan Willem Flamma wrote:
>> Dear list members,
>> The below MWE runs fine and generates a usable PDF.
>> If I uncomment the second question block and run the MWE on a OS X system it generates an unusable PDF and a nearly empty log file:
>> open source     > level 1, order 1, name 'cont-yes.mkiv'
>> system          >
>> system          > ConTeXt  ver: 2019.10.28 18:57 MKIV beta  fmt: 2019.11.7  int: english/english
>> system          >
>> system          > 'cont-new.mkiv' loaded
>> open source     > level 2, order 2, name '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> system          > beware: some patches loaded from cont-new.mkiv
>> close source    > level 2, order 2, name '/Users/JW/context/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
>> system          > files > jobname 'co-intro', input './co-intro', result 'co-intro'
>> 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 2, order 3, name './co-intro.tex'
>> fonts           > preloading latin modern fonts (second stage)
>> fonts           > 'fallback modern-designsize rm 12pt' is loaded
>> open source     > level 3, order 4, name 'knuth.tex'
>> close source    > level 3, order 4, name 'knuth.tex'
>> I cannot reproduce the problem on a Windows system.
>> Can somebody on an OS X system check and confirm the issue?
> What if you wipe the tuc file?
> 
> No message?
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | www.pragma-pod.nl <http://www.pragma-pod.nl/>
> -----------------------------------------------------------------


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

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

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

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

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

* Re: LMTX issue with multple question blocks
  2019-11-07 19:08   ` Jan Willem Flamma
@ 2019-11-07 19:19     ` Wolfgang Schuster
  2019-11-08  9:09       ` Jan Willem Flamma
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2019-11-07 19:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jan Willem Flamma


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

Jan Willem Flamma schrieb am 07.11.2019 um 20:08:
> Rik: thank you for testing and confirming.
>
> Hans,
>
> Wiping the tuc file (or others) does not solve the issue.
> The data-vir.lua file already contains the proposed change.
Change the line to

     local filename = suffix and f_virtual_y(path,n,suffix) or 
f_virtual_n(path,n)

and remake the format (context --make).

Wolfgang


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

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

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

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

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

* Re: LMTX issue with multple question blocks
  2019-11-07 19:19     ` Wolfgang Schuster
@ 2019-11-08  9:09       ` Jan Willem Flamma
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Willem Flamma @ 2019-11-08  9:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Thanks, this solves the issue.

Can I assume things like these are changed in the next beta?

> On 7 Nov 2019, at 20:19, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> 
> Jan Willem Flamma schrieb am 07.11.2019 um 20:08:
>> Rik: thank you for testing and confirming.
>> 
>> Hans,
>> 
>> Wiping the tuc file (or others) does not solve the issue.
>> The data-vir.lua file already contains the proposed change. 
> Change the line to
> 
>     local filename = suffix and f_virtual_y(path,n,suffix) or f_virtual_n(path,n)
> 
> and remake the format (context --make).
> 
> Wolfgang
> 

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

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

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

end of thread, other threads:[~2019-11-08  9:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 14:50 LMTX issue with multple question blocks Jan Willem Flamma
2019-11-07 16:06 ` Hans Hagen
2019-11-07 16:36   ` Rik Kabel
2019-11-07 17:19     ` Hans Hagen
2019-11-07 19:08   ` Jan Willem Flamma
2019-11-07 19:19     ` Wolfgang Schuster
2019-11-08  9:09       ` Jan Willem Flamma

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