Re: [NTG-context] Forcing indentation on item groups

2021-02-02 Thread Jairo A. del Rio
ze > > > > \stoptext > > > > The item group doesn't follow indentation. Adding \leavevmode only has > > effect on the first line, and only insert a spurious space from the > > second item on. How would

Re: [NTG-context] Forcing indentation on item groups

2021-02-02 Thread Wolfgang Schuster
group doesn't follow indentation. Adding \leavevmode only has effect on the first line, and only insert a spurious space from the second item on. How would I solve this? To be clear, I want indenting before numbers, i.e. (1), not (1). Thanks beforehand. \setupitemize [each] [margin=sta

[NTG-context] Forcing indentation on item groups

2021-02-02 Thread Jairo A. del Rio
vmode only has effect on the first line, and only insert a spurious space from the second item on. How would I solve this? To be clear, I want indenting before numbers, i.e. (1), not (1). Thanks beforehand. Jairo ___ If

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Aditya Mahajan
ere because at some point context used to delete \jobname-temp-.tmp files if you passed the --purge option, but I see that it is no longer the case. Maybe that can be removed from the default name. The last part are the numbers, which are needed when caching results. > I’m not yet sure what

[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] LuaTeX and PDF.js

2021-01-07 Thread Vedran Miletić
On 07. 01. 2021. 23:01, Hans Hagen wrote: what lua does your 2.08 have? if it's 5.2. then such small differences can be a side effect of lua (different number models), serialization of numbers (default accuracy), or maybe rounding in the lua=>tex font interface (there were some f

Re: [NTG-context] LuaTeX and PDF.js

2021-01-07 Thread Hans Hagen
such small differences can be a side effect of lua (different number models), serialization of numbers (default accuracy), or maybe rounding in the lua=>tex font interface (there were some fixes iir), the number of digist that the backend uses, etc anyhow, so what you see (in the file)

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

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 k

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 one

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 to

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

2021-01-04 Thread Marco Patzer
e 'sections' 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

[NTG-context] Part label and chapter numbers

