Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-29 Thread cryo shock via ntg-context
Of course it works, it's the order.
For me TeX wouldn't be the same without you. Thank you very much Hans.

Hans Hagen via ntg-context  schrieb am Mo., 25. Juli
2022, 09:20:

> On 7/24/2022 11:35 PM, cryo shock via ntg-context wrote:
> > Hey there,
> >
> > I am having trouble understanding some basic blank page behavior. I hope
> > that somebody of you can point me in the right direction.
> >
> > My primary goal is to create application documents consisting of various
> > .tex components and with external PDF pages inserted as well. The second
> > part of that goal is to use multiple-level bookmarking as well.
> > Bookmarking should look like this:
> >
> > - Letter
> > - Resume
> > - Testimonies
> > -- Testimony A
> > -- Testimony B
> > -- Testimony C
> >
> > In the following MWE you can see my progress along with some notes to
> > help understanding.
> >
> > There are two questions, I'd wish could be answered:
> >
> > 1. Why does TeX insert a blank page before a pagefigure I enclose within
> > a (hidden) head?
> >
> > 2. Can the \bookmark[list]{text} command be somehow used for multi-level
> > bookmarking?
> >
> > While the first question would make up for a more consistent solution,
> > the second question would do the job as well.
> >
> > I hope some of you can enlighten me.
> >
> > Cheers, k
> >
> >
> > %%% START of MWE
> >
> > \definehead[VisiSection][section]
> > \setuphead[VisiSection][number=no]
> >
> > \definehead[InvisiSection][VisiSection]
> > \setuphead[InvisiSection][placehead=no]
> >
> > \definelist[CustomBMarks]
> >
> > \setupinteraction[state=start]
> > \placebookmarks[VisiSection,InvisiSection,CustomBMarks]
> >
> > \startcomponent * % not a product, no
> >\startVisiSection[title={Custom Section A}]
> >  Text of Custom Section A
> >\stopVisiSection
> >\page
> >\startVisiSection[title={Custom Section B}]
> >  Text of Custom Section B
> >\stopVisiSection
> >\startInvisiSection[title={Hidden Custom Section A}]
> >  Text of Hidden Custom Section A
> >\stopInvisiSection
> >\page
> >\startInvisiSection[title={Hidden Custom Section B}]
> >  Text of Hidden Custom Section B
> >\stopInvisiSection
> >\page
> >TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST
> > }NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack}
> > \dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack}
> >%%%
> >%%% So far no problems.
> >%%% The following combination does the job, but I see no possibility
> >%%% to arrange the "CustomBMarks"-list in multi-levels.
> >%%%
> >\page
> >\startstandardmakeup
> >  \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure}
> >\stopstandardmakeup
> >%%%
> >%%% So the following method would be the best choice to work with
> >%%% multi-level bookmarks. But as soon as I start working with
> >%%% (custom) heads together with pagefigures, CTX places a blank
> >%%% page before every figure...
> >%%% Note: you don't need a dummy file. The last (unnumbered) page is
> >%%% the wanted external PDF. The numbered page before is the unwanted
> > one.
> >%%%
> >\startInvisiSection[title={External Testpage A}]
> >  \startstandardmakeup
> >\filterpages[{test.pdf}][1]
> >  \stopstandardmakeup
> >\stopInvisiSection
> > \stopcomponent
> because even a hidden head is something (anchor on page), you can try this:
>
>  \startstandardmakeup
>\startInvisiSection[title={External Testpage A}]
>\filterpages[{test.pdf}][1]
>\stopInvisiSection
>  \stopstandardmakeup
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://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
>
> ___
>
___
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] bibliography problem

2022-07-29 Thread Henning Hraban Ramm via ntg-context

Hi,
Denis’ article in the CG journal uses the publications module with a 
.bib database. With ConTeXt LMTX 2022.05.11 all was well, with the 
current version (2022.07.27) it can’t find the entries of the database:


open source > level 2, order 20, name 'dm-ligatures/dm-ligatures.tex'
publications> adding bib data to set 'dmlig' from source 
'dm-ligatures/references.bib'
interface   > macros > processed mkvi file 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', 
delta 94
interface   > macros > processed mkvi file 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', 
delta 0
open source > level 3, order 21, name 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
close source> level 3, order 21, name 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
structures  > bookmark: Automatic suppression of unwanted ligatures 
— Denis Maier
structure   > sectioning > part @ level 1 : 1 -> Automatic 
suppression of unwanted ligatures\doifsomething {Denis Maier}{ —\ 
}\IndexAuthor Denis Maier

