[NTG-context] Re: escaping \ in Lua

2023-09-06 Thread Pablo Rodriguez
On 9/5/23 21:00, Hans Hagen wrote:
> On 9/5/2023 6:43 PM, Pablo Rodriguez wrote:
>> [...]
>> Sorry for the obscure question, but how can I access this with
>> "\goto{link to external}[a(b).pdf]"?
>
> \goto{link to external}[file(a(b).pdf)]

Many thanks for your help, Hans.

Pablo

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


[NTG-context] Re: XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread Pablo Rodriguez
On 9/6/23 12:28, denis.ma...@unibe.ch wrote:
> Hi,
>
> I have the example below that uses the three images in the attachment.
> For some reason multiple spaces encoded as %20 get merged into a single %20.

Hi Denis,

this is standard TeX behavior (not only related to XML):

  \starttext
  \externalfigure[test  two spaces.pdf]
  \externalfigure[test  not two spaces.pdf]
  \stoptext

I don‘t know whether this is intended or not.

That being said, more than one consecutive space in a file name (I would
say it) is rather an exception than the rule.

Fixing this may cause more trouble that it might seem at first.

Best,

Pablo


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

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
Dear list,

I have the following source:

  \setupinteraction[state=start, display=new]
  \enabledirectives[references.border=darkgreen]
  \starttext
  \startTEXpage[offset=1dk]
  \attachment[method=hidden, file=a(b).pdf]
  \stopTEXpage
  \stoptext

The name in EmbeddedFiles is "a\(b\).pdf".

Sorry for the obscure question, but how can I access this with
"\goto{link to external}[a(b).pdf]"?

I guess there may be some Lua magic, but I cannot write a proper
":gsub("%(", "%\%("))".

Many thanks for your help,

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


[NTG-context] Re: new upload

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 19:22, Hans Hagen wrote:
> Hi,
>
> new upload with packed itemize fix .. hopefyully no side effects of some
> work in progress (but no crashes in test suite so likely ok)

Hi Hans,

many thanks for the ultrafast fix and upload.

Pablo

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


[NTG-context] Re: After compiling

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 19:14, Hans Hagen wrote:
> here
>
> context \\localhost\c$\data\develop\tmp\oeps.tex
>
> seems to be processed (with result in current path)

Just in case it might be relevant, I was on W10.

I would say that a similar command was right for me.

But using Textadept 11.4 and invoking compilation from the editor
triggered the error in my case.

BTW, try "cd \\localhost\c$\data\develop\tmp" in the command prompt.

It was impossible for me on W10.

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


[NTG-context] Re: After compiling

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 12:25, Ursula Hermann wrote:
> There is no pdf to read.
> Uschi Hermann.
> Sorry, dindn’t write my name in the first Mail Today.

Hi Uschi,

sorry for explaining what might be obvious to you now, but I think
knowing the cause might be worth it

> After compiling the following example, which is from February 2021:

Unfortunately, there was no compilation (source not found).

> "\\ub.univie.ac.at\U_Dom\Users G-L\Hermann\Documents\Texlive"
> CMD.EXE wurde mit dem oben angegebenen Pfad als aktuellem Verzeichnis
> gestartet.
> UNC-Pfade werden nicht untersttzt.
> Stattdessen wird das Windows-Verzeichnis als aktuelles Verzeichnis gesetzt.

This is the real problem: UNC paths and the command prompt (CMD.EXE).

UNC paths are a Windows way to access remote units (let’s say it so).

They are similar to: "\\remote-server\directory\subdirectory\file.tex".

CMD is required by ConTeXt to run, but CMD doesn’t understand UNC paths,
so it switches the directory to the %SYSTEMROOT% (usually, C:\Windows).

This directory shouldn’t be writable (without admin rights).

So the file cannot be found, since the directory is not the one that
contains the source.

Using Explorer, it is possible to give a path such as
"\\localhost\c$\Users\USERNAME\whatever\file.txt" and open it with your
favourite editor, but it will be impossible to compile.

UNC paths in common used are mapped as local units, such as (explained
in https://ss64.com/nt/net-use.html#e):

  net use X: "\\remote-server\directory\"

That way compiling x:\subdirectory\file.tex would be no problem.

> runtime error : input file './blackrule1.tex' is not found, quitting

Hraban was right: there might be no %SYSTEMROOT%\blackrule1.tex.

Just in case it might help to understand was what wrong,

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

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 18:09, Jeroen wrote:
> The following MWE shows pagenumbering starting at the second page with
> page number 1. With the totalnumberofpages we end up with one page too
> many. Is there a way to reduce this with 1?

Hi Jeroen,

this might do the work (LMTX only):

  [\pagenumber{} of \the\numexpr{\totalnumberofpages - 1}]

For MkIV, you would need:

  [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]

Just in case it helps,

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

[NTG-context] no packed in current latest (LMTX only)

2023-09-04 Thread Pablo Rodriguez
Dear list,

after updating to current latest (from 2023.09.03 19:03), packed list
doesn’t seem to work in LMTX:

  \starttext
  \startTEXpage[offset=1em]
  \startitemize[packed]
  \item item
  \item item
  \stopitemize
  \stopTEXpage
  \stoptext

MkIV gets packed lists just right.

Could anyone confirm this?

Many thanks for your help,

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

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
On 9/3/23 16:02, Henning Hraban Ramm wrote:
> Am 03.09.23 um 13:03 schrieb Pablo Rodriguez:
> [...]
> While I don’t know what’s missing under the hood, I think there’s just a
> “reference” key missing in \attachment or \setupattachment:

Many thanks for your reply, Hraban.

I’m afraid that \in{attachment}[foobar] doesn‘t generate a link in your
sample.

Or do you get a link border from the following source?

  \setupinteraction[state=start]
  \enabledirectives[references.border=green]
  \starttext
  \startTEXpage[offset=1em]

  \attachment[
 file={hacker.jpg},
 method=hidden,
 reference=foobar,
  ]
  \goto{Link to attachment}[foobar]
  \stopTEXpage
  \stoptext

Many thanks for your help,

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

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
On 9/3/23 12:46, Hans Hagen wrote:
> On 9/3/2023 12:17 PM, Pablo Rodriguez wrote:
>> [...]
>> This basic implementation of GoToE links would be extremely helpful to
>> access embedded documents (believe it or not, this is something I
>> explain almost every week at work).
>>
>> I would be happy to provide the code to implement this, but I’m
>> afraid this is way beyond my knowledge.
> remind me in a month or so ... i'm not going to touch that part of the
> code now (some other priorities)

Perfectly fine for me, Hans.

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

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
Hi Hans,

having attachments in PDF is very useful, but the vast majority of
people don’t know how to handle them (even with the attachment pane
displayed when Acrobat opens the document, or with file annotation).

It would be really useful to have a link with destination that it would
open the embedded document (when clicked).

Since in its basic functionality, this is very similar to links to
external documents (GoToR), I wonder whether it would be possible to
implement links to embedded documents (GoToE,
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G11.2048909).

At least to begin with, only links to embedded children documents would
be required.

If this GoToR is generated by ConTeXt from
"\goto{whatever}[destination-doc::page(15)]":

  17 0 obj
  <<
/D [ 14 /Fit ]
/F (destination-doc.pdf)
/NewWindow true
/S /GoToR
  >>
  endobj

A GoToE destination for "\attachment[file=destination-doc.pdf,
method=hidden]" would read:

  1 0 obj
   <<
/S /GoToE
/D [ 14 /Fit ]
/NewWindow true
/T << /R /C
  /N (destination-doc.pdf) >>
   >>
  endobj

With EmbeddedFiles, the F entry from GoToR is a target dictionary (T
key) in GoToE.

The T dictionary contains the relation (R key) to the destination file
(only C, child, needed) and the name (N) from EmbeddedFiles/Names for
the attachment.

This is the most basic implementation that allows to link to an
attachment.

What the spec describes as “a complete facility for linking between a
file in a hierarchy of nested embedded files and another file in the
same or different hierarchy” is probably unnecesarily complex (even to
use).

With file annotations, instead of the name from EmbeddedFiles/Names in
the target dictionary, it requires the keys P and A (as numbers or
strings).

  P gives the page number which contains the file annotation:
  zero-based as number, or named destination as string.

  A gives the annotation: zero-based index of the annotation in the
  Annots array, or NM entry value from the annotation object.

As for the interface, it would be great that GoToR links could be
converted automatically in "\goto{some text}[file::page(number)]" for
attached files.

This basic implementation of GoToE links would be extremely helpful to
access embedded documents (believe it or not, this is something I
explain almost every week at work).

I would be happy to provide the code to implement this, but I’m
afraid this is way beyond my knowledge.

Many thanks for your help,

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

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Pablo Rodriguez
On 9/2/23 12:42, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 02.09.2023 um 12:35:
>> [...]
>> Sorry, but I don‘t know why this doesn‘t get the slanted font as bold (I
>> know I should know better, but I‘m stuck at this):
>>
>>   \definefontfamily[mainface][rm][DejaVu Sans]
>>[sl≃style:bf]
>
> You're using the wrong symbol (you have a math operator in your example)
> to assign a value to a key.

Many thanks for your reply, Wolfgang.

As always, many thanks for your valuable help.

Somehow I copied the assymptopically equal to character (0x2243) to
typeset I cannot remember what, and I also placed it there (instead of
the standard equals char [0x003D]).

Sorry, I‘m afraid I wasn‘t able to spot the difference (at a relative
small font size).

Many thanks for your help again,

Pablo

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

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Pablo Rodriguez
On 9/2/23 12:18, Wolfgang Schuster wrote:
> Hans Hagen schrieb am 02.09.2023 um 11:53:
> [...]
>> in lpdf-lmt.lmt you can try:
>>
>> l 593
>>
>> tmsy = tmsy * sc
>>
>> l 610
>>
>> tmsy = tmsy * f_y_scale
>
> I get now with LMTX the same output as I get with MkIV, the slant stays
> the same for all sizes.

This works also perfectly fine for me now.

Many thanks for the fix and the help, Hans and Wolfgang.

Sorry, but I don‘t know why this doesn‘t get the slanted font as bold (I
know I should know better, but I‘m stuck at this):

  \definefontfamily[mainface][rm][DejaVu Sans]
   [sl≃style:bf]
  \setupbodyfont
   [mainface, 100pt]
  \starttext
  \startTEXpage[offset=1ex]
  a {\em b}
  \stopTEXpage
  \stoptext

Many thanks for your help again,

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

[NTG-context] slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Pablo Rodriguez
Dear list,

I have the following sample (using current latest from 2023.08.27 13:48):

  \setupinteractionscreen[option=max]
  \definefontfamily[maf][rm][DejaVu Sans]
[sl={style:tf, features:{default,slanted}}]
  \setupbodyfont[maf, 8pt]
  \setupfittingpage[offset=1ex]
  \starttext
  \startTEXpage
  a {\em b}
  \stopTEXpage
  \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}]
  a {\em b}
  \stopTEXpage
  \stoptext

Using LMTX higher font size gives less slanted text (or not at all).

Using MkIV text is slanted fine, independent from font size.

Could anyone confirm the issue?

Many thanks for your help,

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


[NTG-context] Re: list of modules: need changes/testing/response

2023-09-01 Thread Pablo Rodriguez
On 8/31/23 18:26, Henning Hraban Ramm wrote:
> [...]
>> I have just updated both modules and they are TDS compilant again (or so
>> I guess).
>
> Ehm, no. Have a look into
> https://modules.contextgarden.net/dl/presvoz/ and
> https://modules.contextgarden.net/dl/t-handlecsv/