2021-01-03 Thread jbf
not 'Part', 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]   [   placehea

Re: [NTG-context] Diagnositics in LuaTeX

2020-12-28 Thread Hans Hagen
;s also a lot of pushback ging on. If you just hook into 'picking up a token', here are some numbers if we hook into that: making context lmtx format: 4M (million) simple tufte document with minimal font setup: 500K loading tikz (with patterns lib): 3M drawing simple pattern in tikz:

Re: [NTG-context] About xdecimal

2020-12-28 Thread Jairo A. del Rio
> > 2. Integer division (//) is not implemented. Is that by design? > > i'll add that one > > > 3. Following 2, what would be the way to handle integer division, > > remainder... for large num

Re: [NTG-context] About xdecimal

2020-12-28 Thread Hans Hagen
implemented. Is that by design? i'll add that one 3. Following 2, what would be the way to handle integer division, remainder... for large numbers? i'll add a % b Thank you in advance. better first

[NTG-context] About xdecimal

2020-12-28 Thread Jairo A. del Rio
, remainder... for large numbers? Thank you in advance. Best regards, Jairo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailm

[NTG-context] Parallelizing typesetting of large documents with lots of cross-references

2020-12-03 Thread Stephen Gaito
m *everywhere* else in the document. TeX and ConTeXt "solve" this problem by using a multi-pass approach (in, for example, 5 passes for the `luametatex` document). Between each pass, ConTeXt saves this multi-pass data (page numbers and cross-references) in the `*.tuc` file. Clearly

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-02 Thread Stephen Gaito
bound) > > > 3. After all PDF generated (ie. a "normal" "full" ConTeXt run). > > > > Stopping after all macro expansions would allow my code generation > > builds to proceed without the un-needed page setting or PDF > > generation. > > hm

[NTG-context] Bug in lmtx bibliography (numerals in entry?)

2020-12-01 Thread Damien Thiriet
11:28 AFAIU, it means my entry shouldn’t have numbers, right? If so, this may be a bug, since entry biblio files often have a number inside Best regards, Damien Thiriet ___ If your question is of interest to

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-11-30 Thread Hans Hagen
iables Stopping after the line/paragraph/page layout would allow multiple "faster(?)" ConTeXt runs while the "*.tuc" file converges to a complete set of page numbers and cross references (etc). Then, once the "*.tuc" file has converged, a full ConTeXt run with PDF ou

[NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-11-30 Thread Stephen Gaito
full" ConTeXt run). Stopping after all macro expansions would allow my code generation builds to proceed without the un-needed page setting or PDF generation. Stopping after the line/paragraph/page layout would allow multiple "faster(?)" ConTeXt runs while the "*.tuc" file

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
ding units. As you ave discovered, everything is translated to a unique internal dimension. So you can write:  a := (1cm,2in) ; with no problem. The « cm » and « in » parts of the expression will become numbers to

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
or; StopPage; \stopMPpage \stoptext %% MetaPost (MetaFun) is taking care of everything regarding units. As you ave discovered, everything is translated to a unique internal dimension. So you can write:  a := (1cm,2in) ; with no problem. The « cm » and « in » parts of the expression wil

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm); >>> endfor; >>> pp := pp --- cycle; >>> if i < 3 : >>> pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); >>> fi; >>

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
ite:  a := (1cm,2in) ; with no problem. The « cm » and « in » parts of the expression will become numbers to translate this number on the right unit. Fabrice. ___ If your question is of interest to others as wel

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
« cm » and « in » parts of the expression will become numbers to translate this number on the right unit. Fabrice. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :n

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
Sienna}]); > endfor; > StopPage; > \stopMPpage > \stoptext > %% > MetaPost (MetaFun) is taking care of everything regarding units. As you ave discovered, everything is translated to a un

Re: [NTG-context] indentation of item separators

2020-11-09 Thread Sylvain Hubert
On Mon, 9 Nov 2020 at 20:35, Pablo Rodriguez wrote: > On 11/9/20 8:09 PM, Sylvain Hubert wrote: > > Dear List, > > > > In the following example, what is indented is the text instead of the > > numbers. > > [...] > > Does anyone know how to indent the whol

Re: [NTG-context] indentation of item separators

2020-11-09 Thread Pablo Rodriguez
On 11/9/20 8:09 PM, Sylvain Hubert wrote: > Dear List, > > In the following example, what is indented is the text instead of the > numbers. > [...] > Does anyone know how to indent the whole item group altogether? Hi Sylvain, margin is the option here, not indenting. You can

[NTG-context] indentation of item separators

2020-11-09 Thread Sylvain Hubert
Dear List, In the following example, what is indented is the text instead of the numbers. \starttext \startitemize[n, packed][indenting=2em] \item abc \item def \item ghi \stopitemize \stoptext Does anyone know how to indent the whole item group altogether? Thanks

Re: [NTG-context] ConTeXt Linux installation issues (due to GLIBC dependency) - Solved!

