Re: [NTG-context] copies from \setupinteractionscreen not working?

2021-08-05 Thread Pablo Rodriguez via ntg-context
On 8/4/21 8:52 PM, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 04.08.2021 um 15:53:
>> [...]
>> I’m afraid that "copies" isn’t generating the proper /NumCopies entry in
>> the /ViewerPreferences dictionary.
>>
>> Could anyone be so kind to confirm this?
>
> A fix is needed in layo-ini.lmt, maybe not in the same way as below but
> the value has to be stored in canvas.copies.
> [...]

Many thanks for your help, Wolfgang.

Pablo
--
http://www.ousia.tk
___
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
___


Re: [NTG-context] issue with footnote in TOC

2021-08-05 Thread Pablo Rodriguez via ntg-context
On 8/5/21 11:58 PM, Hans Hagen via ntg-context wrote:
> On 8/5/2021 4:34 PM, Pablo Rodriguez via ntg-context wrote:
>> \starttext
>>\completecontent
>>\chapter{Chapter Title\footnote{With footnote}}
>>\stoptext
>
> fixed in next beta (different escaping)

Many thanks for the fast fix and the new latest.

Pablo
--
http://www.ousia.tk
___
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
___


Re: [NTG-context] New error "page order problem in tree at page"

2021-08-05 Thread Rik Kabel via ntg-context


On 8/5/2021 18:04, Hans Hagen wrote:

On 8/4/2021 9:26 PM, Rik Kabel via ntg-context wrote:

With today's LMTX release I see the warning:

    backend > tags > beware: page order problem in tree at 
page 1


This appears to be recently introduced to the code.

Should it be a concern? If so, where should I look to remedy it?


mwe ...


Here it is:

   \setuptagging [state=start]
   \starttext
 The problem involves tagging.
   \stoptext

This produces, in relevant part:

   system  >
   system  > ConTeXt  ver: 2021.08.06 01:21 LMTX  fmt:
   2021.8.5  int: english/english
   system  >
   system  > 'cont-new.mkxl' loaded
   open source > level 1, order 1, name
   'C:/ConTeXt_LMTX/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:/ConTeXt_LMTX/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
   system  > files > jobname 'G:/order', input 'G:/order.tex',
   result 'G:/order'
   fonts   > latin modern fonts are not preloaded
   languages   > language 'en' is active
   open source > level 1, order 2, name
   'G:/Projects/Quotations/ConTeXt version/development/order.tex'
   fonts   > preloading latin modern fonts (second stage)
   fonts   > 'fallback modern-designsize rm 12pt' is loaded
   *backend > tags > beware: page order problem in tree at page 1*
   backend > xmp > using file
   'C:/ConTeXt_LMTX/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
   pages   > flushing realpage 1, userpage 1, subpage 1
   close source    > level 1, order 2, name 'G:/order.tex'
   system  > start used files
   system  > text: order
   system  > stop used files
   system  > start used files

--
Rik

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


Re: [NTG-context] New error "page order problem in tree at page"

2021-08-05 Thread Hans Hagen via ntg-context

On 8/4/2021 9:26 PM, Rik Kabel via ntg-context wrote:

With today's LMTX release I see the warning:

backend > tags > beware: page order problem in tree at page 1

This appears to be recently introduced to the code.

Should it be a concern? If so, where should I look to remedy it?


mwe ...


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


Re: [NTG-context] issue with footnote in TOC

2021-08-05 Thread Hans Hagen via ntg-context

On 8/5/2021 4:34 PM, Pablo Rodriguez via ntg-context wrote:

\starttext
   \completecontent
   \chapter{Chapter Title\footnote{With footnote}}
   \stoptext


fixed in next beta (different escaping)
--

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


Re: [NTG-context] \note[xx] gives unknown reference for \startfootnote, ok for \footnote

2021-08-05 Thread Hans Hagen via ntg-context

