[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: 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: 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: 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] 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: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Jeroen schrieb am 16.09.2023 um 22:28: This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Titl

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
That works fine except that the following line does only issue the sequential number and not the chapter number. Refer to \in{code fragment}[tit1] bla MWE: \startuseMPgraphic{CountFrame} picture p; numeric w, h, o; p := textext.rt("\wrappedcurrentconstruction"); w := OverlayWidth; h := O

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
> On 16 Sep 2023, at 21:28, Jeroen wrote: > > This MWE has a framed text for some verbatim text (code) with as title ref. a > counter 1, 2, etc.. Is there a way to change this frame text title as > following with the chapter number and a sequential number and the title. Amemd the \defineenum

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title. Code Fragment 1.1 (The First Title) Code Fragment 1.2 (The Second Title) Code

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
using alternative=d, which I confess I had entirely overlooked! Julian On 5/9/23 08:43, Max Chernoff wrote: Hi Julian, I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Has anyone put together

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Max Chernoff
Hi Julian, > I am attempting to get a TOC that looks like the following (in other > words with section titles and their relative page numbers in a block > below the chapter): > Has > anyone put together a TOC of this kind and might be able to give me a > hint to follo

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-03 Thread Wolfgang Schuster
jbf schrieb am 04.09.2023 um 08:34: I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...5 Section 1   5, Section 2  6

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-03 Thread jbf
I am attempting to get a TOC that looks like the following (in other words with section titles and their relative page numbers in a block below the chapter): Chapter 1 ...5 Section 1   5, Section 2  6, Section 3  7, Section 4   8, Section 5   9

Re: [NTG-context] Aaligned numbers in a matrix?

2023-02-26 Thread Aditya Mahajan via ntg-context
1, 4, 3; >3,-4, 1,-2; >4,-3, 2,-1} $ > \stoptext > > The columns with negative numbers in are centred and I would rather have them > right-aligned so that the digits stack up above each other and the negative > signs stick out to the left, so to spe

Re: [NTG-context] Aaligned numbers in a matrix?

2023-02-26 Thread fv leung via ntg-context
;4,-3, 2,-1} $ > \stoptext > > The columns with negative numbers in are centred and I would rather have > them right-aligned so that the digits stack up above each other and the > negative signs stick out to the left, so to speak. Is there an easy way to &

[NTG-context] Aaligned numbers in a matrix?

2023-02-26 Thread Bruce Horrocks via ntg-context
I'm using the following MWE to produce a matrix: \definemathmatrix[bmatrix] [matrix:brackets] [simplecommand=bmatrix] \starttext $ a \rightarrow \bmatrix{1, 2, 3, 4; 2, 1, 4, 3; 3,-4, 1,-2; 4,-3, 2,-1} $ \stoptext The columns with negative numbers i

Re: [NTG-context] Missing letters and numbers in printout

2022-09-29 Thread Pablo Rodriguez via ntg-context
On 9/29/22 15:54, Angel M Alganza via ntg-context wrote: > On Wed, Sep 28, 2022 at 03:59:07PM +0200, Hans Hagen via ntg-context wrote: > [...] >> but lmtx is and will stay as default > > Too bad the default won't work as expected (it did before or, at least > with TeXLive distribution,) sometimes,

Re: [NTG-context] Missing letters and numbers in printout

2022-09-29 Thread Hans Hagen via ntg-context
On 9/29/2022 3:54 PM, Angel M Alganza via ntg-context wrote: No, alas I do not.  Could you please point me to where I could download the latest greatest for 32bits OpenBSD from.  I remember a discussion a few months ago to eliminated 32bits OpenBSD if nobody used it, where I asked to keep publis

Re: [NTG-context] Missing letters and numbers in printout

2022-09-29 Thread Angel M Alganza via ntg-context
On Wed, Sep 28, 2022 at 03:59:07PM +0200, Hans Hagen via ntg-context wrote: changed to have 'context file.txt' to compile using luatex instead of LuaMetaTeX? top line: % engine=luatex Thank you, I'll add that to my source files from now on. but lmtx is and will stay as default To bad the

Re: [NTG-context] Missing letters and numbers in printout

2022-09-28 Thread Hans Hagen via ntg-context
On 9/28/2022 5:10 PM, Pablo Rodriguez via ntg-context wrote: Well, that is probably too much to say (I mean, that "--luatex" generates more accurate PDF documents). depends on how one defines accurate The main issue would be pretending to use with LuaTeX some features available only in LuaMe

