[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
g path '/System/Library/Fonts/**.ttf'otf reader      | fatal error in file '/System/Library/Fonts/SFCompactRounded.ttf': ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to index a nil value (field '?')stack traceback: ...-64/tex/texmf-context/tex/contex

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
c, >> latinmodern-math.otf, lmroman10-italic.otf, lmroman10-regular.otf >> >> >> Erase cache, regenerate formats, reload fonts (force) does give another >> (probably unrelated) error: >> >> fonts | names | identifying system font files with su

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
' > fonts | names | globbing path '/Library/Fonts/**.ttf' > fonts | names | globbing path '/System/Library/Fonts/**.ttf' > otf reader | fatal error in file > '/System/Library/Fonts/SFCompactRounded.ttf': > ...-64/tex/texmf-

[NTG-context] Re: {\rm foo {\it bar}}

2023-07-04 Thread Gerben Wierda
ts | names | globbing path '/System/Library/Fonts/**.ttf' otf reader | fatal error in file '/System/Library/Fonts/SFCompactRounded.ttf': ...-64/tex/texmf-context/tex/context/base/mkiv/font-dsp.lua:3689: attempt to index a nil value (field '?') stack

Re: [NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
Am 27.06.23 um 21:01 schrieb Wolfgang Schuster via ntg-context: Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Someth

Re: [NTG-context] expansion of section title

2023-06-27 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end of the book \chapter

[NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
I think I had a good idea how to keep an overview of the “todos” in my book project: \defineregister[todos] % add a "todos" index entry with the current section title \define[1]\TODO{\todos{\structurevariable{title}}} \chapter{Something} \TODO{This is still empty!} % at the end o

[NTG-context] [ error installing fresh lmtx]

2023-05-29 Thread vm via ntg-context
a' succeeded resolvers > lua > loading file '/home/vm/context/tex/texmf-context/tex/context/base/mkiv/lxml-tab.lua' succeeded ...ext/tex/texmf-context/tex/context/base/mkiv/lxml-lpt.lua:64: attempt to index a nil value (local 'xml') stack traceback: ...

[NTG-context] dirty tricks

2023-05-28 Thread Hans Hagen via ntg-context
\samplefile{ward} % let's see what their demerits are {\tt \the\lousiness} % and overload one of them (index 11) \hsize8cm \silliness 11 \samplefile{ward} % do how about overloading more (index 11 and 8) \hsize8cm \lousiness 2 11 0 8 200 \samplefile{ward} \stoptext A

Re: [NTG-context] Noto Emoji COLRv1

2023-05-24 Thread Hans Hagen via ntg-context
colr type 2 paint format 0 otf reader > unsupported colr type 2 paint format %i otf reader > fatal error in file 'Noto-COLRv1.ttf': ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: table index is nil stack traceback: ...ext/tex/texmf-conte

[NTG-context] Noto Emoji COLRv1

2023-05-23 Thread Max Chernoff via ntg-context
format %i otf reader > fatal error in file 'Noto-COLRv1.ttf': ...ext/tex/texmf-context/tex/context/base/mkxl/font-dsp.lmt:3575: table index is nil stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/font-otr.lua:2344: in metamethod 'newindex'

[NTG-context] position in xmlfilter

2023-05-22 Thread Hans van der Meer via ntg-context
[] i.e. returns nothing expecting a number return=[\xmlfilter{#1}{../index()}] returns [0] expecting a number larger than 0 return=[\xmlfilter{#1}{./index()}] returns [0] expecting a number larger than 0 dr. Hans van der Meer

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Alan Braslau via ntg-context
On Mon, 15 May 2023 01:37:53 + (UTC) Joel via ntg-context wrote: > Such a way would make it so \index{dogs} places an entry for "dog" > under "d" and "animals --> dogs" under "a". Might I suggest that an alternate way of handling this could

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Alan Braslau via ntg-context
On Mon, 15 May 2023 09:40:22 +0200 Hans Hagen via ntg-context wrote: > \starttexdefinition tolerant protected IndexB[#1]#:#*#2 > \index{#2} > \doloopoverlist {#1} { > \index{##1+#2} > } > \stoptexdefinition Awesome! However, I think that Joel was look

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Hans Hagen via ntg-context
On 5/15/2023 3:37 AM, Joel via ntg-context wrote: I have a document like this:     \starttext     \index{dogs}     \index{cats}     \index{flowers}     \index{snails}     \index{trees}     \placeindex     \stoptext As I understand, if you use \index

Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-14 Thread Henning Hraban Ramm via ntg-context
Am 15.05.23 um 03:37 schrieb Joel via ntg-context: I have a document like this:     \starttext     \index{dogs}     \index{cats}     \index{flowers}     \index{snails}     \index{trees}     \placeindex     \stoptext As I understand, if you use \index

[NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-14 Thread Joel via ntg-context
I have a document like this:     \starttext     \index{dogs}          \index{cats}          \index{flowers}          \index{snails}          \index{trees}          \placeindex          \stoptext      As I understand, if you use \index{animals+dogs

Re: [NTG-context] How to print all pages for a single index entry?

2023-05-07 Thread Alan Braslau via ntg-context
On Sun, 7 May 2023 22:26:12 + (UTC) Joel via ntg-context wrote: > I have an index like this: > > \starttext > \index{butterflies}\index{horses}\index{cows} > \placeindex > > \stoptext > The placeindex will place every index. > Is there a way to say, displ

[NTG-context] How to print all pages for a single index entry?

2023-05-07 Thread Joel via ntg-context
I have an index like this: \starttext \index{butterflies}\index{horses}\index{cows} \placeindex \stoptext The placeindex will place every index. Is there a way to say, display an index, but only for a specific single entry, or specific list of entries, e.g. \placeindex[horses, cows] (would

[NTG-context] How to fix indexes displaying [entry not flushed] with hidden data?

2023-05-07 Thread Joel via ntg-context
ence 2. \setbox\scratchbox=\vbox{} These both successfully seem to place the data there, without it actually being visible and bibliograhy entries still function fine. The problem is, index and customer registers are getting confused: When one goes to render the page numbers in \placeindex, it gets confus

Re: [NTG-context] cannot generate format file with current latest

2023-05-01 Thread Pablo Rodriguez via ntg-context
, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index >> a nil value (global 'posit') stack traceback: > > you're running the wrong binary Many thanks for your reply, Hans. I’m afraid I had to update the binaries manually

Re: [NTG-context] cannot generate format file with current latest

2023-04-30 Thread Hans Hagen via ntg-context
lowing error message: lua error > lua error on line 645 in file context.mkxl: token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index a nil value (global 'posit') stack traceback:

Re: [NTG-context] cannot generate format file with current latest

2023-04-30 Thread Bruce Horrocks via ntg-context
file with "context --make --all", I get > the following error message: > > lua error > lua error on line 645 in file context.mkxl: > > token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index > a nil value (global 'posit') stack trace

[NTG-context] cannot generate format file with current latest

2023-04-30 Thread Pablo Rodriguez via ntg-context
45 in file context.mkxl: token call, execute: ...ext/base/mkxl/cldf-pos.lmt:18: attempt to index a nil value (global 'posit') stack traceback: ...ext/base/mkxl/cldf-pos.lmt:18: in local 'code' ...ext/base/mkiv/util-lua.lua:96: in field 'loadedluacode'

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
fi endfor handle_line_style (vlist[nfrom]arc[vlist[nfrom]arc.last]sty, sty); vlist[nto]arc[vlist[nto]arc.last]lsr := vlist[nfrom]arc[vlist[nfrom]arc.last]lsr; fi nfrom := nto; endfor enddef; vardef handle_line_style (suffix sty) (expr name) = if valid_

Re: [NTG-context] attempt to index nil value with bidi math in hbox

2023-04-03 Thread Hans Hagen via ntg-context
-duc.lmt:618: attempt to index a nil value (local 'before') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: in upvalue 'resolve_weak' ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:781: in upv

[NTG-context] attempt to index nil value with bidi math in hbox

2023-04-02 Thread Max Chernoff via ntg-context
Hi Hans, This test file: \setupdirections[bidi=global,method=one] \starttext \hbox{$\varepsilon$-TeX} \stoptext gives the following error: callback error: ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to index a nil value (local 'b

[NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
'./test.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern rm 12pt' is loaded lua error > lua error on line 8 in file ./test.tex: registered function call [809]: ...ext/tex/texmf-context/tex/context/base/mki

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
Fantastic! Exactly what I needed. My publisher was gong to ask for the information of this index soon, so its great that already works! --Joel On Sunday, February 26, 2023 at 11:45:48 AM MST, Alan Braslau wrote: Hans needs to confirm, "In the next update..." Test f

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
Hans needs to confirm, "In the next update..." Test files (MWEs): % index-1.tex \setupinteraction[state=start] \starttext test \index{entryWB.1} \page empty \page test \index{another WB.1} \page empty \page test \index{onemore WB.1} \page empty \page test \inde

Re: [NTG-context] How to add data from another PDF in index?

2023-02-24 Thread Alan Braslau via ntg-context
: > I am making a textbook and workbook set. > I have this custom index using this code, in both the textbook and > workbook: % > \defineregister[learnedshort][compress=yes] > \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, > pagenumber=yes, indicator=no] %

[NTG-context] How to add data from another PDF in index?

2023-02-23 Thread Joel via ntg-context
I am making a textbook and workbook set. I have this custom index using this code, in both the textbook and workbook: % \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] % \defineregister[learnedlong

Re: [NTG-context] Iwona error

2023-02-06 Thread Bruce Horrocks via ntg-context
tex error on line 1 in file ./tt.tex: >> lua error: >> registered function call [1154]: >> ...-64/tex/texmf-context/tex/context/base/mkxl/math-vfu.lmt:677: attempt to >> index a nil value (local 'fci') >> stack traceback: >> ...-64/tex/texmf-context/tex/

Re: [NTG-context] Iwona error

2023-02-06 Thread Hans Hagen via ntg-context
g is incomplete for 'iwonamath' at 7pt tex error > tex error on line 1 in file ./tt.tex: lua error: registered function call [1154]: ...-64/tex/texmf-context/tex/context/base/mkxl/math-vfu.lmt:677: attempt to index a nil value (local 'fci') stack tracebac

[NTG-context] Iwona error

2023-02-06 Thread Bruce Horrocks via ntg-context
> tex error on line 1 in file ./tt.tex: lua error: registered function call [1154]: ...-64/tex/texmf-context/tex/context/base/mkxl/math-vfu.lmt:677: attempt to index a nil value (local 'fci') stack traceback: ...-64/tex/texmf-context/tex/context/base/mkxl/math

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
\par > > > > \the\test > > > from the code it looks like we're talking plain luatex ... > > > > > > \the is very selective and doesn't work for all primitives or > > > macros > > > > > > compare it to \number which

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Hans Hagen via ntg-context
hile \the doesn't work ok 123 that said, your set_lua is wrong and passes a function as well as an index \directlua{ lua.get_functions_table()[999] = function() tex.print("\string\\numexpr 17\string\\relax") end token.set_lua("test", 999) } \the\

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
t; > \the is very selective and doesn't work for all primitives or macros > > compare it to \number which accepts any number representation > following > it while \the doesn't work ok 123 > > that said, your set_lua is wrong and passes a function as well as an > i

Re: [NTG-context] protected macro vs protected luacall

2023-01-26 Thread Hans Hagen via ntg-context
tex ... \the is very selective and doesn't work for all primitives or macros compare it to \number which accepts any number representation following it while \the doesn't work ok 123 that said, your set_lua is wrong and passes a function as well as an index \directlua{

Re: [NTG-context] ConTeXt features in pandoc 3

2023-01-23 Thread Saša Janiška via ntg-context
iting process. I use org-pandoc to export from org-mode/emacs to > context. Interesting. I'm also into Zettelaksten, but consider to just use index cards. :-) > I can also use ox-context but I have difficulties to > customize it to my needs. I see... > The main problem is that

[NTG-context] Why won't custom indexes work when the value comes from \getvalue?

2023-01-21 Thread Joel via ntg-context
I setup a custom index like this (see minimum example code below): The problem is, when I try to create an index entry, using \setcoreidea, but place \getvalue inside, it won't render, ex.: \setcoreidea{\getvalue{secret1}} As you can see in this sample code, \setcoreidea will work fine, but

Re: [NTG-context] \hpos in math

2022-12-06 Thread Hans Hagen via ntg-context
ions are spinor index contractions. The formula above relates the components of the Infeld-van der Waerden symbol to the Pauli sigma matrices. This relationship only works in flat space, so this is an easy example! [Penrose and Rindler, vol 1 p. 125] in your example we need a way to anchor

[NTG-context] \hpos in math

2022-12-05 Thread Gavin via ntg-context
spin basis to the coordinate basis. The connections are spinor index contractions. The formula above relates the components of the Infeld-van der Waerden symbol to the Pauli sigma matrices. This relationship only works in flat space, so this is an easy example! [Penrose and Rindler, vol 1 p

Re: [NTG-context] two issues with variable fonts

2022-12-02 Thread Hans Hagen via ntg-context
emb.lmt:84: in upvalue 'tocardinal2' ...base/mkxl/lpdf-emb.lmt:771: in local 'writer' ...base/mkxl/lpdf-emb.lmt:2358: in field 'integer index' ...base/mkxl/lpdf-ini.lmt:828: in upvalue 'run' ...base/mkxl/lpdf-ini.lmt:859: in field 'finaliz

[NTG-context] two issues with variable fonts

2022-12-02 Thread Pablo Rodriguez via ntg-context
mb.lmt:771: in local 'writer' ...base/mkxl/lpdf-emb.lmt:2358: in field 'integer index' ...base/mkxl/lpdf-ini.lmt:828: in upvalue 'run' ...base/mkxl/lpdf-ini.lmt:859: in field 'finalizedocument' ...base/mkxl/lpdf-lmt.lmt:3413: in field '?

Re: [NTG-context] Context crashes using Iosevka v16.3.6 typeface

2022-11-17 Thread Werner Schmidt via ntg-context
Dear list, >> >> I like to use the Iosevka as mono typeface. It worked in the past, but sadly >> context crashes now with the following error. >> >> fatal error: /font-dsp-macro.lua:2336: attempt to index a nil value >> (local 'sequence') >>

[NTG-context] \autoinsertedspace fails following \nbsp under LMTX

2022-11-16 Thread Rik Kabel via ntg-context
: ...MTX/tex/texmf-context/tex/context/base/mkxl/font-hsh.lmt:151: table index is nil It fails differently in MkIV (but it is nice to see that the new command has been backported): luatex warning  > node filter: error: ...MTX/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:

Re: [NTG-context] Context crashes using Iosevka v16.3.6 typeface

2022-11-14 Thread Hans Hagen via ntg-context
On 11/12/2022 12:02 PM, Werner Schmidt via ntg-context wrote: Dear list, I like to use the Iosevka as mono typeface. It worked in the past, but sadly context crashes now with the following error. fatal error: /font-dsp-macro.lua:2336: attempt to index a nil value (local 'seq

[NTG-context] Context crashes using Iosevka v16.3.6 typeface

2022-11-12 Thread Werner Schmidt via ntg-context
Dear list, I like to use the Iosevka as mono typeface. It worked in the past, but sadly context crashes now with the following error. fatal error: /font-dsp-macro.lua:2336: attempt to index a nil value (local 'sequence') Plese see MWE below. Any ideas how debug / solve

[NTG-context] "true" units in LuaMetaTeX

2022-10-26 Thread Max Chernoff via ntg-context
rtion(+), 1 deletion(-) diff --git a/source/tex/texscanning.c b/source/tex/texscanning.c index 7f78d80..98a9c41 100644 --- a/source/tex/texscanning.c +++ b/source/tex/texscanning.c @@ -2304,6 +2304,7 @@ typedef enum scanned_unit { static int tex_aux_scan_unit(halfword *num, halfword *denom, halfwor

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Mikael Sundqvist via ntg-context
t; real file dies with this error: > > fatal lua error: > > registered function call [1141]: > ...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: attempt > to index a nil value (global 'presets') > stack traceback: > ...x/tex/texmf-context/tex

Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Thomas A. Schmitz via ntg-context
/fonts/mkiv/xits-math.lfg:61: attempt to index a nil value (global 'presets') stack traceback: ...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: in main chunk [C]: in function 'dofile' ...mtx/tex/texmf-context/tex/context/base/mkiv/

[NTG-context] Perceptrons

2022-10-16 Thread Thangalin via ntg-context
ree end -- Extract the first pair of a vertex at the given index inside the tree. -- No error checking is performed. -- -- @param graph - object - The tree containing numerous edges. -- @param index - non-negative integer - The index for the vertex pair. -- -- @return The (

Re: [NTG-context] (any) neovim users?

2022-10-15 Thread Hans Hagen via ntg-context
g lua callback: /usr/local/share/nvim/runtime/lua/vim/filetype/detect.lua:1248: attempt to index local 'format' (a number value) stack traceback: /usr/local/share/nvim/runtime/lua/vim/filetype/detect.lua:1248: in function 'ft' vim/filetype.lua:2362: i

Re: [NTG-context] issues with current latest

2022-10-15 Thread Hans Hagen via ntg-context
, name '/home/max/Projects/lua-widow-control/nogit-testing/empty.tex' fonts > preloading latin modern fonts (second stage) lua error > lua error on line 1 in file /home/max/Projects/lua-widow-control/nogit-testing/empty.tex: ...tex/texmf-co

Re: [NTG-context] issues with current latest

2022-10-14 Thread Max Chernoff via ntg-context
ome/max/Projects/lua-widow-control/nogit-testing/empty.tex' fonts > preloading latin modern fonts (second stage) lua error > lua error on line 1 in file /home/max/Projects/lua-widow-control/nogit-testing/empty.tex: ...tex/texmf-context/tex/context/

[NTG-context] (any) neovim users?

2022-10-14 Thread Alan Braslau via ntg-context
ype/detect.lua:1248: attempt to index local 'format' (a number value) stack traceback: /usr/local/share/nvim/runtime/lua/vim/filetype/detect.lua:1248: in function 'ft' vim/filetype.lua:2362: in function 'dispatch' vim/filetype.lua:2522: in fu

[NTG-context] issues with current latest

2022-10-14 Thread Pablo Rodriguez via ntg-context
4 10:16) \stopsection \stoptext If I try to compile with LuaTeX (after deleting the cache), I get the following error: lua error > lua error on line 1 in file a.tex: ...tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg:100: attempt to index a nil value (field 'sub

Re: [NTG-context] How to make something appear to the right of every paragraph?

2022-10-13 Thread Joel via ntg-context
When I use the code given, it compiles and displays fine. But when I try replacing \everypar with \EveryPar, it halts during compiling with this complaint: "A number should have been here; I inserted '0'. (If you can't figure out why I needed to see a number, look up '

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-06 Thread Leah Neukirchen via ntg-context
and changed the text primitives to use low chars. This renders fine on all PDF viewers I found (text is garbled, of course), but it still doesn't print. So now I'm fairly sure now the bug is in the font stream. foo.doctored.pdf Description: Adobe PDF document I finally found a tool

[NTG-context] LuaMetaTeX insert nodes patch

2022-09-16 Thread Max Chernoff via ntg-context
~ diff --git source/lua/lmtnodelib.c source/lua/lmtnodelib.c index ff98a70..1aade86 100644 --- source/lua/lmtnodelib.c +++ source/lua/lmtnodelib.c @@ -6557,10 +6557,7 @@ static int nodelib_common_getfield(lua_State *L, int direct, halfword n) break;

Re: [NTG-context] searching in the source browser

2022-09-05 Thread Taco Hoekwater via ntg-context
with Lua patterns I get any results. That is something we can look at next week. The sourcebrowser is using an lpeg-based lua script to create its search index, meaning it is not impossible to extend it. :) Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl g

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Bruce Horrocks via ntg-context
> On 3 Sep 2022, at 19:51, Bruce Horrocks via ntg-context > wrote: > > My own fault for not thinking head :-) but I have a largeish text with a lot > of \index{...} entries. To make life easier for the proofreader I would like > to temporarily redefine \index to wrap it

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Mikael Sundqvist via ntg-context
Den sön 4 sep. 2022 08:59Richard Mahoney via ntg-context skrev: > Bruce, > > Did something of the sort a while back: redefined the index command to > something short, in capitals; then adjusted the syntax highlighting to pick > up the code. This was for emacs + auctex, so it was

Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Richard Mahoney via ntg-context
Bruce, Did something of the sort a while back: redefined the index command to something short, in capitals; then adjusted the syntax highlighting to pick up the code. This was for emacs + auctex, so it was just a case of adjusting one of the stock auctex files. I think Scite may let one do

[NTG-context] Quick way to proofread / check index entries?

2022-09-03 Thread Bruce Horrocks via ntg-context
My own fault for not thinking head :-) but I have a largeish text with a lot of \index{...} entries. To make life easier for the proofreader I would like to temporarily redefine \index to wrap it or replace it with something that will highlight indexed items in the text where they occur, e.g

Re: [NTG-context] Merging two lua tables

2022-08-30 Thread BPJ via ntg-context
variables are local by default. > > >> > This function just ignores non-table arguments because that is what I >> > usually want. You may want to throw an error instead. Also it uses >> > table.pack. You might need to use `tab = {...}` and ipairs, or implement >>

Re: [NTG-context] Merging two lua tables

2022-08-30 Thread BPJ via ntg-context
e local by default. > > This function just ignores non-table arguments because that is what I > > usually want. You may want to throw an error instead. Also it uses > > table.pack. You might need to use `tab = {...}` and ipairs, or implement > > pack: > I might add table.himerge

Re: [NTG-context] Merging two lua tables

2022-08-29 Thread Hans Hagen via ntg-context
h and index) but slightly different (and some 30% faster) to util-tab but i think merging mixed hash/indexed tables is rare. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 80

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Aditya Mahajan via ntg-context
scale = "950" > }) > n = n + 1 > until n == context(context.noffigurepages) > end > > local pdffiles = {"ass1", "ass2", "ass3", "ass4", "ass5", "ass6", "ass7", > "ass8&

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
ss2", "ass3", "ass4", "ass5", "ass6", "ass7", "ass8"} for index=1,#pdffiles do local f = doc(pdffiles[index]) context.getfiguredimensions({f}) disppdf(pdffiles[index]) end \stopluacode \stoptext I didn’t know how to get

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
ss2", "ass3", "ass4", "ass5", "ass6", "ass7", "ass8"} for index=1,#pdffiles do local f = doc(pdffiles[index]) context.getfiguredimensions({f}) disppdf(pdffiles[index]) end \stopluacode \stoptext I didn’t know how to get

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
;, "ass3", "ass4", "ass5", "ass6", "ass7", "ass8"} for index=1,#pdffiles do local f = doc(pdffiles[index]) context.getfiguredimensions({f}) disppdf(pdffiles[index]) end \stopluacode \stoptext I didn’t know how to ge

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
uby before): %%%begin error …… tex error > tex error on line 1 in file d:/ah21/TEX/vertical-and-ruby-examples/ruby.lmtx: lua error: registered function call [209]: ...n64/tex/texmf-context/tex/context/base/mkxl/typo-rub.lmt:268: attempt to index a nil value (local 'ruby

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread 黄复雄 via ntg-context
x27; close source> level 2, order 5, name 'D:/venvs/context-win64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-cambria.mkiv' tex error > tex error on line 1 in file d:/ah21/TEX/vertical-and-ruby-examples/ruby.lmtx: lua error: registered function call [209]:

Re: [NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
always zero in LuaMetaTeX, so I'm not sure how to get the class/type. After playing around, I found that this is stored in ".index". I'm able to write to this value just fine, but whenever I read it I get an error. This minimal example: \starttext \setbox999=\

Re: [NTG-context] issue with lpath

2022-08-04 Thread Taco Hoekwater via ntg-context
from xpath, >> and that means this works: >> \xmlsetsetup{#1}{blockquote/preceding-sibling::h3[-1]/} {xml:section} >> “Take all blockquotes, then tests their immediate preceding siblings (index >> [-1]) that are h3." >> But the CSS version is nicer. Still, both

Re: [NTG-context] issue with lpath

2022-08-04 Thread Pablo Rodriguez via ntg-context
]/} {xml:section} > > “Take all blockquotes, then tests their immediate preceding siblings > (index [-1]) that are h3." Many thanks for your reply, Taco. It isn’t documented, but I have just discovered that it is used inside a function: https://www.pragma-ade.com/general/manuals/xml-m

Re: [NTG-context] issue with lpath

2022-08-04 Thread Hans Hagen via ntg-context
immediate preceding siblings (index [-1]) that are h3." But the CSS version is nicer. Still, both solutions fail on generic input. Sorry, out of clues \startbuffer[demo] One Standard paragraph Quoted text Two Direct quote \stopbuffer \startxmlsetups

Re: [NTG-context] issue with lpath

2022-08-04 Thread Taco Hoekwater via ntg-context
t there is a preceding-sibling:: axis. That is not documented in xml-mkiv.pdf I think, but it inherited from xpath, and that means this works: \xmlsetsetup{#1}{blockquote/preceding-sibling::h3[-1]/} {xml:section} “Take all blockquotes, then tests their immediate preceding siblings (index [-

Re: [NTG-context] number of chapters

2022-07-20 Thread Taco Hoekwater via ntg-context
rst run)? >> I’d like to setup a chapter color like >> \definecolor[ChapterColor][ >> s=1,v=1, >> h=360*\namedstructurevariable{chapter}{number}/\numberofchapters, >> ] >> and use it for a thumb index... >> (I can’t access the wiki ATM; downforeveryoneor

Re: [NTG-context] number of chapters

2022-07-20 Thread Henning Hraban Ramm via ntg-context
*\namedstructurevariable{chapter}{number}/\numberofchapters, ] and use it for a thumb index... (I can’t access the wiki ATM; downforeveryoneorjustme.com says it would be just me.) Ok, I can access the wiki via Tor and found \somenamedheadnumber{chapter}{current} \somenamedheadnumber{chapter}{last} or

[NTG-context] number of chapters

2022-07-20 Thread Henning Hraban Ramm via ntg-context
index... (I can’t access the wiki ATM; downforeveryoneorjustme.com says it would be just me.) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context

[NTG-context] New tabulate features broken under new maths release

2022-07-09 Thread Bruce Horrocks via ntg-context
ntext/base/mkxl/node-ali.lmt:366: attempt to index a nil value (field '?') stack traceback: ...-64/tex/texmf-context/tex/context/base/mkxl/node-ali.lmt:366: in upvalue 'openup' ...-64/tex/texmf-context/tex/context/base/mkxl/node-ali.lmt:596: in upvalue 'thi

Re: [NTG-context] Foonotes in Captions ... again

2022-06-16 Thread Denis Maier via ntg-context
ootnote{asdf} > > > > \startplacefigure[title={asdfasdf\footnote{test 2}}] > > \externalfigure[cow.pdf][height=10cm] > > \stopplacefigure > > > > \footnote{asdf} \footnote{asdf} \footnote{asdf} > > > > > > \page > > \

Re: [NTG-context] Foonotes in Captions ... again

2022-06-16 Thread Denis Maier via ntg-context
[cow.pdf] > \stopplacefigure > > \footnote{asdf} \footnote{asdf} \footnote{asdf} > > % (Can't use postponingnotes) > % \startpostponingnotes > \startplacefigure[title={asdfasdf\footnote{test 2}}] > \externalfig

Re: [NTG-context] Foonotes in Captions ... again

2022-06-15 Thread Max Chernoff via ntg-context
% \stoppostponingnotes \footnote{asdf} \footnote{asdf} \footnote{asdf} \stoptext Here, we save a mapping between each footnote's index in the input and its index in the output to the .tuc file. The code is definitely not pretty,

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Stefan Nedeljkovic via ntg-context
; it, but it fails. Do you know of a way to compile it? > > Just use plain MetaPost: > > diff --git a/belgrade_gm.tex b/belgrade_gm.mp > index 3281754..d536b64 100644 > --- a/belgrade_gm.tex > +++ b/belgrade_gm.mp > @@ -1 +1 @@ > -\startMPpag

Re: [NTG-context] Compiling a large metapost document

2022-06-01 Thread Max Chernoff via ntg-context
I have a large .tex file with metapost embedded in it and want to compile it, but it fails. Do you know of a way to compile it? Just use plain MetaPost: diff --git a/belgrade_gm.tex b/belgrade_gm.mp index 3281754..d536b64 100644 --- a/belgrade_gm.tex +++ b/belgrade_gm.mp

Re: [NTG-context] issue with scite module

2022-06-01 Thread Max Chernoff via ntg-context
at and use everything with a TeX catcode 11 ("letters"): local name = (R("az","AZ","09") + S("_-.") + lpeg.utfchartabletopattern(characters.csletters))^1 This isn't strictly speaking correct, but I think that it's close enough. It

Re: [NTG-context] sorting for particular sub entries to register

2022-02-01 Thread jbf via ntg-context
when time allows I will take a closer look at the Lua possibilities. Julian On 1/2/22 18:49, Robert via ntg-context wrote: Hi Julian, Another solution could be to use Lua. I have a multilingual document in which some elements to be printed bold (Language 1), and collected in an index (trk

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread Robert via ntg-context
Hi Julian, Another solution could be to use Lua. I have a multilingual document in which some elements to be printed bold (Language 1), and collected in an index (trk) arranged according their (verbal) stems. Elements from Language 2 are to be printed in italics in the text and collected in a

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
1:09, Adam Reviczky wrote: Hi Julian, How about using the keys in every instance? \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] \defineprocessor[special][style=italic] \starttext P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} B\index[Plenary+beriti]{Plenary Council+{

Re: [NTG-context] sorting for particular sub entries to register

2022-01-31 Thread Adam Reviczky via ntg-context
Hi Julian, How about using the keys in every instance? \setupregister[index][n=1,method={zc,pc,zm,pm,uc},style=WORD] \defineprocessor[special][style=italic] \starttext P\index[Plenary+periti]{Plenary Council+{\it periti} (experts)} B\index[Plenary+beriti]{Plenary Council+{\it beriti} (experts

[NTG-context] sorting for particular sub entries to register

2022-01-31 Thread jbf via ntg-context
Let me come back to the unresolved (for me) question of two situations in sub entries to a book index (register). Sub entries that have formatting or sub entries that are surrounded by quote marks (straight or curly, it makes no difference) do not appear in the correct alphabetical order

Re: [NTG-context] registers, how to ignore quote marks

2022-01-30 Thread jbf via ntg-context
No, I had already tried that. It places the subentry at the top of the list of subentries, not in its correct alphabetical order. Using the example below, I assume you meant (I am including text before and after): The \index[Plenary+periti]{Plenary Council+{\it periti} (experts)} group

Re: [NTG-context] registers, how to ignore quote marks

2022-01-30 Thread Hans Hagen via ntg-context
cannot solve the sorting of subentries that have special features (e.g. I might have needed italics for part of a subentry, or the subentry is surrounded by quote marks). Here are my two situations (and in each case they appear out of alphabetical order in the subentry list): 1. \index{ani

Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
entries that have special features (e.g. I might have needed italics for part of a subentry, or the subentry is surrounded by quote marks). Here are my two situations (and in each case they appear out of alphabetical order in the subentry list): 1. \index{animals+‘special kinds’}: in this cas

Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread Hans Hagen via ntg-context
On 1/29/2022 11:02 AM, jbf via ntg-context wrote: Thanks for this response. I'll have to work on this (but tomorrow... it's late at night for me at the moment). I can see part of what you mean: I can use, for example \index[myindex]{\it Book title} (Book Author) and get the correct r

Re: [NTG-context] registers, how to ignore quote marks

2022-01-29 Thread jbf via ntg-context
Thanks for this response. I'll have to work on this (but tomorrow... it's late at night for me at the moment). I can see part of what you mean: I can use, for example \index[myindex]{\it Book title} (Book Author) and get the correct result, but not sorted properly, so I have to unde

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