On 8/5/2021 5:07 AM, Rik Kabel via ntg-context wrote:

The following example:

\starttext

abc\footnote[fn:abc]{footnote abc}\ abc

def
\startfootnote[fn:def]
  footnote def
\stopfootnote
\ def

No problem here: abc\note[fn:abc]

Problem appears here: def\note[fn:def]

\stoptext

Generates a missing reference error for a reference provided on 
\startfootnote (and \startendnote) accessed by \note:


references  > start missing references
references  >    1  [][fn:def]
references  > stop missing references

ConTeXt  ver: 2021.08.04 17:51 LMTX  fmt: 2021.8.4

There was no problem with previous versions.

fixed in next upload


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


Re: [NTG-context] img.scan in lmtx?

2021-08-05 Thread Henning Hraban Ramm via ntg-context


> Am 05.08.2021 um 17:51 schrieb Hans Hagen :
> 
> On 8/5/2021 12:26 PM, Henning Hraban Ramm via ntg-context wrote:
>>> Am 08.07.2021 um 23:09 schrieb Hans Hagen :
>>> 
>>> On 7/8/2021 8:31 PM, Henning Hraban Ramm wrote:
> Am 27.01.2020 um 09:16 schrieb Hans Hagen :
> 
> On 1/26/2020 11:50 PM, Henning Hraban Ramm wrote:
> 
>> I use the lua function img.scan{filename}, but in lmtx I get "attempt to 
>> index a nil value (global 'img')", so I guess this got renamed or moved?
> Just the high level command:
> 
> figures.getinfo(name,page)
>>> 
>>> local t = figures.getinfo("name.pdf",10) -- optional page number
>> Finally coming back to this.
>> Since I don’t know what the function is supposed to return, I thought I’ll 
>> check:
>>   local image = figures.getinfo(imgname,1)
>>   print("TEST", image, #image)
>>   for k, v in ipairs(image) do
>> print("TEST", oldname, k, v)
>>   end
>> but that gives only:
>> TESTtable: 0x7fbd4e4e13200
>> i.e. the table is empty.
>> Or did I misunderstand something? My Lua skills are still severely lacking...
> it's a hash not an array so  pairs

Oops. Ok, that means the information I’m looking for is in 
image.status.private. Who would have thought. 

Now grph-downsample.lua works with LMTX.

Hraban



grph-downsample.lua
Description: Binary data
___
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
___


Re: [NTG-context] img.scan in lmtx?

2021-08-05 Thread Hans Hagen via ntg-context

On 8/5/2021 12:26 PM, Henning Hraban Ramm via ntg-context wrote:




Am 08.07.2021 um 23:09 schrieb Hans Hagen :

On 7/8/2021 8:31 PM, Henning Hraban Ramm wrote:

Am 27.01.2020 um 09:16 schrieb Hans Hagen :

On 1/26/2020 11:50 PM, Henning Hraban Ramm wrote:


I use the lua function img.scan{filename}, but in lmtx I get "attempt to index a nil 
value (global 'img')", so I guess this got renamed or moved?

Just the high level command:

figures.getinfo(name,page)


local t = figures.getinfo("name.pdf",10) -- optional page number


Finally coming back to this.

Since I don’t know what the function is supposed to return, I thought I’ll 
check:

   local image = figures.getinfo(imgname,1)
   print("TEST", image, #image)
   for k, v in ipairs(image) do
 print("TEST", oldname, k, v)
   end

but that gives only:

TESTtable: 0x7fbd4e4e13200

i.e. the table is empty.

Or did I misunderstand something? My Lua skills are still severely lacking...

it's a hash not an array so  pairs


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


[NTG-context] issue with footnote in TOC

2021-08-05 Thread Pablo Rodriguez via ntg-context
Dear list,

compiling the following sample with current latest (2021.08.04 17:51):

  \starttext
  \completecontent
  \chapter{Chapter Title\footnote{With footnote}}
  \stoptext

The entry in the TOC for the chapter seems to have problems with the
footnote command (backslash seems to be unrecognized).

Would anyone be so kind to confirm the issue? I’m afraid it might be a
bug in current latest.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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
___


[NTG-context] Fwd: Re: Alignment of bullets withn \tabulate within \itemize

2021-08-05 Thread Lukas/ConTeXt via ntg-context
Hello Wolfgang,

this look good, thank you.

See my slightly modified sample - is there a way to make "MT" horizontally 
aligned, too?
- That within \tabulate is shifted somehow, neither "i0" 
(\starttabulate[|l|pi0|p|]) produces well aligned result.


\starttext
  \startitemize[packed_,intext][headstyle_=,]
    \item MT

    \starttabulate[|l|p|p|]
    %\starttabulate[|l|pi0|p|]
  \NI MT \NC MT \NC\AR
  \NI M\input knuth \NC M\input knuth \NC\AR
    \stoptabulate

    \item MT
  \stopitemize
\stoptext


Thanks anyway.

Best regards,

Lukas

-- Původní e-mail --

Od: Wolfgang Schuster 
Komu: mailing list for ConTeXt users 
Datum: 4. 8. 2021 20:44:31
Předmět: Re: [NTG-context] Alignment of bullets withn \tabulate within \itemize

Lukas/ConTeXt via ntg-context schrieb am 04.08.2021 um 17:03:

> Hello,
>
> let's have the following sample:
>
> 
> \starttext
>\startitemize[packed_,][headstyle_=,]
>  \item CC
>
>  \starttabulate[|l|||]
>\NI aa \NC bb \NC\NR
>  \stoptabulate
>
>  \item AA
>\stopitemize
> \stoptext
> 
>
> How do I make bullets (\itemtag) horizontally aligned one bellow another?
>
> In my case - bullets within \tabulate are indented (shifted rightwards) 
> somehow, which is undesired.

You can use the 'intext' keyword but this works only well for short texts, 
otherwise text continus below the bullet point.

\starttext
\startitemize[intext]
 \item XXX
 \starttabulate[|l|||]
 \NI aa \NC bb \NC\NR
 \stoptabulate
 \item YYY
\stopitemize
\stoptext

Wolfgang\starttext
  \startitemize[packed_,intext][headstyle_=,]
\item MT

\starttabulate[|l|p|p|]
%\starttabulate[|l|pi0|p|]
  \NI MT \NC MT \NC\AR
  \NI M\input knuth \NC M\input knuth \NC\AR
\stoptabulate

\item MT
  \stopitemize
\stoptext


t.pdf
Description: Adobe PDF document
___
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
___


Re: [NTG-context] img.scan in lmtx?

2021-08-05 Thread Henning Hraban Ramm via ntg-context


> Am 08.07.2021 um 23:09 schrieb Hans Hagen :
> 
> On 7/8/2021 8:31 PM, Henning Hraban Ramm wrote:
>>> Am 27.01.2020 um 09:16 schrieb Hans Hagen :
>>> 
>>> On 1/26/2020 11:50 PM, Henning Hraban Ramm wrote:
>>> 
 I use the lua function img.scan{filename}, but in lmtx I get "attempt to 
 index a nil value (global 'img')", so I guess this got renamed or moved?
>>> Just the high level command:
>>> 
>>> figures.getinfo(name,page)
> 
> local t = figures.getinfo("name.pdf",10) -- optional page number

Finally coming back to this.

Since I don’t know what the function is supposed to return, I thought I’ll 
check:

  local image = figures.getinfo(imgname,1)
  print("TEST", image, #image)
  for k, v in ipairs(image) do
print("TEST", oldname, k, v)
  end

but that gives only:

TESTtable: 0x7fbd4e4e13200

i.e. the table is empty.

Or did I misunderstand something? My Lua skills are still severely lacking...

Hraban
___
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
___