This seems to be fixed now, Hraban.

BTW, it is really hard in the updating process not giving any hint about
the name of the module being updated.

I wonder whether this could be improved somehow.

Many thanks for your help,

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


[NTG-context] Re: list of modules: need changes/testing/response

2023-08-31 Thread Pablo Rodriguez
On 8/31/23 18:26, Henning Hraban Ramm wrote:
> Am 31.08.23 um 17:19 schrieb Pablo Rodriguez:
> [...]
>> I was forced to avoid a git URL, since it provided .tar.gz compression
>> (instead of .zip compression, required by the new installer).
>
> Oops, yes, I forgot about the archive format mismatch.
>
> To avoid adding a dependency on tar to the distribution, we (i.e. Taco
> and maybe me) must handle archive conversion on the server or in git
> checkout. (In the latter it’s just a parameter, but I can’t access the
> code ATM.)

These are great news, Hraban.

Many thanks for fixing this (in a not so distant future 😅).

>> I have just updated both modules and they are TDS compilant again (or so
>> I guess).
>
> Ehm, no. Have a look into
> https://modules.contextgarden.net/dl/presvoz/ and
> https://modules.contextgarden.net/dl/t-handlecsv/
>
> While they should look like e.g.
> https://modules.contextgarden.net/dl/president/
> That’s also just a git checkout (still as .tar.gz).

This might be the result from the mess generated after three updates today.

Compare files lists from:

https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86
https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=128
https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=143

These seem to have no extra directory (from those URL I guessed they
were right).

Many thanks for your help again,

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

[NTG-context] Re: list of modules: need changes/testing/response

2023-08-31 Thread Pablo Rodriguez
On 8/30/23 20:15, Henning Hraban Ramm wrote:
> Hi all, esp. module authors!
> [...]
> The following modules don’t adhere to the necessary structure and need
> changes:
> * t-handlecsv (2023, Pablo)> * presvoz (2023, Pablo)
> All of them have a name directory on top of the TDS (tex, doc).
> If you used a git checkout URL, please try again, for me it worked today.

Many thanks for your work reviewing the modules, Hraban.

I was forced to avoid a git URL, since it provided .tar.gz compression
(instead of .zip compression, required by the new installer).

I have just updated both modules and they are TDS compilant again (or so
I guess).

But the issue I reported is still there
(https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/C6RDJ5EYGOUQPOJGKOPRGDVPZOKDBIYE/#C6RDJ5EYGOUQPOJGKOPRGDVPZOKDBIYE):
download URL is .tar.gz.

Since Hans doesn‘t want to start mixing compression formats, would it be
possible that the git checkout selects .zip instead of .tar.gz?

Sorry, but the git URL seems to be the only way to get directories that
comply with TDS.

This would be the only way to get the modules script work with those
modes (or .tar.gz is also accepted as compression format for the modules
script).

Many thanks for your help,

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

[NTG-context] Re: Applying \sc for smallcaps across styles

2023-08-19 Thread Pablo Rodriguez
On 8/19/23 16:03, Hamid,Idris wrote:
> [...]
> Yes, there is an easy workaround:
>
> \definefontfeature[smallcaps][smcp=yes]

Hi Idris,

just a minor comment.

This is already defined in lines 96-99 of font-pre.mkxl:

 \definefontfeature
   [smallcaps]
   [always]
   [smcp=yes]

And also in lines 77-82 of font-pre.mkiv:

 \definefontfeature
   [smallcaps]
   [always]
   [smcp=yes,
tlig=yes,
trep=yes] % texligatures=yes,texquotes=yes

Just in case it helps, grep is a useful tool when applied to
tex/texmf-context/tex/context/base/mkxl (or
/tex/texmf-context/tex/context/base/mkiv, if needed).

Cheers

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


[NTG-context] Re: new upload

2023-08-17 Thread Pablo Rodriguez
On 8/16/23 19:46, Hans Hagen via ntg-context wrote:
> Hi Pablo,
>
> I Uploaded an update so you can spend the evening wikifying units ...

Hi Hans,

many thanks for the update. As for yesterday, I’m afraid I was required
elsewhere...

> see lowlevel manual for the full list

Many thanks for adding that to the lowlevel manual.

Just in case this might help anyone, I always see what is new in latest
release by comparing the backup from previous latest with current latest
(in my case "meld context .backup-context/date_context/").

I think the best way is to copy from section 6 of the manual.

> \startTEXpage[offset=1ex]
>  x\vrule height 1fa depth 1fd\relax x % \ascender \descender
>  x\vrule height 1sh depth 1sd\relax x % \strutht \strutdp
>  x\vrule height 1fc depth 0pt\relax x % \capheight
> \stopTEXpage
>
> you can also run s-system-units.mkxl and get a unit map

I always forget how to run modules, so compiling this also works:

  \usemodule[system-units]

  \startTEXpage[offset=1ts]
\showunitsmap
  \stopTEXpage

Now I’m editing the dimensions entry in the wiki.

Many thanks for your work again,

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

[NTG-context] Re: new upload

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 22:16, Hans Hagen via ntg-context wrote:
> On 8/15/2023 9:27 PM, Pablo Rodriguez wrote:
>> [...]
>> I wonder whether we could have (current) frame width and height as unit.
> we can have
>
>fw fh fo lw (width height offset linewidth)
>
> but keep in mind that only properties that are set up have a meaningful
> value (so with autoheight it is zero)

So 1fw is equal to 2fo + 1lw, isn’t it? (I mean, frame width is left and
right offset [given that all frames have the same length] plus line width.)

Sorry, this is to be sure I’m getting this right.

> and then you realize that you are the one going to wikify it

Fine (https://wiki.contextgarden.net/Dimensions could be expanded that
way), but I need to check the new units first.

Many thanks for your help,

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

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote:
> [...]
> A different approach is to use \dontleavehmode

In that case, \dorecurse is your friend, such as in:

\starttext
\startTEXpage[offset=10mm, pagestate=start]
\dorecurse{5}{
\dontleavehmode
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\framed[frame=off]{\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]}
\par}
\stopTEXpage
\stoptext

Just in case it helps,

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


[NTG-context] Re: new upload

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 19:08, Hans Hagen wrote:
> [...]
> The units starting with 'u' are considered user units but be carefulk
> with other combinations as we have (and will have more) built into
> context ones, like
>
> pi : pi for Mikael
> ft : foot for Alan
> fs : (global body) font size
> tw : (layout) text width
> th : (layout) text height
> hs : (current) hsize
> vs : (current) vsize
> cd : (when set) column distance
> cw : (when set) column width
> cx : combination cell width
> uu : user unit (\METAFUN)

Many thanks for the new release, Hans.

I wonder whether we could have (current) frame width and height as unit.

Many thanks for your help,

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


