[NTG-context] Footnotes on the bottom of the column's current page, instead of the columns' end

2023-10-25 Thread Juliano David Hilario
>
>
> Hello, I'm trying to achieve a look similar to a magazine our religious
organization frequently discusses, but unfortunately can't find the correct
settings to do so. Whenever I call a custom note on a column, instead of
the note showing on the bottom of the page, it shows at the end of the
column. (like an endnote, except, it shows as a small footnote at the
beginning)

How should I make it shown on the bottom of the page of the current
footnote instead of the end of the column command?

My MWE:

\definenote[question][textcommand=\gobbleoneargument, numbercommand=\gobbleoneargument]
\setupnotation[question][counter=]

\startdocument
\startcolumns[n=2, balanced]
\dorecurse{19}{
	\question{1. This is a question for discussion. I wished it was on the current page instead of the end}
	\input{knuth}

}
\stopcolumns
\stopdocument


mwe.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Finding the position of an image on the page.

2023-10-01 Thread peter.hopcroft--- via ntg-context


Hello list,

Can I find the position of an image on the page after I have placed the image 
with \externalfigure? 

For example, the top, left corner of the image might be 50 mm in from left side 
of page and 120 mm down from the top of the page.

I know I can use \getfiguredimensions to find information about the placed  
image, but it does  not give me the position of the image.

Thank you
Peter Hopcroft
___
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] Bug? Text following columns at end of page goes into footer not next page

2023-09-30 Thread Bruce Horrocks
Two column text that ends near the foot of a page can push the next line into 
the footer rather than starting a new page.

MWE for ConTeXt  ver: 2023.09.26 18:19 LMTX :-

\setuppapersize [A4]
\showframe

\starttext
Knuth in knolumns
\dorecurse{30}{\crlf}

\startcolumns
  \input knuth
\stopcolumns

This line goes into the footer rather than the next page.
\stoptext

—
Bruce Horrocks
Hampshire, UK

___
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] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual 
they should work.


Hraban


\setuppapersize[A5,landscape]
\useMPlibrary[dum]
\definecolumnset[Two][n=2]

\starttext
\startcolumnset[Two]

\dorecurse{5}{1\recurselevel\samplefile{lorem}\par}

\startplacefigure[location=page,title={my caption}]%
\externalfigure[dummy][width=2\textwidth,height=.95\textheight]%
\stopplacefigure

\dorecurse{5}{2\recurselevel\samplefile{lorem}\par}
\stopcolumnset

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


[NTG-context] Re: Chapters without new page

2023-09-15 Thread Bruce Horrocks


> On 15 Sep 2023, at 13:56, Taco Hoekwater  wrote:
> 
> Like this?
> 
>  \definehead[mychapter][chapter]
>  \setuphead[mychapter][page=no]

Taco beat me to it... a simple example:

\starttext

\chapter{First}
Some text

\chapter{Second}
More text

\chapter{Third}
More text

\setuphead[chapter][page=no]
\chapter{Fourth}
More text

\chapter{Fifth}
More text

\stoptext

—
Bruce Horrocks
Hampshire, UK

___
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: Chapters without new page

2023-09-15 Thread Taco Hoekwater


> On 15 Sep 2023, at 14:07, Rik Kabel  wrote:
> 
> 
> On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
>> 
>> 
>>> On 15 Sep 2023, at 09:58,   
>>> wrote:
>>> 
>>> I thought there should be a setups key on \setupsectionblock, but 
>>> apparently there isn’t. So, the example below does not work, but maybe it 
>>> wouldn’t be too hard to add it…
>>> 
>> There is a ‘before' key, but note that the sectionblock itself is called 
>> “backpart”, not “backmatter”
>> 
>> Either use
>> 
>> \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]
>> 
>> Or, nicer:
>> 
>> \startsectionblockenvironment[backpart]
>> \setuphead[chapter][page=no]
>> \stopsectionblockenvironment
>> 
>> 
>>> Best,
>>> Denis
>>> \setuphead[chapter][page=yes]
>>> \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
>>> \starttext
>>> \chapter{One}
>>> \input knuth
>>> \chapter{Two}
>>> \input ward
>>> \startbackmatter
>>> \chapter{Three}
>>> \input knuth
>>> \chapter{Four}
>>> \input ward
>>> \stopbackmatter
>>> \stoptext
>>> Von: Jeroen  
>>> Gesendet: Donnerstag, 14. September 2023 23:50
>>> An: mailing list for ConTeXt users 
>>> Betreff: [NTG-context] Chapters without new page
>>> In the \startbackmatter ... \stopbackmatter section i would like to have 
>>> some chapters that are not automatically placed on a new page for the next 
>>> chapter. Is there an easy way to suppress the new page for these chapters?
>>> Thanks, Jeroen
>>> 
>> Best wishes,
>> Taco
>> 
>> 
> While this works, it changes behavior for **all** chapters. It does not 
> address the original question of how to have **some** chapters  "not 
> automatically placed on a new page."

Like this?

  \definehead[mychapter][chapter]
  \setuphead[mychapter][page=no]


Taco


___
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: Chapters without new page

2023-09-15 Thread Rik Kabel


On 9/15/2023 4:10 AM, Taco Hoekwater wrote:



On 15 Sep 2023, at 09:58,wrote:

I thought there should be a setups key on \setupsectionblock, but apparently 
there isn’t. So, the example below does not work, but maybe it wouldn’t be too 
hard to add it…

There is a ‘before' key, but note that the sectionblock itself is called 
“backpart”, not “backmatter”

Either use

\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]

Or, nicer:

\startsectionblockenvironment[backpart]
   \setuphead[chapter][page=no]
\stopsectionblockenvironment


  Best,
Denis
   \setuphead[chapter][page=yes]
  \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
  \starttext
  \chapter{One}
\input knuth
  \chapter{Two}
\input ward
   \startbackmatter
\chapter{Three}
\input knuth
  \chapter{Four}
\input ward
\stopbackmatter
\stoptext
   Von: Jeroen  
Gesendet: Donnerstag, 14. September 2023 23:50

An: mailing list for ConTeXt users
Betreff: [NTG-context] Chapters without new page
  In the \startbackmatter ... \stopbackmatter section i would like to have some 
chapters that are not automatically placed on a new page for the next chapter. 
Is there an easy way to suppress the new page for these chapters?
Thanks, Jeroen

Best wishes,
Taco

While this works, it changes behavior for **all** chapters. It does not 
address the original question of how to have **some** chapters  "not 
automatically placed on a new page."


--
Rik
___
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: Chapters without new page

2023-09-15 Thread Taco Hoekwater


> On 15 Sep 2023, at 09:58,   wrote:
> 
> I thought there should be a setups key on \setupsectionblock, but apparently 
> there isn’t. So, the example below does not work, but maybe it wouldn’t be 
> too hard to add it…

There is a ‘before' key, but note that the sectionblock itself is called 
“backpart”, not “backmatter”

Either use

\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]

Or, nicer:

\startsectionblockenvironment[backpart]
  \setuphead[chapter][page=no]
\stopsectionblockenvironment

>  Best,
> Denis
>   \setuphead[chapter][page=yes]
>  \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
>  \starttext
>  \chapter{One}
> \input knuth
>  \chapter{Two}
> \input ward
>   \startbackmatter
> \chapter{Three}
> \input knuth
>  \chapter{Four}
> \input ward
> \stopbackmatter
> \stoptext
>   Von: Jeroen  
> Gesendet: Donnerstag, 14. September 2023 23:50
> An: mailing list for ConTeXt users 
> Betreff: [NTG-context] Chapters without new page
>  In the \startbackmatter ... \stopbackmatter section i would like to have 
> some chapters that are not automatically placed on a new page for the next 
> chapter. Is there an easy way to suppress the new page for these chapters?
> Thanks, Jeroen

Best wishes,
Taco

___
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: Chapters without new page

2023-09-15 Thread denis.maier
I thought there should be a setups key on \setupsectionblock, but apparently 
there isn’t. So, the example below does not work, but maybe it wouldn’t be too 
hard to add it…

Best,
Denis


\setuphead[chapter][page=yes]

\setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]

\starttext

\chapter{One}
\input knuth

\chapter{Two}
\input ward


\startbackmatter
\chapter{Three}
\input knuth

\chapter{Four}
\input ward
\stopbackmatter
\stoptext


Von: Jeroen 
Gesendet: Donnerstag, 14. September 2023 23:50
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Chapters without new page

In the \startbackmatter ... \stopbackmatter section i would like to have some 
chapters that are not automatically placed on a new page for the next chapter. 
Is there an easy way to suppress the new page for these chapters?
Thanks, Jeroen
___
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: Chapters without new page

2023-09-14 Thread Rik Kabel


On 9/14/2023 10:10 PM, Rik Kabel wrote:



On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to 
have some chapters that are not automatically placed on a new page 
for the next chapter. Is there an easy way to suppress the new page 
for these chapters?

Thanks, Jeroen


Untried:

 1. Define a new section head that clones chapter
(\definehead[NPChapter][chapter]).
 2. Modify the new section head so that it does not do a break
(\setuphead[NPChapter][page=no]).
 3. Use the new section head instead of \chapter or \startchapter.

And, if you want them to appear in the table of contents, modify the 
combined list of section headers that go into the contents 
(\setupcombinedlist[content][list=chapter,NPChapter,...]). Perhaps add 
it to the pdf bookmarks as well (\placebookmarks...).


--
RIk
___
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: Chapters without new page

2023-09-14 Thread Rik Kabel


On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to 
have some chapters that are not automatically placed on a new page for 
the next chapter. Is there an easy way to suppress the new page for 
these chapters?

Thanks, Jeroen


Untried:

1. Define a new section head that clones chapter
   (\definehead[NPChapter][chapter]).
2. Modify the new section head so that it does not do a break
   (\setuphead[NPChapter][page=no]).
3. Use the new section head instead of \chapter or \startchapter.

--
Rik___
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] Chapters without new page

2023-09-14 Thread Jeroen
In the \startbackmatter ... \stopbackmatter section i would like to have
some chapters that are not automatically placed on a new page for the
next chapter. Is there an easy way to suppress the new page for these
chapters?
Thanks, Jeroen
___
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: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
That's kind of you Max, and I will definitely take a look at that, both 
for the current book I am working on, but also for the variations it can 
offer for other titles.


In the meantime, Wolfgang gently reminded me that I had overlooked one 
various obvious (and simple) approach using alternative=d, which I 
confess I had entirely overlooked!


Julian

On 5/9/23 08:43, Max Chernoff wrote:

Hi Julian,


I am attempting to get a TOC that looks like the following (in other
words with section titles and their relative page numbers in a block
below the chapter):
Has
anyone put together a TOC of this kind and might be able to give me a
hint to follow?

This is fairly close to what you're looking for I think (the manual, not
the package itself):


http://mirrors.ctan.org/macros/luatex/generic/lua-widow-control/lua-widow-control.pdf

The source is a little messy, but I've used it in a bunch of other
documents and it seems fairly robust:


