[NTG-context] Re: How to force section title to be on same page as some of the content?

2024-11-03 Thread Henning Hraban Ramm
Am 03.11.24 um 07:53 schrieb Denis Maier via ntg-context: Should that be be before={\testpage[5]} instead of after=? before, sorry Hraban ___ If your question is of interest to others as well, please add an entry t

[NTG-context] Re: How to force section title to be on same page as some of the content?

2024-11-02 Thread Denis Maier via ntg-context
ow can I be so precise making sure the page break doesn't seperate the title from the start of the area where students write their answers? To force keep something together, you can use a \framed or a \vbox.   With a bit less

[NTG-context] Re: How to force section title to be on same page as some of the content?

2024-11-02 Thread Henning Hraban Ramm
Am 02.11.24 um 21:11 schrieb Joel via ntg-context: How can I be so precise making sure the page break doesn't seperate the title from the start of the area where students write their answers? To force keep something together, you can use a \framed or a \vbox. With a bit less force

[NTG-context] How to force section title to be on same page as some of the content?

2024-11-02 Thread Joel via ntg-context
ended materials (like scissors, glue). - Instructions directed at the student. - Where student write their answers. - A list of requirements, how it will be graded. In testing, I found students are ALWAYS very confused by page breaks: If the assignment title, supplies, and instructions appear o

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Wolfgang Schuster
Florent Michel schrieb am 25.09.2024 um 00:17: Hi, After looking at it a bit more, one solution can be found in the accepted answer to this question: https://tex.stackexchange.com/questions/108676/page-numbers-roman-number-and-arabic-numerals-in-context The following example is slightly

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Florent Michel
Wed, Sep 25, 2024 at 3:52 AM Florent Michel > wrote: > > > > Hi, > > > > After looking at it a bit more, one solution can be found in the > accepted answer to this question: > https://tex.stackexchange.com/questions/108676/page-numbers-roman-number-and-arabi

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Shiv Shankar Dayal
m/questions/108676/page-numbers-roman-number-and-arabic-numerals-in-context > > The following example is slightly adapted from Marco's answer: > > ``` > \usemodule[ipsum] > > \definesectionblock[roman][romanpages] > \definestructureconversionset [roman:pagenumber] [] [r

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
Hi, After looking at it a bit more, one solution can be found in the accepted answer to this question: https://tex.stackexchange.com/questions/108676/page-numbers-roman-number-and-arabic-numerals-in-context The following example is slightly adapted from Marco's answer: ``` \usemodule[

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
Hi, I do not know how to do that properly (if someone has a solution, I'd also be interested), but here is something which seems to give a partial solution: ``` \usemodule[ipsum] \starttext \placecontent \section{Section 1} \dorecurse {6} \ipsum \pagebreak \section{Section 2} \def\romanpag

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Shiv Shankar Dayal
> Did you try a different PDF viewer? The display of the PDF outline > probably depends on the viewer. I used Evince and Okular(I am on Linux) and both work for LaTeX generated pdfs. > Maybe try > \enabledirectives[references.bookmarks.preroll] > or > \setupheads[expansion=yes] Tried both but th

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Henning Hraban Ramm
Am 24.09.24 um 16:14 schrieb Shiv Shankar Dayal: The problem is that PDF Outline does not show roman numerals. It shows page numbers in arabic numerals. Sorry, I misunderstood. I don’t know and can’t find any documentation on that. Did you try a different PDF viewer? The display of the PDF

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Shiv Shankar Dayal
> Try > \setupuserpagenumber[numberconversion=romannumerals] > > Instead of “romannumerals” you can also use r, R, or, or RK. > > If you meant “Arabic” numerals, try n, N, o, or zero. The problem is that PDF Outline does not show roman numerals. It shows page numbers

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Henning Hraban Ramm
Am 24.09.24 um 14:05 schrieb Shiv Shankar Dayal: Hi all, I want to switch page numbering from roman(which is typical in frontmatter) to roman. I also want these to appear in PDF outline. Can someone provide an MWE? It’s a bit unclear what your problem is. Try \setupuserpagenumber

[NTG-context] Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Shiv Shankar Dayal
Hi all, I want to switch page numbering from roman(which is typical in frontmatter) to roman. I also want these to appear in PDF outline. Can someone provide an MWE? -- Respect, Shiv Shankar Dayal ___ If your

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-11 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 11.09.2024 um 04:22: Thank you for your careful and patient explanation. I'll check my code again. Because it's still very simple, and some situations haven't been taken into account. In particular, the condition judgment to split the part of the box. I run your

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread Wolfgang Schuster
Bruce Horrocks schrieb am 11.09.2024 um 00:35: On 10 Sep 2024, at 19:47, Wolfgang Schuster wrote: You can't use page counters in running text without problems because you're working against the way how TeX constructs pages. The only reliable way are multipass solutions like the

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread ai2472206007
Thank you for your careful and patient explanation. I'll check my code again. Because it's still very simple, and some situations haven't been taken into account. In particular, the condition judgment to split the part of the box. Regarding the part about referencing commands, I inadvertently

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread Bruce Horrocks
> On 10 Sep 2024, at 19:47, Wolfgang Schuster > wrote: > > You can't use page counters in running text without problems because you're > working against the way how TeX constructs pages. > > The only reliable way are multipass solutions like the pagestate

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 10.09.2024 um 06:05: 1. The usage of the command "\definepagestate " is what I searched for in previous posts and source files. I don't know exactly how he used it. (╥﹏╥) 2. I've devised a command that needs to get the current page number t

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread Wolfgang Schuster
Bruce Horrocks schrieb am 09.09.2024 um 23:27: On 9 Sep 2024, at 08:57, ai2472206...@yeah.net wrote: As the title suggests, how do I get the correct page numbers? There does seem to be an anomaly here. Simpler MWE: \starttext \dorecurse{15}{ \input knuth %{\ssd\color[red]{\pagenumber}} % not

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 10.09.2024 um 06:05: 1. The usage of the command "\definepagestate " is what I searched for in previous posts and source files. I don't know exactly how he used it. (╥﹏╥) 2. I've devised a command that needs to get the current page number t

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-10 Thread vm via ntg-context
On 10/09/2024 06:32, ai2472206...@yeah.net wrote: I changed the command, and now I get the correct page number with this command, \ but how should he do the calculation? this gives an interesting result with a colorful mix of page numbers, although it is not obvious to me as why

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread ai2472206007
I changed the command, and now I get the correct page number with this command, \ but how should he do the calculation? \starttext \definepagestate[test][delay=yes] \dorecurse{10}{% \input knuth % {\ssd\color[red]{\setpagestate[test]\pagestaterealpage{test}{#1}}} } \stoptext Regards, --- Muyik

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread ai2472206007
That's true, but there seems to be a problem with all three examples, the first page number on the second page is all wrong with an output of 1. There must be some kind of mechanism that we don't know. _

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread ai2472206007
I used serif fonts and added color just to emphasize this page number. However, it is true that in some cases it is not possible to get the correct page correctly with these commands. ___ If your question is of

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread ai2472206007
1. The usage of the command "\definepagestate " is what I searched for in previous posts and source files. I don't know exactly how he used it. (╥﹏╥) 2. I've devised a command that needs to get the current page number to determine if it's an odd or even page. T

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread vm via ntg-context
\dorecurse{15}{ \input knuth {\color[red]{\pagenumber}} % as expected } \stoptext (and there is probably a valid reason to it ;-) .F On 09/09/2024 23:27, Bruce Horrocks wrote: On 9 Sep 2024, at 08:57,ai2472206...@yeah.net wrote: As the title suggests, how do I get the correct page numbers

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread Bruce Horrocks
On 9 Sep 2024, at 08:57, ai2472206...@yeah.net wrote: > > As the title suggests, how do I get the correct page numbers? There does seem to be an anomaly here. Simpler MWE: \starttext \dorecurse{15}{ \input knuth %{\ssd\color[red]{\pagenumber}} % not as expected {\color[red]{\page

[NTG-context] Re: how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 09.09.2024 um 09:57: Thank to all who answered my questions before. As the title suggests, how do I get the correct page numbers? For example, in the example below, the first line on the 2nd page, but the page number showed is 1, In the meantime, I tried using

[NTG-context] how do I get the correct page numbers and do the calculations with it?

2024-09-09 Thread ai2472206007
Thank to all who answered my questions before. As the title suggests, how do I get the correct page numbers? For example, in the example below, the first line on the 2nd page, but the page number showed is 1, In the meantime, I tried using \definepagestate, but it didn't seem to work e

[NTG-context] Re: registers in footnotes as page glossaries

2024-08-31 Thread Pablo Rodriguez via ntg-context
On 8/31/24 12:24, M U via ntg-context wrote: > Pablo Rodriguez wrote: >> Hans, >> >> I wonder whether MkXL may have page registers for footnotes. >> > Perhaps a feaseble workaround: > • place a section index after the content of the page > > The cons: >

[NTG-context] Re: registers in footnotes as page glossaries

2024-08-31 Thread M U via ntg-context
Pablo Rodriguez wrote: > Hans, > > I wonder whether MkXL may have page registers for footnotes. > > This would be great to have page glossaries, such as in > https://geoffreysteadman.com/wp-content/uploads/2017/08/lysiascrito-24aug17w... > (first apparatus). > > To b

[NTG-context] registers in footnotes as page glossaries

2024-08-29 Thread Pablo Rodriguez via ntg-context
Hans, I wonder whether MkXL may have page registers for footnotes. This would be great to have page glossaries, such as in https://geoffreysteadman.com/wp-content/uploads/2017/08/lysiascrito-24aug17w.pdf#page=16 (first apparatus). To be fair, I have asked that a while ago (with MkIV). It would

[NTG-context] Re: Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-19 Thread Pablo Rodriguez via ntg-context
On 8/19/24 17:11, Felix wrote: > Hello mikail, I would send a picture to be more clear with what I > want but it seems to not be possible Hi Felix, attachments to the list should be less than 100kb. If you generate your image as a PNG file, it should fit in that file size. I attach sample image

[NTG-context] Re: Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-19 Thread Felix
Hello mikail, I would send a picture to be more clear with what I want but it seems to not be possible, what adding the footer=.5in code does is simply take away .5in from the bottom margin, what I mean is that The bottom margin really just becomes 1in because the footer takes up .5in from the m

[NTG-context] Re: Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-18 Thread Mikael Sundqvist
Hi, I am not sure I understand what you want, but if you change footer=0in to footer=.5in and then add \setuppagenumbering [location=footer] you will get pagenumbers in the footer. If you need to tweak your layout more, it might be helpful to add \showframe to get a hint on how the page is

[NTG-context] Probably a very simple question, but how do I get a page number to be centered, at the bottom and vertically in the middle whilst having my doc margins?

2024-08-18 Thread Felix
hat I want; everything that is included in the preamble that affects the sizing and alignment, but I want a bottom centered page number that is vertically aligned (it doesn't have to be perfect but I think context can oroabbly do that? I'm a complete novice, sorry). Would greatly appreci

[NTG-context] Re: Customizing chapter and page no. styles

2024-08-02 Thread Duncan Hothersall
In the Metafun manual source the setup for page numbering is: \startuseMPgraphic{circled} pickup pencircle scaled 1mm ; drawoptions(withcolor (.6+uniformdeviate.35)*white) ; fill fullcircle xscaled 1.5cm yscaled 1cm ; drawoptions(withcolor .625yellow) ; draw fullcircle xscaled 1.5cm

[NTG-context] Customizing chapter and page no. styles

2024-08-02 Thread Shiv Shankar Dayal
Hi, I was going through the Metafun manual, the print version, which comes with distribution. I see how page no. and chapters are styles. How can I customize for that kind of output in the current version of ConTeXt? -- Respect, Shiv Shankar Dayal

[NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?

2024-07-29 Thread Hans Hagen via ntg-context
;, but not 'CASE 2' , placing footnotes related to the previous paragraphs every few paragraphs. But when I was generating a PDF, I found that the footnote didn't always appear on the same page as its footnote number, even though the footnote had very little text. What can I

[NTG-context] Re: How can I force ConTeXt to display my footnote on the same page as my foot note marker?

2024-07-29 Thread Pablo Rodriguez via ntg-context
On 7/27/24 15:35, ai2472206...@yeah.net wrote: > Hi, > > I have a document that contains a lot of footnotes. > Therefore, I used to separate the footnote number from the footnote text, > which would make the source file look more readable. Hi Muyik, how about two files? The first one with footno

[NTG-context] How can I force ConTeXt to display my footnote on the same page as my foot note marker?

2024-07-27 Thread ai2472206007
ated to the previous paragraphs every few paragraphs. But when I was generating a PDF, I found that the footnote didn't always appear on the same page as its footnote number, even though the footnote had very little text. What can I do to get my idea to work? T

[NTG-context] Re: a different, but not zero, blank at the top of a page

2024-07-09 Thread mf
Found this solution: \ifdim \pagetotal=0pt \blank[attop,force] \else \blank[normal] \fi Il 09/07/24 15:02, mf ha scritto: Hello, I need advice on blanks at the start of a page. Usually a blank is ignored when it's at the top of a page. You can force it with \blank[...,force], bu

[NTG-context] a different, but not zero, blank at the top of a page

2024-07-09 Thread mf
Hello, I need advice on blanks at the start of a page. Usually a blank is ignored when it's at the top of a page. You can force it with \blank[...,force], but its value is the same as in the remainder of the text. So, if the blank over a heading is 2 lines, forcing it at the top o

[NTG-context] Re: \item would fit, but was pushed to next page. Work-around or fix?

2024-06-06 Thread Jim
On Thu, Jun 6, 2024 at 11:04 (+0200), Aditya Mahajan wrote: > On Wed, 5 Jun 2024, Jim wrote: >> Hi, >> I had the following structure which ended up at the bottom of a page: > This is perhaps not related to what you asked but ... >> \noindent >> {\bf Blah blah

[NTG-context] Re: \item would fit, but was pushed to next page. Work-around or fix?

2024-06-06 Thread Aditya Mahajan
On Wed, 5 Jun 2024, Jim wrote: > Hi, > > I had the following structure which ended up at the bottom of a page: > This is perhaps not related to what you asked but ... > \noindent > {\bf Blah blah blah } > \startitemize[intro,nowhite] Starting a paragraph with a gr

[NTG-context] Re: \item would fit, but was pushed to next page. Work-around or fix?

2024-06-05 Thread Jim
On Wed, Jun 5, 2024 at 18:04 (+0200), Henning Hraban Ramm wrote: > Am 05.06.24 um 17:33 schrieb Jim: >> Hi, >> I had the following structure which ended up at the bottom of a page: > … >> Q1: Is there a Right Way to force ConTeXt to put an \item on the current >&

[NTG-context] Re: \item would fit, but was pushed to next page. Work-around or fix?

2024-06-05 Thread Henning Hraban Ramm
Am 05.06.24 um 17:33 schrieb Jim: Hi, I had the following structure which ended up at the bottom of a page: … Q1: Is there a Right Way to force ConTeXt to put an \item on the current page? Q2: If not, does anyone wish to suggest some way to trick ConTeXt here, or to do an end-run around

[NTG-context] \item would fit, but was pushed to next page. Work-around or fix?

2024-06-05 Thread Jim
Hi, I had the following structure which ended up at the bottom of a page: --- \setupcaptions[number=no] \placefigure[right] {blah blah blah} {% \vskip -15pt \externalfigure[DSC_2782][width=0.32\textwidth

[NTG-context] Re: page number

2024-05-26 Thread Wolfgang Schuster
Charles Doherty via ntg-context schrieb am 26.05.2024 um 11:27: Dear Wolfgang, I have a book in preparation with running heads. Pagenumber marking |marking Pagenumber The chapter title page has empty headings. The publisher would like the page number centered on the Chapter

[NTG-context] Re: page number

2024-05-26 Thread Mikael Sundqvist
Hi Charles, On Sun, May 26, 2024 at 11:39 AM Charles Doherty via ntg-context wrote: > > Dear Wolfgang, > > I have a book in preparation with running heads. > > > Pagenumber marking |marking Pagenumber > > The chapter title page has empty headings. >

[NTG-context] page number

2024-05-26 Thread Charles Doherty via ntg-context
Dear Wolfgang, I have a book in preparation with running heads. Pagenumber marking |marking Pagenumber The chapter title page has empty headings. The publisher would like the page number centered on the Chapter title page. I manage to put it there but I don’t want it to run on

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Luc Chabassier
bold{#1:} \samplefile{ward}% > \startmarginblock Note #1\stopmarginblock > \par} > > \stoptext I did not know about margin blocks, they are nice. But is there a way to place them next to the \startmarg

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
page with \par 1..10 -> the notes 1..11 \par 11..20 -> the notes 12..21 \par 21..30 -> the notes 32..31 ... is this expected standard? i'd expect \par and notes synced on page. 1..10 -> 1..10 TeX was still on page 1 to collect text when it put note 11 into the buffer for t

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
just noticed that if the notes need more margin space then are pages available by the text, they get lost. e.g. this mwe generates 10 pages with 100 par but only 80 notes will show up. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginb

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}   {\bold{#1:} \samplefile{ward}%    \startmarginblock Note #1\stopmarginblock    \par} \stoptext when I compile this, i get per page with \par 1..10 -> the notes 1..11 \par 11.

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
Luc Chabassier schrieb am 21.05.2024 um 15:35: Excerpts from Hans Hagen's message of May 21, 2024 11:45 am: you have to provide some mwe so that we can see what is intended; in principle much info is available one way or the other I joined a minimal working example. The lua function `userdata.s

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Hans Hagen
overlays that automatically places the notes using lua. To know where the ideal placement should be (if they do not interact with each other), I use lua to insert a latelua whatsit that uses lpdf.getpos() to get the coordinate on the rendered page. However, I haven't found a way to get the page n

[NTG-context] LUA API for page numbers

2024-05-21 Thread Luc Chabassier
. To know where the ideal placement should be (if they do not interact with each other), I use lua to insert a latelua whatsit that uses lpdf.getpos() to get the coordinate on the rendered page. However, I haven't found a way to get the page number using lua, and the tex macro \pagenumb

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-14 Thread Ross Schulman
Hi, sorry. The example was in an earlier message in the thread: https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/thread/ZLVFEBU73KBBCBUQMWXZWER2CZHR6ZR2/ I fixed the problem for now by forcing a page break where it was needed. On Tue, May 14, 2024, at 6:57 AM, Wolfgang Schuster wrote

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-14 Thread Wolfgang Schuster
Ross Schulman schrieb am 07.05.2024 um 01:33: So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpag

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-08 Thread Ross Schulman
ion of the resume > I was working on at the time, I've encountered the error again now that some > different content is making the page break at a different point, and setting > `\testpage` as high as 6 is not fixing the problem. Is there something else I > can/should try? &

[NTG-context] Re: Hbox error with itemized list on second page

2024-05-06 Thread Ross Schulman
So, unfortunately while using `\testpage` helped in the version of the resume I was working on at the time, I've encountered the error again now that some different content is making the page break at a different point, and setting `\testpage` as high as 6 is not fixing the problem. Is

[NTG-context] Re: Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
online. I'm having an odd error with some bullets on the second > > page, however. I'm guessing it has something to do with my \definelayout > > for the second (and subsequent) pages, but I can't figure it out for > > sure. What is happening is that whichever bullets

[NTG-context] Re: Hbox error with itemized list on second page

2024-04-30 Thread Wolfgang Schuster
Ross Schulman schrieb am 30.04.2024 um 15:01: Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for

[NTG-context] Hbox error with itemized list on second page

2024-04-30 Thread Ross Schulman
Hello, I'm attempting to format a resume in Context building off of a template I found online. I'm having an odd error with some bullets on the second page, however. I'm guessing it has something to do with my \definelayout for the second (and subsequent) pages, but I can'

[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
50}{ccc } \stopDatum \startDatum[title={secD}]%   \dorecurse{50}{ddd } \stopDatum \startDatum[title={secE}]%   \dorecurse{50}{eee } \stopDatum \stoptext %== %== I'd like to write the marking of the very first text at the current page to the header. That seems to be a b

[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster
Alan Bowen schrieb am 30.03.2024 um 20:59: How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. You can try this: \definepagestate[alanpage

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
Hi, Bruce— This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work. What I need are ToC entries like AuthorName ShortTitle 1–6 I need this pagination

[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks
> On 30 Mar 2024, at 19:59, Alan Bowen wrote: > > How can I get the last page number of a chapter for a list (ToC)? > > Outside of a list, I use \lastpagenumber. > But that does not work in a list such as the ToC. > > Any tips or pointers will be gladly received.

[NTG-context] last page number for a list

2024-03-30 Thread Alan Bowen
How can I get the last page number of a chapter for a list (ToC)? Outside of a list, I use \lastpagenumber. But that does not work in a list such as the ToC. Any tips or pointers will be gladly received. Alan ___ If

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-17 Thread Hraban Ramm
Am 16.03.24 um 22:28 schrieb Marco Patzer: On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] I’d have guessed

[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC) Joel via ntg-context wrote: > How do I remove the page number from the header texts? \setupheadertexts [] or \setuplayouttext [header][text] [middletext=] Ma

[NTG-context] Why is header page number appearing when I define a header?

2024-03-16 Thread Joel via ntg-context
top and page numbers in the bottom corners. But somehow when I define this code, its also adding the page number not just to the bottom of the page, but to the top of the page as well. How do I remove the page number from the header texts? --Joel

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-07 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:17: On 3/6/24 19:50, Wolfgang Schuster wrote: [...] Could you write the first line in plain language? Look at the second example of the Lua code in the example below for each command (the first example is your version), the third exam

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
Hans Hagen schrieb am 06.03.2024 um 21:38: On 3/6/2024 7:50 PM, Wolfgang Schuster wrote: The semicolon is a undocumented extension (I noticed it in the definition of \page[quadruple]) of \numexpr in Luametatex for the modulus operator. One of these days I have to write the pending section

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Hans Hagen
On 3/6/2024 7:50 PM, Wolfgang Schuster wrote: The semicolon is a undocumented extension (I noticed it in the definition of \page[quadruple]) of \numexpr in Luametatex for the modulus operator. One of these days I have to write the pending section in th elow level manual and also explain

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Pablo Rodriguez via ntg-context
On 3/6/24 19:50, Wolfgang Schuster wrote: >> [...] >> Could you write the first line in plain language? > > Look at the second example of the Lua code in the example below for each > command (the first example is your version), the third example is just a > condensed version of example 2. Many tha

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster
which is shorter than writing "\ifnum ... = 0". The semicolon is also mysterious to me, I don’t know what it does there in plain language. The semicolon is a undocumented extension (I noticed it in the definition of \page[quadruple]) of \numexpr in Luametatex for the modulus operator

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-05 Thread Pablo Rodriguez via ntg-context
On 2/28/24 19:28, Wolfgang Schuster wrote: > [...] > \def\beforequadruplenumber#1% >{\ifcase\numexpr#1+1;4\relax > \number\numexpr#1+4\relax > \else > \number\numexpr#1+3-#1;4\relax > \fi} Sorry for not having answered before, Wolfgang. I’m afraid I don’t get how \ifcase i

[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange
Chinese are introduced into a document written in French. With footnotes and a few framed lines. I submit this example for your perusal and ask you whether it could possibly appear on a wiki page devoted to the combination of non-European languages in the same text. In English translation, of

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 28.02.2024 um 19:02: On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote: [...] This is why beforequadruple would make sense. I guess some Lua magic could do that, computing x to the follwing page that "x % 4 = 3" (and then \page[x]).

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote: > [...] > This is why beforequadruple would make sense. I guess some Lua magic > could do that, computing x to the follwing page that "x % 4 = 3" (and > then \page[x]). > > I will try to find a trick for tha

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 11:56, Bruce Horrocks wrote: > [...] > The sample works for me if you set plain A4 and doublesided, thus: > > \setuppagenumbering[alternative={doublesided}] > \starttext > \samplefile{lorem} > \page[quadruple] > page before the quadruple (must be 3, not 4)

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Bruce Horrocks
> On 27 Feb 2024, at 10:13, Pablo Rodriguez via ntg-context > wrote: > > I’m afraid I cannot make your sample work: The sample works for me if you set plain A4 and doublesided, thus: \setuppagenumbering[alternative={doublesided}] \starttext \samplefile{lorem} \page[quad

[NTG-context] Re: Hyperlinks cease working after page selection

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/26/24 21:25, Michael Guravage wrote: > Greetings, > > The document in question compiles correctly. Its hyperlinks are correct > and work as expected. However, if I apply a page selection, the > hyperlinks in the resulting document, while correctly coloured, n

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/24/24 14:30, Wolfgang Schuster wrote: > Michael Guravage schrieb am 23.02.2024 um 10:07: >> Greetings, >> >> I would like to use the nextquadruple and beforequadruple >> pagebreakhandlers described at the bottom of the wiki's imposition >> page. Howe

[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
Greetings, The document in question compiles correctly. Its hyperlinks are correct and work as expected. However, if I apply a page selection, the hyperlinks in the resulting document, while correctly coloured, no longer work. Any suggestions on how to correct or work around this would be

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-24 Thread Wolfgang Schuster
Michael Guravage schrieb am 23.02.2024 um 10:07: Greetings, I would like to use the nextquadruple and beforequadruple pagebreakhandlers described at the bottom of the wiki's imposition page. However, the examples complain of an error invoking the \installpagebreakhandler command. The

[NTG-context] imposition: getting to the last page of a booklet

2024-02-23 Thread Michael Guravage
Greetings, I would like to use the nextquadruple and beforequadruple pagebreakhandlers described at the bottom of the wiki's imposition page. However, the examples complain of an error invoking the \installpagebreakhandler command. The wiki page was last updated nearly four years ago. Is a

[NTG-context] Re: unwanted blank page

2023-12-03 Thread Pablo Rodriguez via ntg-context
On 11/22/23 09:57, madiazm.eo...@gmail.com wrote: > Thanks a lot Pablo for your comments, I think my bad English did not > let me be clear. Sorry (also for my delay in answering), but it was totally my fault (I totally missed your point).. Pablo

[NTG-context] Re: unwanted blank page

2023-11-22 Thread madiazm . eoicc
Thanks a lot Pablo for your comments, I think my bad Englisch did not let me be clear. I just wanted to show my trick not to get the first page numbered, hiding the number with [location=] and then changing the number format to the wished option. I was not asking a question. Of course, since

[NTG-context] Re: unwanted blank page

2023-11-20 Thread Pablo Rodriguez via ntg-context
d in the title page > (though I define sectionblocks for keeping different numbering systems > for the table of contents and the document) Section blocks are intended for that. Just a comment, if your cover (or title) page involves a one and only single page, you may use makeups, such

[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
sorry if i dont get your problem right understood, but i'm completely new to context. I use a hack not to get the number not printed in the title page (though I define sectionblocks for keeping different numbering systems for the table of contents and the document) I use \setuppagenumb

[NTG-context] Re: unwanted blank page

2023-11-19 Thread Wolfgang Schuster
Hans van der Meer via ntg-context schrieb am 19.11.2023 um 11:56: I should have a first page without pagenumber and pagenumbers on the subsequent ones. However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start]. And the \setuppagenumbering has to

[NTG-context] unwanted blank page

2023-11-19 Thread Hans van der Meer via ntg-context
I should have a first page without pagenumber and pagenumbers on the subsequent ones.However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start].And the \setuppagenumbering has to come after the \page, of course.Should I program otherwise? yours

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Henning Hraban Ramm
Am 08.11.23 um 09:53 schrieb Marco Patzer: On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: When I go to the page layout page on the Contextgarden wiki <https://wiki.contextgarden.net/Page_Layout> the "typesetting areas" diagram is missing its text labels

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Marco Patzer
On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: > When I go to the page layout page on the Contextgarden wiki > > <https://wiki.contextgarden.net/Page_Layout> > > the "typesetting areas" diagram is missing its text labels. Fixed. > Any suggestions

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-07 Thread Andres Conrado Montoya
A possible reason for this is that the use of xlink:href, the attribute used to render the text glyphs created by symbol elements in https://wiki.contextgarden.net/images/5/54/layout.svg, has been deprecated since SVG 2.0, as you can see in https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Taco Hoekwater
> On 6 Nov 2023, at 00:35, Bruce Horrocks wrote: > > > [1] Now there's an irony: the Wiki software creates different-sized previews > of a vector image so that it can show the image at different sizes on > different clients. I bet it started doing this back 'in the day’ to support Internet

  1   2   3   4   5   6   7   8   9   10   >