Re: [NTG-context] Missing letters and numbers in printout

2022-09-28 Thread Pablo Rodriguez via ntg-context
On 9/28/22 15:30, Angel M Alganza via ntg-context wrote: > On Tue, Sep 27, 2022 at 04:03:06PM +0200, Pablo Rodriguez via > ntg-context wrote: >> [...] >> I think that this PDF document will be fine with your printer. > > It was. I printed it this morning without any problem. Thank you! Glad to r

Re: [NTG-context] Missing letters and numbers in printout

2022-09-28 Thread Hans Hagen via ntg-context
On 9/28/2022 3:30 PM, Angel M Alganza via ntg-context wrote: On Tue, Sep 27, 2022 at 04:03:06PM +0200, Pablo Rodriguez via ntg-context wrote: In that case, run "context --luatex --generate" first and then "context --luatex a6lua.tex". This would give you a pure LuaTeX-compiled PDF document.

Re: [NTG-context] Missing letters and numbers in printout

2022-09-28 Thread Angel M Alganza via ntg-context
On Tue, Sep 27, 2022 at 04:03:06PM +0200, Pablo Rodriguez via ntg-context wrote: In that case, run "context --luatex --generate" first and then "context --luatex a6lua.tex". This would give you a pure LuaTeX-compiled PDF document. I think that this PDF document will be fine with your printer.

Re: [NTG-context] Missing letters and numbers in printout

2022-09-27 Thread Angel M Alganza via ntg-context
On Tue, Sep 27, 2022 at 04:03:06PM +0200, Pablo Rodriguez via ntg-context wrote: Producer: LuaMetaTeX-2.09 No, this was compiled with LuaMetaTeX. It looks so obvious now, but it didn't (to me) before. :-) In that case, run "context --luatex --generate" first and then "context --luate

Re: [NTG-context] Missing letters and numbers in printout

2022-09-27 Thread Pablo Rodriguez via ntg-context
On 9/26/22 23:04, Angel M Alganza via ntg-context wrote: > On Mon, Sep 26, 2022 at 10:44:55PM +0200, Hans Hagen via ntg-context wrote: > >> mtxrun --script pdf --info oeps.pdf > [...] > mtx-pdf | creation date > D:20220920071929+02'00' > mtx-pdf | modification date > D:202209200

Re: [NTG-context] Missing letters and numbers in printout

2022-09-27 Thread Pablo Rodriguez via ntg-context
On 9/26/22 20:26, Angel M Alganza via ntg-context wrote: > On Mon, Sep 26, 2022 at 07:10:40PM +0200, Pablo Rodriguez via ntg-context > wrote: > [...] >> There might be a workaround (or a way of testing this), compiling the >> PDF document with LuaTeX instead of with LuaMetaTeX. > > It seems it is

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Hans Hagen via ntg-context
On 9/26/2022 11:04 PM, Angel M Alganza via ntg-context wrote: On Mon, Sep 26, 2022 at 10:44:55PM +0200, Hans Hagen via ntg-context wrote: mtxrun --script pdf --info oeps.pdf $ mtxrun --script pdf --info a6.pdf mtx-pdf | filename  > a6.pdf mtx-pdf | pdf version   >

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Hans Hagen via ntg-context
On 9/26/2022 8:26 PM, Angel M Alganza via ntg-context wrote: I didn't know any of the poppler-utils, thank you! Otherwise, the only option about your documents is guessing. mtxrun --script pdf --info oeps.pdf mtxrun --script pdf --fonts oeps.pdf the second one also shows what characters are

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Angel M Alganza via ntg-context
On Mon, Sep 26, 2022 at 10:44:55PM +0200, Hans Hagen via ntg-context wrote: mtxrun --script pdf --info oeps.pdf $ mtxrun --script pdf --info a6.pdf mtx-pdf | filename > a6.pdf mtx-pdf | pdf version > 1.7 mtx-pdf | major version > 1 mtx-pdf | m

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Hans Hagen via ntg-context
On 9/26/2022 8:26 PM, Angel M Alganza via ntg-context wrote: I didn't know any of the poppler-utils, thank you! mtxrun --script pdf --info oeps.pdf mtxrun --script pdf --fonts oeps.pdf the second one also shows what characters are in there Hans -

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Angel M Alganza via ntg-context
On Mon, Sep 26, 2022 at 07:10:40PM +0200, Pablo Rodriguez via ntg-context wrote: BTW, is TeX Gyre Heros the font with missing chars in the printed version of your PDF document? It doesn't seem to be that: $ pdffonts a6.pdf name type encoding

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Pablo Rodriguez via ntg-context
On 9/26/22 16:06, Angel M Alganza via ntg-context wrote: > Hello, Hi Ángel, > [...] > I tried printing the same file (from the same USB drive) into a > different printer, this time connected to a computer, and sending the > file from it, which worked just fine. My guess is that the first > print

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Angel M Alganza via ntg-context
iginal email. Yes, MuPDF shows the complete file without any problem, all letters and numbers are there, as well as in the printout I got from printing from a coworker computer (Devuan) to their printer. Ángel ___ If you