https://github.com/gucci-on-fleek/lua-widow-control/blob/7c4544/docs/manual/lwc-manual.mkxl#L167-L234

There aren't any page numbers for the subsections in that, but you
should be able to add those inside the definition of
\SubsectionTOCcommand with either #3 or \currentlistentrypagenumber.

Thanks,
-- Max
___
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] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Max Chernoff


Hi Julian,

> I am attempting to get a TOC that looks like the following (in other 
> words with section titles and their relative page numbers in a block 
> below the chapter):

> Has 
> anyone put together a TOC of this kind and might be able to give me a 
> hint to follow?

This is fairly close to what you're looking for I think (the manual, not
the package itself):

   
http://mirrors.ctan.org/macros/luatex/generic/lua-widow-control/lua-widow-control.pdf

The source is a little messy, but I've used it in a bunch of other
documents and it seems fairly robust:

   
https://github.com/gucci-on-fleek/lua-widow-control/blob/7c4544/docs/manual/lwc-manual.mkxl#L167-L234

There aren't any page numbers for the subsections in that, but you
should be able to add those inside the definition of
\SubsectionTOCcommand with either #3 or \currentlistentrypagenumber.

Thanks,
-- Max
___
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 Jeroen
Pablo,

Thanks, even though I use LMTX, only this form works:

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

Thanks
Jeroen

Op ma 4 sep 2023 om 18:43 schreef 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
>
> ___
___
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 Hans Hagen via ntg-context

On 9/4/2023 6:09 PM, 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?



\setupfootertexts
   [title]
   [\pagenumber{} of \totalnumberofpages]

\setcounter
   [userpage]
   [0]

\setuppagenumbering
   [location=]

\startdocument

\setupfooter[state=stop]
\startfrontmatter
frontpage
\stopfrontmatter
\setupfooter[state=start]

\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter

\stopdocument

\setupfootertexts
  [title]
  [\pagenumber\space of \lastpagenumber]


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


[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] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
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?



\setupfootertexts
  [title]
  [\pagenumber{} of \totalnumberofpages]

\setcounter
  [userpage]
  [0]

\setuppagenumbering
  [location=]

\startdocument

\setupfooter[state=stop]
\startfrontmatter
frontpage
\stopfrontmatter
\setupfooter[state=start]

\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter

\stopdocument
___
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: Different Layout for First Page

2023-09-04 Thread Wolfgang Schuster

Jeroen schrieb am 04.09.2023 um 14:10:
I have a document with the first page in startfrontmatter and all 
other pages in  startbodymatter. The layout setting is as following


[...]

What would be the easiest way to change the layout only for the first 
page since it has no footer. For the first page, I would like to have 
the text run all the way to the bottom with \vfill where normally the 
footer would be.


You need the two settings

\setupheader[state=high]
\setupfooter[state=high]

to get rid of the header and footer on the page where the commands take 
effect.


The nice thing is that both values are reset on the following page and 
with \startsectionblockenvironment

you can make this layout change in the style file of your document.

\startsectionblockenvironment[frontpart]
\setupheader[state=high]
\setupfooter[state=high]
\stopsectionblockenvironment

\showframe

\starttext

\startfrontmatter
\samplefile{lorem}
\stopfrontmatter

\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter

\stoptext

Wolfgang
___
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] Different Layout for First Page

2023-09-04 Thread Jeroen
I have a document with the first page in startfrontmatter and all other
pages in  startbodymatter. The layout setting is as following

\setuplayout
  [backspace=20mm,
   width=175mm,
   topspace=15mm,
   header=0mm,
   footer=2mm,
   height=275mm,
   bottomheight=1mm,
   footerdistance=10mm]

\setupfootertexts
  [title]
  [\pagenumber{} of \totalnumberofpages]

\setupfooter[state=stop]
\startfrontmatter
\input{frontpage.tex}
\stopfrontmatter
\setupfooter[state=start]

\startbodymatter
\input{introduction.tex}
\stopbodymatter

What would be the easiest way to change the layout only for the first page
since it has no footer. For the first page, I would like to have the text
run all the way to the bottom with \vfill where normally the footer would
be.

Thanks
Jeroen
___
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: Reinserting a section title followed by (continued) after a page break

2023-09-04 Thread Hans Hagen via ntg-context

On 9/4/2023 5:55 AM, Calvin Ross wrote:

On the off chance anyone seeing this is interested, I have a solution uploaded 
as part of a module I wrote for screenplay and stageplay writing: 
https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480


A few remarks:

- you can best name modules like t-drama and then t-drame-screenplay and 
so in order to avoid clashes with files in the tex tree


- you really have to be careful with defining additional intercace 
constants; as you don't define them for other interface languages there 
is no real reason for them


- be aware that when you add key sto existign commands, future clashes 
can occur


- best define new commands CamelCase so that ther ei sno clash with 
existing or future commands


- as you basically define in mkii style, you can use \setevalue {xxx} 
{\getvalue{yyy}} which is a bit more readable


If you load the module in lmtx you get an error on \checkparameters 
which is not available in lmtx (here \ifparameters is a primitive) 
because \doifelseassignment is the real tester (checkparameters is more 
an mkii thing).


However, when you \enabledirectives[overloadmode=error] loading will be 
aborted earlier on because you overload existing macros.


It sounds worse than it is because if you use mkiv/lmtx there are easier 
ways to define an enviroment, think:


\unprotect

\installnamespace  {Slug}
\installcommandhandler \Slug {Slug} \Slug

\protect

\setupSlug[this=that]

\Slugparameter{this}

etc

Which would reduce the amount of code.

Anyway, I advise users of LMTX to testtheir local definitions with

\enabledirectives[overloadmode=error]

or at least

\enabledirectives[overloadmode=warning]


The solution ended up being very detailed and tightly coupled to this 
particular problem. However, the general approach was to use box registers to 
capture the portions of dialog marked using a command sequence (`\continue` in 
this case) that designates acceptable locations to insert a page break in the 
dialog. The markup is then placed into the document in pieces with each 
placement testing the `\pagetotal` against the `\pagegoal` to measure whether 
the current piece will fit on the current page.

This solution had to up using `\synchronizeoutput` as opposed to 
`\triggerpagebuilder`. I'm not sure why there's a difference in behavior 
between the two, but the former seems to fix bugs where the `\pagetotal`s would 
output the measure of the previous page rather than the current one -- leading 
to sporadic page breaks.


This is indeed a problem. Forcing the page builder is not always the 
solution, but neither is synchronize output. The first one triggers a 
check for pending contributions while the second forces it using a 
penalty which can have side effects.


One problem is that pagegoal and pagetotal are not always reliable. 
There is a wrap up about this which isnot yet in the disibution because 
it is part of a larger experiment. In luametatex we have a few more ways 
to influence the page builder and also get more reliable info about the 
state so far. It is something Mikael and I are experimenting with (using 
large complex mixed text/math documents) in the perspective of par and 
page building. We will come back to this later this year but some 
already trickled into context lmtx.


So, keep an eye on what shows up,

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://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: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-03 Thread Wolfgang Schuster

jbf schrieb am 04.09.2023 um 08:34:


I am attempting to get a TOC that looks like the following (in other 
words with section titles and their relative page numbers in a block 
below the chapter):


Chapter 1 ...5

Section 1   5, Section 2  6, Section 3  7,

Section 4   8, Section 5   9 etc

Chapter 2 10

Section 1   10, Section 2  11, Section 3  12,

Section 4   13, Section 5   14 etc

As I really had no idea how to do this, I found 
https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking 
it might help, but none of it compiles (for me) in LMTX. So I tried 
something different, e.g.


[...]

While that produces a result, it is nothing like what I want above. 
Has anyone put together a TOC of this kind and might be able to give 
me a hint to follow?




Please send *working* (which include some dummy content) examples.

The example below results in section entries which are listed as a 
paragraph, what output do you expect here.


\setuplist[chapter][alternative=c]
\setuplist[section][alternative=d]

\starttext

\completecontent

\dorecurse{2}
  {\chapter{Chapter #1}
   \dorecurse{10}{\section{Section ##1}}}

\stoptext

Wolfgang

___
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] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-03 Thread jbf
I am attempting to get a TOC that looks like the following (in other 
words with section titles and their relative page numbers in a block 
below the chapter):


Chapter 1 ...5

Section 1   5, Section 2  6, Section 3  7,

Section 4   8, Section 5   9 etc

Chapter 2 10

Section 1   10, Section 2  11, Section 3  12,

Section 4   13, Section 5   14 etc

As I really had no idea how to do this, I found 
https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking it 
might help, but none of it compiles (for me) in LMTX. So I tried 
something different, e.g.


\definelist[chapter]

\setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank] 



\definelist[section]

\setuplist[section] [textcommand=\setups{SecToc}]

\setupcombinedlist

[content]o

[list={chapter,section}]


\startsetups [SecToc]

\startframedtext [width=\textwidth, align=middle, frame=off]

\placelist [section]

[

criterium=chapter,

]

\stopframedtext

\stopsetups

While that produces a result, it is nothing like what I want above. Has 
anyone put together a TOC of this kind and might be able to give me a 
hint to follow?


Julian
___
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: Reinserting a section title followed by (continued) after a page break

2023-09-03 Thread Calvin Ross
On the off chance anyone seeing this is interested, I have a solution uploaded 
as part of a module I wrote for screenplay and stageplay writing: 
https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480

The solution ended up being very detailed and tightly coupled to this 
particular problem. However, the general approach was to use box registers to 
capture the portions of dialog marked using a command sequence (`\continue` in 
this case) that designates acceptable locations to insert a page break in the 
dialog. The markup is then placed into the document in pieces with each 
placement testing the `\pagetotal` against the `\pagegoal` to measure whether 
the current piece will fit on the current page.

This solution had to up using `\synchronizeoutput` as opposed to 
`\triggerpagebuilder`. I'm not sure why there's a difference in behavior 
between the two, but the former seems to fix bugs where the `\pagetotal`s would 
output the measure of the previous page rather than the current one -- leading 
to sporadic page breaks.
___
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 strange error with section and page

2023-08-27 Thread Xavier B.
Thanks. It works.

On Sun, 27 Aug 2023 21:24:54 +0200
Wolfgang Schuster  ha escrit:

> Am So., 27. Aug. 2023 um 19:54 Uhr schrieb Xavier B.  >:
> 
> > What is the state of this problem?
> > Is it some deadline here?
> >
> > I need to have a "production" document in mid september to show to my
> > students.
> > Can you please make a "push" in this topic.
> >
> 
> 
> Just update your installation, the problem is already fixed.
> 
> Wolfgang
___
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 strange error with section and page

2023-08-27 Thread Wolfgang Schuster
Am So., 27. Aug. 2023 um 19:54 Uhr schrieb Xavier B. :

> What is the state of this problem?
> Is it some deadline here?
>
> I need to have a "production" document in mid september to show to my
> students.
> Can you please make a "push" in this topic.
>


Just update your installation, the problem is already fixed.

Wolfgang
___
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 strange error with section and page

2023-08-27 Thread Xavier B.
What is the state of this problem?
Is it some deadline here?

I need to have a "production" document in mid september to show to my students.
Can you please make a "push" in this topic.

Thanks in advance,
Xavier

On Wed, 23 Aug 2023 22:04:36 +0200
Wolfgang Schuster  ha escrit:

> Xavier B. schrieb am 23.08.2023 um 15:02:
> > Wolfgang,
> >
> > I detect something extrange: when I use \startexercici \stopexercici (see 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt])
> >  in some cases there is an *undesired* indent (see attachment image). I saw 
> > the source 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-aritmetica-problemes-nombres-fraccions.conTeXt]
> >  which is the first time it happens.
> >
> > I don't see anything weird.
> >
> > Can you please help me?
> 
> I found the problem but I have to discuss it with Hans.
> 
> Wolfgang
___
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 strange error with section and page

