[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

[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 :=

[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

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

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

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

[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-04 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-04 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
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 speak. I

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

[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

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

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

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

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

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

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 >

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

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 |

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 >

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

2022-09-26 Thread Angel M Alganza via ntg-context
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 your question is o

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 using

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

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

2021-11-25 Thread Hans Hagen via ntg-context
% 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 as one

[NTG-context] Backmatter preventing section numbers from appearing

2021-11-25 Thread A A via ntg-context
* 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 interest

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,

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 >  

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

[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

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

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

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

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.

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
as in the 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

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

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

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 I'm still

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 numbers in co

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 numbers in co

[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 swedish to match

[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

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

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

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

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”:

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread jbf
...@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 numbers I

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread jbf
\defineresetset    [jbfreset] [] [0] \setuphead    [chapter]    [sectionresetset=jbfreset] That does indeed work for me. I had searched everywhere on the wiki and in the manuals for something like this, based on 'reset' but could not find it. While it is clearly something you knew (and I now

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread denis.maier
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

Re: [NTG-context] Continued chapter numbers

2021-01-06 Thread Marco Patzer
On Wed, 6 Jan 2021 20:24:07 +1100 jbf wrote: > I need chapter numbers to continue sequentially across several parts. > At the moment, when Part 2 begins, it begins with Chapter 1 once > more, while it should be (in continued sequence) Chapter 4. \defineresetset [jbfreset] [] [0] \

[NTG-context] Continued chapter numbers

2021-01-06 Thread jbf
I need chapter numbers to continue sequentially across several parts. At the moment, when Part 2 begins, it begins with Chapter 1 once more, while it should be (in continued sequence) Chapter 4. I know that I can achieve the desired result by including ownnumber=4, so: \startchapter[title={My

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread jbf
Indeed the no-break spaces were the problem, something I had quite overlooked (so have made a 'message to brain' not to overlook this in the future). I did know about the use of %, but if one searches on the Contextgarden Wiki for \nobreakspace, one finds nothing. Clearly a TeX command that

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
On Tue, 5 Jan 2021 08:32:33 +1100 jbf wrote: > and apologies if you didn't think I provided an MWE. The idea is that people can just copy-paste the code into an editor and keep tweaking. It doesn't have to produce the correct output, but it should compile. If you add an MWE you're more likely

Re: [NTG-context] Part label and chapter numbers

2021-01-04 Thread Marco Patzer
ions' are numbered in arabic numbers, Chapters > are meant to be in words. \setuplabeltext [chapter=Chapter\nobreakspace] \setuphead [chapter] [conversion=Words] > Issue 3 might already be solved once I resolve Issue 2! > > But given that I have parts, the chapters at the mom

[NTG-context] Part label and chapter numbers

2021-01-03 Thread jbf
', and the Chapter numbers need to be words and sequential throughout the book, not restarting at each part/section. Issue 1: Parts need to be called 'Section' (Section 1, section 2 etc.). I thought I could achieve this with: \setuphead   [part]   [   placehead=yes,   bodypartlabel=section

Re: [NTG-context] \setbreakpoints[compound] with numbers

2020-09-18 Thread Denis Maier
Am 17.09.2020 um 19:07 schrieb Hans Hagen: On 9/17/2020 4:54 PM, Denis Maier wrote: Hi, In the texts I'm currently typesetting, I occassionaly have to deal with ISBNs. So, e.g. 978-3-123456-78-9 \setbreakpoints[compound] does not enable automatic linebreaks after or before the hyphens. Is

Re: [NTG-context] \setbreakpoints[compound] with numbers

2020-09-17 Thread Hans Hagen
On 9/17/2020 4:54 PM, Denis Maier wrote: Hi, In the texts I'm currently typesetting, I occassionaly have to deal with ISBNs. So, e.g. 978-3-123456-78-9 \setbreakpoints[compound] does not enable automatic linebreaks after or before the hyphens. Is there a way to deal with this? Perhaps

[NTG-context] \setbreakpoints[compound] with numbers

2020-09-17 Thread Denis Maier
Hi, In the texts I'm currently typesetting, I occassionaly have to deal with ISBNs. So, e.g. 978-3-123456-78-9 \setbreakpoints[compound] does not enable automatic linebreaks after or before the hyphens. Is there a way to deal with this? Perhaps something similar like \hyphenatedurl{} or an

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
On 2020-08-13, Pablo Rodriguez wrote: > On 8/13/20 6:06 PM, Nicola wrote: >> [...] >> Thanks. That works with my MWE, but in my document I actually have >> a chapter, and chapters start on the right page, even if I add page=no >> to \setuppagenumbering: >> [...] >> I have no idea how to allow

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Wolfgang Schuster
Nicola schrieb am 13.08.2020 um 18:06: Thanks. That works with my MWE, but in my document I actually have a chapter, and chapters start on the right page, even if I add page=no to \setuppagenumbering: Can you start a new thread when you have a new question. When other people have the same

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 6:06 PM, Nicola wrote: > [...] > Thanks. That works with my MWE, but in my document I actually have > a chapter, and chapters start on the right page, even if I add page=no > to \setuppagenumbering: > [...] > I have no idea how to allow chapters to start at arbitrary pages when >

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
On 2020-08-13, Pablo Rodriguez wrote: > On 8/13/20 5:17 PM, Nicola wrote: >> Hi, >> I still have an issue with blank pages... >> 2. Vertically center the ToC (wrt to the text area). >>> >>> Use a makeup for the TOC (if and only if it takes a single page). >> >> Yes, the ToC takes a single

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 5:17 PM, Nicola wrote: > Hi, > I still have an issue with blank pages... > >>> 2. Vertically center the ToC (wrt to the text area). >> >> Use a makeup for the TOC (if and only if it takes a single page). > > Yes, the ToC takes a single page. The makeup seems to insert a blank > page

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
Hi, I still have an issue with blank pages... >> 2. Vertically center the ToC (wrt to the text area). > > Use a makeup for the TOC (if and only if it takes a single page). Yes, the ToC takes a single page. The makeup seems to insert a blank page afterwards. MWE:

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-12 Thread Nicola
>> >> I'll take a fresh look tomorrow. > > When you a unnumbered section with the list alternatives a-c your're out > of luck with the regular \setuplist options because it always use a > width of 0pt for regular section number. The aligntitle works only for > numbered

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Wolfgang Schuster
the margin key to a value large enough to fit all numbers 3. Apply a command to the numbercommand key where you shift the number to the left in the margin area you set in the previous step begin example \define[1]\ChapterListNumbercommand {\offset[x=-1cm,width=0pt]{\simplealignedbox{1cm

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
On 2020-08-11, Pablo Rodriguez wrote: > On 8/11/20 9:24 PM, Nicola wrote: >> Thank Pablo, Wolfgang, >> I have learned more by reading your replies than by myself in the rest >> of the afternoon. > > Hi Nicola, > > if you found replies useful, please update the wiki (this may help others). > >>

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
On 8/11/20 8:34 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 11.08.2020 um 14:53: >> On 8/11/20 1:32 PM, Nicola wrote: >> [...] >>> 3. Suppress page numbers and headers in all blank pages. >> >> Break pages with \page[yes, blank]. > > Not the

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
On 8/11/20 9:24 PM, Nicola wrote: > Thank Pablo, Wolfgang, > I have learned more by reading your replies than by myself in the rest > of the afternoon. Hi Nicola, if you found replies useful, please update the wiki (this may help others). > Just one more thing: > [...] > I'd prefer all the

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
Thank Pablo, Wolfgang, I have learned more by reading your replies than by myself in the rest of the afternoon. Just one more thing: >>> 1. Increase the space between Roman numbers and titles in the ToC. >> >> distance with dimension is the key in \setuplist. > > Corr

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Wolfgang Schuster
environment fits here better. \definemakeup [copyright] [page=yes, pagestate=start, doublesided=no, align=flushright, bottom=] \startmakeup[copyright] Copyright © 2020 Author \stopmakeup 1. Increase the space between Roman numbers and titles in the ToC. distance with dimension

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Pablo Rodriguez
some basic tasks (see the document > below): > > 0. Push text to the bottom of the text area (see copyright). Well, \setupalignment tweaks position in line (I’d rather say). Bottom isn’t an option there. Adding \null\vfill before the alignment does the job. > 1. Increase the space

[NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-11 Thread Nicola
struggling with some basic tasks (see the document below): 0. Push text to the bottom of the text area (see copyright). 1. Increase the space between Roman numbers and titles in the ToC. 2. Vertically center the ToC (wrt to the text area). 3. Suppress page numbers and headers in all blank pages. 4

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

2020-06-14 Thread Jack Steyn
number i instead of ii. It seems to have something to do > > with the use of makeup. I was using it to create a vertically centered > > title page. Is there a better way of doing this which will give the > > correct page numbers? > > > > Best, > > > > Jack

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

2020-06-14 Thread Wolfgang Schuster
of doing this which will give the correct page numbers? Best, Jack \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definemakeup[titlepage][align=middle] \definemakeup[titlepage][align=middle,pagestate=start

[NTG-context] Wrong page numbers in frontmatter

2020-06-14 Thread Jack Steyn
numbers? Best, Jack \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber][][numbers] \definemakeup[titlepage][align=middle] \starttext \startfrontmatter \startmakeup[titlepage] Title \stopmakeup test \stopfrontmatter

Re: [NTG-context] More funny numbers

2020-06-12 Thread Hans Hagen
On 6/12/2020 4:35 AM, Jairo A. del Rio wrote: Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{265}{153},  

Re: [NTG-context] More funny numbers

2020-06-12 Thread Hans Hagen
On 6/12/2020 4:35 AM, Jairo A. del Rio wrote: It's actually nice to find those bugs when one makes heavy use of math environments. For comparison, LuaTeX prints the correct output. Well, thanks for finding them! Normnally those bugs are easy to fix. Concerning math, there are no real

[NTG-context] More funny numbers

2020-06-11 Thread Jairo A. del Rio
Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{265}{153}, 3013 \frac{3}{4}>\sqrt{9082321}, \quad 1838

Re: [NTG-context] chapter numbers

2020-06-08 Thread jbf
A useful distinction to know. Do you think this is made clear on the wiki? In fact I am sure that the information is there precisely as you have put it, but the challenge (for the wiki and the wiki user) is to find it. Your many brief and to-the-point explanations of these little matters,

Re: [NTG-context] chapter numbers

2020-06-08 Thread Wolfgang Schuster
Duncan Hothersall schrieb am 08.06.2020 um 08:35: Use \setuplabeltext instead of \setupheadtext. I agree the documentation suggests \setupheadtext should work the same way, but it doesn't seem to. You might also want a space after the word Chapter. It works the same way but it's used for a

Re: [NTG-context] chapter numbers

2020-06-08 Thread jbf
Thanks Duncan. It can be quite a struggle working through potentially conflicting items in the documentation. I applaud the recent efforts to improve the overall presentation of the wiki, though. Your simple little change (plus the space!) works of course. Julian On 8/6/20 4:35 pm, Duncan

Re: [NTG-context] chapter numbers

2020-06-08 Thread Duncan Hothersall
Use \setuplabeltext instead of \setupheadtext. I agree the documentation suggests \setupheadtext should work the same way, but it doesn't seem to. You might also want a space after the word Chapter. Duncan On Mon, 8 Jun 2020 at 05:38, jbf wrote: > I am attempting to get the word 'Chapter' to

  1   2   3   4   5   6   7   8   9   >