[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 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: issue with "context --pages=reference"

2024-09-22 Thread Pablo Rodriguez via ntg-context
On 9/21/24 17:12, Wolfgang Schuster wrote: > Pablo Rodriguez via ntg-context schrieb am 21.09.2024 um 16:59: >> [...] >> I get no page numbers from: >> >>context --pages=ch3 sample.tex > > Try this (without file extension): context --pages --list=ch3 s

[NTG-context] Re: issue with "context --pages=reference"

2024-09-21 Thread Wolfgang Schuster
={Chapter \namedheadnumber{chapter}}] \dorecurse{\randomnumber{10}{50}} {\input zapf\par} \stopchapter} \stoptext I get no page numbers from: context --pages=ch3 sample.tex Try this (without file extension): context --pages --list=ch3 sample Wolfgang

[NTG-context] issue with "context --pages=reference"

2024-09-21 Thread Pablo Rodriguez via ntg-context
}} {\input zapf\par} \stopchapter} \stoptext I get no page numbers from: context --pages=ch3 sample.tex BTW, sample.tuc contains: { ["metadata"]=6, ["numberdata"]=10, ["references"]={ ["block"]="bodypart", ["

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Jim
ion for you. (I use pdftk for things like this, but I assume mutool is just as good. Either are far less tedious than printing to file.) If the information of the chapter boundaries is available in the log file, a judicious use of grep and a few lines of shell script code might do the trick. Alt

[NTG-context] Re: How to tell a single *.tex file to produce separate PDFs?

2024-09-20 Thread Denis Maier via ntg-context
er using a product-component based solution. You'll then be able to process each file indivdually while still having a main file around. The page numbers in the individual file will be incorrect, i.e. always start at 1, but for having a quick look that still might be nice. (Hans or Wolfgang p

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-19 Thread Gerion Entrup
2024, 22:53:55 MESZ schrieb Wolfgang Schuster: > >>> Gerion Entrup schrieb am 18.09.2024 um 14:44: > >>>> Am Dienstag, 17. September 2024, 20:36:23 MESZ schrieb Gerion Entrup: > >>>>> Hi, > >>>>> > >>>>> I want to ty

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-19 Thread Hans Hagen via ntg-context
Entrup: Hi, I want to typeset a table where some of the column headings are really long, while in the columns itself consists only of numbers. Therefore, my idea was to rotate the column headings but not 90 degrees (I found some solutions for that) but 45 degree. It then would be beneficial to push

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Mikael Sundqvist
;> Hi, > > >> > > >> I want to typeset a table where some of the column headings are really > > >> long, while in the columns itself consists only of numbers. > > >> Therefore, my idea was to rotate the column headings but not 90 degrees >

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Gerion Entrup
olumn headings are really > >> long, while in the columns itself consists only of numbers. > >> Therefore, my idea was to rotate the column headings but not 90 degrees (I > >> found some solutions for that) but 45 degree. > >> > >> It then would be bene

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Hans Hagen
numbers. Therefore, my idea was to rotate the column headings but not 90 degrees (I found some solutions for that) but 45 degree. It then would be beneficial to push together the rotated cells, so the text of one cell actually starts above the previous cell. Do you know, how to achieve that

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Wolfgang Schuster
Gerion Entrup schrieb am 18.09.2024 um 14:44: Am Dienstag, 17. September 2024, 20:36:23 MESZ schrieb Gerion Entrup: Hi, I want to typeset a table where some of the column headings are really long, while in the columns itself consists only of numbers. Therefore, my idea was to rotate the

[NTG-context] Re: Table and rotation: push together 45 degree rotated cells

2024-09-18 Thread Gerion Entrup
Am Dienstag, 17. September 2024, 20:36:23 MESZ schrieb Gerion Entrup: > Hi, > > I want to typeset a table where some of the column headings are really long, > while in the columns itself consists only of numbers. > Therefore, my idea was to rotate the column headings but no

[NTG-context] Table and rotation: push together 45 degree rotated cells

2024-09-17 Thread Gerion Entrup
Hi, I want to typeset a table where some of the column headings are really long, while in the columns itself consists only of numbers. Therefore, my idea was to rotate the column headings but not 90 degrees (I found some solutions for that) but 45 degree. It then would be beneficial to push

[NTG-context] (ConTeXt LMTX 2.11.05) how do I make it so that sections, descriptions, and itemizations have just a space between some of the text that they produce

2024-09-16 Thread Felix
numbers, use this \setuphead[section][ sectionstopper={.}, % Add period after numbers conversion=R, before=, after=, style=sc, % Small caps style align=middle, % Center the section titles ] \startsetups document:start \centerline{\documentvariable{title}} \centerline

[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 pagestate o

[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 or reference > mechanism. If comma

[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 to determine if it's

[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 to determine if it's

[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. ___ If your qu

[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 intere

[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. This is then used to get a certai

[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: Inserting text between end notes

2024-09-03 Thread Rik Kabel
appear as unnumbered end notes (at the start of the note section and the start of each chapter's notes). Ideally these would be generated in the same way as regular end notes but will not increment the note numbers (and should not, at least in my use case, require cross-referenci

[NTG-context] Re: Inserting text between end notes

2024-09-01 Thread Bruce Horrocks
-end-notes crediting the book and chapter epigraphs, > which should appear as unnumbered end notes (at the start of the note section > and the start of each chapter's notes). Ideally these would be generated in > the same way as regular end notes but will not increment the note numb

[NTG-context] Inserting text between end notes

2024-08-31 Thread Rik Kabel
the start of the note section and the start of each chapter's notes). Ideally these would be generated in the same way as regular end notes but will not increment the note numbers (and should not, at least in my use case, require cross-referencing or bookmarking). I can hack the

[NTG-context] Re: Is there an alternative to \reference[]{} that won't interfere with the document design?

2024-08-31 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 31.08.2024 um 16:37: I had to place \reference[]{} in various places in my document as I need to refer to page numbers of a lot of various items in the document. There are hundreds of these. When placing them, I hadn't realized it would impact the doc

[NTG-context] Is there an alternative to \reference[]{} that won't interfere with the document design?

2024-08-31 Thread Joel via ntg-context
I had to place \reference[]{} in various places in my document as I need to refer to page numbers of a lot of various items in the document. There are hundreds of these. When placing them, I hadn't realized it would impact the document design--I assumed such a command would be invisible. T

[NTG-context] Re: digits / units setup

2024-08-25 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 24.08.2024 um 20:59: Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm: According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though

[NTG-context] Re: Is there a short-cut to adding sub-categories for index entries?

2024-08-25 Thread Henning Hraban Ramm
. I’m wondering if there is a short-cut means to set this up, such that if I can tell the document that any time it sees “cliff-dwellings” in an index, it will also add its page numbers to under “dwellings+cliff-dwelling”? In other words, is there an easier way to add these categories, then to go

[NTG-context] Is there a short-cut to adding sub-categories for index entries?

2024-08-25 Thread Joel via ntg-context
time it sees “cliff-dwellings” in an index,it will also add its page numbers to under “dwellings+cliff-dwelling”? In other words, is there an easierway to add these categories, then to go through the entire documentand mark them? I already have a list of all the words.  For instance, in my above

[NTG-context] Re: digits / units setup

2024-08-24 Thread Henning Hraban Ramm
Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm: According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Seems to be a problem of my environment. In a

[NTG-context] digits / units setup

2024-08-24 Thread Henning Hraban Ramm
According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Hraban ___ If your

[NTG-context] Re: How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get an

2024-08-22 Thread Hraban Ramm
amily [TimesNewRoman] [rm][Times New Roman] \definetypeface [TimesNewRoman] [mm] [math] [stixtwo] \setupbodyfont [TimesNewRoman,12pt] \mainlanguage[en-us] \setupindenting[yes,0.5in] \setupheads[indentnext=yes] % To get indentation after section numbers, use this \setuphead[par

[NTG-context] How do I get roman numerals in all numerable sections with no extra spacing after the period (would appreciate condensed code/simplification) (I read documentation but did not get any re

2024-08-22 Thread Felix
][Times New Roman] \definetypeface [TimesNewRoman] [mm] [math] [stixtwo] \setupbodyfont [TimesNewRoman,12pt] \mainlanguage[en-us] \setupindenting[yes,0.5in] \setupheads[indentnext=yes] % To get indentation after section numbers, use this \setuphead[part][ page=no, placehead=yes

[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
section numbers, use this \startsetups document:start \centerline{\documentvariable{title}} \centerline{\documentvariable{author}} \centerline{\documentvariable{date}} \blank[line] \stopsetups \startdocument[title=Title,author=Author,date=Date] \stopdocument ``` I hope

[NTG-context] Missing \endcsname inserted error

2024-08-13 Thread Jeong Dal via ntg-context
efigure and \stopplacefigure”, then there is no error, but the figure is not centered. Please tell me how to fix it. Thank you for reading. Best regards, Dalyoung \startbuffer[numbers] path p,q; p = unitsquare xyscaled(3,2) superellipsed .85 ; q := p scaled 1cm; draw q; label.bot(textext("

[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
arttext % case 1 \input knuthmath \note[1] \input knuthmath \note[2] \input knuthmath \input knuthmath \footnotetext[1]{\input knuthmath } \footnotetext[2]{\input knuth } % In this case, the text of footnotes 1 and 2 is placed on the same page, % but they are separated from the footnote numbers

[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
\input knuthmath \note[2] \input knuthmath \input knuthmath \footnotetext[1]{\input knuthmath } \footnotetext[2]{\input knuth } % In this case, the text of footnotes 1 and 2 is placed on the same page, % but they are separated from the footnote numbers on different pages \page % case 2

[NTG-context] Re: Extra space in numbers

2024-07-16 Thread Hans Hagen
On 7/16/2024 10:32 AM, Shiv Shankar Dayal wrote: Much thanks, Hans. I am curious why this is not default behavior? if could be(come) but we're not sure how it affects existing documents tex has not really a concept of space and in math even less but in luametatex we carry around some more info

[NTG-context] Re: Extra space in numbers

2024-07-16 Thread Shiv Shankar Dayal
Much thanks, Hans. I am curious why this is not default behavior? On Tue, Jul 16, 2024 at 6:20 AM Hans Hagen wrote: > On 7/16/2024 7:01 AM, Shiv Shankar Dayal wrote: > > Dear Lits, > > > > Suppose I have $10,000$ then in the output there is extra space after > > comma. How can I get rid of it?

[NTG-context] Re: [External] Extra space in numbers

2024-07-15 Thread Hans Hagen
On 7/16/2024 1:50 AM, Rogers, Michael K wrote: Hi, Braces around the comma, $10{,}000$, works for me. It’s the plain TeX way. If there’s a way to set up mathematics in ConTeXt to do this, perhaps someone else will fill us in. in lmtx { } in math is just grouping, so no ordinary math atom is cr

[NTG-context] Re: Extra space in numbers

2024-07-15 Thread Hans Hagen
On 7/16/2024 7:01 AM, Shiv Shankar Dayal wrote: Dear Lits, Suppose I have  $10,000$ then in the output there is extra space after comma. How can I get rid of it? \setupmathematics[autopunctuation=yes] $10,000$ $10, 000$ no | yes | all | comma | {yes,semicolon} | {all,semicolon} see math ma

[NTG-context] Re: [External] Extra space in numbers

2024-07-15 Thread Rogers, Michael K
Hi, Braces around the comma, $10{,}000$, works for me. It’s the plain TeX way. If there’s a way to set up mathematics in ConTeXt to do this, perhaps someone else will fill us in. Michael On Jul 15, 2024, at 10:01 PM, Shiv Shankar Dayal wrote: Suppose I have $10,000$ then in the output there

[NTG-context] Extra space in numbers

2024-07-15 Thread Shiv Shankar Dayal
Dear Lits, Suppose I have $10,000$ then in the output there is extra space after comma. How can I get rid of it? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an en

[NTG-context] Re: table float split behavior

2024-07-08 Thread vm via ntg-context
On 08/07/2024 16:25, Henning Hraban Ramm wrote: Try #1, it often works where \recurselevel fails. That gives the intended numbers. Thank you ___ If your question is of interest to others as well, please add an

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread Henning Hraban Ramm
}]     [{\pagenumber \hskip1em \documentvariable{metadata:title}}]    [ ] I get my header texts with page numbers in arabic numerals in frontmatter. I have tried various \setupheadertexts options, but I still get arabic numerals in frontmatter. The conversion does not work. What am I missing

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread jbf
choose, for example: \setupheadertexts     [ ]    [{\getmarking[chapter]\hskip1em \pagenumber}]     [{\pagenumber \hskip1em \documentvariable{metadata:title}}]    [ ] I get my header texts with page numbers in arabic numerals in frontmatter. I have tried various \setupheadertexts

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread jbf
[chapter]\hskip1em \pagenumber}]     [{\pagenumber \hskip1em \documentvariable{metadata:title}}]    [ ] I get my header texts with page numbers in arabic numerals in frontmatter. I have tried various \setupheadertexts options, but I still get arabic numerals in frontmatter. The conversion

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread Wolfgang Schuster
\documentvariable{metadata:title}}]    [ ] I get my header texts with page numbers in arabic numerals in frontmatter. I have tried various \setupheadertexts options, but I still get arabic numerals in frontmatter. The conversion does not work. What am I missing or doing wrong? Try \convertnumber{R

[NTG-context] Re: No roman numerals in frontmatter header

2024-06-29 Thread Henning Hraban Ramm
page numbers in arabic numerals in frontmatter. I have tried various \setupheadertexts options, but I still get arabic numerals in frontmatter. The conversion does not work. What am I missing or doing wrong? Try \convertnumber{R}{\pagenumber} Hraban

[NTG-context] No roman numerals in frontmatter header

2024-06-28 Thread jbf
Perhaps someone can advise me where I am going wrong. I have no trouble getting roman numeral page numbers in the footer text in frontmatter with \startsectionblockenvironment [frontpart] \setupuserpagenumber [numberconversion=romannumerals] \setcounter [userpage] [5

[NTG-context] Re: weekend update

2024-06-24 Thread Gerion Entrup
on 9.6.2). > > I don't know beamer other than seeing presentations at meetings but I > assume that it has some accumulator. We do have steppers in mkii / mkiv > already in the presentation styles. The conceptual cleanest of them > depends on the viewer and free o

[NTG-context] Re: weekend update

2024-06-23 Thread Hans Hagen via ntg-context
her ei sneed for it.) To add this to the new interface, if you want that, the stack layers above need some kind of order, which is implicit for numbers: ``` \definestacking{one} \definestacking{two} \definestacking{three} \definestackingorder{one,two, three} ... \setupstacking[criterium={one

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
13-15>" on the first page up to the fifth page and from > page 13 to 15. > > The mechanism stems from the Beamer overlay specifications, see section 9.3 > of the manual [2] > and can be much more complicated with modes (section 9.6.2). > > To add this to the new

[NTG-context] Re: weekend update

2024-06-23 Thread Gerion Entrup
15>" on the first page up to the fifth page and from page 13 to 15. The mechanism stems from the Beamer overlay specifications, see section 9.3 of the manual [2] and can be much more complicated with modes (section 9.6.2). To add this to the new interface, if you want

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Hans Hagen via ntg-context
and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Wolfgang Schuster
that have distinct line breaking, I need line numbering to adhere to that, even if some lines are too long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Henning Hraban Ramm
to adhere to that, even if some lines are too long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Wolfgang Schuster
long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Henning Hraban Ramm
example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not. \start \setupparagraphnumbering[state=start

[NTG-context] Re: line numbering respecting original lines

2024-06-17 Thread Wolfgang Schuster
numbers 3 and 4. Same problem with source code examples, i.e. \starttyping with numbering. I thought numbering=file (or \setuplinenumbering[method=file]) would address that, but apparently not. Hraban \mainlanguage[de] \setuppapersize[A7,landscape] \setuplayout[topspace=0mm,bottom=0mm,width

[NTG-context] line numbering respecting original lines

2024-06-17 Thread Henning Hraban Ramm
When discussing verses or other texts that have distinct line breaking, I need line numbering to adhere to that, even if some lines are too long and need breaking. Is that possible? In my example below the 3rd line is too long and gets line numbers 3 and 4. Same problem with source code

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
I must have made a mistake with something, I changed a counter and it somehow worked properly. Because I've designed too many counters, I still haven't figured out exactly what the problem is doing. But admittedly, the question I asked is non-existent. It's a problem with my design.

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
Thank you. I will try again. ___ 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 :

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
Thanks, probably interfered with his output in other parts of my command. I didn't locate the error correctly. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-co

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 29.05.2024 um 14:05: I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it? \starttext \definedataset [myset] \set

[NTG-context] Re: Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread Taco Hoekwater
> On 29 May 2024, at 14:05, ai2472206...@yeah.net wrote: > > I'm defining a command to generate options for multiple choice questions, > but at the moment I'm stuck at this step. > I want to get a number and assign a value to the counter, but why can't I get > it? > > > \starttext > \d

[NTG-context] Numbers obtained by commands <\datasetvariable> cannot be copied to counters

2024-05-29 Thread ai2472206007
I'm defining a command to generate options for multiple choice questions, but at the moment I'm stuck at this step. I want to get a number and assign a value to the counter, but why can't I get it? \starttext \definedataset [myset] \setdataset[myset] [foo=1,boo=4] \newcount\tempa \data

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
amed >   [textcircled] >   [width=1.4em, >    height=1.4em, >    frame=off, >    background=textcircle, >    framecolor=colour_text, >    location=low, >    offset=none] >    >    \starttext >    Here are the numbers \textcircled{1}, \textc

[NTG-context] Re: Number in a circle

2024-05-28 Thread Kip Warner
{X} that uses as its background % the above overlay... \defineframed [textcircled] [width=1.4em, height=1.4em, frame=off, background=textcircle, framecolor=colour_text, location=low, offset=none] \starttext Here are the nu

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

2024-05-21 Thread Luc Chabassier
Excerpts from Wolfgang Schuster's message of May 21, 2024 3:54 pm: > Luc Chabassier schrieb am 21.05.2024 um 15:35: >> Excerpts from Hans Hagen's message of May 21, 2024 11:45 am: >>> concerning notes in the margin ... did you try the built in magin text >>> mechanisms? >> I did, but as far as I kn

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

2024-05-21 Thread Wolfgang Schuster
vm via ntg-context schrieb am 21.05.2024 um 16:07: 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 pa

[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..20 ->

[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
On 5/21/2024 10:26 AM, Luc Chabassier wrote: Hi everyone, I have recently migrated my PhD dissertation from LaTeX to ConTeXt. In LaTeX I was using kaobook, a template with lots of margin notes, but I was frustrated with the automatic placement of the notes. I implemented a system using overlays

[NTG-context] LUA API for page numbers

2024-05-21 Thread Luc Chabassier
Hi everyone, I have recently migrated my PhD dissertation from LaTeX to ConTeXt. In LaTeX I was using kaobook, a template with lots of margin notes, but I was frustrated with the automatic placement of the notes. I implemented a system using overlays that automatically places the notes using lua.

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Fabrice Couvreur
> > mark_y_axis(a, ""); > >endfor > > > > mark_y_axis(1, "$1$"); > > > > > > vardef mark_x_axis(expr value, name) = > > save p; pair p; p = value * u * right; > >

[NTG-context] Re: Metapost limitation ?

2024-05-12 Thread Hans Hagen
 enddef;          for a = 1 upto 1:            mark_x_axis(a, "");          endfor          mark_x_axis(1, "$1$");           path rectangle;           rectangle = (-0.3u,-0.4u) -- (1.3u,-0.4u) -- (1.3u,-0.4u) -- (1.3u,1.4u) -- (-0.3u,1.4u)--cycle;           clip currentpicture

[NTG-context] Is there a way to consolidate index reference numbers by book?

2024-05-10 Thread Joel via ntg-context
other words, it says WB 1 in front of every page number from the first workbook. Is there any way to consolidate the page numbers by book, e.g. output instead like this: WHST.1.1: 11, 231, WB1: 124, 133, WB 2: 325, 345 In other words, it list all page numbers for Workbook 1 right after WB 1: instead

[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
, publications.strings] > > > > > > > > \usebtxdataset[main][testdata.buffer] > > > > \usebtxdefinitions[aps] > > > > \setupbtx[dataset=main] > > > > \definebtxrendering[bibrendering][aps][dataset=main] > > > > > > >

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
> > > > Knuth developed \TeX \cite[knuth1]. > > > Several persons said something \cite[someother]. > > > > > > \placelistofpublications[bibrendering] > > > > > > \stoptext > > > ``` > > > > > > It should be re

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
t > > ``` > > > > It should be rendered as: > > ``` > > Knuth developed TeX [>Knu79]. > > Several persons said something [PO00]. > > > > [Knu79] D.E. Knuth, TEX and METAFONT. New directions in > > typesetting (Addi­son-Wesley, 1979)

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
> [Knu79] D.E. Knuth, TEX and METAFONT. New directions in > typesetting (Addi­son-Wesley, 1979). [PO00] S. Person and S. > Otherperson, Another title, (1900). ``` > > How can I achieve that \cite[something] always renders in the short > form by default? How c

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
nces to Knuth contain this extra '>'? How can I customize the APS style to also use the short form in the list of publications instead of numbers? Best Gerion [1] https://tex.stackexchange.com/questions/295444/citation-style-with-first-letters-of-authors-lastname signature.asc

[NTG-context] Re: how to apply metapost effects to section title?

2024-04-09 Thread Wolfgang Schuster
eptextcommand=\Mystyle, % deepnumbercommand=\Mystyle, ] \startsection[title=Lorem ipsum] \samplefile{lorem} \stopsection \stoptext end example and the code below works but does not colorize numbers of this heads: \starttext

  1   2   3   4   5   6   7   8   9   10   >