2023-08-24 Thread Xavier B.
Oh Awesome.

I'm looking forward to the solution.

Thanks a lot,
Xavier


On Wed, 23 Aug 2023 22:04:36 +0200
Wolfgang Schuster  ha escrit:

> Xavier B. schrieb am 23.08.2023 um 15:02:
> > Wolfgang,
> >
> > I detect something extrange: when I use \startexercici \stopexercici (see 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt])
> >  in some cases there is an *undesired* indent (see attachment image). I saw 
> > the source 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-aritmetica-problemes-nombres-fraccions.conTeXt]
> >  which is the first time it happens.
> >
> > I don't see anything weird.
> >
> > Can you please help me?
> 
> I found the problem but I have to discuss it with Hans.
> 
> Wolfgang
___
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 strange error with section and page

2023-08-23 Thread Wolfgang Schuster

Xavier B. schrieb am 23.08.2023 um 15:02:

Wolfgang,

I detect something extrange: when I use \startexercici \stopexercici (see 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt])
 in some cases there is an *undesired* indent (see attachment image). I saw the 
source 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-aritmetica-problemes-nombres-fraccions.conTeXt]
 which is the first time it happens.

I don't see anything weird.

Can you please help me?


I found the problem but I have to discuss it with Hans.

Wolfgang
___
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 strange error with section and page

2023-08-23 Thread Xavier B.
On Tue, 22 Aug 2023 20:06:52 +0200
Wolfgang Schuster  ha escrit:

> While the solution here is to convert all subject headings to subsubject 
> (be sure to also take care
> of even lower section) a quick way to fix the page break is to disable 
> the page-value for subject,
> look at the commented line in the example how this can be done.
> 
>  begin example
> \setuphead[section][page=yes]
> %\setuphead[subject][page=no]
> 

Thank you VERY much.
You solved my problem

Xavier
___
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 strange error with section and page

2023-08-22 Thread Wolfgang Schuster

Xavier B. schrieb am 22.08.2023 um 19:32:

Hi,

I have a long document 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf]
 which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. 
I migrated old syntax to new one and replace \page[yes] before each section to

\setupheads[section][style={\bf \ssc}, alternative=margin, page=yes]

but now after each section there is a new page.

Why? I don't know.
Can someone help me to see what happens?

The source code is here [https://repo.or.cz/apunts-espa-matematiques.git]


You're using the structure for section of the following example in your 
document. This is a problem
because subjects are the same level as section or to be precise, 
subjects are unnumbered versions

of sections and inherit all settings from them unless configured otherwise.

While the solution here is to convert all subject headings to subsubject 
(be sure to also take care
of even lower section) a quick way to fix the page break is to disable 
the page-value for subject,

look at the commented line in the example how this can be done.

 begin example
\setuphead[section][page=yes]
%\setuphead[subject][page=no]

\starttext

\startsection[title=Section]

\startsubject [title=Subject]

\stopsubject

\stopsection

\stoptext
 end example

Wolfgang
___
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] An strange error with section and page

2023-08-22 Thread Xavier B.
Hi,

I have a long document 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf]
 which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. 
I migrated old syntax to new one and replace \page[yes] before each section to 

\setupheads[section][style={\bf \ssc}, alternative=margin, page=yes]

but now after each section there is a new page.

Why? I don't know.
Can someone help me to see what happens?

The source code is here [https://repo.or.cz/apunts-espa-matematiques.git]

Thanks in advance,
Xavier

PS: Please CCme
___
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: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context

On 8/22/2023 8:51 AM, Andres Conrado Montoya wrote:

Apologies, I just found the solution:
https://wiki.contextgarden.net/Command/setinjector

El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:


I'm trying to force a page break in a table of contents, using what is
recommended at
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break

However, it does not work. Here's a MWE:

\definelistextra[page][before=\page]
\starttext
\starttitle[title={Table of contents}]
\placecontent[extras={2=page}]
\stoptitle
\startchapter[title={First chapter}]
\input knuth
\stopchapter
\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\startchapter[title={Third chapter}]
\input knuth
\stopchapter
\stoptext

Is there a new way of obtaining a page break before a given part, chapter
or section in the ToC?

Here is another method:

\showpageprogress % [all]
%resetforcedbreak

\starttext
\registerforcedbreak[8][before]
\dorecurse{10}{\samplefile{tufte}\par}
\page
\resetforcedbreak
\registerforcedbreak[12][after]
\dorecurse{10}{\samplefile{tufte}\par}
\stoptext

(by-product of some new mechanisms that we are exploring)

(not yet wikified)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://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: Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
Apologies, I just found the solution:
https://wiki.contextgarden.net/Command/setinjector

El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:

> I'm trying to force a page break in a table of contents, using what is
> recommended at
> https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break
>
> However, it does not work. Here's a MWE:
>
> \definelistextra[page][before=\page]
> \starttext
> \starttitle[title={Table of contents}]
> \placecontent[extras={2=page}]
> \stoptitle
> \startchapter[title={First chapter}]
> \input knuth
> \stopchapter
> \startchapter[title={Second chapter}]
> \input knuth
> \stopchapter
> \startchapter[title={Third chapter}]
> \input knuth
> \stopchapter
> \stoptext
>
> Is there a new way of obtaining a page break before a given part, chapter
> or section in the ToC?
>
> Thank you in advance.
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
I'm trying to force a page break in a table of contents, using what is
recommended at
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break

However, it does not work. Here's a MWE:

\definelistextra[page][before=\page]
\starttext
\starttitle[title={Table of contents}]
\placecontent[extras={2=page}]
\stoptitle
\startchapter[title={First chapter}]
\input knuth
\stopchapter
\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\startchapter[title={Third chapter}]
\input knuth
\stopchapter
\stoptext

Is there a new way of obtaining a page break before a given part, chapter
or section in the ToC?

Thank you in advance.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] Reinserting a section title followed by (continued) after a page break

2023-07-30 Thread Calvin Ross
I'm trying to use ConTeXt for playwriting, and I think it would be best to use
sections for dialog. However, if a dialog's text is interrupted by a page
break, it is customary to restate the character name followed by (continued) on
the following page:

--- open ---

John
My name is John, and I seek help with my

    --- page break ---

John (cont'd)
typesetting needs...

--- end ---

Maybe what I need is instead a mark? Here's a catch though, I will also need
this to work for simultaneous dialog as well. This kind of dialog is
represented by having dialog sections in columns:

--- open ---

Alice  Bob
John, you fool.John, you imbecile.

--- page break ---

Alice (cont'd)
Don't you know that
everyone uses Word
to typeset their plays?

--- end ---

How can I do this kind of thing in ConTeXt? At the moment, I've been looking
into adding a hook to shipout to prepend a section header with the last custom
mark I've set. Even still, I don't know if this would work, or how to go about
achieving this. If columns would be too difficult to implement, I'd be fine
with living without (continued) support in them since they are pretty rare.
___
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: MPcode inserts page

2023-07-06 Thread Henning Hraban Ramm

Am 06.07.23 um 12:02 schrieb Alan Braslau:

On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote:
Hi, if I use \startMPcode to declare variables etc. that I need in 
several MP graphics, it always inserts an empty page. How can I avoid 
that?
(Actually, I load an external mp file, and for random value reasons I 
must load it only once. But the MWE already shows the problem.)



"""
\startMPcode
numeric something;
something := 1;
\stopMPcode

\starttext
\chapter{Something}

Anything.

\stoptext
"""


\startMPinitializations % used by ALL MP instances
% also called repeatedly
\stopMPinitializations

\startMPdefinitions
\stopMPdefinitions

This is what you want.


Exactly, the latter.
Thank you, these two environments were missing in my book.

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] Re: MPcode inserts page

2023-07-06 Thread Alan Braslau via ntg-context

On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote:
Hi, if I use \startMPcode to declare variables etc. that I need in 
several MP graphics, it always inserts an empty page. How can I avoid that?
(Actually, I load an external mp file, and for random value reasons I 
must load it only once. But the MWE already shows the problem.)



"""
\startMPcode
numeric something;
something := 1;
\stopMPcode

\starttext
\chapter{Something}

Anything.

\stoptext
"""


\startMPinitializations % used by ALL MP instances
% also called repeatedly
\stopMPinitializations

\startMPdefinitions
\stopMPdefinitions

This is what you want.

--
Alan

___
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] MPcode inserts page

2023-07-06 Thread Henning Hraban Ramm
Hi, if I use \startMPcode to declare variables etc. that I need in 
several MP graphics, it always inserts an empty page. How can I avoid that?
(Actually, I load an external mp file, and for random value reasons I 
must load it only once. But the MWE already shows the problem.)



"""
\startMPcode
numeric something;
something := 1;
\stopMPcode

\starttext
\chapter{Something}

Anything.

\stoptext
"""


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
___


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Wolfgang Schuster via ntg-context

Alan Braslau schrieb am 11.06.2023 um 20:12:

On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote:

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), 
inserting a "blank" even page if necessary. How can I get this blank 
even page to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple 
and obvious.


\setuphead [...] [page={yes,header,footer,right}]


Wolfgang
Thank you for this hint. It works (almost) as expected:
Strangely, I had to add, explicitly,

\startfrontmatter

\component FrontMatterStuff

\page[yes,header,footer,right]

\stopfrontmatter

\startbodymatter

...

\stopbodymatter


In order to get the frontmatter end with a totally blank page before a 
right Chapter 1 header. Using just the setuphead resulted in headers 
and footers on the "blank" left page. No problems for Chapters 2, etc.


Section block force by default a page break which can produce unexpected 
headers/footers on the first chapter etc.


You can fix this by disabling the page break at the start/end of the 
section block with


    \setupsectionblock [bodypart] [page=]

Wolfgang

___
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] setuphead page=right and blank even page.

2023-06-11 Thread Alan Braslau via ntg-context

On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote:

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting 
a "blank" even page if necessary. How can I get this blank even page 
to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


\setuphead [...] [page={yes,header,footer,right}]