[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 17:35, Xavier B. wrote:
> I have the document split in several files.

Hi Xavier,

as someone already mentioned it, the way to check would be:

  mtxrun --scripts check your-document.tex

But this doesn‘t parse \input, so you need to create a loop.

In Unix, it would read something like:

  for i in *.conTeXt; do mtxrun --scripts check $i; done

Windows might require something similar to (inspired by
https://ss64.com/nt/for.html):

  for %%I (*.context) do mtxrun --scripts check %%I

It might report the cause this way.

When ConTeXt quits unexpectedly ("mtx-context | fatal error: return
code: 1" is a error message from the console), it might be a started
command not closed, such as in:

  \starttext
\startitemize
  \item a
  \stoptext

Just in case it might help,

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

[NTG-context] Re: How to make words searchable without diacritics

2023-08-06 Thread Pablo Rodriguez
On 8/5/23 21:16, Marcus Vinicius Mesquita wrote:
> Dear List,
>
> I have a lot of latin words in a document with the length of the
> vowels indicated by diacritics, for example: fīlĭa.
>
> Is it possible somehow to make these words searchable without the diacritics?
> That is, if I make a search for filia in the final pdf file, fīlĭa
> would also be found?

Dear Marcus Vinicius,

in PDF (the format itself), ActualText is a way of providing a text
replacement for the displayed element.

If you use ActualText, the string you search is the text replacement you
provide. That way, you could find literally “whatever you want” (being
"filia" its ActualText).

Hans provides this jewel in back-imp-pdf.mkxl and back-pdf.mkiv (adapter
for your needs):

  \starttext
  text \pdfbackendactualtext{whatever you want}{filia} text
  \stoptext

That being said, I think this is the wrong approach to your issue.

Firefox also disables diacritics by default (at least for me, this is
not a minor issue).

In any case, the PDF viewer used to search must have ActualText implemented.

I hope it helps,

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

[NTG-context] Re: empty line before typebuffer

2023-07-31 Thread Pablo Rodriguez
On 7/30/23 21:50, Henning Hraban Ramm wrote:
> Am 30.07.23 um 21:22 schrieb Wolfgang Schuster:
>> Henning Hraban Ramm schrieb am 30.07.2023 um 21:14:
>>> Yet another issue:
>>>
>>> \typebuffer always starts with a blank line.
>>> Is this a bug, or how can I disable it?

Sorry for being too late, Hraban.

\typeinlinebuffer is probably the best option here.

Pablo

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


[NTG-context] Re: issue with current latest (2023.07.28 20:04)

2023-07-29 Thread Pablo Rodriguez
On 7/29/23 13:54, Hans Hagen via ntg-context wrote:
> Hi,
>
> There seems to be some mismatch between bin and source .. clueless how
> that can happen but I'll upload again.

Many thanks for the new upload, Hans.

New LMTX binaries and it works fine again.

Pablo

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


[NTG-context] Re: issue with current latest (2023.07.28 20:04)

2023-07-29 Thread Pablo Rodriguez
On 7/29/23 10:03, Jairo A. del Rio wrote:
> [...]
> Same here. If, in line 69 of lang-lab.mkxl, you replace \lastchknumber
> with #2 [...] works again.

Hi Jairo,

\lastchknumber is an alias of \lastchkinteger (line 1522 of syst-ini.mkxl).

\lastchknumber might even be a primitive in LuaMetaTeX.

> Anyway, let's wait for a proper fix by Hans. 

I wonder whether an updated LMTX binary would be required.

Sadly, https://github.com/contextgarden/luametatex is out of sync.

Many thanks for your reply,

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

[NTG-context] issue with current latest (2023.07.28 20:04)

2023-07-29 Thread Pablo Rodriguez
Dear list,

trying to generate the format for current latest (2023.07.28 20:04), I
get this error message:

tex error   > tex error on line 280 in file lang-lab.mkxl: Control
sequence expected instead of undefined

\lang_labels_define_class_indeed {head}{

 \definelabelclass
...ded {\lang_labels_define_class_indeed {#1}{\ifchknumber #2\or
\lastchknumber
\else \zerocount \fi }\expandafter \noexpand \csn ...

\definelabelclass [head]  [0]
 % titles


You injected something that confused the parser, maybe by using some Lua
call.

LuaMetaTeX is from 20230727 (just in case it might be relevant).

Could anyone confirm the issue?

Many thanks for your help,

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


[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-27 Thread Pablo Rodriguez
On 7/26/23 19:47, Pablo Rodriguez wrote:
> [...]
> The real issue is that I couldn’t make it work with any PDF viewer I
> have on Linux.
> [...]
> I take for granted that Acrobat will deal fine with this, since
> destinations in links (GoToR) seem to be fine.
Gerion, I was wrong, since I forgot enabling interaction in the main PDF
document to generate the targets (or named destinations).

  \setupinteraction[state=start, focus=standard]
  \starttext
  \dorecurse{15}
{\chapter[chap\recurselevel]{Chapter}}
  \stoptext

The first line was missing yesterday.

After that (and with the ouput from the second sample from my previous
message
[https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/IEEGSAL636X32C3WWMO2KWKXMTIARRGZ/]),
Xpdf/Evince/Okular solve remote links fine.

MuPDF-GL cannot solve the file (even when full path is provided) and
PDF.js doesn’t even seem to care there might be a link.

I’m totally ignorant about what Acrobat and Edge/Chrome might do.

I hope this helps,

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

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-26 Thread Pablo Rodriguez
On 7/25/23 17:38, Pablo Rodriguez wrote:
> On 7/24/23 18:04, Gerion Entrup wrote:
>> […]
>
> I’m in a hurry, excuse my rash reply.

Sorry, Gerion, my reply yesterday was rushed (no skin condition).

The solution is already there (in the test files).

You have the file with the reference (save it as main.tex):

  \starttext
  \dorecurse{15}
{\chapter[chap\recurselevel]{Chapter}}
  \stoptext

You have the file that reads the references from main.tuc and generates
the inter-document links:

  \setupinteraction[state=start]
  \starttext
  Links to each chapter using \type{main.tuc}:

  \startitemize[n, packed]
  \dorecurse{15}
{\item Reference to \in[main::chap\recurselevel].}
  \stopitemize
  \stoptext

The real issue is that I couldn’t make it work with any PDF viewer I
have on Linux.

Either the viewer doesn’t detect the link (such as PDF.js), or it cannot
solve the target file (such as MuPDF and MuPDF-GL), or it cannot reach
destinations (such as Xpdf, Evince/Okular or SumatraPDF).

I take for granted that Acrobat will deal fine with this, since
destinations in links (GoToR) seem to be fine.

Of course, to confirm this, it should be tested with Acrobat.

Just in case it helps,

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

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-25 Thread Pablo Rodriguez
On 7/24/23 18:04, Gerion Entrup wrote:
> […]
> I'm do not know the structure of PDFs exactly, therefore some of my
> terms might be wrong. […]

Hi Gerion,

now I realize that my explanation was unnecesarily technical or not
focused on your needs.

My point was that if PDF as such doesn’t offer the capability, there is
no way to include it in ConTeXt (with PDF documents as output files).

> The situation is that I have a PDF-document (inner.pdf) that defines
> several destinations and I want to embed that document with
> \externalfigure into another PDF-document (outer.pdf). My question is:
> Is it possible to create references within the source code of outer.pdf
> that correctly set a link to a destination that is defined in inner.pdf?
> Asked in another way: Is is possible that \externalfigure can extract
> the (maybe named) destinations of inner.pdf and translate them in such a
> way, that I can use \in within the outer document to link to them.

I’m in a hurry, excuse my rash reply.

As far as I know (although I never used them), you can use \in with
references to other documents (I guess this is why you need the .tuc
file of the other document [to resolve the reference]).

In that case, you will have the reference number solved in your
document. As far as I know, there is no link for that.

Importing the document (with \externalfigure) has issues to preserve
internal links.

I hope it helps,

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

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
On 7/20/23 16:25, Gerion Entrup wrote:
> [...]
> Can I somehow access the references of inner.tex from outer.tex?
> For me, it is not that relevant, that the correct number is set, but the
> interaction within the outer PDF should work, so clicking on the
> reference should scroll to the correct content.

Hi Gerion,

not sure I’m getting your point right.

As such, one of the features of PDF are named destinations, such as in:

  https://www.pragma-ade.com/general/manuals/luametatex.pdf#%2381

I consider them as identifiers:

  https://wiki.contextgarden.net/Installation#Unix

If that could be what you might need, here is a sample.

First you have the destination file:

  \setupinteraction[state=start,
focus=standard,
prefix=n_,]
  \starttext
  \dorecurse{50}
{a\footnote{b} }
  \startluacode
  luatex.wrapup(
function()
  os.rename(tex.jobname .. ".pdf", "ba.pdf")
end
  )
  \stopluacode
  \stoptext

Then you have calling file (with file:///):

  \setupinteraction[state=start,
focus=standard]
  \def\MyURL#1{\goto{\tt#1}[url(#1)]}
  \starttext
  Link to other document: \MyURL{file:///path/ba.pdf\letterhash n_73}

  Link to the web:
 \MyURL{https://www.pragma-ade.com/general/manuals/luametatex.pdf#%2381}
  \stoptext

file:/// requires an absolute path. It might be handled right or not,
depending on your PDF viewer.

On Linux, Evince cannot open a file with named destination specified as
doc.pdf#destination (or doc.pdf#nameddest=destination). But it
understands file:///.

MuPDF-GL seems also not to handle named destinations, but it understands
file:/// too.

PDF.js (the default PDF viewer that comes with Firefox) handles named
destinations, but doesn‘t seem to understand file:/// as a link.

> Background of my question: I normally do graphics in a separate PDFs.
> Some graphics consists of source code together with a graphical
> representation and I want to be able to link to single source code lines.

I think it may be possible, but I don’t know how to generate named
destinations for source code lines.

Just in case it may help,

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

[NTG-context] Re: OSFONTDIR

2023-07-20 Thread Pablo Rodriguez
On 7/19/23 22:51, Hans Hagen via ntg-context wrote:
> On 7/19/2023 10:27 PM, Thomas A. Schmitz wrote:
>> [...] In the most recent versions of macos, some files of
>> these fonts are included as system fonts under
>> /System/Library/Fonts/Supplemental, but not all of them. It took me some
>> head scratching to figure out why every run complained about missing
>> glyphs until I saw that ConTeXt was using the wrong font. I had to set
>> the variable OSFONTDIR to some value to prevent this from happening. So
>> my question is: is looking for system fonts by default the new standard?
>> Is it a good idea?
>
> normally texmf-fonts is where i put fonts and that one should win

To solve this issues (since I use my private directory for fonts), I
created a symlink for my main font directory in $HOME/texmf/texmf-fonts/.

Before that, I had the symlink inside the LMTX distribution.

Just in case it might help,

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


[NTG-context] Re: Slow sreach with new mailing list interfache

2023-07-19 Thread Pablo Rodriguez
On 7/17/23 09:10, Taco Hoekwater wrote:
>> [...]
>> BTW, it is really a pity that the new interface doesn’t consider all
>> messages send from and to the list as with the address of the mailing
>> list itself.
>>
>> This would avoid non-intended private replies.
>
> I do not have that? If I press “Reply” in my mailer it goes to the list.

Hi Taco,

some messages include a "Reply-to" field. But other ones add in the
"From" field with the structure "Name Surname via ntg-context
" (original sender address is included in "CC" field).

The second pattern seemed to be the standard before the new HyperKitty
interface.

Many thanks for your reply and your help,

Pablo



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

[NTG-context] Re: unsubscribe

2023-07-19 Thread Pablo Rodriguez
On 7/18/23 16:27, Felipe de Jesús Molina Bravo wrote:
> thanks Mailing

Felipe,

here you have the right address to unsubscribe:

https://mailman.ntg.nl/accounts/login/?next=/mailman3/lists/ntg-context.ntg.nl/

I hope it helps,

Pablo

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

[NTG-context] Re: Slow sreach with new mailing list interfache

2023-07-16 Thread Pablo Rodriguez
On 7/16/23 11:25, Michael Loescher wrote:
> Hello,
>
> searching the mailing list is very slow recently (since the new
> interface hast been established). For example searching for "font"
> takes 20 seconds for the results to show up. Is it only me
> experiencing this phenomenon or ist it a general problem?
I’m experiencing the delay too, Michael.

I wonder whether this is a general issue with the HyperKitty interface.

BTW, it is really a pity that the new interface doesn’t consider all
messages send from and to the list as with the address of the mailing
list itself.

This would avoid non-intended private replies.

Just in case it might help,

Pablo

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

[NTG-context] Re: Text item groups

2023-07-16 Thread Pablo Rodriguez
On 7/15/23 21:46, Jairo A. del Rio wrote:
> Hi, list! I want to know how to make numbers in text item groups run
> along with text (for instance, wrt indentation) regardless of their
> position in text. In the following example:

Hi Jairo,

alignsymbol=yes might be what you need (if I’m getting your point right).

Complete sample that worked for me:

  \setupindenting[yes,medium]
  \starttext
  \startitemize[a,intext]
[left=(, right=), stopper=, alignsymbol=yes, indenting={yes,medium}]
  \startitem \input{jojomayer}\stopitem
  \startitem \input{jojomayer}\stopitem
  \startitem \input{jojomayer}\stopitem
  \stopitemize
  \stoptext

Just in case it might help,

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

[NTG-context] digitally sign fields with MuPDF-GL

2023-07-13 Thread Pablo Rodriguez
Dear list,

having the following sample code:

  \setuppapersize[A4, landscape]
  \setuplayout[page]
  \setupinteraction[state=start]
  \starttext
  \setupfield[sl][horizontal]
[frame=off, width=\textwidth, height=\textheight]
  \definefield[x][signature][sl]
  \field[x]

I also attach a sample certificate with password ABCabc.

The binaries for Windows provided by Artifex do not provide SSL support.
I’m on Linux myself, and something like MSYS2 provides binaries with
support for Linux (https://packages.msys2.org/base/mingw-w64-mupdf). I
wonder whether Homebrew provides mupdf-gl (I cannot say from
https://formulae.brew.sh/formula/mupdf).

If I try to sign the output PDF with the previous password, using
mupdf-gl or "mutool sign" (version 1.2.2), the signature annotation is
only viewed by MuPDF, MuPDF-GL and SumatraPDF.

On Linux, neither Evince or xpdf can display the signature annotation.

On Windows, Acrobat Reader DC doesn’t display the signature annotation,
nor it shows any info about the document being signed (BTW, I used
another certificate for this).

If I open the unsigned document with Acrobat Reader DC and save it, then
mupdf-gl can sign the saved document that Acrobat can handle (both
annotation and signature info) and Evince and xpdf can display the
signature.

I guess what might be causing this issue and I’m investigating it.

But it would really help, if someone can confirm the issue with MuPDF-GL
(or "mutool sign") and Acrobat (Reader or not).

Many thanks for your help,

Pablo


mycert.pfx
Description: application/pkcs12
___
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
___

Re: [NTG-context] viewer layers (optional content groups, OCG)

2023-06-23 Thread Pablo Rodriguez via ntg-context
On 6/22/23 18:07, Hans Hagen via ntg-context wrote:
> On 6/19/2023 8:41 PM, Henning Hraban Ramm via ntg-context wrote:
>> Checking viewer layers:
>>
>> * \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put
>> it in \defineviewerlayer
> in next upload

Hans,

since this is related to OCG, a minor improvement.

/Export (inside /Usage) is actually a dictionary with a single entry
(/ExportState) and values /ON and /OFF (from the PDF spec
https://raw.githubusercontent.com/adobe/dc-acrobat-sdk-docs/master/docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#search=ExportState):

The attached patch fixes this issue.

Many thanks for your help,

Pablo
--- lpdf-ren.lmt	2023-06-23 20:08:17.096662826 +0200
+++ mkxl/lpdf-ren.lmt	2023-06-23 20:09:05.358959481 +0200
@@ -78,8 +78,8 @@
 }
 
 local pdf_export = {
-[v_yes] = pdf_on,
-[v_no]  = pdf_off,
+[v_yes] = pdfdictionary { ExportState = pdf_on  },
+[v_no]  = pdfdictionary { ExportState = pdf_on  },
 }
 
 -- We can have references to layers before they are places, for instance from
___
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
___


[NTG-context] Fwd: [veraPDF-users] Development Preview: PDF file checker based on the Arlington PDF Model

2023-06-21 Thread Pablo Rodriguez via ntg-context
Dear list,

it is still early development, but this tool might be extremely useful
to check PDF documents.

Direct link to downloads (version 1.25 doesn’t seem to be available):

  https://software.verapdf.org/develop/arlington/1.23

Just in case it might help,

Pablo

 Forwarded Message 
Subject: [veraPDF-users] Development Preview: PDF file checker based on
the Arlington PDF Model
Date:   Wed, 21 Jun 2023 12:35:12 +0100
  Dear all, 

On the 30th anniversary of PDF technology, we're excited to announce the
availability of the first development preview of a new veraPDF-powered
application. Building on the great work done by the PDF Association
supported by the Defence Advanced Research Projects Agency (DARPA),
veraPDF has developed an open-source PDF checker based on the Arlington
PDF Model. This application is separate from the veraPDF PDF/A and
PDF/UA validator but comprises a very familiar package of GUI and
command-line applications.

*The Arlington PDF Model is an invaluable resource for anyone developing
or testing PDF tools. *Read more about the development here.

 

The veraPDF development team have utilised  Arlington in a way that's
compatible with the veraPDF architecture. The Arlington PDF Model-based
checker can now analyse PDF files against the full PDF 2.0
specification, including errata, by downloading the Java-based installer
(Win, MacOS, Linux, requires Java 8+ JRE installed) at veraPDF Software
Downloads . 

Best wishes,

Helena

--

Helena Watson (she/her), Marketing Officer

Open Preservation Foundation (OPF)  

Twitter | GitHub
| Mailing List



Please note: I work part-time for OPF, please bear with me if I don't
reply to your email right away. I may email you at a time that is
convenient for me, but please don't feel the need to respond outside of
your working hours. 


Discover the benefits of OPF membership


___
veraPDF Users mailing list -- us...@lists.verapdf.org
To unsubscribe send an email to users-le...@lists.verapdf.org

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


Re: [NTG-context] Mailing list problems

2023-05-31 Thread Pablo Rodriguez via ntg-context
On 5/31/23 16:21, Taco Hoekwater via ntg-context wrote:
> Hi!
>
> Both problems should be fixed now. If you still do not see the new
> posts in the ntg-context html archive page at
> https://mailman.ntg.nl/pipermail/ntg-context/2023/thread.html, force a
> hard reload of the page in your browser.

Hi Taco,

many thanks for your fix.

Best wishes,

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


Re: [NTG-context] hyperlinks not working with current latest

2023-05-29 Thread Pablo Rodriguez via ntg-context
On 5/29/23 09:43, Hans Hagen via ntg-context wrote:
> On 5/28/2023 8:57 PM, Pablo Rodriguez via ntg-context wrote:
>> Dear list,
>>
>> in the following sample, hyperlinks for footnotest don’t work with
>> current latest (2023.05.28 18:57) with current LMTX (20230528):
>> [...]
>> Could anyone confirm this issue?
>
> i'll upload a fix later today (some sensitivity to an extra return value
> of a helper)

Many thanks for your fast fix, Hans.

Pablo

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


Re: [NTG-context] Mailing list problems

2023-05-28 Thread Pablo Rodriguez via ntg-context
On 5/28/23 18:50, Mikael Sundqvist via ntg-context wrote:
> Hi!
>
> See https://tex.stackexchange.com/q/687020/52406. The OP there cannot 
> subscribe.
>
> Looking at the web archive, it indeed seems to be missing several
> emails: https://www.mail-archive.com/ntg-context@ntg.nl

Hi Mikael,

I mentioned this in a message from 04/30/23, 15:47 with subject:

  no recent message listed in the web interface

But no luck yet. Most recent message there seems to be
https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html#108157.

> I do not know who handles this, but... Ping!

Taco asked to report him personally or to a maling list
(https://mailman.ntg.nl/pipermail/ntg-context/2023/108140.html).

I sent a message to the mailing list (two weeks after having sent a
private message to Taco), but I received an automated reply (in Dutch)
to cancel the message being sent mentioning the fact that I’m not
subscribed to that list.

I hope the message now reaches Taco.

Best,

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


[NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Pablo Rodriguez via ntg-context
Dear list,

in the following sample, hyperlinks for footnotest don’t work with
current latest (2023.05.28 18:57) with current LMTX (20230528):

  \setupinteraction
[state=start,
 focus=standard]
  \starttext
  \completecontent
  \dorecurse{5}
{a\footnote{}}
  \stoptext

LuaTeX generates fine hyperlinks for footnotes.

My guess is that the issue is in the LuaMetaTeX binary.

Could anyone confirm this issue?

Many thanks for your help,

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


Re: [NTG-context] new module installer and .tar.gz compression

2023-05-08 Thread Pablo Rodriguez via ntg-context
On 5/8/23 17:58, Bruce Horrocks via ntg-context wrote:
>> On 8 May 2023, at 16:20, Pablo Rodriguez wrote:
>> [...]
>> Sorry, but I don’t know how to force git urls to be added as zip
>> packages in https://modules.contextgarden.net.
>
> Use <https://github.com/ousia/handlecsv/archive/refs/heads/context-suite.zip> 
> as the link to download as a Zip file.

Many thanks for your tip, Bruce.

Fixed and everything is working know.

Hans, I attach the diff for two new modules (packed as zip files).

Many thanks for your help,

Pablo
--- a/mtx-install-imp-modules.lua
+++ b/mtx-install-imp-modules.lua
@@ -35,6 +35,7 @@
 ["greek"] = { url = "modules", zips = { "t-greek.zip" } },
 ["grph-downsample"]   = { url = "modules", zips = { "grph-downsample.lua.zip" } },
 ["gs"]= { url = "modules", zips = { "t-gs.zip" } },
+["handlecsv"] = { url = "modules", zips = { "t-handlecsv.zip" } },
 ["high"]  = { url = "modules", zips = { "high.zip" } },
 ["inifile"]   = { url = "modules", zips = { "t-inifile.zip" } },
 ["karnaugh"]  = { url = "modules", zips = { "karnaugh.zip" } },
@@ -45,6 +46,7 @@
 ["lua-widow-control"] = { url = "modules", zips = { "lua-widow-control.zip" } },
 ["mathsets"]  = { url = "modules", zips = { "t-mathsets.zip" } },
 ["metaducks"] = { url = "modules", zips = { "metaducks.zip" } },
+["presvoz"]   = { url = "modules", zips = { "presvoz.zip" } },
 ["pret-c.lua"]= { url = "modules", zips = { "pret-c.lua.zip" } },
 ["rst"]   = { url = "modules", zips = { "t-rst.zip" } },
 ["rsteps"]= { url = "modules", zips = { "t-rsteps.zip" } },

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


[NTG-context] new module installer and .tar.gz compression

2023-05-08 Thread Pablo Rodriguez via ntg-context
Hans,

many thanks for the new script to install modules in LMTX.

I forced a new release of handlecsv
(https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86).

I provide the contents with a git address, so I cannot choose which kind
of compression the code will have.

Since imports from git use .tar.gz, these modules cannot be installed
with the script (which seems to expect .zip compression exclusively).

Sorry, but I don’t know how to force git urls to be added as zip
packages in https://modules.contextgarden.net.

Many thanks for your help,

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


Re: [NTG-context] no recent message listed in the web interface

2023-05-01 Thread Pablo Rodriguez via ntg-context
On 4/30/23 23:17, Jean-Pierre Delange via ntg-context wrote:
> That’ what I trad :
> 
> *Starting:* /Sun Jan 1 10:21:44 CET 2023/
> *Ending:* /Tue Apr 11 15:13:54 CEST 2023/

Many thanks for your reply, Jean-Pierre.

Now it is clear that the web interface is missing new messages.

Many thanks for your help,

Pablo

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


Re: [NTG-context] cannot generate format file with current latest

2023-05-01 Thread Pablo Rodriguez via ntg-context
On 4/30/23 20:17, Hans Hagen via ntg-context wrote:
> On 4/30/2023 3:19 PM, Pablo Rodriguez via ntg-context wrote:
>> […]
>> When I try to create the format file with "context --make --all", I get
>> the following error message:
>> […]
>> token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
>> a nil value (global 'posit') stack traceback:
> 
> you're running the wrong binary

Many thanks for your reply, Hans.

I’m afraid I had to update the binaries manually.

After that, everything was fine.

Many thanks for your help,

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


Re: [NTG-context] cannot generate format file with current latest

2023-04-30 Thread Pablo Rodriguez via ntg-context
On 4/30/23 16:32, Bruce Horrocks via ntg-context wrote:
>> On 30 Apr 2023, at 14:19, Pablo Rodriguez wrote:
>> I have just updated to current latest (2023.04.27 17:04).
>>
>> I always delete cache with "mtxrun --generate" after an update.
>>
>> When I try to create the format file with "context --make --all", I get
>> the following error message:
>> [...]
>> Could anyone confirm the issue?
> 
> No. Working fine for me on a Mac using that version, both before and
> after running "make all" and "generate".

Many thanks for your fast reply, Bruce.

For some strange reason, binaries weren’t updated to latest ones.

Copying them from a brand-new install fixes the issue.

I wonder whether other Linux64 users experienced this.

Many thanks for your help,

Pablo

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


[NTG-context] no recent message listed in the web interface

2023-04-30 Thread Pablo Rodriguez via ntg-context
Dear list,

I‘m afraid that
https://mailman.ntg.nl/pipermail/ntg-context/2023/108157.html is the
most recent message displayed for 2023 in the web interface
(https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html#108157).

Although the list has been distributing messages to subscribers and I
received them, I guess that the server software update might have
something to do with this.

Just for the record, I contacted Taco privately two weeks ago. No reply,
but I understand that obviously he is busy with other things.

Before sending him another message on the issue, I would like to ask
whether anyone could confirm that recent messages (from this week)
aren’nt being listed at
https://mailman.ntg.nl/pipermail/ntg-context/2023/date.html.

Many thanks for your help,

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


[NTG-context] cannot generate format file with current latest

2023-04-30 Thread Pablo Rodriguez via ntg-context
Dear list,

I have just updated to current latest (2023.04.27 17:04).

I always delete cache with "mtxrun --generate" after an update.

When I try to create the format file with "context --make --all", I get
the following error message:

lua error   > lua error on line 645 in file context.mkxl:

token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index
a nil value (global 'posit') stack traceback:
...ext/base/mkxl/cldf-pos.lmt:18: in local 'code'
...ext/base/mkiv/util-lua.lua:96: in field 'loadedluacode'
...ext/base/mkiv/luat-env.lua:108: in field 'luafilechunk'
...ext/base/mkxl/luat-cod.lmt:82: in function 'lua.registercode'
[ctxlua]:1: in main chunk

A number should have been here; I inserted '0'. (If you can't figure out
why I needed to see a number, look up 'weird error' in the index to The
TeXbook.)

Could anyone confirm the issue?

Many thanks for your help,

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


Re: [NTG-context] fallbacks

2023-04-22 Thread Pablo Rodriguez via ntg-context
On 4/22/23 18:05, Thomas A. Schmitz via ntg-context wrote:
> Hi all,
> 
> today, I was struggling with a fallback font I had defined, and I 
> discovered that the key "check" doesn't work as I expected.
> [...] 
> If I have "check=no," the characters are taken from termes and replaced. 
> I was under the impression that "check" should, well, check if the 
> characters are not in the main font and fall back to the fallback font
> if they are not, but this doesn't appear to be the case.

Hi Thomas,

I don’t know what check does (maybe just check?), but the standard
behaviour with \definefallbackfamily is only to fall back when the
character is missing from the main font.

To force all characters from the range in the fallback font, "force=yes"
is required.

Here you have a minimal sample (which doesn‘t use "preset=range:greek"),
adding "force=yes" gets all Greek glyphs from GFS Heraklit:

  \definefallbackfamily [presentation] [serif] [GFSHeraklit]
  [range={greekandcoptic, greekextended}]
  \definefontfamily [presentation] [serif] [TeXGyrePagella]
  \setupbodyfont [presentation,12pt]

  \starttext
  Pπμᾷσδ
  \stoptext

Just in case it might help,

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


Re: [NTG-context] bold small caps

2023-04-03 Thread Pablo Rodriguez via ntg-context
On 4/3/23 09:07, Peter Münster via ntg-context wrote:
> Hi,
> 
> I'm quite sure, that this worked some time ago with the standard font (LM):

I had the same impression, Peter.

But LM fonts don‘t have the OT feature smcp:

  \setuppapersize[A8]
  \starttext
  \doloopoverlist{lm, pagella, termes, heros}
  {\setupbodyfont[\recursestring]
  \feature[+][smallcaps]
  smcp {\bf smcp}
  \feature[-][smallcaps]
  smcp {\bf smcp}}
  \stoptext

Just in case it makes it clearer,

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


Re: [NTG-context] update / punctuation / math

2023-04-02 Thread Pablo Rodriguez via ntg-context
On 4/2/23 14:21, luigi scarso via ntg-context wrote:
> On Sun, 2 Apr 2023 at 13:57, Pablo Rodriguez via ntg-context wrote:
> 
> Well, evince displays it wrong (this is an already known issue with fake
> bold fonts in evince/poppler, reported years ago
> https://gitlab.freedesktop.org/poppler/poppler/-/issues/645).
> 
> hm, 4years ago, quite old... and this is not a fake bold, this is an
> instance of a variable font. 
> But yes, it seems that evince still has the same problem. 

Sorry, Luigi, I meant
http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230401/1f8c6cc9/attachment-0001.pdf.

According to type-imp-concrete.mkiv, text has the feature boldened-10
applied to it.

Even with a variable font (which might not be the case in the link
above), extending the font fakes the bold, such as in:

  \definefontfamily
[mainface]
[rm]
[Source Sans 3 VF]
[features={default, boldened-10}]

  \setupbodyfont[mainface]

  \starttext
  \input zapf
  \stoptext

Evince displays it poorly and this is what happens in the link above.

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


Re: [NTG-context] update / punctuation / math

2023-04-02 Thread Pablo Rodriguez via ntg-context
On 4/2/23 11:19, luigi scarso via ntg-context wrote:
> On Sun, 2 Apr 2023 at 11:06, Mikael Sundqvist via ntg-context
> mailto:ntg-context@ntg.nl>> wrote:
> 
> If you talk about the math font, I do not see what you mean. Daniel
> has worked a lot on his fonts, and they now work well.
> 
> 
> indeed the body font is not concrete opentype math but it looks very
> similar at first sight

Hi Luigi,

according to type-imp-concrete.mkiv, Concrete-Math.otf seems to be only
used for the math font.

> here evince & mupdf are quite ok (evince somewhat bolder than mupdf),

Well, evince displays it wrong (this is an already known issue with fake
bold fonts in evince/poppler, reported years ago
[https://gitlab.freedesktop.org/poppler/poppler/-/issues/645]).

Just in case it might help,

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


Re: [NTG-context] Printing problem

2023-03-17 Thread Pablo Rodriguez via ntg-context
On 3/16/23 12:49, Mikael Sundqvist via ntg-context wrote:
> [...] 
> So, a request: If you have an easy access to a printer, can you print
> this page and report back if all of it comes out, or what is
> happening?

Hi Mikael,

a friend printed the file on a Canon 4235i (from Windows 10 with Acrobat
Reader DC), there were no printing problems and the result is
high-quality output (as I would expect from many ConTeXt-generated
documents).

Just in case it might help,

Pablo

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


Re: [NTG-context] Undefined control sequence error message

2023-03-16 Thread Pablo Rodriguez via ntg-context
On 3/16/23 17:44, Leah Neukirchen via ntg-context wrote:
> Hi,
> 
> LMTX prints a bit weird error message for undefined control
> sequences:
> 
> \starttext
> \zong
> \stoptext
> 
> tex error  > tex error on line 2 in file ./foo.tex: Undefined
>  control sequence \undefined
> [...] 
> Shouldn't it print "\zong" in the "tex error" line too?

Hi Leah,

I totally agree: "Undefined control sequence \zong" would be better.

Pablo

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


Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Pablo Rodriguez via ntg-context
On 3/16/23 17:59, Keith McKay via ntg-context wrote:
> Hi,
> 
> I would like to position a combination of images where the centre of the
> combination coincides with the centre of the text area of a page.

Hi Keith,

I think the following sample might achieve what you want:

  \showframe
  \setupexternalfigures[location={default}]
  \setuplayout
[backspace=2.5cm,
topspace=1cm,
height=28cm,
width=17cm,
header=0cm,
footer=0.75cm,
]
  \definelayer[test3]
  %[x=.5\paperwidth, y=.5\paperheight]
  [x=.5\textwidth, y=.5\textheight]
  %\setupbackgrounds[page]
  \setupbackgrounds[text]
  [background=test3]
  \starttext
  \setlayer[test3][location={middle}]
 \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm]
{\externalfigure[cow][width=15mm]}{}
\rotate[rotation=90]{\externalfigure[cow][width=15mm]}{}
{\externalfigure[cow][width=15mm]}{}
 \stopcombination}}
  \null
  \stoptext

BTW, A4 portrait is the default page size.

\setupbackgrounds is the standard way to place layers.

Page and text centering would require different positions (I have
commented out the option for page centering).

I hope it helps (since I’m not sure I’m getting your point here),

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


Re: [NTG-context] extra lines in PDF annotations

2023-03-14 Thread Pablo Rodriguez via ntg-context
On 3/13/23 22:32, Hans Hagen via ntg-context wrote:
>> [...]
>> I hope EOLs are fine now.
> dunno ... no full example so ...
Sorry, Hans, the full example reads:

  \startbuffer[text]
  
  
  
  \stopbuffer

  \savebuffer[text][sample-text.xml, prefix=no]

  \setupinteraction[state=start]

  \startxmlsetups xml:text
\xmlsetsetup{\xmldocument}
  {pre}
  {xml:copy:html}
  \stopxmlsetups

  \xmlregistersetup{xml:text}

  \startxmlsetups xml:copy:html
\xmltobuffer{#1}{.}{text}
\comment[location=inmargin,buffer=text]{}
  \stopxmlsetups

  \setuppapersize[A9]

  \starttext
\section{one\xmlprocessbuffer{main}{text}{}}

\section{two\xmlprocessfile{main}{sample-text.xml}{}}
  \stoptext

It requires that the source is saved with CRLF line endings (so that
\savebuffer will save that way too), otherwise both \comment will be
exactly the same.

I hope it is clearer now.

Many thanks for your help,

Pablo

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


Re: [NTG-context] Did dotless i disappear ?

2023-03-13 Thread Pablo Rodriguez via ntg-context
On 3/13/23 16:28, Otared Kavian via ntg-context wrote:
> Hi Hans,
> 
> I just noticed that the dotless i « \i » is not anymore recognized in
> ConTeXt. Of course one can nowadays find other ways to have it
> typeset, but in old documents which are included as inputs one has to
> correct this manually (for instance in French « connaître » was typed
> as « conn\^{\i}tre »).
Hi Otared

I think what doesn’t work is the dotless i as combining character for i
+ diacritical mark.

It seems that standard i may combine fine:

  \setupinteractionscreen[option=max]
  \starttext
  \startTEXpage[offset=1ex]
  %\i
  %\'{\i}
  %\^{\i}
  \'{i}
  \^{i}
  \stopTEXpage
  \stoptext

And \i outputs a dotless i.

Just in case it helps,

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


Re: [NTG-context] extra lines in PDF annotations

2023-03-13 Thread Pablo Rodriguez via ntg-context
On 3/13/23 16:06, Pablo Rodriguez via ntg-context wrote:
> Dear list,
> 
> using current latest from 2023.03.10 12:18, I have this XML sample:
> 
>   
> 
>   
> 
>   
I apologize, XML source doesn’t have lines inside, such as in:

  
  
  

I hope EOLs are fine now.

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


[NTG-context] extra lines in PDF annotations

2023-03-13 Thread Pablo Rodriguez via ntg-context
Dear list,

using current latest from 2023.03.10 12:18, I have this XML sample:

  

  

  


And the following environment:

  \setupinteraction[state=start]

  \startxmlsetups xml:text
\xmlsetsetup{\xmldocument}
  {pre}
  {xml:copy:html}
  \stopxmlsetups

  \xmlregistersetup{xml:text}

  \startxmlsetups xml:copy:html
\xmltobuffer{#1}{.}{text}
\comment[location=inmargin,buffer=text]{}
\attachment[method=hidden, name=attach.xml, buffer=text]
\null
  \stopxmlsetups

If I save the XML file with Windows EOL chars (CR LF), I get extra blank
lines in the PDF annotation.

Everything is fine, if XML has Unix line endings (LF char).

Attachment contains the proper line ending in each case.

Could anyone confirm what appears to be a tricky issue?

Many thanks for your help,

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


Re: [NTG-context] [ numbering TEXpages ]

2023-03-09 Thread Pablo Rodriguez via ntg-context
On 3/9/23 13:18, Floris van Manen via ntg-context wrote:
> Can someone remind me as how to number the pages in a pdf of multiple 
> \startTEXpage ... \stopTEXpage

Hi Floris,

I guess "pagestate=start" is what you might need:

  \starttext
  \dorecurse{25}
  {\startTEXpage[offset=1em, pagestate=start]
   \ConTeXt
   \stopTEXpage}
  \stoptext

Just in case it might help,

Pablo

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


Re: [NTG-context] [ TEXpage empty lines ]

2023-03-09 Thread Pablo Rodriguez via ntg-context
On 3/8/23 20:08, Wolfgang Schuster via ntg-context wrote:
> Pablo Rodriguez via ntg-context schrieb am 08.03.2023 um 20:01:
>> On 3/8/23 17:37, Hans Hagen via ntg-context wrote:
>>> On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote:
>>>
>>>> \null\\
>>> I prefer \crlf because \null is well, can you guess?
>> Good to know, but I thought that \\ was exactly \crlf.
>>
>> I would even say that I read it somewhere in ConTeXt’s source.
> 
> The result of \\ depends on the environment/command.

Many thanks for your reply, Wolfgang.

I‘ve been using \\ for years and now I come to know this.

Many thanks for your help again,

Pablo

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


Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Pablo Rodriguez via ntg-context
On 3/8/23 17:37, Hans Hagen via ntg-context wrote:
> On 3/8/2023 5:29 PM, Pablo Rodriguez via ntg-context wrote:
> 
>>\null\\
> 
> I prefer \crlf because \null is well, can you guess?

Good to know, but I thought that \\ was exactly \crlf.

I would even say that I read it somewhere in ConTeXt’s source.

Pablo

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


Re: [NTG-context] [ TEXpage empty lines ]

2023-03-08 Thread Pablo Rodriguez via ntg-context
On 3/8/23 16:24, Floris van Manen via ntg-context wrote:
>> \startlines 
> 
> thanks!
> and it saves a lot of extra typing as well

Hi Floris,

this might also do the trick:

  \starttext
  \startTEXpage[offset=10mm]
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
  \null\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
  \null\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
 een twee drie vier vijf zes zeven\\
  \stopTEXpage
  \stoptext

Although Hans knows best.

Pablo

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


Re: [NTG-context] /CropBox overflows /MediaBox

2023-03-07 Thread Pablo Rodriguez via ntg-context
On 3/6/23 23:06, Hans Hagen via ntg-context wrote:
> On 3/6/2023 7:02 PM, Pablo Rodriguez via ntg-context wrote:
> 
>> But I’m afraid that it is wrong to have a /TrimBox larger than the
>> /MediaBox for the same page.
> 
> Afaik the standard permits is to one gets what one asks. I will add some 
> checks plus a warning and hopefully not break something.

Many thanks for the check that avoids this issue.

As for the specification in re with boxes larger than the media box:

In theory, trim and crop boxes may be larger than the media box. But the
specification also warns that in that case, “they [would be] effectively
reduced to their intersection with the media box”

In practice, I see that as an issue of logical consistence. I don’t see
a way of cropping or trimming an A5 page inside the boundaries of an A3
page.

Of course, I may be missing something, but I see crop and trim as
synonyms for cut or reduce.

Many thanks again for your help,

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


Re: [NTG-context] cannot compile with MkIV

2023-03-07 Thread Pablo Rodriguez via ntg-context
On 3/6/23 21:10, Hans Hagen via ntg-context wrote:
> On 3/6/2023 7:46 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Could anyone confirm that the format file for MkIV (LuaTeX) cannot be
>> generated with current latest (from today [2023.03.06 14:48])?
> hm, looks like we have an older luatex than context expects, i'll check 
> it (we probably need to let the builders fetch from the new luatex 
> source location)

Many thanks for your fast fix, Hans.

Pablo

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


[NTG-context] cannot compile with MkIV

2023-03-06 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \starttext
  \null
  \stoptext

Trying to compile it with "context --luatex", I get the error message
copied bellow.

Could anyone confirm that the format file for MkIV (LuaTeX) cannot be
generated with current latest (from today [2023.03.06 14:48])?

Many thanks for your help,

Pablo


lua error   > lua error on line 21 in file
~/context/tex/texmf-context/tex/context/base/mkiv/back-pdf.mkiv:

...ext/tex/texmf-context/tex/context/base/mkiv/lpdf-nod.lua:72: creating
a whatsit requires the subtype number as a second argument
stack traceback:
[C]: in local 'new_node'
...ext/tex/texmf-context/tex/context/base/mkiv/lpdf-nod.lua:72: in
local 'code'
...ext/tex/texmf-context/tex/context/base/mkiv/util-lua.lua:96: in
field 'loadedluacode'
...ext/tex/texmf-context/tex/context/base/mkiv/luat-env.lua:108: in
field 'luafilechunk'
...ext/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:73: in
function 'lua.registercode'
[ctxlua]:1: in main chunk

11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13
14 %D The less there is here, the better. After a decade it is time
to remove the \type
15 %D {\pdf*} ones completely. For the moment I keep them commented
but even that will
16 %D go away.
17
18 \writestatus{loading}{ConTeXt Backend Macros / PDF}
19
20 \registerctxluafile{lpdf-ini}{optimize}
21 >>  \registerctxluafile{lpdf-nod}{}
22 \registerctxluafile{lpdf-eng}{optimize}
23 \registerctxluafile{lpdf-col}{}
24 \registerctxluafile{lpdf-vfc}{}
25 \registerctxluafile{lpdf-xmp}{}
26 \registerctxluafile{lpdf-ano}{}
27 \registerctxluafile{lpdf-res}{}
28 \registerctxluafile{lpdf-mis}{}
29 \registerctxluafile{lpdf-ren}{}
30 \registerctxluafile{lpdf-grp}{}
31 \registerctxluafile{lpdf-wid}{}

resolvers   | formats |
resolvers   | formats | binary path  :
~/context/tex/texmf-linux-64/bin
resolvers   | formats | format path  :
~/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex
resolvers   | formats | luatex engine: luatex
resolvers   | formats | lua startup file :
~/context/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file :
~/context/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv
resolvers   | formats | run time : 1.497 seconds
resolvers   | formats | return value : error
resolvers   | formats |
mtx-context | error, no format found with name: cont-en, aborting
___
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
___


Re: [NTG-context] /CropBox overflows /MediaBox

2023-03-06 Thread Pablo Rodriguez via ntg-context
On 3/2/23 00:20, Hans Hagen wrote:
> On 2/28/2023 6:23 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
> I only see one size. Anyway, attached a fix for the different rounding.

Sorry, Hans, I copied the wrong sample (value for "width" in
"\setupinteractionscreen" should read "fit" instead of "max"):

  \nopdfcompression
  \setupinteractionscreen
[width=fit]
  \setuplayout
[standard]
[backspace=.7\textwidth,
 cutspace=\cutspace,
 width=middle]
  \starttext
  \startmakeup[page]
  \null
  \stopmakeup
  \startmakeup[standard]
  \null
  \stopmakeup
  \stoptext

Here are the boxes (using current latest from today [2023.03.06 14:48]):

  3 0 obj
  [ 0 0 595.275590072 841.88975789 ]
  endobj

  7 0 obj
  [ 0 0 968.199847496 841.88975789 ]
  endobj

Page 1 (object 4) uses object 3 as /CropBox, /MediaBox and /TrimBox.

Page 2 (object 7) uses object 3 as /MediaBox and object 7 as /CropBox
and /TrimBox (I have just discovered it).

I think it is better to avoid having a page with a /CropBox larger than
its /MediaBox.

But I’m afraid that it is wrong to have a /TrimBox larger than the
/MediaBox for the same page.

I hope it is clear now. Sorry for the mistake in copying the wrong sample.

Many thanks for your help,

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


Re: [NTG-context] /CropBox overflows /MediaBox

2023-03-01 Thread Pablo Rodriguez via ntg-context
On 2/28/23 21:18, Hans Hagen via ntg-context wrote:
> On 2/28/2023 6:23 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Could anyone be so kind to confirm the issue or to explain the
>> rationale behind the oversized /CropBox?
> different code path (dates from mkiv but i can adapt it for lmtx)
>
> anyway, overflow is in the 7th decimal so quite harmless i guess

Many thanks for your reply, Hans.

Sorry, I’m afraid my explanation was poor.

/MediaBox for both pages is [ 0 0 595.275590072 841.88975789 ].

/CropBox for page 1 is [ 0 0 595.27559 841.889758 ] (which is fine, no
problem here).

/CropBox for page 2 is [ 0 0 968.199847 841.889758 ] (which is a much
wider box, converting it from portrait to landscape).

I hope it is clearer now.

Many thanks for your help,

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


[NTG-context] /CropBox overflows /MediaBox

2023-02-28 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following source:

  \nopdfcompression
  \setupinteractionscreen
[width=max]
  \setuplayout
[standard]
[backspace=.7\textwidth,
 cutspace=\cutspace,
 width=middle]
  \starttext
  \startmakeup[page]
  \null
  \stopmakeup
  \startmakeup[standard]
  \null
  \stopmakeup
  \stoptext

Boxes are defined in the following objects:

  3 0 obj
  [ 0 0 595.275590072 841.88975789 ]
  endobj

  5 0 obj
  [ 0 0 595.27559 841.889758 ]
  endobj

  8 0 obj
  [ 0 0 968.199847 841.889758 ]
  endobj

Page 1 has /MediaBox redirected to object 3 and /CropBox redirected to
object 5.

Page 2 has /MediaBox redirected to object 3 and /CropBox redirected to
object 8.

I’m not sure whether the oversized /CropBox in the sample above is a
bug triggered by the use of "\setupinteractionscreen[width=fit]".

From the PDF–1.7 specification
(https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#page=636):

  The crop, bleed, trim, and art boxes shall not ordinarily extend
  beyond the boundaries of the media box. If they do, they are
  effectively reduced to their intersection with the media box.

https://wiki.contextgarden.net/PDF_Boxes displays an image of (what I
guess) the ordinary case: /CropBox fits inside /MediaBox.

Could anyone be so kind to confirm the issue or to explain the
rationale behind the oversized /CropBox?

Many thanks for your help,

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


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-21 Thread Pablo Rodriguez via ntg-context
On 2/20/23 18:14, Sylvain Hubert via ntg-context wrote:
> On Mon, 20 Feb 2023 at 23:22, Pablo Rodriguez via ntg-context
>  wrote:
> 
> Hi Sylvain,
> 
> one main documentation source is the wiki.
> 
> Sorry, but I‘m afraid it is hard for me to understand how adding another
> information source for ConTeXt is a gain.
> 
> It's a gain exactly because it's not another information source. The
> posts are synced. It's just a modern and imo better UI for the mailing
> list, with more pleasant searching and tracking UX.

If I’m not missing your point, this would be an email client with
superpowers for mailing lists. Fine (as long as the mailing list isn’t
modified [no extra messages or similar]).

But the issue here is that I forgot to ask whether you would be so kind
to update the wiki with the replies you got.

Many thanks for your help,

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


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote:
> [...] 
> Btw, just in case if anyone shares this idea: is it possible to have a
> zulip channel for ConTeXt? It's free for open source projects, has a
> interface for existing mailing lists, and has a reasonable builtin
> search engine, which could serve as another de-facto documentation,
> considering the fact that very few of the massive useful use cases asked
> in the mailing lists so far have been transcribed into official
> documentations.

Hi Sylvain,

one main documentation source is the wiki.

Sorry, but I‘m afraid it is hard for me to understand how adding another
information source for ConTeXt is a gain.

Best,

Pablo

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


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 16:02, G.C.H.M. Verhaag via ntg-context wrote:
> [...]
> Found out that the following does work with the *\placeinitial* command:
> 
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=name:antpoltcondregular*default
>  sa 4]*
> 
> So something weird is happening I suppose!

Hi Geert,

if you only provide commands, it is really hard to tell what is going on.

Please, always provide complete samples (otherwise, most of the help is
figuring out what the issue is really about).

Best,

Pablo

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


Re: [NTG-context] Lettrine module not working?!

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 15:30, G.C.H.M. Verhaag via ntg-context wrote:
> Hi,
> 
> Yes Hraban that worked! Thanks!
> 
> My next issue is adapting the font-family, because a want to use the
> *Antykwa-Poltawskiego* font|| as my initial. I tried the following:
> 
> *\definefont[InitialCapFont][name:antpoltcondregular*default sa 4]*
> *\setupinitial[color=MyColor,distance=6pt,n=3,font=InitialCapFont]*
> 
> Has anybody any idea why this doesn't work?

Hi Geert,

this works for me:

  \definefont[InitialCapFont][name:antpoltcondregular*default sa 4]
  %\setupinitial[style={\switchtobodyfont[helvetica]}]
  \setupinitial[color=red,distance=6pt,n=3, style=\InitialCapFont]

  \starttext
  \setinitial\input zapf
  \stoptext

BTW, I think there is an issue (that might be a bug), when either style
or font are in use, size is not automatically adapted.

Could anyone confirm with the commented line?

Many thanks for your help,

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


Re: [NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Pablo Rodriguez via ntg-context
On 2/19/23 20:34, Sylvain Hubert via ntg-context wrote:
> Dear list,
> 
> I have a long document (A4 * 170 pages) with some CJK fonts, where some
> of the \subject{...} are placed at the end of the corresponding pages,
> which looks awkward. How can one flush those last-line titles to the
> next pages?

Hi Sylvain,

the hard part for the rest of us is figuring out what you may have on
your screen.

\setuphead[subject][before={\blank[preference]}] might help.

Another approach would be \setuphead[subject][after={\blank[samepage,
line]}].

I mean, either you set a preference for breaking pages before \subject
or you force \subject to be on the same page with next paragraph.

Nothing prevents you from doing both.

BTW, default values for before and after in \setuphead[subject] are
\blank[2*big] and \blank (respectively [copied from strc-def.mkxl]).

> Currently I don't have a MWE, as trivial filling-up with 1-2 pages of
> \lipsum doesn't reproduce the problem. I'm optimistically asking without
> MWE, but if it is necessary anyway, please tell me and I will obfuscate
> the 170-page document and find a way to upload it.

I hope it might help. It is not clear for me whether the CJK fonts are
only for fragments in these languages or the main text is written in any
of these languages.

I had similar issues with \section and only the Latin script was involved.

Again, I hope it might help,

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


Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
> On this page of the wiki there is an example for wrapping long words,
> like long hexadecimal strings:
> 
> https://wiki.contextgarden.net/Wrapping
> 
> This example is buggy because it deletes one character at the point that
> it is wrapped.

Hugo,

I have just updated the wiki with another way of line breaking SHA sums:

  https://wiki.contextgarden.net/Wrapping#Line_breaking_with_SHA512_sums

It avoids the issue you encountered and it is an easy workaround.

Just in case it might help,

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


Re: [NTG-context] custom hyphenator again

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 18:22, Hans Hagen via ntg-context wrote:
> On 2/15/2023 6:13 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Am I missing something or have I hit a bug?
> more a hit on my maximum parallel task abilities

Sorry, I was trying to find the cause of the issue with SHA sums.

I have just found a workaround and I updated the wiki.

Sorry again for abusing your help (I tend to forget that math is
priority now) and many thanks for all your work with ConTeXt,

Pablo

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


[NTG-context] custom hyphenator again

2023-02-15 Thread Pablo Rodriguez via ntg-context
Hi Hans,

with the sample hyphenator from
https://www.pragma-ade.com/general/manuals/languages-mkiv.pdf#page=23,
next letters after hyphenation are missing.

I already reported this
(https://mailman.ntg.nl/pipermail/ntg-context/2023/107743.html).

Am I missing something or have I hit a bug?

Many thanks for your help,

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


Re: [NTG-context] including documents with mediaclips in other documents

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 17:55, Hans Hagen via ntg-context wrote:
> On 2/15/2023 5:35 PM, Pablo Rodriguez via ntg-context wrote:
>> On 2/14/23 22:43, Hans Hagen via ntg-context wrote:
>>> On 2/14/2023 7:41 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Now I guess that is way harder than I think.
> 
> quite some are but we need to emulate them and therefore interpret them 
> as one cannot simply copy objects (all kind of potential clashes)

I see.

>> BTW, Acrobat Reader displays these media. I don’t have access to full
>> Acrobat either and these annotations work fine in Reader.
> 
> ok, but no diagnostic features and i got a bit allergic for acrobat 
> readers (ever changing) interface

I prefer PDF.js from Firefox, but they haven’t implemented multimedia yet.

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


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 12:40, Alex Leray via ntg-context wrote:
> Thanks a lot Wolfgang, that's perfect!
> 
> I added an example in the wiki:
> 
> https://wiki.contextgarden.net/Command/setupmakeup

Hi Alex,

many thanks for adding the info to the wiki.

Just in case it might help, I added an explanation to the main article:

  https://wiki.contextgarden.net/Makeup

Let me know whether it could be improved.

Welcome back to ConTeXt,

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


Re: [NTG-context] including documents with mediaclips in other documents

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/14/23 22:43, Hans Hagen via ntg-context wrote:
> On 2/14/2023 7:41 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Given this sample, is there any way to include the page (or the whole
>> document) with the media clip and all its functionalty?
> currently not and given the number of possibilities it's quite a bit of 
> work so it has a low priority (i can't even test media right now because 
> i have no full acrobat installed)

Many thanks for your reply, Hans.

I didn‘t know that it was so complex to do. In fact, I wonder why not
all annotations or links and destinations are copied right.

Now I guess that is way harder than I think.

BTW, Acrobat Reader displays these media. I don’t have access to full
Acrobat either and these annotations work fine in Reader.

Many thanks for your help again,

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


[NTG-context] including documents with mediaclips in other documents

2023-02-14 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \setupinteraction[state=start]
  \starttext
  \null\page
  \definerenderingwindow[myrenderingwindow]
[width=\textwidth, height=\textwidth]
  \userendering[key-name][audio/mp3][audio.mp3]
[embed=yes, auto]
  \placerenderingwindow[myrenderingwindow][key-name]
  \page
  \null\page
  \stoptext

I want to include the second page in another document.

\externalfigure[document.pdf][page=2, interaction=all] would be the
right command, but it looses the media clip.

A complete sample would be:

  \setupinteraction[state=start]
  \starttext
  \startlayout[page]
  \externalfigure[document.pdf][page=2, interaction=all]
  \stoplayout
  \stoptext

Given this sample, is there any way to include the page (or the whole
document) with the media clip and all its functionalty?

Many thanks for your help,

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


Re: [NTG-context] Sentence breaks for "English-style" (TeX default in English language) spacing regime

2023-02-14 Thread Pablo Rodriguez via ntg-context
On 2/5/23 13:44, Hans Hagen via ntg-context wrote:
> On 2/4/2023 10:10 AM, Pablo Rodriguez via ntg-context wrote:
>>> https://wiki.contextgarden.net/French_spacing Not helpful alas.
>>
>> Would you be so kind to update the wiki?
>>
>> I hope it helps,
> Assuming that you document it I'll add
> 
> test\fsp. test. test
> 
> where fsp == fixed space functuation

Sorry for the delay, Hans.

It is documented here:
https://wiki.contextgarden.net/French_spacing#Mixing_broad_and_packed_spaces.

Pablo

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


Re: [NTG-context] Problem with LMTX on macOS: no format file given, quitting

2023-02-12 Thread Pablo Rodriguez via ntg-context
On 2/12/23 17:34, Pablo Rodriguez via ntg-context wrote:
> On 2/12/23 16:28, Tommaso Gordini via ntg-context wrote:
>> [...] 
>> Do you have any idea where I might have gone wrong?
> 
> My guess is that when you invoke ConTeXt, you are running it from TeX
> Live (or from other than the wiki installation).

Hi Tommaso,

I forgot to mention, to avoid path clashes, you may invoke ConTeXt in
the following way (it is only one line and there is no space between lines):

export PATH=~/Documents/ConTeXt/ConTeXt-LMTX/\
tex/texmf-osx-arm64/bin/:$PATH && context source-file.tex

Just in case it might help,

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


Re: [NTG-context] Problem with LMTX on macOS: no format file given, quitting

2023-02-12 Thread Pablo Rodriguez via ntg-context
On 2/12/23 16:28, Tommaso Gordini via ntg-context wrote:
> [...] 
> However, I also get this:
> 
> charlie@Air-di-Tommaso ~ % luametatex
> startup error : no format file given, quitting

Hi Tommaso,

my ConTeXt LMTX is fully functional and I get this message too.

> Also, I created the TeXShop engine as indicated on the page (I've done
> it before with no problems).
> However, now when I run LMTX from editor to compose a source, the source
> is compiled with MkIV Standalone, which I have in another folder
> (/Users/charlie/Documents/ConTeXt/ConTeXt-MkIV). LMTX doesn't even work
> from a terminal, of course.

I’m on Linux, so no TeXShop here.

BTW, I’m not sure "luametatex" may work as you intend (without any
format file).

> The curious thing is that even by launching the ConTeXt present in TeX
> Live, what really works is always MkIV Standalone.

I don‘t think ConTeXt from TeX Live includes LMTX
(https://ctan.org/search?phrase=luametatex).

> Do you have any idea where I might have gone wrong?

My guess is that when you invoke ConTeXt, you are running it from TeX
Live (or from other than the wiki installation).

To check that, what do you get from "which context"?

Which is your output from "context --version"?

My system reads:

  mtx-context | current version: 2023.02.07 19:06

When in doubt run the following (given the paths you provided):

  cd ~/Documents/ConTeXt/ConTeXt-LMTX/
  sh ./install.sh
  cd && context --version

And you should get what my system reads (unless there is an update today).

I hope it helps,

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


[NTG-context] issue with custom hyphenator

2023-02-10 Thread Pablo Rodriguez via ntg-context
Dear list,

I have just copied this from
https://www.pragma-ade.com/general/manuals/languages-mkiv.pdf#page=23:

  \startluacode
  local subset = {
  a = true,
  e = true,
  i = true,
  o = true,
  u = true,
  y = true,
  }

  languages.hyphenators.traditional.installmethod("test",
  function(dictionary,word,n)
  local t = { }
  for i=1,#word do
  local w = word[i]
  if subset[w] then
  t[i] = {
  before = "<" .. w,
  after  = w .. ">",
  left   = false,
  right  = false,
  }
  else
  t[i] = false
  end
  end
  return t
  end
  )
  \stopluacode

  \definehyphenationfeatures
[demo]
[alternative=test]
  \setuphyphenation[method=traditional]

  \starttext
  %\righthyphenmin=-1
  \sethyphenationfeatures[demo]
  \hsize\zeropoint
  coming anaback
  \stoptext

Using current latest (from 2023.02.07 19:06), I get:

  cing
  anack

I’m missing m and b in the hyphenated words.

I’m afraid that the hyphenator is all Greek to me.

Is there any reason why letters are lost in hyphenation?

I’m afraid (I think) I might have hit a bug.

Many thanks for your help,

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


Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Pablo Rodriguez via ntg-context
On 2/5/23 13:13, Hans Hagen via ntg-context wrote:
> On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Are we missing something or is this a bug?
> what do you expect as result? (maybe try \righthyphenmin=1)

Line breaks are removing characters.

In the sample below, output from

  \hsize\zeropoint
  \sha{a1b2c3d4}

reads:

  a
 _
 _
 _
 _
  3d4

I’m afraid \righthyphenmin=-1 prevents hyphenation (it seems to do it
everywhere).

Sorry, but I don’t get what is wrong here.

Many thanks for your help,

Pablo


  \startluacode
  function document.addfunnyhyphen(tfmdata)
  local underscore = utf.byte("_")
  local char   = tfmdata.characters[underscore]
  if not char then return end
  tfmdata.characters[0xFE000]   = {
  width= 0,
  height   = 0,
  depth= 0,
  commands = {
  { "right", -char.width },
  { "down", char.depth },
  { "slot", 1, underscore },
  }
  }
  end


  utilities.sequencers.appendaction("aftercopyingcharacters",
  "after","document.addfunnyhyphen")

  local shared = {
  start  = 1,
  length = 1,
  before = utf.char(0xFE000),
  after  = nil,
  left   = false,
  right  = false,
  }

  local all = table.setmetatableindex({ }, function(t,k)
  return shared
  end)

  languages.hyphenators.traditional.installmethod("sha",
  function(dictionary,word,n)
  return all
  end
  )
  \stopluacode

  \definehyphenationfeatures
   [sha]
   [characters=all,
alternative=sha,
righthyphenchar="FE000]

  \unexpanded\def\sha#1%
   {\begingroup\tt
\righthyphenmin=-1
\sethyphenationfeatures[sha]%
\setuphyphenation[method=traditional]%
#1%
\endgroup}

  \starttext
  \startTEXpage[width=6em, offset=.25em]
  \hsize\zeropoint
  \sha{a1b2c3d4}

  extraordinary linguistics

  \righthyphenmin=-1
  extraordinary linguistics
  \stopTEXpage
  \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
___


Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-05 Thread Pablo Rodriguez via ntg-context
On 2/4/23 10:37, Pablo Rodriguez via ntg-context wrote:
> On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
>> On this page of the wiki there is an example for wrapping long words,
>> like long hexadecimal strings:
>>
>> https://wiki.contextgarden.net/Wrapping
>>
>> This example is buggy because it deletes one character at the point that
>> it is wrapped.
>>
>> Anyone have a solution?
> 
> Many thanks for your report, Hugo.
> 
> I use this code from time to time and I totally overlooked this.
> 
> Have you checked all options that the sample contains?

Hans,

I have just checked that these line breakings loose a character in all
options.

The next sample displays the issue clearly:


  \startluacode

--local shared = {
--start  = 1,
--length = 1,
--left   = false,
--right  = false,
--}

   local shared = {
   start  = 1,
   length = 1,
   before = utf.char(0xB7),
   after  = nil,
   left   = false,
   right  = false,
   }

   -- languages.hyphenators.traditional.installmethod("sha",
   -- function(dictionary,word,n)
   -- local t = { }
   -- for i=1,#word do
   -- t[i] = shared
   -- end
   -- return t
   -- end
   -- )

   -- or more efficient when used often:

   -- local all = { }
   -- for i=1,512 do
   -- all[i] = shared
   -- end
   -- languages.hyphenators.traditional.installmethod("sha",
   -- function(dictionary,word,n)
   -- return all
   -- end
   -- )

   -- or more obscure:

   -- local all = table.setmetatableindex({ }, function(t,k)
   -- t[k] = shared
   -- return shared
   -- end)
   --
   -- languages.hyphenators.traditional.installmethod("sha",
   -- function(dictionary,word,n)
   -- return all
   -- end
   -- )

   -- or just (lua is fast enough anyway)

   local all = table.setmetatableindex({ }, function(t,k)
   return shared
   end)

   languages.hyphenators.traditional.installmethod("sha",
   function(dictionary,word,n)
   return all
   end
   )
  \stopluacode

  \definehyphenationfeatures
 [sha]
 [characters=all,
  alternative=sha]

   \unexpanded\def\sha#1%
 {\begingroup
  \sethyphenationfeatures[sha]%
  #1%
  \endgroup}

   \setuphyphenation[method=traditional]
%
%  \unexpanded\def\sha#1%
% {\begingroup
%  \sethyphenationfeatures[sha]%
%  \setuphyphenation[method=traditional]%
%  #1%
%  \endgroup}

  \starttext
  \hyphenatedword{\sha{8b2f3c087046c3943ace0dc4f958ef2138e58a51b40e%
  ef6fab6fa1aeb845cc257a410ab1b914bc399b4293f%
  31c76fc2c73e5be5ea4d329f9e6820984688efec2}}
  \stoptext

Are we missing something or is this a bug?

Many thanks for your help,

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


Re: [NTG-context] Bug in verbatim wrapping examples on wiki

2023-02-04 Thread Pablo Rodriguez via ntg-context
On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
> On this page of the wiki there is an example for wrapping long words,
> like long hexadecimal strings:
> 
> https://wiki.contextgarden.net/Wrapping
> 
> This example is buggy because it deletes one character at the point that
> it is wrapped.
> 
> Anyone have a solution?

Many thanks for your report, Hugo.

I use this code from time to time and I totally overlooked this.

Have you checked all options that the sample contains?

Many thanks for your help,

Pablo

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


Re: [NTG-context] Sentence breaks for "English-style" (TeX default in English language) spacing regime

2023-02-04 Thread Pablo Rodriguez via ntg-context
On 2/3/23 19:11, Henry House via ntg-context wrote:
> List: What method should one use to code whitespace after a period as
> being sentence-ending, not midsentence, when not employing French
> spacing?

Hi Henry,

not sure I’m getting your point, since this is also a question of
perspective.

What may be named “French spacing” in English may be considered as
“English spacing” in any other European language.

But this is pure TeX
(https://git.savannah.gnu.org/cgit/teximpatient.git/plain/teximpatient/book.pdf#search=null):

  \starttext
  \startTEXpage[offset=1em]
  PhD. Next sentence

  PhD\null. Next sentence
  \stopTEXpage
  \stoptext

I think this may be what you want.

> References:
> 
> https://wiki.contextgarden.net/French_spacing Not helpful alas.

Would you be so kind to update the wiki?

I hope it helps,

Pablo

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


Re: [NTG-context] list not following "focus=standard"?

2023-01-31 Thread Pablo Rodriguez via ntg-context
On 1/30/23 12:18, Pablo Rodriguez via ntg-context wrote:
> […]
> I‘m afraid this might be a regression from a recently fixed issue.

Hans,

I see there is a new strc-lst.lmt. So comparing it with strc-lst.lmt, I
saw what is missing:

-if cheat and references then
+local v  = usedviews[i]
+if cheat and cheats[v] and references then
 -- this permits runs=2 with interactivity
 local internal = references.internal
 usedinternals[internal] = true

Proper diff attached.

Many thanks for your help,

Pablo--- strc-lst.lmt	2023-01-31 12:23:12.240689092 +0100
+++ mkxl/strc-lst.lmt	2023-01-31 12:23:32.170871203 +0100
@@ -962,7 +962,8 @@
 local numberdata = listentry.numberdata
 local references = listentry.references
 local special= specials and numberdata and specials[zerostrippedconcat(numberdata.numbers,".")] or ""
-if cheat and references then
+local v  = usedviews[i]
+if cheat and cheats[v] and references then
 -- this permits runs=2 with interactivity
 local internal = references.internal
 usedinternals[internal] = true
___
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
___


[NTG-context] layout for marked pages?

2023-01-30 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \showframe
  \setuplayout[width=middle]
  \definelayout[odd][reset]
  \definelayout[even][reset]
  \doiftext{\markedpages[zapf]}
{\doloopoverlist{\markedpages[zapf]}
  {\definelayout[\recursestring][page]}}
  \starttext
  \dorecurse{50}{\input{knuth}\par}
  \page\startmarkpages[zapf]
\dorecurse{50}{\input{zapf}\par}
  \stopmarkpages\page
  \dorecurse{50}{\input{knuth}\par}
  \stoptext

I wanted to have page layout in pages marked with zapf.

I thought \markedpages[zapf] was the way to go, but I only get text
after marked pages, not before them.

Which is the right approach to have marked pages with a different layout?

I would be happy to update
https://wiki.contextgarden.net/Page_Layout#Multiple_layouts.

Many thanks for your help,

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


Re: [NTG-context] Best way to access casul fonts

2023-01-30 Thread Pablo Rodriguez via ntg-context
On 1/29/23 19:07, Mattias Märka via ntg-context wrote:
> Hi
> 
> This is probably the most reasonable solution.

Hi Mattias,

would you be so kind to update
https://wiki.contextgarden.net/Use_the_fonts_you_want to include this?

Many thanks for your help,

Pablo

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


[NTG-context] list not following "focus=standard"?

2023-01-30 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \setupinteraction[state=start, focus=standard]
  \starttext
  \completecontent
  \dorecurse{25}
{\section{Section}
  a\footnote{b}}
  \stoptext

Using current latest (from 2023.01.26 18:34), destinations for TOC are
pages (/D [ 7 0 R /Fit ]) and destinations for footnotes are named
destinations (/D [ 1 0 R /XYZ 61.900625 141.0443 null ]).

Compare https://pdf.ousia.tk/lst-fnt.pdf#_3 with any link from the TOC.

I‘m afraid this might be a regression from a recently fixed issue.

Could anyone confirm this issue?

Many thanks for your help,

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


Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-30 Thread Pablo Rodriguez via ntg-context
On 1/29/23 17:58, Kalouguine Andre via ntg-context wrote:
> On 28.01.2023 22:54, Hans Hagen via ntg-context wrote:
>> […]
>> so: this is all very viewer dependent! (The suggested comment method
>> is more reliable.)
>  
> Unfortunately as I just found out, comments are also viewer dependent...
> For instance in Firefox, indentations are lost.

Hi André,

as far as I know, this may be a bug in PDF.js.

Could you report it to the developers (https://github.com/mozilla/pdf.js)?

Many thanks for your help,

Pablo

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


Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 14:31, Kalouguine Andre via ntg-context wrote:
> Hi Pablo,

Hi André,

> [...]  
> That's actually something I had never thought of, using PDF comments,
> thanks!.

When I faced a similar task, I thought it could be the way of solving
the issue (how to copy and paste ConTeXt code and console commands).

> It's a really nice approach, though weirdly it doesn't work on
> Okular (Linux+KDE) for me, even though attachments worked fine. I'll
> try and see why that is.
Using Fedora 37 (and having just installed Okular), I see that
annotations are tricky to open in Okular.

First you have to select the Annotations tab on the left pane, go to the
annotation and then right-click on it to open (the pop-up note).

Evince has a more effective approach: double-clicking on the icon opens
the note (afaIk, this is similar to Acrobat).

I hope this helps,

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


Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 03:01, Kalouguine Andre via ntg-context wrote:
> Good day to everyone,
> 
> I'm trying to make a verbatim block of text with copiable leading spaces
> so that students can just copy my Python code snippets into their IDE.

Hi André,

I wonder whether I’m getting your point with the following sample:

  \showframe
  \setupinteraction[state=start]
  \starttext
  \startbuffer[abc]
  def foo(x):
  if x == 0:
  bar()
  else:
  baz(x)
  foo(x - 1)
  \stopbuffer
  \comment[location=leftmargin,
space=yes,
buffer=abc,
title={Python code}]
{}\typebuffer[abc]
  \stoptext

This might solve what you need. At least, this is the approach that I
use to provide text that can be directly copied.

I’m on Linux and last time I tested on Windows there were extra lines in
the comments.

Just in case it might help,

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


Re: [NTG-context] notes by paragraph

2023-01-28 Thread Pablo Rodriguez via ntg-context
On 1/28/23 03:58, jbf via ntg-context wrote:
> Re my earlier question on footnotes by defined paragraph:
> 
> \start...stoplocalfootnotes and \placelocalfootnotes largely solves the
> issue (had forgotten that option), but I am still getting the footnotes
> repeated at the bottom of the page. I am obviously missing a setting.
> There are parts of this text that do require the usual footnotes at the
> bottom, so I would not want to turn off this option permanently. I have
> tried \setupnotation[footnote][display=no] but that is not working.

Hi Julian,

\setupnote[footnote][location=none] might help.

Since you don’t provide a minimal sample to play with, I cannot tell
whether this works or not.

Just in case it helps,

Pablo

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


<    1   2   3   4   5   6   7   8   9   10   >