Re: [NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Hans Hagen via ntg-context
On 9/26/2022 4:06 PM, Angel M Alganza via ntg-context wrote: Hello, I have a document that includes some grids (drawn with \grid) as well as alphanumeric information (letters and numbers) which contents (the info, not the grids) I modify every year and then print it out.  I've been usi

[NTG-context] Missing letters and numbers in printout

2022-09-26 Thread Angel M Alganza via ntg-context
Hello, I have a document that includes some grids (drawn with \grid) as well as alphanumeric information (letters and numbers) which contents (the info, not the grids) I modify every year and then print it out. I've been using it without any problem for a few (maybe 4 or 5) years but, this

Re: [NTG-context] Backmatter preventing section numbers from appearing

2021-11-25 Thread Hans Hagen via ntg-context
atter % comment out %\stopbackmatter % comment out \stoptext/ / / Uncommenting lines 8 and 9 causes the section numbers to disappear. Is this normal behavior? Why does the presence of backmatter affect my sections like this? technically there can be many so called sectionblocks in any order and a

[NTG-context] Backmatter preventing section numbers from appearing

2021-11-25 Thread A A via ntg-context
ptext* Uncommenting lines 8 and 9 causes the section numbers to disappear. Is this normal behavior? Why does the presence of backmatter affect my sections like this? Regards, Amine ___ If your question is of intere

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-14 Thread Henning Hraban Ramm via ntg-context
> Am 14.09.2021 um 11:25 schrieb juh via ntg-context : > > > The text area stops at "dolor". So the long headline on page 2 should run into > the outermargin. > > Is it possible to put headline in an area combined from margin+textarea? I’d use \framed[width=..., frame=off, offset=overlay]{You

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-14 Thread juh via ntg-context
Thanks a lot Wolfgang for your help, Am Mon, Sep 13, 2021 at 01:33:36PM +0200 schrieb Wolfgang Schuster via ntg-context: > Like this? > > \setuphead >   [chapter] >   [page=yes, >    alternative=inmargin, >    location=outer, >    align=outer] > > \setuppagenumbering >   [alternative=doublesid

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-13 Thread Wolfgang Schuster via ntg-context
juh via ntg-context schrieb am 13.09.2021 um 13:07: Hi all, I have a doubleside layout with a big outer margin. When I set alternative=margin in setuphead the chapter numbers appear in the left margin which is the outer margin on left pages, but the inner margin on right pages. While this

[NTG-context] Headline with numbers in margin doubleside layout

2021-09-13 Thread juh via ntg-context
Hi all, I have a doubleside layout with a big outer margin. When I set alternative=margin in setuphead the chapter numbers appear in the left margin which is the outer margin on left pages, but the inner margin on right pages. While this looks good on left pages, there is much free space on

Re: [NTG-context] getting line numbers

2021-09-05 Thread Fabrice Couvreur via ntg-context
Hi, I am trying to test this file but without success. I just do context test.tex but I suspect that is not it. When you say > We compile and run: > Which command is it with ? Thanks Fabrice Le ven. 3 sept. 2021 à 18:26, Hans Hagen via ntg-context a écrit : > On 9/3/2021 3:53 PM, Aditya Mahaja

Re: [NTG-context] getting line numbers

2021-09-04 Thread Thierry Horsin via ntg-context
Thank you Hans. For what I had in mind (compiling some c++ inside a tex file) it seems to work. Anyway for this I am currently using the buffer and typebuffer solution you provide. T. Le Saturday 04 Sep 2021 à 10:35:34 (+0200), Hans Hagen a écrit : > there has always been > > \the\inputlineno

Re: [NTG-context] getting line numbers

2021-09-04 Thread Hans Hagen via ntg-context
On 9/4/2021 9:01 AM, thierry horsin via ntg-context wrote: Hi and thank you Aditaya and again Hans. By the way, just for fun , is there a(n easy) way to get the linenumber in the tex file ? there has always been \the\inputlineno but it is not always accurate (because content can come from an

Re: [NTG-context] getting line numbers

2021-09-04 Thread thierry horsin via ntg-context
To: mailing list for ConTeXt users Cc: Thierry Horsin Subject: Re: [NTG-context] getting line numbers Message-ID: <807e4b7c-97ae-e20e-3207-28393544c...@xs4all.nl> Content-Type: text/plain; charset=utf-8; format=flowed in this case, thinking a bit different is easier ... \sta

Re: [NTG-context] getting line numbers

2021-09-03 Thread Hans Hagen via ntg-context
On 9/3/2021 3:53 PM, Aditya Mahajan via ntg-context wrote: On Fri, 3 Sep 2021, Thierry Horsin via ntg-context wrote: Hi everybody Is there a way to have an automatic access to the current line number of a specific place inside a tex file ? To be more precise, here is what I would like to do.

Re: [NTG-context] getting line numbers

2021-09-03 Thread Aditya Mahajan via ntg-context
On Fri, 3 Sep 2021, Thierry Horsin via ntg-context wrote: > Hi everybody > > Is there a way to have an automatic access to the current line number of a > specific place inside a tex file ? To be more precise, here is what I would > like to do. Also look at the filter module. https://gith

Re: [NTG-context] getting line numbers

2021-09-03 Thread Thierry Horsin via ntg-context
Many thanks Hans. Thierry Le Friday 03 Sep 2021 à 14:16:40 (+0200), Hans Hagen a écrit : > in this case, thinking a bit different is easier ... > > \starttext > > \startbuffer[MyBuffer] > #include > > using namespace std; > int mysum(int,int); > int a; int b; > int main () { > a=2; b=9;

Re: [NTG-context] getting line numbers

2021-09-03 Thread Hans Hagen via ntg-context
numbers automatically. Thank you. Thierry \startC #include using namespace std; int mysum(int,int); int a; int b; int main () { a=2; b=9; cout << mysum(a,b) << endl; return 0; } int mysum(int a, int b) { return a+b; } \stopC \startluacode myout = io.open("tes

[NTG-context] getting line numbers

2021-09-03 Thread Thierry Horsin via ntg-context
following example below. \startC \stopC defines a framed part of text written between lines 538 and 549. Of course, if I add something before or inbetween my framed code, 538 and/or 549 will change. Thus I would like to get these two numbers automatically. Thank you. Thierry \startC #include

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Hans Hagen
On 6/10/2021 2:10 PM, Markus Brandt wrote: Thanks. 'method' is missing in the Wiki. It works fine when using it in combination with \csname to use the abbreviation. I guess the change you propose would affect \synonym in generell, right? This change would make code with the sortkey option inc

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Markus Brandt
On 2021-06-10 13:36, Hans Hagen wrote: On 6/10/2021 12:02 PM, Markus Brandt wrote: On 2021-06-10 11:52, luigi scarso wrote: On Thu, Jun 10, 2021 at 11:39 AM Markus Brandt wrote: yes, seems like they are sorted by tag. But that’s not useful, since you cannot use numbers in a tag. This tag is

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Hans Hagen
On 6/10/2021 12:02 PM, Markus Brandt wrote: On 2021-06-10 11:52, luigi scarso wrote: On Thu, Jun 10, 2021 at 11:39 AM Markus Brandt wrote: yes, seems like they are sorted by tag. But that’s not useful, since you cannot use numbers in a tag. This tag is just the workaround for abbreviations

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Markus Brandt
On 2021-06-10 11:52, luigi scarso wrote: On Thu, Jun 10, 2021 at 11:39 AM Markus Brandt wrote: yes, seems like they are sorted by tag. But that’s not useful, since you cannot use numbers in a tag. This tag is just the workaround for abbreviations that include numbers. \abbreviation[0123

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread luigi scarso
On Thu, Jun 10, 2021 at 11:39 AM Markus Brandt < markus.bra...@sit.tu-darmstadt.de> wrote: > yes, seems like they are sorted by tag. But that’s not useful, since you > cannot use numbers in a tag. This tag is just the workaround for > abbreviations that include numbers. > >

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Markus Brandt
yes, seems like they are sorted by tag. But that’s not useful, since you cannot use numbers in a tag. This tag is just the workaround for abbreviations that include numbers. From: ntg-context on behalf of luigi scarso Reply-To: mailing list for ConTeXt users Date: Thursday, June 10, 2021

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread luigi scarso
ation[OTT]{123}{One, Two, and Three} > \abbreviation{ABC}{A, B, and C} > \abbreviation{ZYX}{Z, Y, and X} > > \starttext > \completelistofabbreviations[criterium=all] > \stoptext > > I get > > ABCA, B, and C > 123One, Two, and Three > ZYXZ, Y, and X >

[NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Markus Brandt
ttext \completelistofabbreviations[criterium=all] \stoptext I get ABCA, B, and C 123One, Two, and Three ZYXZ, Y, and X Numbers should go before letters. Do you know any workaround/fix for that? Best, Markus ___ If

Re: [NTG-context] Verbose numbers in swedish

2021-04-17 Thread peter kvillegard
Aha! Thank you so much! On Sat, Apr 17, 2021 at 7:17 PM Hans Hagen wrote: > > On 4/17/2021 6:50 PM, peter kvillegard wrote: > > Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to > > work when \mainlanguage[sv] is set. I'm new to ConTeXt so

Re: [NTG-context] Verbose numbers in swedish

2021-04-17 Thread Hans Hagen
On 4/17/2021 6:50 PM, peter kvillegard wrote: Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to work when \mainlanguage[sv] is set. I'm new to ConTeXt so I'm still struggling to grasp how everything fits together, but I found the spanish verbose num

Re: [NTG-context] Verbose numbers in swedish

2021-04-17 Thread Wolfgang Schuster
peter kvillegard schrieb am 17.04.2021 um 18:50: Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to work when \mainlanguage[sv] is set. I'm new to ConTeXt so I'm still struggling to grasp how everything fits together, but I found the spanish verbose num

[NTG-context] Verbose numbers in swedish

2021-04-17 Thread peter kvillegard
Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to work when \mainlanguage[sv] is set. I'm new to ConTeXt so I'm still struggling to grasp how everything fits together, but I found the spanish verbose numbers in core-con.lua, and added functions for sw

[NTG-context] Weekdays and others as numbers

2021-01-08 Thread Jairo A. del Rio
ConTeXt has some inbuilt functions for dates. I see that the following \mainlanguage[spanish] \starttext \dayoftheweek{4}{5}{1992} \stoptext gives "lunes" (Monday). How to get a weekday number (2 in this case) instead? Sincerely, Jairo

Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Henning Hraban Ramm
> Am 07.01.2021 um 12:20 schrieb Henning Hraban Ramm : > > >> Am 07.01.2021 um 11:29 schrieb Marco Patzer : >> >> Thanks for the info. I updated the wiki. > > https://wiki.contextgarden.net/Titles > > I did some more edits, but the page is still a mess. I created the command page; not sure i

Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Henning Hraban Ramm
> Am 07.01.2021 um 11:29 schrieb Marco Patzer : > > Thanks for the info. I updated the wiki. https://wiki.contextgarden.net/Titles I did some more edits, but the page is still a mess. Hraban ___ If your question is

Re: [NTG-context] Continued chapter numbers

2021-01-07 Thread Marco Patzer
On Thu, 7 Jan 2021 00:02:20 +0100 Wolfgang Schuster wrote: > > \definestructureresetset is the same as \defineresetset. I assume > > that \definestructureresetset is the preferred way. But both will > > work. > > No, \defineresetset is the main command and \definestructureresetset > is a alias

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Wolfgang Schuster
Marco Patzer schrieb am 06.01.2021 um 22:09: On Thu, 7 Jan 2021 07:09:46 +1100 jbf wrote: I had searched everywhere on the wiki and in the manuals for something like this, based on 'reset' but could not find it. AFAIK it's not mentioned in the manuals. But a variant is on the wiki “Independen

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Thu, 7 Jan 2021 07:09:46 +1100 jbf wrote: > I had searched everywhere on the wiki and in the manuals for > something like this, based on 'reset' but could not find it. AFAIK it's not mentioned in the manuals. But a variant is on the wiki “Independent Section Numbering”: https://wiki.contex

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread jbf
is.ma...@ub.unibe.ch wrote: Not tested, but what about this? \setupcounter[chapter][way=bytext] Best, Denis -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von jbf Gesendet: Mittwoch, 6. Januar 2021 10:24 An: mailing list for ConTeXt users Betreff: [NTG-context] Continued chapter numbe

  1   2   3   4   5   6   7   8   9   10   >