Wolfgang
Thank you for this hint. It works (almost) as expected:
Strangely, I had to add, explicitly,

\startfrontmatter

\component FrontMatterStuff

\page[yes,header,footer,right]

\stopfrontmatter

\startbodymatter

...

\stopbodymatter


In order to get the frontmatter end with a totally blank page before a 
right Chapter 1 header. Using just the setuphead resulted in headers and 
footers on the "blank" left page. No problems for Chapters 2, etc.


--
Alan


___
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] setuphead page=right and blank even page.

2023-06-10 Thread Wolfgang Schuster via ntg-context

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting 
a "blank" even page if necessary. How can I get this blank even page 
to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


\setuphead [...] [page={yes,header,footer,right}]

Wolfgang

___
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] setuphead page=right and blank even page.

2023-06-10 Thread Alan Braslau via ntg-context

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting a 
"blank" even page if necessary. How can I get this blank even page to be 
truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


Thank you.

--
Alan
___
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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context

Hi Wolfgang,


\definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]


One more on this actually: how can I influence the white space between
the columns? I tried to set distance, but that didn't do anything.

Setting p(4cm) or so, made the paragraphs smaller, but did not impact
the white space between the columns.

--
All the best,

Berend de Boer
___
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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context

Hi Wolfgang,


You can use the tabulate environment to create parallel paragraphs.


Just one thing for others, this solution as the same problem as
paragraphs: \placeinitial won't work.

I.e. this:

   \setupinitial[text=#1]\placeinitial

inside the tabulate or paragraphs doesn't work (but here I simply use
a \hbox{\vbox{}\hfil\vbox{}} solution which works well enough I think,
as I only need this for the opening paragraph.

--
All the best,

Berend de Boer
___
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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context

Hi Wolfgang,


You can use the tabulate environment to create parallel paragraphs.


Ah yes, that's working! Thank you so much!

One question on the pA{normal,verytolerant,stretch}: what does that do exactly?


From the manual I got that A only takes one key, what does specifying three 
keys mean?


--
All the best,

Berend de Boer
___
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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Wolfgang Schuster via ntg-context

Berend de Boer via ntg-context schrieb am 05.06.2023 um 00:02:

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


You can use the tabulate environment to create parallel paragraphs.

\setuppapersize[A5]

\definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]

\starttext

\startbilingual
\NC \input tufte
\NC \input knuth
\NC\NR
\stopbilingual

\stoptext

Wolfgang

___
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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


Example file where you can see the entire paragraphs thing is put on the next 
page.

==

\setuppapersize[A5]

\defineparagraphs[bilingual][n=2,tolerance=stretch,before=,after=,distance=\0.06\textwidth]
\setupparagraphs[bilingual][1][width=0.47\textwidth]
\setupparagraphs[bilingual][2][width=0.47\textwidth]

\starttext

\input tufte

\startbilingual
 \input tufte
 \nextbilingual
 \input knuth

\stopbilingual

\stoptext

==

--
All the best,

Berend de Boer
___
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] SOLVED: text under page floats

2023-06-02 Thread Henning Hraban Ramm via ntg-context

Am 24.05.23 um 21:07 schrieb Henning Hraban Ramm via ntg-context:
If the page float is placed before a title, the next section starts 
below the float.


This is solved now after a one-line fix by Hans. (And I was dense.)

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
___


Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context

I found a MWE that shows the problem:

"""
\setuppapersize[C5]

\showframe

\starttext

\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.75\textheight]{TEST}
\stopplacefigure

\dorecurse{4}{\section{Tufte \recurselevel}

\samplefile{tufte}}

\stoptext
"""

If the page float is placed before a title, the next section starts 
below the float.


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
___


Re: [NTG-context] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context

Am 24.05.23 um 16:44 schrieb Henning Hraban Ramm via ntg-context:

Hi,

in more than one of my books, I struggle with some lines of text below 
page floats. They start below the regular text area (i.e. in the bottom) 
and can even consist of a table float or a section title.


I can’t reproduce it in a simple example like this:

"""
\starttext

\dorecurse{2}{\samplefile{tufte}}

\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.5\textheight]{TEST}
\stopplacefigure

\dorecurse{5}{\samplefile{knuth}}

\stoptext
"""

What could cause this behavior? For what should I look in my setups?


In this instances, location=opposite causes the float to disappear.

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] text under page floats

2023-05-24 Thread Henning Hraban Ramm via ntg-context

Hi,

in more than one of my books, I struggle with some lines of text below 
page floats. They start below the regular text area (i.e. in the bottom) 
and can even consist of a table float or a section title.


I can’t reproduce it in a simple example like this:

"""
\starttext

\dorecurse{2}{\samplefile{tufte}}

\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.5\textheight]{TEST}
\stopplacefigure

\dorecurse{5}{\samplefile{knuth}}

\stoptext
"""

What could cause this behavior? For what should I look in my setups?

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] How to place a page reference multiple times?

2023-03-01 Thread Joel via ntg-context
I need to report every chapter that a particular macro appeared. I would do 
this by placing `\pagereference[sample]` inside the macro definition, so 
whenever it is called, it marks the reference info. But I can't seem to get 
references to work with multiple reference locations marked, example:
\starttext

    You can find it at \at{page}[sample] in \at{chapter}[sample].

\chapter{Fish}

\pagereference[sample]

\input knuth

\input knuth

\pagebreak
\chapter{Whales}

\input knuth

\pagereference[sample]

\stoptext
(you can see in this example, it only finds `\pagereference[sample]` on page 1 
and ignores the second appearance.



Ideally, I need to be able to output something like, "See examples in Chapter 
3, 8, 19" (because those chapters contain a particular macro that I marked with 
\pagereference. Or, if even possible, see chapters 3 (p. 22), 8 (p. 40), and 20 
(though the first example is fine.
Is there a way to place a page reference multiple times, so multiple pages or 
chapter details will appear?
--Joel
___
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] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context

Hi Bruce, and thanks for your answer.

In the end, I think a combination of `insidesection` and `placehead` 
does what I want:


###

\setuphead[interview][
placehead=hidden,
insidesection={\setup{interview:cover}},
]

###

I'll test it harder in the coming days!

Alex

Le 23/02/23 à 14:24, Bruce Horrocks via ntg-context a écrit :

Hi Alex,

I couldn't get it to work with \tabulate so I switched to TABLE instead. The 
workaround for the horizontal mode problem is to put the chapter title into row 
two of the table. Hopefully this works with your actual text. Also I'm not sure 
where \layoutcolumnwidth is coming from so I just hard-coded a width for now. 
Lastly there are neater ways (using \setuptable) to define the table but it's 
just an example...

\define[2]\MyChapter{
\bTABLE[frame=off]
\bTR
  \bTD[width=4cm] \structureuservariable{author} \eTD
  \bTD \structureuservariable{bio} \eTD
\eTR
\bTR
  \bTD[nc=2] #1 #2 \eTD
\eTR
\eTABLE
}

\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
    % insidesection={\page},
style={\tfa},
]

\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext



On 23 Feb 2023, at 10:21, Alex Leray via ntg-context  wrote:

Hello,

I'm trying to figure out how to design a chapter page for a custom head section 
with uservariables defined.

I'd like to have the chapter page start on a right page. I'd like this page to feature 
the title of the chapter (here: an interview) along with some other info like the 
interviewee name and bio. All in a "fancy" layout.

I'm having issue putting it all together. The command parameter allow me to 
override the content of the title but has some drawbacks (it seems to be stuck 
in horizontal mode for instance).

I'm open to any solution but would find it nice to keep the \startstopinterview 
structure.

Here is my code at the moment:

%%%

\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC \structureuservariable{bio} \NR
\stoptabulate
}

\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]


\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext

%%%

Many thanks

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


—
Bruce Horrocks
Hampshire, UK

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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
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] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
Hi Alex,

I couldn't get it to work with \tabulate so I switched to TABLE instead. The 
workaround for the horizontal mode problem is to put the chapter title into row 
two of the table. Hopefully this works with your actual text. Also I'm not sure 
where \layoutcolumnwidth is coming from so I just hard-coded a width for now. 
Lastly there are neater ways (using \setuptable) to define the table but it's 
just an example...

\define[2]\MyChapter{
   \bTABLE[frame=off]
   \bTR
 \bTD[width=4cm] \structureuservariable{author} \eTD
 \bTD \structureuservariable{bio} \eTD
   \eTR
   \bTR
 \bTD[nc=2] #1 #2 \eTD
   \eTR
   \eTABLE
}

\definehead[interview][chapter]
\setuphead[interview][
   page=right,
   command=\MyChapter,
   % insidesection={\page},
   style={\tfa},
]

\starttext
\startinterview[title={My Interview}][
   author={Jane Doe},
   year={2022},
   month={Decembre},
   bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext


> On 23 Feb 2023, at 10:21, Alex Leray via ntg-context  
> wrote:
> 
> Hello,
> 
> I'm trying to figure out how to design a chapter page for a custom head 
> section with uservariables defined.
> 
> I'd like to have the chapter page start on a right page. I'd like this page 
> to feature the title of the chapter (here: an interview) along with some 
> other info like the interviewee name and bio. All in a "fancy" layout.
> 
> I'm having issue putting it all together. The command parameter allow me to 
> override the content of the title but has some drawbacks (it seems to be 
> stuck in horizontal mode for instance).
> 
> I'm open to any solution but would find it nice to keep the 
> \startstopinterview structure.
> 
> Here is my code at the moment:
> 
> %%%
> 
> \define[2]\MyChapter{
>\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
>\NC \structureuservariable{author} \NC \structureuservariable{bio} \NR
>\stoptabulate
> }
> 
> \definehead[interview][chapter]
> \setuphead[interview][
>page=right,
>command=\MyChapter,
>% insidesection={\page},
>style={\tfa},
> ]
> 
> 
> \starttext
> \startinterview[title={My Interview}][
>author={Jane Doe},
>year={2022},
>month={Decembre},
>bio={\input ward}
> ]
> 
> \dorecurse{10}{\input ward \crlf}
> \stopinterview
> \stoptext
> 
> %%%
> 
> Many thanks
> 
> ___
> 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
> ___

—
Bruce Horrocks
Hampshire, UK

___
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] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context

Hello,

I'm trying to figure out how to design a chapter page for a custom head 
section with uservariables defined.


I'd like to have the chapter page start on a right page. I'd like this 
page to feature the title of the chapter (here: an interview) along with 
some other info like the interviewee name and bio. All in a "fancy" layout.


I'm having issue putting it all together. The command parameter allow me 
to override the content of the title but has some drawbacks (it seems to 
be stuck in horizontal mode for instance).


I'm open to any solution but would find it nice to keep the 
\startstopinterview structure.


Here is my code at the moment:

%%%

\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC 
\structureuservariable{bio} \NR

\stoptabulate
}

\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]


\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext

%%%

Many thanks

___
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] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Thanks a lot Wolfgang, that's perfect!

I added an example in the wiki:

https://wiki.contextgarden.net/Command/setupmakeup