structures  > bookmark: Introduction
structure   > sectioning > section @ level 3 : 1.0.1 -> Introduction
fonts   > defining > unable to define 
'IBMPlexSansHebrew-regular' as 'dummy--5'

publications> analyzing previous publication run for 'dmlig'
publications> no entry 'taraborelli:beauty' found in dataset 'dmlig'
publications> no entry 'knuth:texbook' found in dataset 'dmlig'
publications> no entry 'duden' found in dataset 'dmlig'
publications> no entry 'detailtypografie' found in dataset 'dmlig'
publications> no entry 'butterick:practical-typography-ligatures' 
found in dataset 'dmlig'

publications> no entry 'bringhurst:style' found in dataset 'dmlig'
publications> no entry 'rafaeli:book-typography' found in dataset 
'dmlig'


But the entries do exist in the bib file, and a minimal example works.

In both cases, the setup looks like:

\usebtxdataset[dmlig][dm-ligatures/references.bib]
\setupbtx[dataset=dmlig]
\usebtxdefinitions[apa]
\setupbtx[apa:cite][alternative=num]

I don’t know what to look for. Any hints?

Hraban
___
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] Can't no break between a close punctuation and a open punctuation

2022-07-29 Thread 黄复雄 via ntg-context
Dear Hans,
I found that ConTeXt injected two infinity penalties between
a close punctuation and a open punctuation, for example
between `”“`, or `:“`, as showed in the following Chinese
document. But actually, we need to break between them sometime.
Please note that there is no space around full width
punctuations in Chinese document.
```lmtx
\setscript[hanzi]
\usetypescriptfile[mscore]
\usebodyfont   [mschinese,20pt]

\showframe

% just for watching node list
% \startluacode
% local watch = require("watch_sys_actions.lua")
% watch.register()
% \stopluacode

\starttext

\dorecurse{5}{“好?!;”“:,。”} % linebreak sutck

\dorecurse{30}{“我”} % linebreak sutck

\dorecurse{30}{我} % linebreak work

\dorecurse{30}{我。} % linebreak work

\stoptext
```

What I see between any two consecutive punctuations is

   1
 0   0   655500
   1
 0   655500  0

so nowhere to linebreak.


Huang Fusyong(黄复雄)


watch_sys_actions.lua
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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] linebreak error: no leftinit or rightinit or leftfill or rigthfill expected

2022-07-29 Thread 黄复雄 via ntg-context
Thanks, Hans.
My module works again now, with the help of tex.preparelinebreak().

For potential readers:
tex.preparelinebreak(list)  modifyed my list for tex.linebreak(list) to:

 # by user in advance, necessary


   # by user in advance, necessary
...
 # The last glue here, in the end of the list, is
removed

 # as same as parfillrightskip



黄复雄  于2022年7月16日周六 10:02写道:

> Thanks, Hans
>
> I modified my list to:
>
>2873 : par vmodepar>
>3113 : glue indentskip>
>3119 : glue parinitleftskip>
>2879 : glue parinitrightskip>
>2891 : glyph unset>
> ...
> 639 : glyph unset>
>3089 : kern userkern>
>2334 : glue userskip>
>3095 : rule normal>
>3101 : glue spaceskip>
> 642 : glue spaceskip>
>3107 : penalty userpenalty>
> 645 : glue userskip>
>3125 : penalty userpenalty>
>3131 : glue parfillleftskip>
> nil : glue parfillskip>
>
> but the error is the same, so I'll wait the  tex.preparelinebreak(), and
> observe it's work for more details.
>
> Huang Fusyong(黄复雄)
>
___
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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2022-07-29 Thread Jeong Dal via ntg-context
Dear Hans,

Thank you for the new way to align math formulas.
It is great to use “\alignhere”, “\breakhere”.

However, I got a problem today.
If I use it with figures side by side, then the alignment is broken.

Please try the following MWE.

Best regards,

Dalyoung


\setupexternalfigures[location={default,local,global}]

\starttext
\startplacefigure[location=right,]
\externalfigure[cow][width=.3\makeupwidth]
\stopplacefigure
\startformula
 U(f,P) \alignhere = f(2,2)\Delta A_{11}+f(2,3)\Delta A_{12}\breakhere
  \skiphere[1em] +f(3,2)\Delta A_{21}+f(3,3)\Delta A_{22} \breakhere
  = 4\times 2 + 6 \times 1+ 6 \times 2 +9 \times 1  \breakhere
  = 35.
\stopformula
\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
___