2020-11-08 Thread Mojca Miklavec
an older version of Debian for building, but those don't provide sufficiently recent build tools (cmake, git, ninja build system, ... I believe that CMake was the main blocker, but I'm no longer absolutely sure). By far the easiest solution was to switch from Debian 8 to 9 (or something

Re: [NTG-context] new upload

2020-11-06 Thread Rik Kabel
On 11/6/2020 16:03, Pablo Rodriguez wrote: On 11/6/20 8:42 PM, Hans Hagen wrote: Hi, Again a new lmtx upload. As these days are all about counting and numbers ... of the 19K visible macros some 14K are now flagged. Many thanks for the new release, Hans. I’m afraid that I cannot update unless

Re: [NTG-context] new upload

2020-11-06 Thread Pablo Rodriguez
On 11/6/20 8:42 PM, Hans Hagen wrote: > Hi, > > Again a new lmtx upload. As these days are all about counting and > numbers ... of the 19K visible macros some 14K are now flagged. Many thanks for the new release, Hans. I’m afraid that I cannot update unless I remove tex/texmf*.tma.

[NTG-context] new upload

2020-11-06 Thread Hans Hagen
Hi, Again a new lmtx upload. As these days are all about counting and numbers ... of the 19K visible macros some 14K are now flagged. Question: do we really need all these 'named characters' or can we at some point ditch many .. I assume that users who key in greek and cyrillic u

Re: [NTG-context] index issues

2020-11-06 Thread Duncan Hothersall
have at least one \setinjector as well otherwise it doesn't show the > numbers. > > > > It doesn’t work for me: > > lua error > lua error on line 24 in file inhalt/99anhang.tex: > > registered function call [421]: > ...-06/tex/texmf-context/tex/context/

Re: [NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm
> Am 06.11.2020 um 12:54 schrieb Duncan Hothersall : > > Without MWE try \showinjector and \setinjector. > > I would add to that that when experimenting with \showinjector you need to > have at least one \setinjector as well otherwise it doesn't show the numbers. >

Re: [NTG-context] index issues

2020-11-06 Thread Henning Hraban Ramm
you can answer some of these without? > > Hello Hraban! > > Without MWE try \showinjector and \setinjector. > > Jano > > I would add to that that when experimenting with \showinjector you need to > have at least one \setinjector as well otherwise it doesn't show

Re: [NTG-context] index issues

2020-11-06 Thread Duncan Hothersall
gt; Hello Hraban! > > Without MWE try \showinjector > <https://wiki.contextgarden.net/Command/showinjector> and \setinjector > <https://wiki.contextgarden.net/Command/setinjector>. > > Jano > > I would add to that that when experimenting with \showinjector you need t

Re: [NTG-context] footnotes in captions in floatcombinations

2020-10-11 Thread Henning Hraban Ramm
Hi, I still would be happy about answers to the following questions: > Am 02.10.2020 um 12:13 schrieb Henning Hraban Ramm : > > - Would it be possible to do the footnote numbering after the float > placement, so that a footnote in a float caption keeps the reading order of > n

[NTG-context] problem with string matching

2020-10-10 Thread Pablo Rodriguez
strings{1}{123} \stoptext I need to extract the digits from a string, which actually comes from the "--arguments" option in the command line. I need to compare the string with real numbers. But for some reason unknown

[NTG-context] Fine tuning an index

2020-10-08 Thread Duncan Hothersall
I'm doing my first mkiv index (it took me a long time to upgrade from mkii!) and I really like the processor feature to format elements differently. But there are a couple of things I would really like to achieve that I'm struggling with: 1. Elided numbers in an index range entry. F

[NTG-context] solution to suppressing header in ToC

2020-10-06 Thread jbf
, but did want page numbers still. A successful solution is: \starttochead[title={Contents}] \setupheader[state=stop]   \placecombinedlist[content] \stoptochead and then, after, the first full text page, to put: \starttitle[title={Acknowledgments}] \setupheader[state=empty] If I had state

Re: [NTG-context] help with forced page break in TOC

2020-10-05 Thread jbf
final stage: run the file with \showinjector. This will give you in the left margin the numbers of the different TOC-entries. Now you can say \setinjector[list] [“the number of the injector where the break must take place][\page] I hope that this is solving your issue. Kind regards Willi On

Re: [NTG-context] help with forced page break in TOC

2020-10-05 Thread Willi Egger
Hello Julian, the mechanism does not work in the typesetting of the TOC. Whatt you is the following, when the book is in a final stage: run the file with \showinjector. This will give you in the left margin the numbers of the different TOC-entries. Now you can say \setinjector[list] [“the

Re: [NTG-context] footnotes in captions in floatcombinations

2020-10-02 Thread Henning Hraban Ramm
after the float placement, so that a footnote in a float keeps the reading order or numbers and gets its place on the right page? – As a workaround, how can I use \placefigure in the middle of a paragraph without breaking it?

[NTG-context] Index range with page number suffix

2020-09-23 Thread Duncan Hothersall
(Using mkiv.) I have an index in which some entries need suffixes on the page numbers, for which I have used processors. For index ranges, I need the page number suffix only to appear on the end page number, not the start page number. The below MWE produces an index entry: sausage 1i-2i What

Re: [NTG-context] Arabic support

2020-09-23 Thread Mohammad Hossein Bateni
right when numbers are involved, say, for enumerations (theorems, lemma, etc.) and TOC numbering. These are not specific to Arabic, though, and should surface for Hebrew as well. Once in a while I run into problems with misoriented parentheses or quotation marks (specially https://en.wiktionary.org/wi

Re: [NTG-context] Old-Style numerals command (\os) breaks conversion of hyphens to dashes

2020-09-20 Thread Hans Hagen
On 9/20/2020 11:14 PM, Art Chimes wrote: I have a fairly large document, 50-60 pp, with lots of numerals, including hundreds of dates. I wanted to see how it would look with old-style numbers and I assumed I could bracket the whole text section of the document within braces and apply the \os

[NTG-context] Old-Style numerals command (\os) breaks conversion of hyphens to dashes

2020-09-20 Thread Art Chimes
I have a fairly large document, 50-60 pp, with lots of numerals, including hundreds of dates. I wanted to see how it would look with old-style numbers and I assumed I could bracket the whole text section of the document within braces and apply the \os command. I didn't turn out as I exp

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-18 Thread Geert Verhaag
wd \b_meta_v... \secondoftwoarguments #1#2b-#2 \9>>1 #1,2-\meta_prepare_instance_variable {#1} \syst_helpers_do_process_comm... \syst_helpers_do_process_comma_list ...rgument #1,           ]\relax \global \advance \... ... l.9   \useMPgraphic{na

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-18 Thread Hans Hagen
#1#2b-#2 \9>>1 #1,2-\meta_prepare_instance_variable {#1} \syst_helpers_do_process_comm... \syst_helpers_do_process_comma_list ...rgument #1,           ]\relax \global \advance \... ... l.9   \useMPgraphic{name}{lbl=abc} So it seems that only numbers

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

2020-09-17 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 t

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-17 Thread Geert Verhaag
gt;>1 #1,2-\meta_prepare_instance_variable {#1} \syst_helpers_do_process_comm... \syst_helpers_do_process_comma_list ...rgument #1,           ]\relax \global \advance \... ... l.9   \useMPgraphic{name}{lbl=abc} So it seems that on

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 someth

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

Re: [NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-17 Thread Hans Hagen
-#2 \9>>1 #1,2-\meta_prepare_instance_variable {#1} \syst_helpers_do_process_comm... \syst_helpers_do_process_comma_list ...rgument #1,   ]\relax \global \advance \... ... l.9   \useMPgraphic{name}{lbl=abc} So it seems that only numbers can be passed not character

[NTG-context] Struggling with startuseMPgraphic and string argument!

2020-09-16 Thread Geert Verhaag
ss_comm... \syst_helpers_do_process_comma_list ...rgument #1,   ]\relax \global \advance \... ... l.9   \useMPgraphic{name}{lbl=abc} So it seems that only numbers can be passed not character strings! Why is that? Is there a pos

[NTG-context] columns yet again

2020-09-13 Thread Thomas A. Schmitz
Line is Poetic\par % needed, otherwise last line is not indented correctly \stoplinenumbering \column Two \stopcolumnset \stoptext 3. Same example without the first line: line numbers, but width is ignored; both columns are of width 0.5\textwidth. 4. page columns: always start at new page. 5. \

Re: [NTG-context] styling individual parts of ToC entry

2020-09-08 Thread jbf
ects the minor problem of including the author name correctly, even when there is no year range. Thank you. But since I use \title, not \chapter, for the frontmatter items, ( Foreword, Preface, A note on Contributors), the ChapterListCommand clearly does not apply, so currently my ToC looks as f

[NTG-context] About Metapost and patterns, tessellations, fractals, etc.

2020-09-07 Thread Jairo A. del Rio
uot;: angle := (angle + 90) mod 360; else: if lua.MP.kochchar(i,n) = "-": angle := (angle - 90) mod 360; fi fi fi endfor; draw q scaled u; enddef; koch_curve(5, 5mm); %koch_curve(6, 5mm); does not give a right output \stopMPpage Maybe there's a fabulous trick to make it work with larger n

Re: [NTG-context] styling individual parts of ToC entry

2020-09-06 Thread Wolfgang Schuster
ChapterListCommand clearly does not apply, so currently my ToC looks as follows (leaving out the pg numbers which correctly align right):                     Foreword                     A. Uthor                            Preface                     A. Uthor                             A note on

Re: [NTG-context] styling individual parts of ToC entry

2020-09-06 Thread jbf
currently my ToC looks as follows (leaving out the pg numbers which correctly align right):                     Foreword                     A. Uthor                            Preface                     A. Uthor                             A note on contributors Chapter One        Year

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-04 Thread Jan Willem Flamma
doublesided,  location=right]    % Pagenumbering style\definestructureconversionset    [frontpart:pagenumber][][romannumerals]\definestructureconversionset    [bodypart:pagenumber]

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread jbf
Start chapter on right (odd) page, pagenumber = bottom right \setuppagenumbering [alternative=doublesided,  location=right] % Pagenumbering style \definestructureconversionset [frontpart:pagenumber][][romannumerals] \definestructureconversionset [bodypart:pagenumber] [][nu

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-03 Thread Jan Willem Flamma
]    % Pagenumbering style\definestructureconversionset    [frontpart:pagenumber][][romannumerals]\definestructureconversionset    [bodypart:pagenumber] [][numbers]\definestructureconversionset    [appendix:pagenumber] [][numbers]=   The fm-frontpage.tex file

Re: [NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread Wolfgang Schuster
know why this is happening. My setup for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][nu

[NTG-context] \setupuserpagenumber not working as expected

2020-09-02 Thread jbf
for page numbering is as follows (something I found somewhere - wiki? elsewhere? Not sure. I didn't make it up!): \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \startsectionblockenvironment[fron

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
the paragraphs of some (by)laws that were changed a lot and use a >>> numbering like 1, 2, 3, 3a, 4, 7... >>> Something like >>> \startitem[number={R}] >>> or >>> \startsection[number={3a}] >>> would be nice. >>> If I set it to an i

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
he previous calculated number. Would that be possible? You can set your own section numbers but the counter isn't stopped. Thank you! I overlooked "ownnumber". It works for sections, but not for items or floats. \setnumber[section][10] doesn’t work, \setcounter the same (acc

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm
that were changed a lot and use a >> numbering like 1, 2, 3, 3a, 4, 7... >> Something like >> \startitem[number={R}] >> or >> \startsection[number={3a}] >> would be nice. >> If I set it to an integer, ConTeXt should set the counter accordingly, &g

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster
, 4, 7... Something like \startitem[number={R}] or \startsection[number={3a}] would be nice. If I set it to an integer, ConTeXt should set the counter accordingly, otherwise continue counting from the previous calculated number. Would that be possible? You can set your own section numbers bu

Re: [NTG-context] color question

2020-08-24 Thread Henning Hraban Ramm
have predefined color names like lighgray already been defined in, say > cmyk terms behind the scenes, or must I instead > \definecolor[lightgray][c=10,m=7,y=5,k=0], (or perhaps \definespotcolor > with those dimensions, or do I need both)? First: Color parts use decimal numbers

Re: [NTG-context] Chapter numbering after \part

2020-08-20 Thread Wolfgang Schuster
jbf schrieb am 21.08.2020 um 04:27: By default, chapter numbers coming after \part are numbered 1.1... 2.1... and so on. But in my case I need them to still be simply 1,2... for each part. Is there a way I can get this numbering to occur? I thought I could do it using ownnumber=, but that

[NTG-context] Chapter numbering after \part

2020-08-20 Thread jbf
By default, chapter numbers coming after \part are numbered 1.1... 2.1... and so on. But in my case I need them to still be simply 1,2... for each part. Is there a way I can get this numbering to occur? I thought I could do it using ownnumber=, but that doesn't work. Then I tried a m

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread jbf
gh the Metafun manual, and I think I can understand how to overlay text on a graphic (MP), but it would be currently beyond me to draw numbers of the kind we find in, say, the Memoir examples. Has anyone created such an example? I was keenly looking for one in the manual and elsewhere, in terms of

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread Otared Kavian
ightgray number). Of course, I am assuming I would >>> need to use Metafun to create this... >>> >>> So my first question is to ask if I could achieve the same effect >>> without Metafun? >>> >>> I have read through the Metafun manual, and I thi

Re: [NTG-context] Same counter for figures as theorems

2020-08-18 Thread Tim Steenvoorden
Hi Taco, Thanks! This works for me. It indeed seems at least inconsistent. Also, using \definecounter[enumeration][object] instead of \setupenumeration[enumeration][counter=object] Numbers figures correctly but forgets the object counter in enumerations, it numbers 1.1., 1.1

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
to create this... So my first question is to ask if I could achieve the same effect without Metafun? I have read through the Metafun manual, and I think I can understand how to overlay text on a graphic (MP), but it would be currently beyond me to draw numbers of the kind we find in, say, the

Re: [NTG-context] memoir-style chapter heading

2020-08-17 Thread jbf
first question is to ask if I could achieve the same effect without Metafun? I have read through the Metafun manual, and I think I can understand how to overlay text on a graphic (MP), but it would be currently beyond me to draw numbers of the kind we find in, say, the Memoir examples. Has anyone cr

Re: [NTG-context] memoir-style chapter heading

2020-08-16 Thread Aditya Mahajan
s... > > So my first question is to ask if I could achieve the same effect > without Metafun? > > I have read through the Metafun manual, and I think I can understand how > to overlay text on a graphic (MP), but it would be currently beyond me > to draw numbers of the

[NTG-context] memoir-style chapter heading

2020-08-16 Thread jbf
achieve the same effect without Metafun? I have read through the Metafun manual, and I think I can understand how to overlay text on a graphic (MP), but it would be currently beyond me to draw numbers of the kind we find in, say, the Memoir examples. Has anyone created such an example? I was

Re: [NTG-context] Same counter for figures as theorems

2020-08-14 Thread Taco Hoekwater
n wrote: > > Hi Taco, > > Thanks for your example and the pointer to make a MWE. > > Sadly, it doesn’t work for me. It numbers the first enumeration 1.1.1 and the > first figure _also_ 1.1.1, which I’d like to be 1.1.2. > > This time, you’ll find the code and the output

Re: [NTG-context] Same counter for figures as theorems

2020-08-14 Thread Tim Steenvoorden
Hi Taco, Thanks for your example and the pointer to make a MWE. Sadly, it doesn’t work for me. It numbers the first enumeration 1.1.1 and the first figure _also_ 1.1.1, which I’d like to be 1.1.2. This time, you’ll find the code and the output pdf in the attachment! Cheers, Tim P.S. I’m on

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 chap

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 probl

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

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 pag

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 afte

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: \setuppagenumbering[alternati

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

2020-08-12 Thread Nicola
ment >> >> 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

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

2020-08-11 Thread Wolfgang Schuster
. 2. Set 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]{\simpl

<    1   2   3   4   5   6   7   8   9   10   >