Have a good day,

Alex

Le 15/02/23 à 12:03, Wolfgang Schuster via ntg-context a écrit :
Alex Leray via ntg-context > schrieb am Mi., 15. Feb. 2023, 11:59:


Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]


Add pagestate=start to the settings.

Wolfgang


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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
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 Wolfgang Schuster via ntg-context
Alex Leray via ntg-context  schrieb am Mi., 15. Feb.
2023, 11:59:

> Hi Mikael,
>
> here it is:
>
> %%%
> \definemakeup [title] [doublesided=empty]
>

Add pagestate=start to the settings.

Wolfgang
___
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 Alex Leray via ntg-context

Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]

\starttext
\input knuth
\starttitlemakeup
Title
\stoptitlemakeup
\input knuth
\stoptext
%%%

thanks

Le 15/02/23 à 11:43, Mikael Sundqvist via ntg-context a écrit :

Hi, and welcome back!

On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context
 wrote:


Dear Context users,

I'm new to this mailing-list. I've decided to use Context for two
separate publications. My previous experience with Context was almost 10
years ago and it seems like the resources on Context have greatly
expanded. So thank you all!

There is a little thing that I can't figure out though... In one of my
document I have makeup pages. But inserting them result in wrong page
numbering of subsequent pages. It appears that makeups do not increment
page numbers.

Is this a feature? How could re-establish the right page number for the
rest of the document?

Thank you in advance,

Alex


Can you show a small example of this behavior?

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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
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 Mikael Sundqvist via ntg-context
Hi, and welcome back!

On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context
 wrote:
>
> Dear Context users,
>
> I'm new to this mailing-list. I've decided to use Context for two
> separate publications. My previous experience with Context was almost 10
> years ago and it seems like the resources on Context have greatly
> expanded. So thank you all!
>
> There is a little thing that I can't figure out though... In one of my
> document I have makeup pages. But inserting them result in wrong page
> numbering of subsequent pages. It appears that makeups do not increment
> page numbers.
>
> Is this a feature? How could re-establish the right page number for the
> rest of the document?
>
> Thank you in advance,
>
> Alex

Can you show a small example of this behavior?

/Mikael
___
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] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Dear Context users,

I'm new to this mailing-list. I've decided to use Context for two 
separate publications. My previous experience with Context was almost 10 
years ago and it seems like the resources on Context have greatly 
expanded. So thank you all!


There is a little thing that I can't figure out though... In one of my 
document I have makeup pages. But inserting them result in wrong page 
numbering of subsequent pages. It appears that makeups do not increment 
page numbers.


Is this a feature? How could re-establish the right page number for the 
rest of the document?


Thank you in advance,

Alex
___
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] Problem with float and new layout on same page

2022-12-25 Thread peter.hopcroft--- via ntg-context
My MWE below produces this pdf. My problem is that on page 2, the body text 
flows beyond its frame and into the footer distance.

Regards, Peter



Play.pdf
Description: Adobe PDF document



MWE:

\setuppapersize[A4][A3,landscape] \setuparranging[2SIDE] \showframe 

\definelayout[mypage][footerdistance=100mm, ]
\definelayout[odd][reset]   % ??
\definelayout[even][reset]

\starttext
\dorecurse{3}{\input{knuth} }   % change to \dorecurse{2} - it works  properly
\definelayout[2][mypage] 
\dorecurse{2}{\input{knuth} }
\placefigure [leftmargin]
 {} {\externalfigure[greybox][width=\leftmarginwidth]}
\dorecurse{5}{\input{knuth} }
\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] Page break with placement of a figure at the bottom of the page

2022-11-17 Thread Fabrice Couvreur via ntg-context
Hi Bruce and Pablo,
I'm sorry for the late reply but I'm running out of time right now. Thanks
for trying to solve the problem. I think the problem comes from the
pyramid.png file.
Fabrice

Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
> > Hi Pablo,
> > Indeed but I posted these two files in a previous post.
>
> Hi Fabrice,
>
> the output from your ie_3.tex is too big for the list, so
> https://pdf.ousia.tk/ie_3.pdf contains it.
>
> I see no problem there, but I think that the output from
> https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come
> from a different source.
>
> BTW, I couldn’t find "ie_3.tex" in
> https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to
> be generated with messages previous to current date).
>
> If you sent the files before, it is fine to include a link to the
> relevant message in the list (such as the first link included in this
> message).
>
> BTW, it might be worth considering a GitHub or GitLab repository for not
> minimal samples. There files may be stored (and the whole repository
> might be deleted when not needed).
>
> 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
>
> ___
>
___
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 break margin notes across page breaks?

2022-11-16 Thread Henning Hraban Ramm via ntg-context

Am 16.11.22 um 03:52 schrieb Joel via ntg-context:

How can I allow margin text to break across the page breaks?


AFAIK this is not supported. But Hans might surprise us.

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
___


Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-16 Thread Fabrice Couvreur via ntg-context
Hi Bruce and Pablo,
I'm sorry for the late reply but I'm running out of time right now. Thanks
for trying to solve the problem. I think the problem comes from the
pyramid.png file.
Fabrice

Le mer. 16 nov. 2022 à 14:55, Fabrice Couvreur 
a écrit :

> Hi Bruce and Pablo,
> I'm sorry for the late reply but I'm running out of time right now. Thanks
> for trying to solve the problem. I think the problem comes from the
> pyramid.png file.
> Fabrice
>
> Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context <
> ntg-context@ntg.nl> a écrit :
>
>> On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
>> > Hi Pablo,
>> > Indeed but I posted these two files in a previous post.
>>
>> Hi Fabrice,
>>
>> the output from your ie_3.tex is too big for the list, so
>> https://pdf.ousia.tk/ie_3.pdf contains it.
>>
>> I see no problem there, but I think that the output from
>> https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come
>> from a different source.
>>
>> BTW, I couldn’t find "ie_3.tex" in
>> https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to
>> be generated with messages previous to current date).
>>
>> If you sent the files before, it is fine to include a link to the
>> relevant message in the list (such as the first link included in this
>> message).
>>
>> BTW, it might be worth considering a GitHub or GitLab repository for not
>> minimal samples. There files may be stored (and the whole repository
>> might be deleted when not needed).
>>
>> 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
>>
>> ___
>>
>
___
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] How to break margin notes across page breaks?

2022-11-15 Thread Joel via ntg-context
How can I allow margin text to break across the page breaks?
I have a document with many \inmargin code.
The problem I'm finding is that sometimes I have a lot of items in the margin. 
I hope this margin details can break across the page and continue onto the next 
page. The problem is instead it just runs off the print boundaries of the page. 
See this sample code for an example:
\starttext

\input knuth

\inmargin{\input knuth }
\input knuth

\input knuth

\input knuth

\input knuth

\input knuth

\input knuth


\stoptext

How can I allow margin notes to break across pages instead of running off the 
page boundaries?
--Joel
___
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] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Pablo Rodriguez via ntg-context
On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
> Hi Pablo,
> Indeed but I posted these two files in a previous post.

Hi Fabrice,

the output from your ie_3.tex is too big for the list, so
https://pdf.ousia.tk/ie_3.pdf contains it.

I see no problem there, but I think that the output from
https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come
from a different source.

BTW, I couldn’t find "ie_3.tex" in
https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to
be generated with messages previous to current date).

If you sent the files before, it is fine to include a link to the
relevant message in the list (such as the first link included in this
message).

BTW, it might be worth considering a GitHub or GitLab repository for not
minimal samples. There files may be stored (and the whole repository
might be deleted when not needed).

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] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Fabrice Couvreur via ntg-context
Hi Pablo,
Indeed but I posted these two files in a previous post.
Fabrice

Le dim. 13 nov. 2022 à 09:24, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 11/12/22 15:09, Fabrice Couvreur via ntg-context wrote:
> > Hi Pablo and Bruce,
> > Please try to figure out what is not working.
> > I'm sorry but I forgot in my previous post files.
>
> Hi Fabrice,
>
> I get empty files when compiling premiere-modules.tex and
> premiere-macros.tex and error message with tikz-style.tex.
>
> I guess a fourth file invoking the other three files may be missing 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
>
> ___
>
\environment[template.mkiv]

\definemargindata[marginfigure][inright]

\useMPlibrary[dum]

\setupmargindata [marginfigure][command=\vbox,align=middle,stack=yes]

\setvariables
[headertext]
[title={Interrogation écrite},
 number={3},
 day={8},
 month={11},
 year={2022},
 location={Premières},
 time={55 minutes}]

\showgrid
\startcomponent[ie_3]
  \startex
Nous considérons la suite \u définie sur \N par son premier terme \m{u_0=-2} et la relation de récurrence
\startformula
  \text{pour tout} \; n \in \N, \; u_{n+1}=\sqrt{3+u_n}.
\stopformula
Les termes de cette suite sont itérés par la fonction \m{f\,\colon x \longmapsto \sqrt{x+3}} qui est définie sur \intervalfo{-3}{+\infty}, et dont la représentation graphique \m{C_f} est donnée ci-après.
\startlinecorrection[blank]
  \startmidaligned
\externalfigure[spirale.pdf]
  \stopmidaligned
\stoplinecorrection
Représenter graphiquement les cinq premiers termes de cette suite.
  \stopex
  \startex
La suite \u est arithmétique de raison \m{r=-7} et de premier terme \m{u_0=5}.
\startitemize[n]
  \startitem
Calculer \m{u_{16}}.
  \stopitem
  \startitem
Calculer la somme
\startformula
  \sum_{k=0}^{k=16}u_k=u_0+u_1+u_2+\cdots + u_{15}+u_{16}.
\stopformula
  \stopitem
\stopitemize
  \stopex
  \startex
  On considère la suite arithmétique \u, définie sur \N, telle que \m{u_{12}=52} et \m{u_{23}=107}.
  \startitemize[n]
\startitem
  Calculer la raison \m{r} de la suite.
\stopitem
\startitem
  Déterminer le terme initial \m{u_0}.
\stopitem
\startitem
  Déterminer \m{u_n} en fonction de \m{n}, puis calculer \m{u_{55}}.
\stopitem
\startitem
  Donner le sens de variation de \u.
\stopitem
\startitem
  Conjecturer la limite éventuelle de la suite \u.
\stopitem
  \stopitemize
  \stopex
  \startex
   On s'intéresse à des pyramides construites avec des allumettes comme ci-après .

  En poursuivant ainsi, on obtient des pyramides à autant d'étages que l'on souhaite à condition, bien sûr, d'avoir assez d'allumettes.
\startlinecorrection[blank]
  \startmidaligned
\startcombination[3*1]
  {\externalfigure[pyramide_1.pdf]}{\tfx 1 étage}
  {\externalfigure[pyramide_2.pdf]}{\tfx 2 étages}
  {\externalfigure[pyramide_3.pdf]}{\tfx 3 étages}
\stopcombination
  \stopmidaligned
