Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Willi Egger
>>> >>> Good evening! >>> >>> I have a bookproject in which sections are ended with a small graphical >>> element. Now as usual this graphic might be moved to a new page which is of >>> course unwanted. >>> >>> A

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 30.07.2020 um 09:05: On 29 Jul 2020, at 23:08, Willi Egger wrote: Good evening! I have a bookproject in which sections are ended with a small graphical element. Now as usual this graphic might be moved to a new page which is of course unwanted. At this moment I

Re: [NTG-context] About testing rest of space on a page

2020-07-30 Thread Taco Hoekwater
> On 29 Jul 2020, at 23:08, Willi Egger wrote: > > Good evening! > > I have a bookproject in which sections are ended with a small graphical > element. Now as usual this graphic might be moved to a new page which is of > course unwanted. > > At this momen

[NTG-context] About testing rest of space on a page

2020-07-29 Thread Willi Egger
Good evening! I have a bookproject in which sections are ended with a small graphical element. Now as usual this graphic might be moved to a new page which is of course unwanted. At this moment I have: \startsetups endsection \vfil \placefigure[middle,none][]{}{\externalfigure[ornament2

[NTG-context] question on page transitions

2020-07-25 Thread Pablo Rodriguez
Dear list, I have a question about page transitions (lines 297-304 from scrn-pag.mkvi): \def\scrn_transitions_set_indeed {\begingroup \edef\currentinteractionscreendelay{\interactionscreenparameter\c!delay}% \clf_setpagetransition n {\scrn_transitions_list}% delay \ifx

Re: [NTG-context] \blank space at the top of a page

2020-06-18 Thread James Withers
> I have been trying to find a solution to how to insert blank lines > > before a chapter heading at the start of a page. In the following > > example the \blank[4*big] is ignored. The solution I've found is to > > add an empty box using \mbox{} before the \blank comma

Re: [NTG-context] \blank space at the top of a page

2020-06-18 Thread Wolfgang Schuster
James Withers schrieb am 18.06.2020 um 17:35: Hello list I have been trying to find a solution to how to insert blank lines before a chapter heading at the start of a page. In the following example the \blank[4*big] is ignored. The solution I've found is to add an empty box using \mbox{} before

[NTG-context] \blank space at the top of a page

2020-06-18 Thread James Withers
Hello list I have been trying to find a solution to how to insert blank lines before a chapter heading at the start of a page. In the following example the \blank[4*big] is ignored. The solution I've found is to add an empty box using \mbox{} before the \blank command. Is this the right way

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Aditya Mahajan
lines at the top show the number of the previous page, this happens because TeX collects more than necessary which means in your example above the layer is placed when TeX was still on the first page. Many thanks for your reply, Wolfgang. I’m afraid that TeX is too tricky for me in that case (or I

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
the top show the number of the previous page, this happens > because TeX collects more than necessary which means in your example > above the layer is placed when TeX was still on the first page. Many thanks for your reply, Wolfgang. I’m afraid that TeX is too tricky for me i

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 16.06.2020 um 16:31: On 6/16/20 4:53 AM, Rudolf Bahr wrote: [...] Hi Pablo, I fear I don't understand what issue you mean, therefore I append my output here. Many thanks for your reply, Rudolf. The issue is that the layer is placed on the first page, where

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-16 Thread Pablo Rodriguez
On 6/16/20 4:53 AM, Rudolf Bahr wrote: > [...] > Hi Pablo, > > I fear I don't understand what issue you mean, therefore I append my output > here. Many thanks for your reply, Rudolf. The issue is that the layer is placed on the first page, where it should be placed on

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Rudolf Bahr
On Mon, Jun 15, 2020 at 02:52:49PM +0200, Pablo Rodriguez wrote: > Dear list, > > I have the following number with wrong annotation placement and wrong > page number, which would be both on the second page: > > \setupinteraction[state=start] > \definelayer[pgnumber]

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
On 6/15/20 4:09 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 15.06.2020 um 14:52: >> Dear list, >> >> I have the following number with wrong annotation placement and wrong >> page number, which would be both on the second page: >> [...]

Re: [NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 15.06.2020 um 14:52: Dear list, I have the following number with wrong annotation placement and wrong page number, which would be both on the second page: \setupinteraction[state=start] \definelayer[pgnumber] \setupbackgrounds[page][background=pgnumber

[NTG-context] wrong page for annotation and \pagenumber

2020-06-15 Thread Pablo Rodriguez
Dear list, I have the following number with wrong annotation placement and wrong page number, which would be both on the second page: \setupinteraction[state=start] \definelayer[pgnumber] \setupbackgrounds[page][background=pgnumber] \starttext \placelist[section][alternative=d

Re: [NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
Thanks kindly, Wolfgang. On Mon, 15 Jun 2020 at 00:49, Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Jack Steyn schrieb am 14.06.2020 um 16:46: > > Hi, > > > > I'm not sure why the following MWE produces a document where page 2 > > has the page

Re: [NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Wolfgang Schuster
Jack Steyn schrieb am 14.06.2020 um 16:46: Hi, I'm not sure why the following MWE produces a document where page 2 has the page number i instead of ii. It seems to have something to do with the use of makeup. I was using it to create a vertically centered title page. Is there a better way

[NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
Hi, I'm not sure why the following MWE produces a document where page 2 has the page number i instead of ii. It seems to have something to do with the use of makeup. I was using it to create a vertically centered title page. Is there a better way of doing this which will give the correct page

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Wolfgang Schuster
Alan Bowen schrieb am 10.06.2020 um 17:04: Thanks, Taco! That works in my mwe. I added way=bytext in my env file and the output is just what I need. Why don't you use sub pages? \starttext %\setupsubpagenumber[start=5]\resetsubpagenumber \setcounter[subpage][5] \startTEXpage

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
that resets the counter to one at the start > of the next page (it is useful for footnotes that are numbered > per-page, but not for actual page counters). > > > \definecounter[volpage][type=page] > \starttext > \setcounter[volpage][5] > \dorecurse{3}{\startTEXpage[off

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
Hi Alan, Sorry, I should have actually tried your MWE. You do *not* want way=bypage here, as that resets the counter to one at the start of the next page (it is useful for footnotes that are numbered per-page, but not for actual page counters). \definecounter[volpage][type=page] \starttext

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Alan Bowen
Hi, Taco— Thanks for the suggestion. I have tried it with \incrementcounter before and after the TEXpage. Sadly, neither worked. This mwe is an attempt to capture the failure of the following in processing a product with numerous components: \definecounter[volpage][type=page, way=bypage

Re: [NTG-context] problem with counters (page)

2020-06-10 Thread Taco Hoekwater
Hi, Incrementing the counter outside of the TEXpage should work. Best wishes, Taco > On 9 Jun 2020, at 23:34, Alan Bowen wrote: > > My efforts to set up a new page counter in the footertexts of a book are not > proving successful. The following code shows the nature of

[NTG-context] problem with counters (page)

2020-06-09 Thread Alan Bowen
My efforts to set up a new page counter in the footertexts of a book are not proving successful. The following code shows the nature of the problem. \definecounter[volpage][type=page, way=bypage] \starttext \setcounter[volpage][5] \dorecurse{3}{\startTEXpage[offset=2pc] \input ward \blank[medium

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
> Am 29.05.2020 um 22:18 schrieb Aditya Mahajan : > > On Fri, 29 May 2020, Henning Hraban Ramm wrote: > >> In a similar setup I wanted to start every chapter with image and short vita >> the author and came up with the following (of course not without help from >> our wizards): >> >> >>

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
On Fri, 29 May 2020, Henning Hraban Ramm wrote: In a similar setup I wanted to start every chapter with image and short vita the author and came up with the following (of course not without help from our wizards): \doifelse{\structureuservariable{image}}{}{% if image empty }{% ... }

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
{% {\tf\ss\structureuservariable{vita}} }% }% \page[right] \vbox{% \doifnot{\structureuservariable{subtitle}}{}{% if subtitle {\definedfont[SerifItalic*eka at 30pt]\structureuservariable{subtitle}} }% }% }% \blank[3*big] \directsetup{normalheader

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
suppose you wanted to use the image defined as part of > `\startchapter` as the background image of the _current_ page, then you > could access the value of the \structureuservariable. For example, > > \startchapter[title=whatever][image=filename] > > \structureuservariable{image}

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
ave to worry about it. See https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data for more details. Now, suppose you wanted to use the image defined as part of `\startchapter` as the background image of the _current_ page, then you could access the value of the \struct

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Hi Wolfgang, thank you very much. Amazing! Am 29.05.20 um 15:35 schrieb Wolfgang Schuster: > \definedataset [chapter] > > \startsetups [chapter:before] > >   \page[yes] > >   \doglobal\increment\ChapterCounter > >   \doifoddpageelse >     {} >     {\doifsom

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 29.05.2020 um 15:10: Am 29.05.20 um 12:45 schrieb Wolfgang Schuster: juh schrieb am 29.05.2020 um 10:29: Dear all, with your help I can colorize the empty even page right before a chapter starts on the odd page. The mwe below shows it. Now I would like to redefine

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Am 29.05.20 um 12:45 schrieb Wolfgang Schuster: > juh schrieb am 29.05.2020 um 10:29: >> Dear all, >> >> with your help I can colorize the empty even page right before a >> chapter starts >> on the odd page. The mwe below shows it. >> >> Now I would l

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
juh schrieb am 29.05.2020 um 10:29: Dear all, with your help I can colorize the empty even page right before a chapter starts on the odd page. The mwe below shows it. Now I would like to redefine the contents of the left page on the fly in the text so that I could place images on this page

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
Dear all, with your help I can colorize the empty even page right before a chapter starts on the odd page. The mwe below shows it. Now I would like to redefine the contents of the left page on the fly in the text so that I could place images on this page. I thought that I could get a simple

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-25 Thread Taco Hoekwater
Hi, I like the new page layout. It is a big improvement structurally, and great work! Best wishes, Taco > On 24 May 2020, at 10:53, Henning Hraban Ramm wrote: > > > >> Am 24.05.2020 um 04:06 schrieb Aditya Mahajan : >> >> I am okay with changing th

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-24 Thread Henning Hraban Ramm
> Am 24.05.2020 um 04:06 schrieb Aditya Mahajan : > > I am okay with changing the main page as well. But since this is the main > page, let's wait for the other mods to chime in as well. Am I a mod? Just a frequent contributor, I guess... I like the new main page, it looks v

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-23 Thread Aditya Mahajan
On Sat, 23 May 2020, Garulfo wrote: 1/ Concerning the Manuals Page    - As proposed, "obsolete banners" are added to thumbnails  of the oldest manuals. Looks good. A few minor comments: I haven't tested it, but the natural tables in context examples (in Sec 3.6) should

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-23 Thread Garulfo
1/ Concerning the Manuals Page    - As proposed, "obsolete banners" are added to thumbnails  of the oldest manuals. Looks good. A few minor comments: I haven't tested it, but the natural tables in context examples (in Sec 3.6) should still work with latest versions. The &quo

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-22 Thread Aditya Mahajan
On Fri, 22 May 2020, Garulfo wrote: Hi all, thanks for your encouraging feedbacks. 1/ Concerning the Manuals Page - As proposed, "obsolete banners" are added to thumbnails of the oldest manuals. Looks good. A few minor comments: I haven't tested it, but the natu

Re: [NTG-context] Wiki - Proposal to update the Welcome page

2020-05-22 Thread Hans Hagen
On 5/22/2020 11:42 PM, Garulfo wrote: Hi all, thanks for your encouraging feedbacks. 1/ Concerning the Manuals Page    - As proposed, "obsolete banners" are added to thumbnails  of the oldest manuals.    - About providing zips of manuals per topics: maybe we could just

[NTG-context] Wiki - Proposal to update the Welcome page

2020-05-22 Thread Garulfo
Hi all, thanks for your encouraging feedbacks. 1/ Concerning the Manuals Page - As proposed, "obsolete banners" are added to thumbnails of the oldest manuals. - About providing zips of manuals per topics: maybe we could just add a index.html in the distribution

Re: [NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-22 Thread context
...@vivaldi.net wrote: Hello, at least a short reaction would be appreciated - is it possible to get the desired with ConTeXt? - I need to typeset a column-shaped document with a colofon in the bottom of the page, so my interest is not academical but very practical; and the code presented

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-22 Thread Jan Willem Flamma
This is great work. Many thanks! Kind regards,Jan Willem Flamma From: GarulfoSent: Tuesday, 19 May 2020 15:23To: ntg-context@ntg.nlSubject: [NTG-context] Proposal to update the "Manuals" wiki page Hi, I hope you're all doing well. Please, you will find a proposal to update the Ma

Re: [NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-21 Thread context
Hello, at least a short reaction would be appreciated - is it possible to get the desired with ConTeXt? - I need to typeset a column-shaped document with a colofon in the bottom of the page, so my interest is not academical but very practical; and the code presented bellow is a minimalistic

Re: [NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-21 Thread Aditya Mahajan
On Thu, 21 May 2020, cont...@vivaldi.net wrote: Hello, at least a short reaction would be appreciated - is it possible to get the desired with ConTeXt? - I need to typeset a column-shaped document with a colofon in the bottom of the page, so my interest is not academical but very practical

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Gerben Wierda
> On 19 May 2020, at 15:22, Garulfo wrote: > > Hi, > > I hope you're all doing well. > > Please, you will find a proposal to update the Manuals page on the wiki: > https://wiki.contextgarden.net/ManualsGallery > > 2 objectives: > 1/ to make something more

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread context
quot; - IMHO it would be good for offline users (and for those who prefer printed form). Best regards, Lukas On 2020-05-19 15:22, Garulfo wrote: Hi, I hope you're all doing well. Please, you will find a proposal to update the Manuals page on the wiki: https://wiki.contextgarden.net/ManualsGal

[NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-20 Thread context
Hello, suppose the minimal example: \showboxes \starttext \startcolumns[n=2,balance=no,] \input knuth \stopcolumns \vfill abcd \stoptext This produces two page document with columns on the first page and text "abcd" on the second. But - I want the

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Hans Hagen
On 5/20/2020 4:55 PM, cont...@vivaldi.net wrote: 2. Could you add a "download all manuals" hlink/button next to each (sub)title to download appropriate manuals as .zip, so to get: most manuals are in the distribution -

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Denis Maier
Am 19.05.2020 um 15:22 schrieb Garulfo: Hi, I hope you're all doing well. Please, you will find a proposal to update the Manuals page on the wiki: https://wiki.contextgarden.net/ManualsGallery 2 objectives: 1/ to make something more visual, to help the user identify the different documents

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Hans Hagen
On 5/19/2020 3:22 PM, Garulfo wrote: Hi, I hope you're all doing well. Please, you will find a proposal to update the Manuals page on the wiki: https://wiki.contextgarden.net/ManualsGallery 2 objectives: 1/ to make something more visual, to help the user identify the different documents

Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Rudolf Bahr
On Tue, May 19, 2020 at 03:22:47PM +0200, Garulfo wrote: > Hi, > > I hope you're all doing well. > > Please, you will find a proposal to update the Manuals page on the wiki: > https://wiki.contextgarden.net/ManualsGallery > > 2 objectives: > 1/ to make something mo

[NTG-context] Proposal to update the "Manuals" wiki page

2020-05-19 Thread Garulfo
Hi, I hope you're all doing well. Please, you will find a proposal to update the Manuals page on the wiki: https://wiki.contextgarden.net/ManualsGallery 2 objectives: 1/ to make something more visual, to help the user identify the different documents, their organization, their date of release

[NTG-context] Building a page based on exact location of graphical elements (PDF)

2020-05-17 Thread Gerben Wierda
What is the simplest way to build a page based on positioning of external images? Some of these images are page-sized (so take up an entire page, though I might want to overlay some other text boxes and MP graphics). I’ve been trying to find a good explanation/introduction into layers (which I

Re: [NTG-context] Building a page based on exact location of graphical elements (PDF)

2020-05-17 Thread Wolfgang Schuster
Gerben Wierda schrieb am 17.05.2020 um 16:52: What is the simplest way to build a page based on positioning of external images? Some of these images are page-sized (so take up an entire page, though I might want to overlay some other text boxes and MP graphics). I’ve been trying to find

Re: [NTG-context] Blank page added after pagecolumns

2020-05-16 Thread Joey McCollum
I thought that the "yes" and "nop" suffixes were related to "page=yes" and "page=no" for a few reasons. First, because I thought "nop" could be shorthand for "no page." More importantly, however, I thought they might be related because s

Re: [NTG-context] Blank page added after pagecolumns

2020-05-16 Thread Wolfgang Schuster
Joey McCollum schrieb am 16.05.2020 um 05:45: All right, I've found a tentative solution that appears to work in all cases, but I'd like to know more about why the code I'm patching was implemented in the first place, because I don't want to break anything else. According to the code in page

Re: [NTG-context] Blank page added after pagecolumns

2020-05-15 Thread Joey McCollum
All right, I've found a tentative solution that appears to work in all cases, but I'd like to know more about why the code I'm patching was implemented in the first place, because I don't want to break anything else. According to the code in page-pcl.mkiv, the \stoppagecolumns macro has two

Re: [NTG-context] page number with brief centered line above

2020-05-14 Thread jbf
to achieve a layout where there is a brief line above the bottom-centered page number (of a double-sided document). I am able to achieve the centered bottom-located page number easily and obviously enough with: \setuppagenumbering   [alternative=doublesided,location={footer,middle}] \setupfooter

Re: [NTG-context] Blank page added after pagecolumns

2020-05-14 Thread Joey McCollum
Okay, I think I'm getting close, but I'm not quite there yet. The pagecolumns source code is found in page-pcl.mkiv ( source.contextgarden.net/tex/context/base/mkiv/page-pcl.mkiv), and in that code, the \page_col_stop_yes macro seems to have something to do with the issue: ``` \unexpanded\def

Re: [NTG-context] page number with brief centered line above

2020-05-14 Thread Wolfgang Schuster
jbf schrieb am 14.05.2020 um 07:30: Hi list, I am trying to achieve a layout where there is a brief line above the bottom-centered page number (of a double-sided document). I am able to achieve the centered bottom-located page number easily and obviously enough with: \setuppagenumbering

[NTG-context] page number with brief centered line above

2020-05-13 Thread jbf
Hi list, I am trying to achieve a layout where there is a brief line above the bottom-centered page number (of a double-sided document). I am able to achieve the centered bottom-located page number easily and obviously enough with: \setuppagenumbering   [alternative=doublesided,location

Re: [NTG-context] Blank page added after pagecolumns

2020-05-10 Thread Thangalin
Bump. See also: https://tex.stackexchange.com/q/542993/2148 On Mon, May 4, 2020 at 11:46 AM Joey McCollum wrote: > > After continuing to look into this a bit, I noticed that a similar issue > involving the insertion of a blank page after a columnset environment has > be

Re: [NTG-context] long caption in 2-page spread

2020-05-07 Thread jbf
After trying Hraban's two suggestions to resolve the problem of a caption ('title=') for an image across a two-page spread (and I have tried a variety of adaptations of those two possible solutions), I still have not resolved the issue. To repeat what Hans gave me, to resolve the 2-page

Re: [NTG-context] long caption in 2-page spread

2020-05-05 Thread Henning Hraban Ramm
> Am 05.05.2020 um 03:31 schrieb jbf : > > The following excellent solution (see below) to a 2-page spread of an image > was given me by Hans (I had been completely unaware of the command > \startspread. It appears to be recent and undocumented, but it certainly >

[NTG-context] long caption in 2-page spread

2020-05-04 Thread jbf
The following excellent solution (see below) to a 2-page spread of an image was given me by Hans (I had been completely unaware of the command \startspread. It appears to be recent and undocumented, but it certainly simplifies matters). But in my case the title is a lengthy sentence, rather

Re: [NTG-context] Blank page added after pagecolumns

2020-05-04 Thread Joey McCollum
After continuing to look into this a bit, I noticed that a similar issue involving the insertion of a blank page after a columnset environment has been discussed on the mailing list in the thread "Blank page inserted when text reaches column's end" (dated 08 Dec 2019). In that thread,

Re: [NTG-context] Blank page added after pagecolumns

2020-05-02 Thread Joey McCollum
I recently found the pagecolumns manual ( http://www.pragma-ade.com/general/manuals/pagecolumns.pdf), and in several of the examples (including those for side floats and footnotes), the addition of a blank page after the end of the pagecolumns environment also seems to occur. So when the manual

Re: [NTG-context] Getting page width and height in Lua

2020-04-30 Thread Wolfgang Schuster
Jack Steyn schrieb am 30.04.2020 um 16:36: If I want to get the paper width and height to use in some Lua code, I can use: local paperwidth, paperheight = backends.pdf.codeinjections.getpagedimensions() But what if I want to get the page width and height? That is, the width and height

[NTG-context] Getting page width and height in Lua

2020-04-30 Thread Jack Steyn
If I want to get the paper width and height to use in some Lua code, I can use: local paperwidth, paperheight = backends.pdf.codeinjections.getpagedimensions() But what if I want to get the page width and height? That is, the width and height of the first argument in the two-argument version

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Hans Hagen
On 4/30/2020 2:05 AM, jbf wrote: Hi list, With 99% of work complete on a book, including single page images, I now find myself confronted with a final problem: how to run one image across facing pages or in other words, one image (plus its caption) across a two-page spread

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
> Am 30.04.2020 um 02:05 schrieb jbf : > > Hi list, > > With 99% of work complete on a book, including single page images, I now find > myself confronted with a final problem: how to run one image across facing > pages or in other words, one image (plus its capti

Re: [NTG-context] image across 2 page spread

2020-04-29 Thread Thangalin
Would something like this work? \setupbackgrounds[page][ background={BookIllustrationLayer}, ] \definelayer[BookIllustrationLayer][ width=\paperwidth, height=.5\paperheight, y=.5\paperheight, position=no, repeat=no, ] \setlayer[BookIllustrationLayer]{% \clip[x=\doifelseoddpage

[NTG-context] further to the single image across two page spread

2020-04-29 Thread jbf
the one image (a suitable landscape image I might add) to run seamlessly across a two-page spread (which is what the LaTeX example I gave does). Sorry for any confusion, Julian ___ If your question is of interest

[NTG-context] image across 2 page spread

2020-04-29 Thread jbf
Hi list, With 99% of work complete on a book, including single page images, I now find myself confronted with a final problem: how to run one image across facing pages or in other words, one image (plus its caption) across a two-page spread, such that there is no gap. I have tried a number

[NTG-context] Blank page added after pagecolumns

2020-04-28 Thread Joey McCollum
I am typesetting a document using pagecolumns to ensure that my footnotes are set ragged-bottom in columns. I have observed some unexpected behavior whenever the last column on a page is left incomplete: a blank page is added at the end of the document. A minimal working example follows

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
On 3/30/2020 2:21 PM, Mojca Miklavec wrote: On Mon, 30 Mar 2020 at 13:21, Hans Hagen wrote: On 3/30/2020 1:03 PM, Mojca Miklavec wrote: % I want an actual page break here \page a rather stipid solution: \dorecurse{15}{\page[empty]} I did think of this one (and actually did

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Mojca Miklavec
On Mon, 30 Mar 2020 at 13:21, Hans Hagen wrote: > On 3/30/2020 1:03 PM, Mojca Miklavec wrote: > > > > % I want an actual page break here > > \page > > a rather stipid solution: > > \dorecurse{15}{\page[empty]} I did think of this one (and actually did it for th

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
On 3/30/2020 1:03 PM, Mojca Miklavec wrote: Hi, Stupid question: what's the proper way to introduce an actual page break and put some header on the paper holding the XY arrangement of smaller pages? I know I can create the second document which includes the first one and adds page numbers

[NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Mojca Miklavec
Hi, Stupid question: what's the proper way to introduce an actual page break and put some header on the paper holding the XY arrangement of smaller pages? I know I can create the second document which includes the first one and adds page numbers on top, but I'm sure there's a more elegant way

Re: [NTG-context] repeat a page inside a document

2020-02-27 Thread context
Hello Pablo, although I'm not sure about what to achieve, should this be helpful for you? Ctx source: Pablo.mkiv \starttext \setupheadertexts[][\cldcontext{"Mode = " .. (tex.modes["1"] and "1" or tex.modes["2"] and "2" or "??&q

Re: [NTG-context] Chapter in header, but not on title page

2020-02-16 Thread Henning Hraban Ramm
> Am 2020-02-15 um 23:20 schrieb Pablo Rodriguez : > > > On 2/15/20 9:16 PM, Henning Hraban Ramm wrote: >> I guess I’m stupid. >> I’d like to have my chapter title in the header on right pages, but >> not on the first page of a chapter, that always is a right p

Re: [NTG-context] Chapter in header, but not on title page

2020-02-15 Thread Pablo Rodriguez
On 2/15/20 9:16 PM, Henning Hraban Ramm wrote: > I guess I’m stupid. > I’d like to have my chapter title in the header on right pages, but > not on the first page of a chapter, that always is a right page. > Since I’d like to keep the page number in the header on these pages, > I c

[NTG-context] Chapter in header, but not on title page

2020-02-15 Thread Henning Hraban Ramm
I guess I’m stupid. I’d like to have my chapter title in the header on right pages, but not on the first page of a chapter, that always is a right page. Since I’d like to keep the page number in the header on these pages, I can’t use header=empty. What’s the right setup for me? (In the MWE

[NTG-context] page break

2020-02-09 Thread Fabrice Couvreur
Hi, Sorry if my minimal example is not, but I have to understand with your help what is wrong. For example, why a page break after the second item when there seems to be enough space to stay on this page ? Thanks Fabrice \define\starttikzpicture {\hbox\bgroup\forcecolorhack\tikzpicture

Re: [NTG-context] repeat a page inside a document

2020-02-07 Thread Pablo Rodriguez
still very confusing and I have no idea > what you're trying to achieve. They way to go depends also > what you try to achieve, when you need an exact copy of > the first page the above is the way to go. Sorry again for the poor explanation, Wolfgang. I must recognize that I need this a

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Wolfgang Schuster
st and other pages. > > > > How many pages has your document, first you write is has only > > one page but now you write about a document with many pages. > > Sorry for the inaccuracies in my previous description, Wolfgang. > > I use a single source combined with

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
On 2/6/20 8:17 PM, Wolfgang Schuster wrote: > On Thu, 6 Feb 2020 19:02:08 +0100 Pablo Rodriguez wrote: >> [...] >> BTW, in my real-world document I use layers which are different for >> first and other pages. > > How many pages has your document, first you write is has

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Wolfgang Schuster
On Thu, 6 Feb 2020 19:02:08 +0100 Pablo Rodriguez wrote: > On 2/6/20 5:15 PM, Henning Hraban Ramm wrote: > > > >> Am 2020-02-06 um 16:28 schrieb Pablo Rodriguez : > >> > >> My question is how to get a page from the document you‘re compiling > >>

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
On 2/6/20 7:14 PM, Wolfgang Schuster wrote: > On Thu, 6 Feb 2020 16:28:04 +0100 Pablo Rodriguez wrote: >> [...] >> My question is how to get a page from the document you‘re compiling >> repeated inside the same document. >> >> I have tried to search both i-cont

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
not do that myself yet. I have just started to learn ConTeXt and am a > very busy slow learner. > > \usepackage{atbegshi} > \newcommand{\Repeat}{} > > \AtBeginShipout{% > \ifodd\value{page}% > \else\Repeat% > \newpage% > \fi% Many thanks for your reply, Thomas. I don

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Wolfgang Schuster
On Thu, 6 Feb 2020 16:28:04 +0100 Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \starttext > \input knuth > \page[right] > \setuplayout[page] > \externalfigure[\jobname.pdf][page=1] > \stoptext > > M

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
On 2/6/20 5:15 PM, Henning Hraban Ramm wrote: > >> Am 2020-02-06 um 16:28 schrieb Pablo Rodriguez : >> >> My question is how to get a page from the document you‘re compiling >> repeated inside the same document. > > I solved this with a component that I include t

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Thomas Savary
a very busy slow learner. \usepackage{atbegshi} \newcommand{\Repeat}{} \AtBeginShipout{% \ifodd\value{page}% \else\Repeat% \newpage% \fi% } I hope it helps. But maybe you don’t need to repeat the same page every two page, as I did… Thomas Savary 1 le Grand

Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Henning Hraban Ramm
> Am 2020-02-06 um 16:28 schrieb Pablo Rodriguez : > > My question is how to get a page from the document you‘re compiling > repeated inside the same document. I solved this with a component that I include twice. Of course that won’t work if you need a page in the middle of so

[NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \input knuth \page[right] \setuplayout[page] \externalfigure[\jobname.pdf][page=1] \stoptext My question is how to get a page from the document you‘re compiling repeated inside the same document. I have tried

[NTG-context] Impacts Project: Two-Page Spread

2020-01-14 Thread Thangalin
Hi all! Pleased to share with you a new two-page spread of the Impacts project: https://impacts.to/downloads/lowres/impacts-dual.pdf Best viewed in "Dual" (or "Even Spreads") mode. Compare with the original single-page spread: https://impacts.to/downloads/lowres/impact

[NTG-context] How to get page number as Burmese numbers?

2019-12-31 Thread Kyaw Myo Min
Hello Users, I am new to ConTeXt. Previously I used LaTeX. Can you help me how can I get page numbers in Burmese number. I found on ConTeXt wiki how to convert page number to words. But I don’t know how to modify it.Burmese language is not supported in ConTeXt

Re: [NTG-context] Blank page inserted when text reaches column's end

2019-12-10 Thread Wolfgang Schuster
the column is filled before deciding if a page break is necessary? \unprotect \def\page_grd_stop{% \endgraf % needed, else wrong vsize in one par case \vfill % otherwise weird \placenotes[endnotes] \page_grd_command_set_vsize % needed \penalty\c_page_otr_eject_penalty

  1   2   3   4   5   6   7   8   9   10   >