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

2024-09-09 Thread Wolfgang Schuster
. You save only 1 pagestate with index 0 but you try to access the data of the pagestates with index 1 to 10. 2. What do you try to achieve here? Wolfgang ___ If your question is of interest to others as well, pleas

[NTG-context] Problem with end note processing

2024-08-31 Thread Rik Kabel
][] \starttext text\endnote[-]{end note} text\endnote{end note} %text\endnote[-]{end note} \placenotes[end note] \stoptext When run as shown, both end notes get indices, but the first should not. When the commented line is enabled, none of the three end notes gets an index, but the

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

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

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

2024-08-31 Thread M U via ntg-context
e fair, I have asked that a while ago (with MkIV). > > It would be great to have these page glossaries as language aids. > > Right now, they need to be composed manually (using a word processor, no > TeX). > > Many thanks for your help, > > Pablo Perhaps a feaseble wo

[NTG-context] index entry with sorting and processor

2024-08-25 Thread Henning Hraban Ramm
Hi again, the page number of register entries from a glossary should have a different color: \defineprocessor[glossar][color=green] \define[1]\GlIndex{\index[glossar->]{#1}} This works, but I’d like to apply a macro to the text, and then I need to set the sort order: \define[1]\GlIn

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

2024-08-25 Thread Henning Hraban Ramm
Am 25.08.24 um 15:38 schrieb Joel via ntg-context: I have a document with thousands of index entries. Here’s a sample code: Some people lived in \index{cliff-dwelling}\index{dwellings+cliff-dwelling}cliff-dwellings, while others lived in \index{lean-to}\index{dwellings+lean-to}lean-tos

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

2024-08-25 Thread Joel via ntg-context
I have a document with thousands of index entries. Here’s a samplecode: \starttext Some people livedin \index{cliff-dwelling}cliff-dwellings, while others lived in\index{lean-to}lean-tos. \placeindex \stoptext This produces anindex like this: c cliff-dwelling 1 l

[NTG-context] how to set OSFONTDIR to find font under the path com_apple_MobileAsset_Font7 in macOS ?

2024-08-17 Thread ai2472206007
ibrary/AssetsV2/com_apple_MobileAsset_Font7. But why can't I retrieve the font in this path? I've rebuilt the index after setting up the environment. Thanks for the help.

[NTG-context] Re: How to hide any content?

2024-07-30 Thread Hans Hagen via ntg-context
On 7/30/2024 1:04 AM, Joel wrote: By meaning it is a minimum working example, it demonstrates the problem, but not in all situations I use. Basically at the start of a chapter or section, I have tons of metadata. This is information in \index{} (and some custom index like \dateis that

[NTG-context] Re: How to hide any content?

2024-07-29 Thread Joel via ntg-context
By meaning it is a minimum working example, it demonstrates the problem, but not in all situations I use. Basically at the start of a chapter or section, I have tons of metadata. This is information in \index{} (and some custom index like \dateis that generates a time line), information placed

[NTG-context] How to hide any content?

2024-07-25 Thread Joel via ntg-context
ly don’t remove the extra page break, orlead to the actual content within breaking: for instance, if there’san \index{} entry inside the macro, its page number won’t renderproperly in the end-of-document index. Or if there’s a \reference,other code attempting to display the page number j

[NTG-context] Re: index sort order (de)

2024-07-08 Thread Hans Hagen via ntg-context
On 7/7/2024 11:46 AM, Henning Hraban Ramm wrote: Would any of the German users object to a change of the default? Well, I'm sure that you can guess which german you need to convince for me to change it (apply a patch) without second thought. Hans --

[NTG-context] Re: processor for index sub-entry?

2024-07-07 Thread Henning Hraban Ramm
Am 07.07.24 um 18:01 schrieb Wolfgang Schuster: Henning Hraban Ramm schrieb am 05.07.2024 um 22:36: Hi, is it possible to apply a processor to an index sub-entry? \index{Modules+\type{filter}} looks good, but "filter" is sorted under "type". \defineprocessor[type][style=

[NTG-context] Re: processor for index sub-entry?

2024-07-07 Thread Wolfgang Schuster
Henning Hraban Ramm schrieb am 05.07.2024 um 22:36: Hi, is it possible to apply a processor to an index sub-entry? \index{Modules+\type{filter}} looks good, but "filter" is sorted under "type". \defineprocessor[type][style=mono] \index{Modules+type->filter} results in a

[NTG-context] Re: index sort order (de)

2024-07-07 Thread Henning Hraban Ramm
Would any of the German users object to a change of the default? Am 14.05.24 um 18:57 schrieb Henning Hraban Ramm: Hi, I checked the German index sorting rules, and as far as I can tell, all of them are somewhat wrong. – de, default, or no setting (just mainlanguage de) – Duden - DIN 5007-1

[NTG-context] processor for index sub-entry?

2024-07-05 Thread Henning Hraban Ramm
Hi, is it possible to apply a processor to an index sub-entry? \index{Modules+\type{filter}} looks good, but "filter" is sorted under "type". \defineprocessor[type][style=mono] \index{Modules+type->filter} results in a "Modules / type->filter" entry. \index[

[NTG-context] Re: Cite-proc Lua - Following up

2024-06-12 Thread Max Chernoff
eproc-latex-core.lua index 3057c5d..95c917a 100644 --- a/citeproc/citeproc-latex-core.lua +++ b/citeproc/citeproc-latex-core.lua @@ -260,6 +260,7 @@ end local function parse_latex_seq(s) local t = {} for item in string.gmatch(s, "(%b{})") do +l

[NTG-context] Re: Bibliography: separating different kinds of literature OR Sectioning bibliography by type

2024-06-09 Thread Ben Moon via ntg-context
=main] \definebtxrendering[bibrendering][mybib, aps][dataset=main] \starttext \cite[herbariumathome] \cite[zooniverse_logo] \section{Quellen: Bilder} %\placelistofpublications[bibrendering] \flushbtxrendering [bibrendering] [method=dataset, sorttype=index, filter=match(category:imagelink)] \section{Quellen: Webs

[NTG-context] Re: Bibliography: separating different kinds of literature OR Sectioning bibliography by type

2024-06-09 Thread Alan Braslau via ntg-context
Try something like: \flushbtxrendering [bibrendering] [method=dataset, sorttype=index, filter=match(category:article)] I have used the filtering mechanism to select fields, such as filter=match(year:2023). Alan On Tue, 4 Jun 2024 15:20:14 +0200 Ben Moon via ntg

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
; > lua error > lua error on line 19 in file ./input.tex: > > > > registered function call [969]: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: attempt > > to index a nil value (field '?') > > stack traceback: > >

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-29 Thread Sylvain Hubert
l > > \stopsectionlevel > > \stopsectionlevel > > \stopsectionlevel > > \stoptext > > > > lua error > lua error on line 19 in file ./input.tex: > > > > registered function call [969]: > > ...mtx/tex/texmf-context/tex/context/base/mkiv/s

[NTG-context] Re: lua error in `strc-lev.lua`

2024-05-28 Thread Denis Maier via ntg-context
trc-lev.lua:75: attempt to index a nil value (field '?') stack traceback: ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: in function <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66>

[NTG-context] lua error in `strc-lev.lua`

2024-05-28 Thread Sylvain Hubert
trc-lev.lua:75: attempt to index a nil value (field '?') stack traceback: ...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:75: in function <...mtx/tex/texmf-context/tex/context/base/mkiv/strc-lev.lua:66>

[NTG-context] index sort order (de)

2024-05-14 Thread Henning Hraban Ramm
Hi, I checked the German index sorting rules, and as far as I can tell, all of them are somewhat wrong. – de, default, or no setting (just mainlanguage de) – Duden - DIN 5007-1(:2005) - DIN 5007-2(:1996) - de-AT IMO, "Duden" is obsolete, should be the same as default; it makes no

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

2024-05-10 Thread Joel via ntg-context
]                    \placeregister[learnedlong,workbookA,workbookB,workbookC,workbookD]         \stopchapter I setup a custon index that lists items from four different workbooks. The problem is in the indexi, it displays entreis like this: WHST.1.1: 11, 231, WB 1: 124, WB 1: 133, WB 2: 325, WB 2: 345, etc. In

[NTG-context] How to place text, but make it completely hidden from viewers?

2024-05-09 Thread Joel via ntg-context
I have found a few situations is confusing/breaking ConTeXt: - Footnotes inside tables, figures, frames, margins (won't render the cited item). - Custom index items inside those items (displays "entry not flushed"). My workaround has been to define a size 0 font \tfz, then put it i

[NTG-context] Re: more register questions!

2024-05-07 Thread Rik Kabel
footnote counter with the third (optional) argument. \def\IndexPageCommand#1%   {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote}}}} \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\s

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
[test] Dummy text.Dummy footnote. Dummy text.Dummy footnote. \stopbuffer \startxmlsetups xml:testsetups \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{document|chapter|p|footnote|indexentry|index}{xml:*} \stopxmlsetups \xmlregistersetup{xml:testsetups} \startxmlsetups xml:document \xml

[NTG-context] Re: more register questions!

2024-05-03 Thread Thomas A. Schmitz
wrote: I did something like that, with a processor that added a "n" after the occurrence page number. Since you typeset XML, maybe you can detect that an index (register) reference happens inside a note from the DOM element you are typesetting. Then you use a command like thi

[NTG-context] Re: more register questions!

2024-05-03 Thread Wolfgang Schuster
te counter with the third (optional) argument. \def\IndexPageCommand#1%   {#1\doifsomething {\currentregisterpageuserdata{footnote}} {\high{\currentregisterpageuserdata{footnote}}}} \setupregister[index][pagecommand=\IndexPageCommand] \starttext \dorecurse{200} {\samplefile{lorem}\e

[NTG-context] Re: more register questions!

2024-05-02 Thread mf
ince you typeset XML, maybe you can detect that an index (register) reference happens inside a note from the DOM element you are typesetting. Then you use a command like this: \index[NoteProcessor->sortkey]{index term} where NoteProcessor is defined like this: \defineprocessor[NoteProcessor][ri

[NTG-context] Re: start/stopregister

2024-04-26 Thread Hans Hagen
On 4/26/2024 9:54 AM, Thomas A. Schmitz wrote: On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext A

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
On 4/26/24 9:30 AM, Thomas A. Schmitz wrote: And here I am again! Both in mkiv and in mkxl, start/stopregister does not work when there is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext     A\index{A} B \page     A\startregister [index] {A} B

[NTG-context] Re: start/stopregister

2024-04-26 Thread Thomas A. Schmitz
is already an index entry before. Example below! All best Thomas \setuppapersize [A6] \starttext A\index{A} B \page A\startregister [index] {A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\stopregister [index] {A} B\stopregister [index] [B] \page

[NTG-context] Re: start/stopregister

2024-04-25 Thread Hans Hagen
On 4/25/2024 4:51 PM, Taco Hoekwater wrote: On 25 Apr 2024, at 16:45, Thomas A. Schmitz wrote: On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can

[NTG-context] Re: start/stopregister

2024-04-25 Thread Taco Hoekwater
> On 25 Apr 2024, at 16:45, Thomas A. Schmitz > wrote: > > On 4/25/24 16:13, Henning Hraban Ramm wrote: >> I’m using it like >> \startregister[index][bibliografie]{Bibliografie} >> … >> \stopregister[index][bibliografie] >> i.e. very similar to your

[NTG-context] Re: start/stopregister

2024-04-25 Thread Thomas A. Schmitz
On 4/25/24 16:13, Henning Hraban Ramm wrote: I’m using it like \startregister[index][bibliografie]{Bibliografie} … \stopregister[index][bibliografie] i.e. very similar to your example, and can confirm it doesn’t result in a page range in the index. Also gives no error. Since I've beco

[NTG-context] Re: start/stopregister

2024-04-25 Thread Henning Hraban Ramm
ot in mkxl. All best Thomas \setuppapersize [A6] \starttext     A\index{A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte}     A\index{A} B\stopregister [index] [B] \page \placeregister[index] \stoptext I’m using it like \startregister[index][bibliografie]{Bibliog

[NTG-context] start/stopregister

2024-04-25 Thread Thomas A. Schmitz
e [A6] \starttext A\index{A} B\startregister [index] [B] {B} \dorecurse {10} {\input tufte} A\index{A} B\stopregister [index] [B] \page \placeregister[index] \stoptext ___ If your question is of int

[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Hraban Ramm
d]{\bf #1}\autoinsertnextspace} … \startsection[title=Lists] \TODO{Research the options of \tex{setupitemgroup}!} \stopsection … \startchapter[title=Work list]   Sections that still need work.\blank  \placetodos \stopchapter So I get a prominent marker in the content and the title of the affected section a

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-14 Thread Jim
uot; colour model does not currently work properly. This is > internally used by "\usepgfplotslibrary[colorbrewer]" among others. > See https://github.com/pgf-tikz/pgf/pull/1130 . > Thanks, > -- Max > diff --git a/tex/generic/pgf/utilities/pgfutil-context.def > b/te

[NTG-context] PDF, runner, and TikZ patches

2024-03-14 Thread Max Chernoff
work properly. This is internally used by "\usepgfplotslibrary[colorbrewer]" among others. See https://github.com/pgf-tikz/pgf/pull/1130 . Thanks, -- Max diff --git a/tex/generic/pgf/utilities/pgfutil-context.def b/tex/generic/pgf/utilities/pgfutil-context.def index eddab09ab.

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
7: > After many hours of trial-and-error, I was able to recreate the problem > in a minimum working example: > > file main.tex only contains: > > \starttext > >      \index{birds} >      \index{insects} > >      \input secondary > >      \placeindex >

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
What is an anchor? Does that mean the index needs to me next to some items, like placed next to some text? On Wednesday, March 13, 2024 at 04:46:54 PM MDT, Wolfgang Schuster wrote: Joel via ntg-context schrieb am 13.03.2024 um 23:27: > After many hours of trial-and-error, I was a

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Wolfgang Schuster
Joel via ntg-context schrieb am 13.03.2024 um 23:27: After many hours of trial-and-error, I was able to recreate the problem in a minimum working example: file main.tex only contains: \starttext     \index{birds}     \index{insects}     \input secondary     \placeindex \stoptext file

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
After many hours of trial-and-error, I was able to recreate the problem in a minimum working example: file main.tex only contains: \starttext     \index{birds}     \index{insects}          \input secondary          \placeindex      \stoptext file secondary.tex only contains:    \index

[NTG-context] Re: How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
d as being present, so the index will still point to that particular page. This solution seems to be what's causing the [entry not flushed] error in the index. Is there another solution instead of startnointerferencethat will hide text or any content but still allow page references to lin

[NTG-context] How to track down source of [entry not flushed] displaying in indexes?

2024-03-13 Thread Joel via ntg-context
I have some custom registers that I use to index some information. When compiled, it just prints [entry not flushed] instead of printing some of the page numbers. I have tens of thousands of lines of code, so have no idea how to break the problem down to a minimal example. What does [entry not

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
; flushing realpage 139, userpage 139, subpage 139 ∑ tex error > tex error on line 85 in file ./IntroEstadísticaNP.tex: lua error: registered function call [250]: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: attempt to index a nil value (local 'a2') stack trac

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
il.com>) escribió: > >> I keep bumping into this error, I have no idea what may be causing it, in >> a statistics book with lots of math: >> >> registered function call [250]: >> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to >>

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
onr...@gmail.com>) escribió: > I keep bumping into this error, I have no idea what may be causing it, in > a statistics book with lots of math: > > registered function call [250]: > ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to > index a nil value (local

[NTG-context] Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
I keep bumping into this error, I have no idea what may be causing it, in a statistics book with lots of math: registered function call [250]: ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to index a nil value (local 'a2') I have checked everything. I

[NTG-context] Re: An announcement of my new book.

2024-02-13 Thread Peter Hopcroft via ntg-context
is more of an index to the existing documentation that is not out of date, with perhaps some simple examples. One case that comes to mind is to pass a couple of numbers to Lua, have it do a calculation and use the result in Context. Regards, Peter > On 14/02/2024, at 9:03 AM, Sir Coleman via

[NTG-context] Re: chronological TOC

2024-01-30 Thread BPJ
er back in the nineties I used numeric sort keys for a Sanskrit index where the letters were Latin (with lots of diacritics) but the sort order was Indic (a, ā, i, ī, ... k, kh, g, gh, ...). I assigned a two-digit "number" (01, 02, 03, ...) to each grapheme and the sort key c

[NTG-context] Re: chronological TOC

2024-01-29 Thread jbf
me it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017-04-29]{Speech, Panama City} to your chapter c

[NTG-context] Re: chronological TOC

2024-01-29 Thread Bruce Horrocks
er. How do I get the date >>> (e.g. 29 April 2017) to be the ordering factor in the list. I assume it >>> will be something to do with criterium, but am clueless at the moment on >>> how to indicate this. >> I don’t know if it works this way (the wizards will know

[NTG-context] Re: chronological TOC

2024-01-29 Thread Wolfgang Schuster
2017) to be the ordering factor in the list. I assume it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017

[NTG-context] Re: chronological TOC

2024-01-27 Thread Henning Hraban Ramm
it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017-04-29]{Speech, Panama City} to your chapter command

[NTG-context] Re: upload

2024-01-18 Thread Hans Hagen
prime, in the second case a prime symbol in a superscript; in lmtx we have for each nucleus a presubscript, presuperscript, subscript, superscript and primescript (plus index ones) Hans -

[NTG-context] Suggestions and problems of the manuals

2024-01-17 Thread Gerion Entrup
1 From: Gerion Entrup Date: Tue, 16 Jan 2024 23:40:40 +0100 Subject: [PATCH] units-mkiv: improve - typos - remove getbuffer without context - demonstrate usage of pm and to --- doc/context/sources/general/manuals/units/units-mkiv.tex | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) dif

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
it will not be too pretty with such a large sub-index to the sum. > > There is also > > \sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack} > > which imitates the \substack command from latex. > > OT but it is better to use on

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to the sum. There is also \sum_{\startsubstack \NC a \NR \N

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Shiv Shankar Dayal
It works nicely. You are a lifesaver. Thanks a lot. On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Mikael Sundqvist
Hi, you can try something like \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} but it will not be too pretty with such a large sub-index to the sum. /Mikael On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal wrote: > > I have following formula > \sum_{k=0\\ k\equiv p +

[NTG-context] Re: font error in float placement?

2024-01-14 Thread Hans Hagen via ntg-context
Hi, to index a nil value (field 'embed') fixed in next upload (this merge upgrade is a bit work in progress) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27

[NTG-context] font error in float placement?

2024-01-13 Thread Henning Hraban Ramm
://yemaya.fiee.net/s/8TqwfcP7mLMmy9p (In a simple document it works.) Hraban """ lua error > lua error on line 516 in file de/c_feinheiten.tex: registered function call [1565]: ...xmf-context/tex/context/base/mkxl/lpdf-fix-imp-fonts.lmt:596: attempt to index a nil value (fie

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-24 Thread Wolfgang Schuster
why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms    [abbreviation] [abbreviations] [\AbbreviationsFull] \setups

[NTG-context] Re: \setupsynonyms textstyle=cap failing

2023-12-23 Thread Bruce Horrocks
x27;0'. (If you can't figure out why > I > needed to see a number, look up 'weird error' in the index to The TeXbook.) > mtx-context | fatal error: return code: 1 > > It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) > >

[NTG-context] \setupsynonyms textstyle=cap failing

2023-12-23 Thread Garulfo
;weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 It works on https://context-on-web.eu (ConTeXt version : 2022.12.22 22:17) \definesynonyms    [abbreviation] [abbreviations] [\AbbreviationsFull] \setupsynonyms [abbreviation] [textstyle=bold] \s

[NTG-context] Re: xmlpos values doubled

2023-11-22 Thread Hans Hagen
, it seems that \xmlpos{#1} returns duplicate values. This might indeed be the intended meaning of \xmlpos{#1} as it seems related to the XML query foo/bar/index() which only looks up the position in the parent node. (I noticed that if I run this repeatedly, I get somehow different values from times

[NTG-context] Re: xmlpos values doubled

2023-11-21 Thread Benjamin Buchmuller
This might indeed be the intended meaning of \xmlpos{#1} as it seems related to the XML query foo/bar/index() which only looks up the position in the parent node. (I noticed that if I run this repeatedly, I get somehow different values from times to times. I can't say why.) Anyways, I w

[NTG-context] Problem with textstyle

2023-11-17 Thread Rik Kabel
Hello list, The following example does not compile, complaining “Missing number, treated as zero needed to see a number, look up 'weird error' in the index to The TeXbook”: \setuphead   [chapter] [   tex

[NTG-context] Re: typearea

2023-10-29 Thread Thomas Meyer
t figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 Line 89 in the module should be the problem. But how can I solve it? I think some lines in the module should be commented out. (An example

[NTG-context] typearea

2023-10-29 Thread Thomas Meyer
ing[alternative=doublesided] 97 \starttext 98 \dorecurse4{\framed[width=\textwidth,height=\textheight]{test}\page} 99 \stoptext A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Hans Hagen
ase/mkxl/math-fnt.lmt:56: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: in metamethod 'index' ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:104: in function <...ext/tex/texmf-context/tex/context/base/mkxl

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Pablo Rodriguez
install-lmtx/context-linux-64.zip) and I got the same error again. Just in case it might help, Pablo PS: here is the error again: tex error > tex error on line 10 in file ./a.tex: lua error: run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: tab

[NTG-context] Re: Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Mikael Sundqvist
t{if } i = j \NR > \NC 0 \NC \text{otherwise} \NR > \stopmathcases > \stopformula > \stoptext > > The error is : > run callback [44]: > ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index > is nil\nstack traceback:\n > ...ext/tex/texmf-cont

[NTG-context] Issue : compilation error when using mathcases with pagella fonts (and others)

2023-09-24 Thread Vincent Picard
ttext \startformula \delta_{ij} = \startmathcases \NC 1 \NC \text{if } i = j \NR \NC 0 \NC \text{otherwise} \NR \stopmathcases \stopformula \stoptext The error is : run callback [44]: ...ext/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt:56: table index is nil\nstack traceback:\n ...ext/tex/

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Hans Hagen
nnotations, instead of the name from EmbeddedFiles/Names in the target dictionary, it requires the keys P and A (as numbers or strings). P gives the page number which contains the file annotation: zero-based as number, or named destination as string. A gives the annotation: zero-based ind

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
the target dictionary, it requires the keys P and A (as numbers or strings). P gives the page number which contains the file annotation: zero-based as number, or named destination as string. A gives the annotation: zero-based index of the annotation in the Annots array, or NM entry value from t

[NTG-context] Re: your opinion about list structures

2023-08-22 Thread denis.maier
long. I would probably hardly use it. > > Maybe it would be better to show only chapters (29 content + 12 appendix = 2 > pages) and include a list of sections after the chapter title (or not at all). > > [Registers] > > I split between command and topic index (9 pages each), beca

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Wolfgang Schuster
The error message is about line 276 in one of your included files but we need the content of the faulty file. To get the faulty file comment your input line until the error disappears, ensure to delete the tuc file (context --purge) because sometimes index/register entries are the problem

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Hans Hagen
st > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index}

[NTG-context] An error which is not in .log file

2023-08-15 Thread Xavier B.
'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Hans Hagen via ntg-context
[ConcurrentTextSetCounter]% \setxvariable {concurrent} {text:\rawcountervalue[ConcurrentTextSetCounter]} {#1}} % Account for the counter incrementing twice and the index being 1-based. \def\ConcurrentTextGet{% \incrementnumber[ConcurrentTextGetCounter]% \getvariable

[NTG-context] Re: Pass string into text background graphic

2023-08-12 Thread Thangalin
tTextSetCounter]} {#1}} % Account for the counter incrementing twice and the index being 1-based. \def\ConcurrentTextGet{% \incrementnumber[ConcurrentTextGetCounter]% \getvariable {concurrent} {text:\number\numexpr1+\rawcountervalue[ConcurrentTextGetCounter]/2\relax}} \startuseMP

[NTG-context] Re: xml: matches always child of other element

2023-08-10 Thread Hans Hagen via ntg-context
uot;test \par" to see the side effects (twice one versus 1/2) it's kind of hard to debug this, i admit, Hans %% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml:*} \xmls

[NTG-context] Re: your opinion about list structures

2023-08-10 Thread Keith McKay
list inordinately long. [Registers] My own preference would be a command and a topic index if only for convenience sake. [Glossary] I don't think an index of abbreviations is necessary if they are already in the index. [Other Lists] I don't think a list of colours is necessary, you co

[NTG-context] your opinion about list structures

2023-08-10 Thread Henning Hraban Ramm
chapter title (or not at all). [Registers] I split between command and topic index (9 pages each), because I find it annoying to have the commands between the topics. I also include the topics that are mentioned in titles in the index, because I hate it if I must look in two places. (Otherwise I

[NTG-context] Re: xml: matches always child of other element

2023-07-27 Thread denis.maier
iant), but I'd still be interested in understanding what is happening here. Does anyone know? Or is there anything I'm doing wrong here? Best, Denis %% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlset

[NTG-context] Problems with luametatex and texlive on OpenBSD

2023-07-27 Thread Edd Barrett
: node-nut.lmt:22: attempt to index a nil value (local 'nodecodes') (full log below) As far as I can see, I've set up the system in the same way as the other downstream packagers have (according to https://github.com/contextgarden/luametatex/issues/1 and https://wiki.contextgarden.n

[NTG-context] Re: xml: matches always child of other element

2023-07-24 Thread denis.maier
Interestingly, we should be in the right subtree as this modified example is supposed to demonstrate (we're getting the correct numbers under each index-entry-term, just the terms are incorrect in all but the first case): \startxmlsetups xml:test \xmlsetset

[NTG-context] xml: matches always child of other element

2023-07-24 Thread denis.maier
\startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml:*} \xmlsetsetup{#1}{index-entry}{xml:index-entry} %\xmlsetsetup{#1}{index-entry}{xml:index-entry-2} \xmlsetsetup{#1}{term}{xml:index-entry-term

[NTG-context] \version[temporary] fatal error

2023-07-23 Thread Jacob Kauffmann via ntg-context
n here; I inserted '0'. (If you can't figure out why I needed to see a number, look up 'weird error' in the index to The TeXbook.) mtx-context | fatal error: return code: 1 signature.asc Descri

[NTG-context] mtxrun scripts

2023-07-18 Thread Henning Hraban Ramm
I tried some of the mtxrun scripts: * "colors" runs into an error: $ mtxrun --script colors --table ~/texmf/colors/icc/profiles/sgray.icc lua error : function call: ...-07/tex/texmf-context/scripts/context/lua/mtx-colors.lua:56: attempt to index a nil value (global 'colors&#

[NTG-context] Re: problem with symbols in index

2023-07-18 Thread Floris van Manen via ntg-context
On 17/07/2023 23:37, Henning Hraban Ramm wrote: Also, "context --purge" doesn’t delete the tuc file (don’t know if that changed), so the wrong entry stuck in there, and my code changes didn’t affect it. not does it remove the log file _

[NTG-context] problem with symbols in index

2023-07-17 Thread Henning Hraban Ramm
I hunted for two days after an index error in my book: """ structure > sectioning > chapter @ level 2 : 0.1 -> Sachregister tex error > tex error on line 95 in file ./prd_test.tex: The file ended when scanning an argument. {\startregisterentrie

[NTG-context] Re: access image properties in Lua

2023-07-17 Thread Alan Braslau via ntg-context
{filename = figures.current().status.fullname} if I understand this right, "img" isn’t valid anymore: """ token call, execute: grph-imagelib.lua:37: attempt to index a nil value (global 'img') """ I’d like to know the pixel size and if possible al

[NTG-context] Re: access image properties in Lua

2023-07-13 Thread Hans Hagen
I understand this right, "img" isn’t valid anymore: """ token call, execute: grph-imagelib.lua:37: attempt to index a nil value (global 'img') """ I’d like to know the pixel size and if possible also the scaled target size of an image; eit

[NTG-context] access image properties in Lua

2023-07-11 Thread Henning Hraban Ramm
sn’t valid anymore: """ token call, execute: grph-imagelib.lua:37: attempt to index a nil value (global 'img') """ I’d like to know the pixel size and if possible also the scaled target size of an ima

  1   2   3   4   5   6   7   8   9   10   >