\stoplinecorrection
Le 1\high{\tfxx er} étage est formé de 3 allumettes, le 2\high{\tfxx e} de 7 allumettes, et le 3\high{\tfxx e} de 11 allumettes.
\startitemize[n]
  \startitem
   De combien d'allumettes est formé le 4\high{\tfxx e} étage ? Le 5\high{\tfxx e} ?
  \stopitem
  \startitem
Pour tout entier naturel \m{n\geqslant 1}, on note \m{u_n} le nombre d'allumettes du \m{n-\text{ième}} étage. Ainsi, nous avons \m{u_1=3}.

Justifier que la suite \u est arithmétique en précisant sa raison.
  \stopitem
  \startitem
Déterminer le calcul explicite de \m{u_n} en fonction de \m{n}, \m{u_1} et \m{r}.
  \stopitem
  \placerecipe{}{ \externalfigure[pyramide.png][scale=850]}
  \startitem
Déterminer le nombre d'allumettes du 10\high{\tfxx e} étage.
  \stopitem
  \startitem
Combien d'allumettes au total ont été nécessaires pour réaliser la construction jusqu'au 10\high{\tfxx e} étage ?
  \stopitem
   
  \startitem
On considère la fonction {\tt \darkred pyramide()} ci-contre programmée en langage Python.

À quoi correspond le nombre renvoyé par {\tt \darkred pyramide(3)} ?
  \stopitem
\stopitemize
  \stopex
\stopcomponent

% Local Variables:
% mode: context
% TeX-command-default: "lmtx"
%

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-13 Thread Pablo Rodriguez via ntg-context
On 11/12/22 15:09, Fabrice Couvreur via ntg-context wrote:
> Hi Pablo and Bruce,
> Please try to figure out what is not working.
> I'm sorry but I forgot in my previous post files.

Hi Fabrice,

I get empty files when compiling premiere-modules.tex and
premiere-macros.tex and error message with tikz-style.tex.

I guess a fourth file invoking the other three files may be missing 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] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Fabrice Couvreur via ntg-context
Hi Pablo and Bruce,
Please try to figure out what is not working.
I'm sorry but I forgot in my previous post files.
Fabrice

Le sam. 12 nov. 2022 à 12:28, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 11/11/22 21:58, Bruce Horrocks via ntg-context wrote:
> >> On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context wrote:
> >>
> >> Hi,
> >> Sorry to come back to you, but it seems to me that there is enough
> space here.
> >> Fabrice
> >
> > For some reason your PNG images came through in extremely low
> > resolution. Without having the ConTeXt source it's hard to say for sure
> > what's happening - for example, I would have expected the text on the
> > second page to be at the bottom of the first even if there wasn't room
> > for the image - because that was what was happening in your first
> example.
>
> Hi Fabrice and Bruce,
>
> I agree that the source would be helpful to say what may be hard for
> ConTeXt.
>
> In any case, ConTeXt has a hard time with pagebreaks when you combine
> elements that need both horizontal and vertical calculation, such as in:
>
>   \starttext
>   \dorecurse{64}
>   {\input knuth\footnote{\input zapf}
>
>   \startitemize[a, columns, eight, packed]
>   \dorecurse{64}{\item\currentitemnumber}
>   \stopitemize}
>   \stoptext
>
> There is a similar issue with paragraph notes.
>
> 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
>
> ___
>

\startenvironment[premiere-modules]

  \usesymbols[mvs] 
  \usecolors[xwi]
  \usemodule[tikz]
  \usemodule[pgfplots]
  \usepgfplotslibrary[fillbetween]
  \pgfplotsset{compat=newest}
  \usetikzlibrary[arrows]
  \usetikzlibrary[automata]
  \usetikzlibrary[calc]
  \usetikzlibrary[backgrounds]
  \usetikzlibrary[intersections]
  \usetikzlibrary[patterns]
  \usetikzlibrary[bending]
  \usetikzlibrary[arrows.meta]
  \usetikzlibrary[shapes.geometric]
  \usetikzlibrary[plotmarks]
  \usetikzlibrary[shapes]
  \usetikzlibrary[trees]
  \usetikzlibrary[animations]
  \usetikzlibrary[quotes]
  \usetikzlibrary[mindmap]
  \usetikzlibrary[matrix,decorations.pathreplacing,fit,positioning]

\stopenvironment\startenvironment[premiere-macros]

  \unexpanded\def\R{\math{\mathbb{R}}\autoinsertnextspace}

  \protected\def\N{\doifnextcharelse{*}\MyNstarred\MyNnormal}

  \def\MyNstarred*{\m{\mathbb{N}^*}\autoinsertnextspace}
  \def\MyNnormal  {\m{\mathbb{N}  }\autoinsertnextspace}

  \define[1]\cscript
 {\start\switchtobodyfont[stixtwo]\m{{\mathscript{#1}}}\stop} 


  %\protected\def\card#1{\m{\mfunction{Card}\thinspace(#1)}}

  \define[1]\card
 {\m{\mathtexttf{Card}\thinspace(#1)}\autoinsertnextspace}

  \define[1]\norm
{\math{\left\Vert#1\right\Vert}}

  \define\esp{\math{\mathcal{E}}\autoinsertnextspace}

  \define\espv{\math{\vec{\mathcal{E}}}\autoinsertnextspace}

  \define\repere
 {\m{\left(O\,;\vec{i}, \vec{j}\right)}\autoinsertnextspace}

  \define\base
 {\m{\left(\vec{i}, \vec{j}, \vec{k}\right)}\autoinsertnextspace}

 \protected\def\vector#1{%
   \starttikzpicture[baseline=(arg.base),>=stealth,thick]
   \node[inner xsep=0pt] (arg) {\m{#1}};
   \draw[->,shorten >=-2pt] (arg.north west) -- (arg.north east);
   \stoptikzpicture%
  }

  
  \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX]

  \unexpanded\def\intervalff#1#2{\math{\left[#1\nonscript\,;#2\right]}}
  
  \unexpanded\def\intervaloo#1#2{\math{\left]#1\nonscript\,;#2\right[}}
  
  \unexpanded\def\intervalfo#1#2{\math{\left[#1\nonscript\,;#2\right[}}
  
  \unexpanded\def\intervalof#1#2{\math{\left]#1\nonscript\,;#2\right]}}

  \define[1]\vabs{\math{\left\vert#1\right\vert}}

  \define\u{\math{\left(u_n\right)}\autoinsertnextspace}

  \define\v{\math{\left(v_n\right)}\autoinsertnextspace}

  \define\w{\math{\left(w_n\right)}\autoinsertnextspace}

  \unexpanded\def\euros#1{#1\,\symbol[europe][EUR]}

  \protected\def\point#1#2#3{\math{#1\left(#2\,;#3\right)}}

  \protected\def\coord#1#2{\math{\left(#1\,;#2\right)}}

  \define[2]\prod{\m{\vector{#1}\cdot\vector{#2}}}

   \protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace}
  
\stopenvironment\startenvironment[tikz-style]

  \pgfplotsset{
/pgfplots/layers/Bowpark/.define layer set={
axis background,axis grid,main,axis ticks,axis lines,axis tick labels,
axis de

Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-12 Thread Pablo Rodriguez via ntg-context
On 11/11/22 21:58, Bruce Horrocks via ntg-context wrote:
>> On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context wrote:
>>
>> Hi,
>> Sorry to come back to you, but it seems to me that there is enough space 
>> here.
>> Fabrice
> 
> For some reason your PNG images came through in extremely low
> resolution. Without having the ConTeXt source it's hard to say for sure
> what's happening - for example, I would have expected the text on the
> second page to be at the bottom of the first even if there wasn't room
> for the image - because that was what was happening in your first example.

Hi Fabrice and Bruce,

I agree that the source would be helpful to say what may be hard for
ConTeXt.

In any case, ConTeXt has a hard time with pagebreaks when you combine
elements that need both horizontal and vertical calculation, such as in:

  \starttext
  \dorecurse{64}
  {\input knuth\footnote{\input zapf}

  \startitemize[a, columns, eight, packed]
  \dorecurse{64}{\item\currentitemnumber}
  \stopitemize}
  \stoptext

There is a similar issue with paragraph notes.

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] Page break with placement of a figure at the bottom of the page

2022-11-11 Thread Bruce Horrocks via ntg-context

> On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context 
>  wrote:
> 
> Hi,
> Sorry to come back to you, but it seems to me that there is enough space here.
> Fabrice

For some reason your PNG images came through in extremely low resolution. 
Without having the ConTeXt source it's hard to say for sure what's happening - 
for example, I would have expected the text on the second page to be at the 
bottom of the first even if there wasn't room for the image - because that was 
what was happening in your first example. 

—
Bruce Horrocks
Hampshire, UK

___
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] Page break with placement of a figure at the bottom of the page

2022-11-10 Thread Fabrice Couvreur via ntg-context
Hi,
Sorry to come back to you, but it seems to me that there is enough space
here.
Fabrice

Le jeu. 10 nov. 2022 à 18:04, Fabrice Couvreur 
a écrit :

> Hi,
> Sorry to come back to you, but it seems to me that there is enough space
> here.
> Fabrice
>
> Le jeu. 10 nov. 2022 à 17:45, Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> a écrit :
>
>> Hi,
>> Sorry to come back to you, but it seems to me that there is enough space
>> here.
>> Fabrice
>>
>> Le jeu. 10 nov. 2022 à 11:59, Fabrice Couvreur <
>> fabrice1.couvr...@gmail.com> a écrit :
>>
>>> Sorry to come back to you, but it seems to me that there is enough space
>>> here.
>>>
>>> Le jeu. 10 nov. 2022 à 11:36, Fabrice Couvreur <
>>> fabrice1.couvr...@gmail.com> a écrit :
>>>
>>>> Hi Bruce and Pablo,
>>>> Thank you very much, your explanations are very clear.
>>>> Cordially
>>>> Fabrice
>>>>
>>>> Le mer. 9 nov. 2022 à 19:39, Bruce Horrocks via ntg-context <
>>>> ntg-context@ntg.nl> a écrit :
>>>>
>>>>> On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context <
>>>>> ntg-context@ntg.nl> wrote:
>>>>> >
>>>>> > On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
>>>>> >> Hi,
>>>>> >> I find that for some time (but maybe the problem comes from me !),
>>>>> the
>>>>> >> placement of a figure at the bottom of the page causes a page break
>>>>> when
>>>>> >> it seems to me that there is enough space, which poses some
>>>>> problems in
>>>>> >> the pagination of my documents.
>>>>> >
>>>>> > Hi Fabrice,
>>>>> >
>>>>> > your figure requires about 7¼ lines (one line before, six for the
>>>>> image
>>>>> > itself, and some extra space after it).
>>>>> >
>>>>> > Your layout for the first page only allows 43 lines and sample text
>>>>> ends
>>>>> > on line 37.
>>>>> >
>>>>> > Replace \showframe with \showgrid and you will see that there might
>>>>> be
>>>>> > not enough space to fit the image in the first page.
>>>>> >
>>>>> > Add "bottomspace=7.25mm" to the layout for the first page and the
>>>>> image
>>>>> > will fit in the first page.
>>>>> >
>>>>> > Just in case it might help,
>>>>>
>>>>> Or Pablo's answer shown another way... change the end of the example
>>>>> to:
>>>>>
>>>>> \starttext
>>>>> \dorecurse{11}{\input ward}
>>>>> \placerecipe{}{\externalfigure[dum]}
>>>>> \dorecurse{5}{\input ward} %% extra
>>>>> \stoptext
>>>>>
>>>>> and the extra text shows how much space the image requires. Holding a
>>>>> ruler up to the screen you can see that it won't fit.
>>>>>
>>>>> The problem seems to be that the image is reserving space for a
>>>>> caption even though there isn't a caption. A work-around is to change
>>>>> \setupfloat to the following:
>>>>>
>>>>>  \setupfloat
>>>>>  [recipe]
>>>>>  [default={right,none,high}]
>>>>>
>>>>> and then the image fits as you want it to.
>>>>> —
>>>>> Bruce Horrocks
>>>>> Hampshire, UK
>>>>>
>>>>>
>>>>> ___
>>>>> 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
___


Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-10 Thread Fabrice Couvreur via ntg-context
Hi Bruce and Pablo,
Thank you very much, your explanations are very clear.
Cordially
Fabrice

Le mer. 9 nov. 2022 à 19:39, Bruce Horrocks via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context <
> ntg-context@ntg.nl> wrote:
> >
> > On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
> >> Hi,
> >> I find that for some time (but maybe the problem comes from me !), the
> >> placement of a figure at the bottom of the page causes a page break when
> >> it seems to me that there is enough space, which poses some problems in
> >> the pagination of my documents.
> >
> > Hi Fabrice,
> >
> > your figure requires about 7¼ lines (one line before, six for the image
> > itself, and some extra space after it).
> >
> > Your layout for the first page only allows 43 lines and sample text ends
> > on line 37.
> >
> > Replace \showframe with \showgrid and you will see that there might be
> > not enough space to fit the image in the first page.
> >
> > Add "bottomspace=7.25mm" to the layout for the first page and the image
> > will fit in the first page.
> >
> > Just in case it might help,
>
> Or Pablo's answer shown another way... change the end of the example to:
>
> \starttext
> \dorecurse{11}{\input ward}
> \placerecipe{}{\externalfigure[dum]}
> \dorecurse{5}{\input ward} %% extra
> \stoptext
>
> and the extra text shows how much space the image requires. Holding a
> ruler up to the screen you can see that it won't fit.
>
> The problem seems to be that the image is reserving space for a caption
> even though there isn't a caption. A work-around is to change \setupfloat
> to the following:
>
>  \setupfloat
>  [recipe]
>  [default={right,none,high}]
>
> and then the image fits as you want it to.
> —
> Bruce Horrocks
> Hampshire, UK
>
>
> ___
> 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
___


Re: [NTG-context] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Bruce Horrocks via ntg-context
On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context  
wrote:
> 
> On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
>> Hi,
>> I find that for some time (but maybe the problem comes from me !), the
>> placement of a figure at the bottom of the page causes a page break when
>> it seems to me that there is enough space, which poses some problems in
>> the pagination of my documents.
> 
> Hi Fabrice,
> 
> your figure requires about 7¼ lines (one line before, six for the image
> itself, and some extra space after it).
> 
> Your layout for the first page only allows 43 lines and sample text ends
> on line 37.
> 
> Replace \showframe with \showgrid and you will see that there might be
> not enough space to fit the image in the first page.
> 
> Add "bottomspace=7.25mm" to the layout for the first page and the image
> will fit in the first page.
> 
> Just in case it might help,

Or Pablo's answer shown another way... change the end of the example to:

\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\dorecurse{5}{\input ward} %% extra
\stoptext

and the extra text shows how much space the image requires. Holding a ruler up 
to the screen you can see that it won't fit.

The problem seems to be that the image is reserving space for a caption even 
though there isn't a caption. A work-around is to change \setupfloat to the 
following:

 \setupfloat
 [recipe]
 [default={right,none,high}]

and then the image fits as you want it to.
—
Bruce Horrocks
Hampshire, UK

___
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] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Pablo Rodriguez via ntg-context
On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
> Hi,
> I find that for some time (but maybe the problem comes from me !), the
> placement of a figure at the bottom of the page causes a page break when
> it seems to me that there is enough space, which poses some problems in
> the pagination of my documents.

Hi Fabrice,

your figure requires about 7¼ lines (one line before, six for the image
itself, and some extra space after it).

Your layout for the first page only allows 43 lines and sample text ends
on line 37.

Replace \showframe with \showgrid and you will see that there might be
not enough space to fit the image in the first page.

Add "bottomspace=7.25mm" to the layout for the first page and the image
will fit in the first page.

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] Page break with placement of a figure at the bottom of the page

2022-11-09 Thread Fabrice Couvreur via ntg-context
Hi,
I find that for some time (but maybe the problem comes from me !), the
placement of a figure at the bottom of the page causes a page break when it
seems to me that there is enough space, which poses some problems in the
pagination of my documents.
Thanks.
Fabrice

\useMPlibrary[dum]
\definelayout
   [1]
   [topspace=10mm,
header=15mm,
headerdistance=10mm,
height=middle,
width=middle,
location=middle]

\setuplayout
  [topspace=10mm,
header=0pt,
headerdistance=0pt,
height=middle,
width=middle,
location=middle]

\definefloat
[recipe]
[figure]

 \setupfloat
 [recipe]
 [default={right,none}]

 \showframe
\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\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] TOC colors and in-page anchors

2022-10-11 Thread Sylvain Hubert via ntg-context
(heartbeat packet)

I think some kind of modern issue tracker on e.g.
https://github.com/contextgarden/context-mirror would be generally helpful.

On Wed, 28 Sept 2022 at 23:31, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

> On 9/28/22 12:20, Sylvain Hubert via ntg-context wrote:
> > Thanks for the pointers, but unfortunately I cannot reproduce the second
> > fix with either the system pdf viewer or the browser one.
>
> Hi Sylvain,
>
> it seems that ConTeXt is basically ignoring "focus=standard" in lists.
>
> Compare both links here:
>
>   \setupinteraction[state=start,
> color=darkred,
> contrastcolor=darkred,
> focus=standard]
>   \starttext
>   \completecontent
>   \section[a]{b}
>   \about[a]
>   \stoptext
>
> And this is a regression. I think it was introduced in latest from
> 2022.07.06 21:42, since latest from 2022.05.11 11:36 has no issue with
> this.
>
> Hans, could you see what preventing this from working as expected?
>
> 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
>
> ___
>
___
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] TOC colors and in-page anchors

2022-09-28 Thread Pablo Rodriguez via ntg-context
On 9/28/22 12:20, Sylvain Hubert via ntg-context wrote:
> Thanks for the pointers, but unfortunately I cannot reproduce the second
> fix with either the system pdf viewer or the browser one.

Hi Sylvain,

it seems that ConTeXt is basically ignoring "focus=standard" in lists.

Compare both links here:

  \setupinteraction[state=start,
color=darkred,
contrastcolor=darkred,
focus=standard]
  \starttext
  \completecontent
  \section[a]{b}
  \about[a]
  \stoptext

And this is a regression. I think it was introduced in latest from
2022.07.06 21:42, since latest from 2022.05.11 11:36 has no issue with this.

Hans, could you see what preventing this from working as expected?

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] TOC colors and in-page anchors

2022-09-28 Thread Sylvain Hubert via ntg-context
Thanks for the pointers, but unfortunately I cannot reproduce the second
fix with either the system pdf viewer or the browser one.

\usemodule[ipsum]
\setupinteraction[state=start,focus=standard]

\starttext
\completecontent
\section{s1}\ipsum
\section{s2}\ipsum
\section{s3}\ipsum
\section{s4}\ipsum
\section{s5}\ipsum
\section{s6}\ipsum
\stoptext

context version: 2022.09.11 20:44

The viewer is on 'Continuous Scoll' mode both before and after the click,
but clicking s4 still jumps to the beginning of page 2.

On Wed, 28 Sept 2022 at 16:43, Bruce Horrocks  wrote:

>
>
> > On 28 Sep 2022, at 09:18, Sylvain Hubert via ntg-context <
> ntg-context@ntg.nl> wrote:
> >
> > Dear list,
> >
> > \usemodule[ipsum]
> > \setupinteraction[state=start]
> >
> > \starttext
> > \completecontent
> > \section{s1}\ipsum
> > \section{s2}\ipsum
> > \section{s3}\ipsum
> > \section{s4}\ipsum
> > \section{s5}\ipsum
> > \section{s6}\ipsum
> > \stoptext
> >
> > In the table of contents, s1 and s2 (at page 1) are rendered in red,
> while others in green.
> >
> > Moreover, when I click s4, it jumps to page 2 without locating the
> section precisely within the page.
> > This is not the case when using the latex hyperref package.
> >
> > Does anyone know how to make the colors uniform and the links precise?
> >
> > Any help is appreciated.
>
> The colour change is because those links are on the same page that you are
> jumping to. When you have more text in your document they will be
> consistent. You can override the colors with
> \setupinteraction[state=start,color=black] for example if you wish.
>
> You need focus=standard to jump direct but only when the viewer is in
> scrolling mode. It's explained on the Wiki.
> <https://wiki.contextgarden.net/Command/setupinteraction>
>
> —
> Bruce Horrocks
> Hampshire, UK
>
>
___
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] TOC colors and in-page anchors

2022-09-28 Thread Bruce Horrocks via ntg-context


> On 28 Sep 2022, at 09:18, Sylvain Hubert via ntg-context  
> wrote:
> 
> Dear list,
> 
> \usemodule[ipsum]
> \setupinteraction[state=start]
> 
> \starttext
> \completecontent
> \section{s1}\ipsum
> \section{s2}\ipsum
> \section{s3}\ipsum
> \section{s4}\ipsum
> \section{s5}\ipsum
> \section{s6}\ipsum
> \stoptext
> 
> In the table of contents, s1 and s2 (at page 1) are rendered in red, while 
> others in green.
> 
> Moreover, when I click s4, it jumps to page 2 without locating the section 
> precisely within the page.
> This is not the case when using the latex hyperref package.
> 
> Does anyone know how to make the colors uniform and the links precise?
> 
> Any help is appreciated.

The colour change is because those links are on the same page that you are 
jumping to. When you have more text in your document they will be consistent. 
You can override the colors with \setupinteraction[state=start,color=black] for 
example if you wish.

You need focus=standard to jump direct but only when the viewer is in scrolling 
mode. It's explained on the Wiki.
<https://wiki.contextgarden.net/Command/setupinteraction>

—
Bruce Horrocks
Hampshire, UK

___
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] TOC colors and in-page anchors

2022-09-28 Thread Sylvain Hubert via ntg-context
Dear list,

\usemodule[ipsum]
\setupinteraction[state=start]

\starttext
\completecontent
\section{s1}\ipsum
\section{s2}\ipsum
\section{s3}\ipsum
\section{s4}\ipsum
\section{s5}\ipsum
\section{s6}\ipsum
\stoptext

In the table of contents, s1 and s2 (at page 1) are rendered in red, while
others in green.

Moreover, when I click s4, it jumps to page 2 without locating the section
precisely within the page.
This is not the case when using the latex hyperref package.

Does anyone know how to make the colors uniform and the links precise?

Any help is appreciated.

Sylvain
___
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] Is there an "align with item on facing page" option?

2022-09-25 Thread Bruce Horrocks via ntg-context
Is there a way to align text with an item on the facing page?

I'm typesetting author biographies for a book and I'm doing two per page. The 
author's name appears on a line of its own in \tfa size and then the bio text 
follows. Ideally I'd like their names aligned so that all four (on a two page 
spread) appear nicely symmetrical.

Currently I'm using \godown[\dimexpr80mm-\pagetotal] (for A5 pages) between 
each pair which works nicely in that if the first biography is too long it 
overlaps and I know to edit it to be shorter.

However, if the second biography is a little long, it pushes the first back up 
the page a little - maybe only one line - and then it no longer aligns with the 
the one on the facing page. If I could somehow tell ConTeXt to vertically align 
the author names then that might do the job?

I've tried using two frames above each other with fixed min and maxheight but 
then I can't get the author's thumbnail picture to place properly and have the 
text wrap around it.

Any thoughts?
—
Bruce Horrocks
Hampshire, UK

___
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 make a reference go to an exact point of a section on a page?

2022-09-02 Thread amano.kenji via ntg-context
\setupinteraction[state=start,focus=standard] was what I wanted.

Thanks.

--- Original Message ---
On Thursday, September 1st, 2022 at 4:42 PM, Pablo Rodriguez via ntg-context 
 wrote:


> On 9/1/22 14:36, amano.kenji via ntg-context wrote:
> 
> > I just created a reference to a \section with \in.
> > 
> > Clicking the \in reference doesn't go to the \section, but to the
> > page that has the \section.
> > 
> > Does ConTeXt lack the ability to go to an exact point of a numbered
> > element on a page?
> 
> 
> Hi Amano,
> 
> please, provide a minimal sample with your questions.
> 
> Sometimes it is not easy for the rest of the world to figure out what
> each of us may have in mind.
> 
> I hope any of the options might help you:
> 
> \setupinteraction[state=start,focus=standard]
> \starttext
> \chapter[one]{One}
> in \in[two] or \about[two]
> \chapter[two]{Two}
> in \in[one] or \about[one]
> \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
> ___
___
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 make a reference go to an exact point of a section on a page?

2022-09-01 Thread Pablo Rodriguez via ntg-context
On 9/1/22 14:36, amano.kenji via ntg-context wrote:
> I just created a reference to a \section with \in.
>
> Clicking the \in reference doesn't go to the \section, but to the
> page that has the \section.
>
> Does ConTeXt lack the ability to go to an exact point of a numbered
> element on a page?

Hi Amano,

please, provide a minimal sample with your questions.

Sometimes it is not easy for the rest of the world to figure out what
each of us may have in mind.

I hope any of the options might help you:

  \setupinteraction[state=start,focus=standard]
  \starttext
  \chapter[one]{One}
  in \in[two] or \about[two]
  \chapter[two]{Two}
  in \in[one] or \about[one]
  \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
___


Re: [NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-01 Thread Mikael Sundqvist via ntg-context
On Thu, Sep 1, 2022 at 2:37 PM amano.kenji via ntg-context
 wrote:
>
> I just created a reference to a \section with \in.
>
> Clicking the \in reference doesn't go to the \section, but to the page that 
> has the \section.
>
> Does ConTeXt lack the ability to go to an exact point of a numbered element 
> on a page?
> ___
> 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
> ___

I think

\setupinteraction[focus=standard]

is what you need.

/Mikael
___
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] How to make a reference go to an exact point of a section on a page?

2022-09-01 Thread amano.kenji via ntg-context
I just created a reference to a \section with \in.

Clicking the \in reference doesn't go to the \section, but to the page that has 
the \section.

Does ConTeXt lack the ability to go to an exact point of a numbered element on 
a page?
___
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] 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
___


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

2022-07-25 Thread Hans Hagen via ntg-context

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
___


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

2022-07-24 Thread cryo shock via ntg-context
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

%%% END of MWE
___
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] "pragma-ade.com" is now a domain parking page

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

Am 02.07.22 um 07:50 schrieb Max Chernoff via ntg-context:

Well, we must change a lot of dead links on the wiki now.

Taco, can you automate it? Otherwise I’ll start...


I do not know of a clean way to automate that. It may be possible, but 
then it is outside of my knowledge set. So yeah, by hand.


This might work

     https://wiki.contextgarden.net/Special:ReplaceText

but I don't have the permissions to use it. I have no idea if it will 
work, but it looks like both of you (Hraban and Taco) are administrators 
and thus have requisite permissions to test it.


Thank you for the hint! It’s done now (after I changed several pages 
yesterday and Taco fixed the [[manual:]] link.


Hraban

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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Max Chernoff via ntg-context

Well, we must change a lot of dead links on the wiki now.

Taco, can you automate it? Otherwise I’ll start...


I do not know of a clean way to automate that. It may be possible, but then it 
is outside of my knowledge set. So yeah, by hand.


This might work

https://wiki.contextgarden.net/Special:ReplaceText

but I don't have the permissions to use it. I have no idea if it will 
work, but it looks like both of you (Hraban and Taco) are administrators 
and thus have requisite permissions to test it.


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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Max Chernoff via ntg-context

Hans had been complaining about networksolutions not allowing him to move the 
domain away from them, so I guess this was to be expected.
indeed, and transfer is pending for ages now ... looks liek they don't 
like to transfer


They only have 5 days to respond to a transfer request. If it's been
longer -- which it presumably has been -- you can file a complaint with
ICANN, which should hopefully push them to complete the transfer.


https://www.icann.org/en/system/files/files/transfer-complaint-24aug16-en.pdf

Even if it's expired, you should still be able to transfer it:

https://www.icann.org/resources/pages/name-holder-faqs-2017-10-10-en (#11)

The WHOIS info says that the domain doesn't expire until 2023-06-28, so
I'm not too sure what's going on here.

make me wonder if we should just ditch that domain and stick to the nl 
one only, saves money too


There are lots of links around the web to "pragma-ade.com". It might be a
good idea to phase out the .com and have all of the pages redirect to the
.nl, but I'd say that it's probably worth the ~$15/year to make sure that
pragma-ade.com isn't used to host spam/porn/malware.

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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Hans Hagen via ntg-context

On 7/1/2022 10:54 AM, Henning Hraban Ramm via ntg-context wrote:

Am 01.07.22 um 10:24 schrieb Taco Hoekwater:



On 1 Jul 2022, at 09:46, Henning Hraban Ramm via ntg-context 
 wrote:


Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context:

On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:

Well,

Hans had been complaining about networksolutions not allowing him 
to move the domain away from them, so I guess this was to be expected.
indeed, and transfer is pending for ages now ... looks liek they 
don't like to transfer
make me wonder if we should just ditch that domain and stick to the 
nl one only, saves money too


Well, we must change a lot of dead links on the wiki now.

Taco, can you automate it? Otherwise I’ll start...


I do not know of a clean way to automate that. It may be possible, but 
then it is outside of my knowledge set. So yeah, by hand.


Ok, I started. And of course I find a lot of other details to fix on the 
way...


Would you please change the [[manual:]] template? I didn’t find where to 
change it (and maybe I lack the permissions).

we'll keep the nl domain(s) anyway so changing to them are ok

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Hans Hagen via ntg-context

On 7/1/2022 10:24 AM, Taco Hoekwater via ntg-context wrote:




On 1 Jul 2022, at 09:46, Henning Hraban Ramm via ntg-context 
 wrote:

Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context:

On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:

Well,

Hans had been complaining about networksolutions not allowing him to move the 
domain away from them, so I guess this was to be expected.

indeed, and transfer is pending for ages now ... looks liek they don't like to 
transfer
make me wonder if we should just ditch that domain and stick to the nl one 
only, saves money too


Well, we must change a lot of dead links on the wiki now.

Taco, can you automate it? Otherwise I’ll start...


I do not know of a clean way to automate that. It may be possible, but then it 
is outside of my knowledge set. So yeah, by hand.


i'll try again to transfer but it might take days ... tried it many 
times but we'll see it it works this time


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

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

Am 01.07.22 um 10:24 schrieb Taco Hoekwater:




On 1 Jul 2022, at 09:46, Henning Hraban Ramm via ntg-context 
 wrote:

Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context:

On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:

Well,

Hans had been complaining about networksolutions not allowing him to move the 
domain away from them, so I guess this was to be expected.

indeed, and transfer is pending for ages now ... looks liek they don't like to 
transfer
make me wonder if we should just ditch that domain and stick to the nl one 
only, saves money too


Well, we must change a lot of dead links on the wiki now.

Taco, can you automate it? Otherwise I’ll start...


I do not know of a clean way to automate that. It may be possible, but then it 
is outside of my knowledge set. So yeah, by hand.


Ok, I started. And of course I find a lot of other details to fix on the 
way...


Would you please change the [[manual:]] template? I didn’t find where to 
change it (and maybe I lack the permissions).


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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Taco Hoekwater via ntg-context


> On 1 Jul 2022, at 09:46, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context:
>> On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:
>>> Well,
>>> 
>>> Hans had been complaining about networksolutions not allowing him to move 
>>> the domain away from them, so I guess this was to be expected.
>> indeed, and transfer is pending for ages now ... looks liek they don't like 
>> to transfer
>> make me wonder if we should just ditch that domain and stick to the nl one 
>> only, saves money too
> 
> Well, we must change a lot of dead links on the wiki now.
> 
> Taco, can you automate it? Otherwise I’ll start...

I do not know of a clean way to automate that. It may be possible, but then it 
is outside of my knowledge set. So yeah, by hand.

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

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

Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context:

On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:

Well,

Hans had been complaining about networksolutions not allowing him to 
move the domain away from them, so I guess this was to be expected.
indeed, and transfer is pending for ages now ... looks liek they don't 
like to transfer


make me wonder if we should just ditch that domain and stick to the nl 
one only, saves money too


Well, we must change a lot of dead links on the wiki now.

Taco, can you automate it? Otherwise I’ll start...

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

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


Re: [NTG-context] "pragma-ade.com" is now a domain parking page

2022-07-01 Thread Hans Hagen via ntg-context

On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote:

Well,

Hans had been complaining about networksolutions not allowing him to move the 
domain away from them, so I guess this was to be expected.
indeed, and transfer is pending for ages now ... looks liek they don't 
like to transfer


make me wonder if we should just ditch that domain and stick to the nl 
one only, saves money too


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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