[NTG-context] How to obtain the hbox's node when there is only one hbox for an entire paragraph?

2024-05-01 Thread 黄复雄
eif i.id == nodes.nodecodes.hlist then print(i, nodes.toutf(i.list),i.width,i.height,i.depth,i.shift,i.glue_set,i.glue_sign,i.glue_order) elseif i.id == nodes.nodecodes.kern then print(i, i.kern, i.expension) else print(i) end end end --]] f

[NTG-context] Creating a module for calligraphy practice templates

2024-03-12 Thread Andres Conrado Montoya
carefully and made as many tests as possible, and in general it works fine, but I have ADHD and things frequently get over my head. There are still some things that don't work as they should, and things that need improvement: 1. I use top/bottom areas to display some info. These areas are not being

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

2024-02-14 Thread Joaquín Ataz López
rticularly easy to find. I realize that this is a very ambitious undertaking, but I find that a unified source of information is better than information with varying levels of quality scattered across more places than one can hold in his head. I just have one question: What is all the necessar

[NTG-context] Re: Two bugs with descriptions in ConTeXt.

2024-02-13 Thread Wolfgang Schuster
are descriptions with a counter. Unless I'm mistaken, I think it happens because the head of the description is evaluated twice, thus incrementing the counter twice---at least, that's the only explanation for how the number is incremented by 2 each time. Further, this issue seems to persist whether

[NTG-context] Two bugs with descriptions in ConTeXt.

2024-02-13 Thread SirColeman via ntg-context
The first bug is that descriptions interfere with the counters, resulting in the peculiar behavior demonstrated in the resulting PDF. Unless I'm mistaken, I think it happens because the head of the description is evaluated twice, thus incrementing the counter twice---at least, that's the only

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

2024-02-11 Thread SirColeman via ntg-context
and make particular pieces of information particularly easy to find. I realize that this is a very ambitious undertaking, but I find that a unified source of information is better than information with varying levels of quality scattered across more places than one can hold in his head. I jus

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-15 Thread Jim
e read the wiki, looked at workflows-synctex.tex, searched the web, and >> scratched my head, all to no avail. So here I am, cap in hand... >> When I run context, I get a .synctex file which has some information in it, >> but I can't find any invocation of synctex to return anythin

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-12 Thread Hans Hagen
On 11/12/2023 10:26 AM, Henning Hraban Ramm wrote: Am 12.11.23 um 00:59 schrieb Jim: Hi, I've read the wiki, looked at workflows-synctex.tex, searched the web, and scratched my head, all to no avail.  So here I am, cap in hand... When I run context, I get a .synctex file which has some

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-12 Thread Henning Hraban Ramm
Am 12.11.23 um 00:59 schrieb Jim: Hi, I've read the wiki, looked at workflows-synctex.tex, searched the web, and scratched my head, all to no avail. So here I am, cap in hand... When I run context, I get a .synctex file which has some information in it, but I can't find any invocation

[NTG-context] context not producing synctex output that my synctex program can use

2023-11-11 Thread Jim
Hi, I've read the wiki, looked at workflows-synctex.tex, searched the web, and scratched my head, all to no avail. So here I am, cap in hand... When I run context, I get a .synctex file which has some information in it, but I can't find any invocation of synctex to return anything useful. Nor

[NTG-context] Re: \underbar in head

2023-09-21 Thread jbf
So clearly I would need to upgrade my version. It does not work with what I have at the moment. Thank you. Julian On 22/9/23 02:04, Wolfgang Schuster wrote: I get a line below the chapter title with LMTX and LuaTeX with the current ConTeXt version.

[NTG-context] Re: \underbar in head

2023-09-21 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 07:01: However, Wolfgang, if I do, e.g. \setuphead[chapter][textcommand={\setbar[underbar]}] \starttext \startchapter[title={My title}] \input ward \stopchapter \stoptext Then I do not get My Title with underline, which is what I want, and nor is anything

[NTG-context] Re: \underbar in head

2023-09-20 Thread jbf
: Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar{text}}] but would prefer to achieve

[NTG-context] Re: \underbar in head

2023-09-20 Thread Wolfgang Schuster
jbf schrieb am 21.09.2023 um 05:03: Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar

[NTG-context] \underbar in head

2023-09-20 Thread jbf
Am attempting to get an underlined head style (chapter) with: \setuphead[chapter][textcommand=\underbar] But I get no underline. Am I doing something wrong? I can, of course, achieve the result at each chapter level with \startchapter[title={\underbar{text}}] but would prefer to achieve

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
for these chapters? Thanks, Jeroen Untried: 1. Define a new section head that clones chapter (\definehead[NPChapter][chapter]). 2. Modify the new section head so that it does not do a break (\setuphead[NPChapter][page=no]). 3. Use the new section head instead of \chapter or \startchapter

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel
. Define a new section head that clones chapter (\definehead[NPChapter][chapter]). 2. Modify the new section head so that it does not do a break (\setuphead[NPChapter][page=no]). 3. Use the new section head instead of \chapter or \startchapter

[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Xavier B.
escrit: > Xavier B. schrieb am 23.08.2023 um 15:02: > > Wolfgang, > > > > I detect something extrange: when I use \startexercici \stopexercici (see > > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt]) > > in some cases there i

[NTG-context] Re: An strange error with section and page

2023-08-24 Thread Xavier B.
cici (see > > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt]) > > in some cases there is an *undesired* indent (see attachment image). I saw > > the source > > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-a

[NTG-context] Re: An strange error with section and page

2023-08-23 Thread Wolfgang Schuster
Xavier B. schrieb am 23.08.2023 um 15:02: Wolfgang, I detect something extrange: when I use \startexercici \stopexercici (see [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt]) in some cases there is an *undesired* indent (see attachment image). I saw

[NTG-context] Re: An strange error with section and page

2023-08-22 Thread Wolfgang Schuster
Xavier B. schrieb am 22.08.2023 um 19:32: Hi, I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf] which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. I migrated old syntax to new one and replace \page[yes

[NTG-context] An strange error with section and page

2023-08-22 Thread Xavier B.
Hi, I have a long document [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf] which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. I migrated old syntax to new one and replace \page[yes] before each section to \setupheads[section

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Alexey Kryukov
On Fri, 18 Aug 2023 21:11:38 +0200 Wolfgang Schuster wrote: > What you can do here is to put the table together piece by piece with > the collecting > mechanism which collect parts of the table until you flush the whole > collection > at the end with the \stopcollecting command. Many thanks,

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
is needed. Hi Wolfgang, thanks for the answer. Basically I would like to typeset a document represented as TEI xml. Unfortunately, TEI support for table typesetting is rather limited: there are no tags corresponding to table head of body. It is only possible to specify a specific role for some rows. So I

[NTG-context] unsubscribe

2023-08-18 Thread Thomas Floeren via ntg-context
test begins as people >>> with many different viewpoints undertake their own >>> experiments.}} >> >> Is that the complete document? What do you have in mind with obeying >> lines in the middle of a paragraph? > > it's the only possible way off the top of my head to cir

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Alexey Kryukov
r the answer. Basically I would like to typeset a document represented as TEI xml. Unfortunately, TEI support for table typesetting is rather limited: there are no tags corresponding to table head of body. It is only possible to specify a specific role for some rows. So I have to use lua code to a

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-18 Thread Carlos
Is that the complete document? What do you have in mind with obeying > lines in the middle of a paragraph? it's the only possible way off the top of my head to circumvent body font size with a given width, while keeping both: the kern of \TeX\ and the double spacing that lmtx injec

[NTG-context] Re: Table head/body via lua

2023-08-18 Thread Wolfgang Schuster
Alexey Kryukov schrieb am 18.08.2023 um 19:02: Hi, I am trying to generate a table representation for some xml source. As the data structure doesn't directly correspond to the desired table structure, some manipulations via lua are required. So far everything works OK except table sectioning

[NTG-context] Table head/body via lua

2023-08-18 Thread Alexey Kryukov
Hi, I am trying to generate a table representation for some xml source. As the data structure doesn't directly correspond to the desired table structure, some manipulations via lua are required. So far everything works OK except table sectioning commands, like \bTABLEhead, \eTABLEhead, bTABLEbody

[NTG-context] Re: disable header for endnotes

2023-08-16 Thread Rik Kabel
In the text: \startbackmatter \startchapter[reference={cha:notes}, list={Notes}, % toc bookmark={Notes}, % pdf bookmark title={Notes}] % chapter head [Lettrine=no] \setups{noteHeadings:on} \placenotes[endnote] \stopchapter -- Rik

[NTG-context] Re: Very strange error:

2023-08-15 Thread Wolfgang Schuster
Xavier B. schrieb am 14.08.2023 um 23:24: Thanks, Rik, for the comment. You're right. Note that I've never been aware of such requirement because always in MKIV I use \head without \par. You have empty lines in your document which have the same effect as \par. Commands (e.g. descriptions

[NTG-context] Re: Very strange error:

2023-08-14 Thread Hans Hagen via ntg-context
On 8/14/2023 11:24 PM, Xavier B. wrote: Thanks, Rik, for the comment. You're right. Note that I've never been aware of such requirement because always in MKIV I use \head without \par. @all, please comment it out this behaviour in somewhere. The weak point of context is documentation: wiki

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
Thanks, Wolfgang, for pointing this replacements. I will try to change that but it's a lot of work. Appreciate Xavier On Mon, 14 Aug 2023 19:07:09 +0200 Wolfgang Schuster ha escrit: > > > > You're correct, \head is the cause of the error and it's better t

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
d floatblocks > '3' placed (force) backend > xmp > using file '/home/xan/bin/context-current/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 floatblocks > order disturbed floatblocks > '4' placed

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
Thanks, Rik, for the comment. You're right. Note that I've never been aware of such requirement because always in MKIV I use \head without \par. @all, please comment it out this behaviour in somewhere. The weak point of context is documentation: wiki is too bit not updated and reference manual

[NTG-context] Re: Very strange error:

2023-08-14 Thread Wolfgang Schuster
art... Can anyone help me? Thanks, Xavier PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I get no errors. I suspect that LMTX is a bit more strict about parsing. You have omitted the required \par for each \head. You're correct, \head is the cause of the er

[NTG-context] Re: Very strange error:

2023-08-14 Thread Rik Kabel
art... Can anyone help me? Thanks, Xavier PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I get no errors. I suspect that LMTX is a bit more strict about parsing. You have omitted the required \par for each \head. Perhaps the mtxrun check script (ht

[NTG-context] Re: Very strange error:

2023-08-14 Thread Rik Kabel
: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I get no errors. I suspect that LMTX is a bit more strict about parsing. You have omitted the required \par for each \head. -- Rik ___ If y

[NTG-context] Very strange error:

2023-08-14 Thread Xavier B.
\item a cada 4 persones de $A$ li corresponen 3 persones de $B$ \\item 20\\% són de $C$ \\item 2/8 són de $D$ \\stopitemize \\par \\head 420 persones en total \\par \\startitemize [a, packed] \\item $3/4$ de persones estan a $A$ \\item hi ha una correspondència: 3 de $A$ $\\leftrightarrow $ 2 de $

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen
url(https://artixlinux.org)]). La revisió d'aquest document és la número \goto{\directlua{ 34require "lualibs-os" 35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc -l")+1))}}[url(https://repo.or.cz/apunts-espa-matematiques.git/shortlog/HEAD)]. El co

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
la número \goto{\directlua{ 34require "lualibs-os" 35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc -l")+1))}}[url(https://repo.or.cz/apunts-espa-matematiques.git/shortlog/HEAD)]. El conjunt de les versions s'administra amb \goto{git}[

[NTG-context] Re: Using

2023-08-05 Thread Alex Leray
nce \strc_sectioning_initialize_increment ->\edef \currentheadincrement verbatim is tricky because it changes the catcodes here is a trick: \definehead   [poem]   [section] \setuphead   [poem]   [after=\startlines\tt,    % after the head is placed    aftersection=\stoplines] % when we end this section \startpoem

[NTG-context] Re: Using

2023-08-04 Thread Hans Hagen
tricky because it changes the catcodes here is a trick: \definehead [poem] [section] \setuphead [poem] [after=\startlines\tt,% after the head is placed aftersection=\stoplines] % when we end this section \startpoem[title={Glijden}] Lorem ipsum dolor sit amet consectetur. Lorem ipsum

[NTG-context] Re: combining \definetyping and \definebuffer

2023-07-29 Thread Henning Hraban Ramm
– too many commands I never heard of. I’ll try again tomorrow when my head hopefully hurts less and there won’t be concerts on both sides of my quarter… Hraban ___ If your question is of interest to others as well

[NTG-context] Re: issue with current latest (2023.07.28 20:04)

2023-07-29 Thread Jairo A. del Rio
equence expected instead of undefined > > \lang_labels_define_class_indeed {head}{ > > \definelabelclass > ...ded {\lang_labels_define_class_indeed {#1}{\ifchknumber #2\or > \lastchknumber > \else \zerocount \fi }\expandafter \noexpand \csn ... > > \definela

[NTG-context] issue with current latest (2023.07.28 20:04)

2023-07-29 Thread Pablo Rodriguez
Dear list, trying to generate the format for current latest (2023.07.28 20:04), I get this error message: tex error > tex error on line 280 in file lang-lab.mkxl: Control sequence expected instead of undefined \lang_labels_define_class_indeed {head}{ \definelabelclass ...

[NTG-context] Re: OSFONTDIR

2023-07-20 Thread Pablo Rodriguez
On 7/19/23 22:51, Hans Hagen via ntg-context wrote: > On 7/19/2023 10:27 PM, Thomas A. Schmitz wrote: >> [...] In the most recent versions of macos, some files of >> these fonts are included as system fonts under >> /System/Library/Fonts/Supplemental, but not all of them. It

[NTG-context] Re: OSFONTDIR

2023-07-19 Thread Hans Hagen via ntg-context
versions of macos, some files of these fonts are included as system fonts under /System/Library/Fonts/Supplemental, but not all of them. It took me some head scratching to figure out why every run complained about missing glyphs until I saw that ConTeXt was using the wrong font. I had to set

[NTG-context] OSFONTDIR

2023-07-19 Thread Thomas A. Schmitz
are included as system fonts under /System/Library/Fonts/Supplemental, but not all of them. It took me some head scratching to figure out why every run complained about missing glyphs until I saw that ConTeXt was using the wrong font. I had to set the variable OSFONTDIR to some value to prevent

[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\

2023-07-05 Thread Carlos
xtraordinary DOT MATRIX LINE PRINTER, built in two MICRO-PROCESSORs as well as EAROM, is featured by permitting wonderful co-existence such as; "high quality against low cost," "diversified functions with compact design," "flexibility in accessibleness and durability of approx

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
ut a vrule that's what I would normally expect as plain user maybe (1) one can define an arrow fill using a leader that uses some (happen to be present in tex math fonts) glyphs: repeated minuses followed by some magic kern and an arrow head. Can you apply it to pagination without breaki

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
h of TeX is magick but what is bad about > that? > > > \hbox to 1in{\vrule \rightarrowfill \ 1in \leftarrowfill\vrule} > > > > or > > > > \hbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} > > > > which gives an accurate description, not to men

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context
is the same as in plain tex is wrong. (1) one can define an arrow fill using a leader that uses some (happen to be present in tex math fonts) glyphs: repeated minuses followed by some magic kern and an arrow head. (2) You can hope that the magick kern is right and that the minus aligns with the arrows

Re: [NTG-context] Protect the lettrine

2023-06-16 Thread Hans Hagen via ntg-context
d solution: \startluacode userdata.hangindent = 0 function userdata.post_lettrine(head) nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") if tex.prevgraf < math.abs(tex.hangafter) then use

Re: [NTG-context] Protect the lettrine

2023-06-15 Thread Max Chernoff via ntg-context
n: \startluacode userdata.hangindent = 0 function userdata.post_lettrine(head) nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") if tex.prevgraf < math.abs(tex.hangafter) then userdata.hangindent = tex.hangindent

Re: [NTG-context] LuaMetaTeX doesn't find files when symlinked

2023-04-28 Thread lynx--- via ntg-context
make run a symlink to the LuaMetaTeX-based ConTeXt wrapper, it > looks for texmfcnf.lua relative to the symlink location, not the symlink > target. With the old LuaTeX/kpse-based wrapper, the script would look > for texmfcnf.lua relative to the symlink target. > > I know that my descri

[NTG-context] LuaMetaTeX doesn't find files when symlinked

2023-04-27 Thread Max Chernoff via ntg-context
n=$(mtxrun --expand-var TEXMFOS | head -1)/* $ cd $(mktemp -d) $ ln -s $bin/luatex $bin/luametatex $bin/context $bin/context.lua $bin/mtxrun $bin/mtxrun.lua . $ ./context --nofile $ ./context --luatex --nofile Running the above commands used to work with the old LuaTeX/kpse-bas

[NTG-context] natural table oddities

2023-04-01 Thread Henning Hraban Ramm via ntg-context
, not Taco or Tomáš ) adds a separation between header and body cells, but setting up "header" affects both TD and TH within TABLEhead. It would be nice to have a way of specifying the header explicitly. My suggestion would be to have: - \setupTABLE[r][head][...] affect just

Re: [NTG-context] natural table oddities

2023-03-27 Thread Bruce Horrocks via ntg-context
orking on the documentation for “natural tables” in my book I stumbled upon >> a few oddities/problems: >> ## Addressing cells: >> * There’s \setupTABLE[header], but not "footer" (or "section"); since we >> have TABLEhead and TABLEfoot, IMO "head" and

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Willi Egger via ntg-context
Thank you Hans, that is, what I need. It was even easy to implement in the layout-file only :-) because these sections where already under a “mysection” head. Kind regards Willi > On 27 Mar 2023, at 15:52, Hans Hagen via ntg-context > wrote: > > On 3/26/2023 3:10 PM, Willi E

Re: [NTG-context] natural table oddities

2023-03-27 Thread Henning Hraban Ramm via ntg-context
r "section"); since we have TABLEhead and TABLEfoot, IMO "head" and "foot" would make sense. * Row 1 is the first row of TABLEbody. I couldn’t find how to address the first line of TABLEbody. * If I format a column, e.g. \setupTABLE[c][-1][color=red], body and foo

[NTG-context] natural table oddities

2023-03-14 Thread Henning Hraban Ramm via ntg-context
ooter" (or "section"); since we have TABLEhead and TABLEfoot, IMO "head" and "foot" would make sense. * Row 1 is the first row of TABLEbody. I couldn’t find how to address the first line of TABLEbody. * Is it possible, and how, to use odd/even only for the body? *

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
page for a custom head section with uservariables defined. I'd like to have the chapter page start on a right page. I'd like this page to feature the title of the chapter (here: an interview) along with some other info like the interviewee name and bio. All in a "fancy" layout. I'm ha

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
}, year={2022}, month={Decembre}, bio={\input ward} ] \dorecurse{10}{\input ward \crlf} \stopinterview \stoptext > On 23 Feb 2023, at 10:21, Alex Leray via ntg-context > wrote: > > Hello, > > I'm trying to figure out how to design a chapter page for a cust

[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
Hello, I'm trying to figure out how to design a chapter page for a custom head section with uservariables defined. I'd like to have the chapter page start on a right page. I'd like this page to feature the title of the chapter (here: an interview) along with some other info like

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Bruce Horrocks via ntg-context
owing embedded Lua. >> \startluacode >> -- \dummycommand >> \stopluacode >> \starttext >> Hello >> \stoptext > > a bang-head-against-the-wall case: > > \let\dummycommand\relax > > \startluacode > -- \dummycommand > \stopluacode > \st

Re: [NTG-context] Minor bug in Lua or ConTeXt

2023-01-18 Thread Hans Hagen via ntg-context
-- \dummycommand \stopluacode \starttext Hello \stoptext a bang-head-against-the-wall case: \let\dummycommand\relax \startluacode -- \dummycommand \stopluacode \starttext Hello \stoptext or: \ifdefined\dummycommand \else \let\dummycommand\relax \fi a document-on-the-wiki challenge for Pablo Hans

Re: [NTG-context] \autoinsertedspace fails

2023-01-04 Thread Hans Hagen via ntg-context
.characters local fontquads = fonthashes.quads local setmetatableindex = table.setmetatableindex local a_character= attributes.private("characters") local a_alignstate = attributes.private("alignstate") local c_zero = byte('0') local c_peri

Re: [NTG-context] Font expansion enabled by default with the latest upload

2022-11-21 Thread Max Chernoff via ntg-context
document: \showframe % \definefontfeature[default][default][expansion=quality] % \usetypescript[modern-base] % \setupbodyfont[reset,modern] % \setupalign[hz] \startluacode function userdata.test(head) local last_line = node.tail(head) local i = 1

[NTG-context] how to simulate \hss in luametatex?

2022-11-10 Thread 黄复雄 via ntg-context
hss) -- b is in the list -- I got a with width:0, stretch:65536, shrink:65536, stretchorder:2, shrinkorder:2 local box = node_new(hlist_id, "box") box.head = list box.width = 0 box.shift = -tex_sp("1ex") -- I got width:0 height:0 deep:0 shi

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,   

[NTG-context] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: \definetextbackground [textFrameEx] [ frame=off, framecolor=darkgreen, rulethickness=2ex, background=, location=paragraph, leftoffset=2.25ex, rightoffset=2.25ex,

Re: [NTG-context] Missing parinitskips in \normalizelinemode=0

2022-10-19 Thread Hans Hagen via ntg-context
[system.callbacks.permitoverloads] \normalizelinemode=0 \directlua{ callback.register("pre_linebreak_filter", function(head) tex.preparelinebreak(head) local list, info = tex.linebreak(head) print(info) return head

[NTG-context] Missing parinitskips in \normalizelinemode=0

2022-10-18 Thread Max Chernoff via ntg-context
\directlua{ callback.register("pre_linebreak_filter", function(head) tex.preparelinebreak(head) local list, info = tex.linebreak(head) print(info) return head end) } \starttext \input knuth \stoptext

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

2022-10-15 Thread Hans Hagen via ntg-context
On 10/14/2022 5:00 PM, Alan Braslau via ntg-context wrote: A recent upgrade of the editor neovim leads to the following error when using % identification at the head of .tex source files. Error detected while processing BufReadPost Autocommands for "*": Error executing lua callb

Re: [NTG-context] issues with current latest

2022-10-14 Thread Max Chernoff via ntg-context
xrun.lua" --script mtx-context --luatex --make --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' $ TEXINPUTS="$(dirname $(mtxrun --findfile 'cont-en.mkiv' | head -1))" luatex -ini cont-en.mkiv warning: /opt/context/tex/texmf/web2c/tex

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

2022-10-14 Thread Nicola via ntg-context
t;> > when using % identification at the head of .tex source >> > files. >> >> The ConTeXt plugin (as well as MetaPost and MetaFont ones) has >> recently been rewritten in Vim 9 script (the new scripting language >> embedded in Vim), which NeoVim does not sup

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

2022-10-14 Thread Alan Braslau via ntg-context
On Fri, 14 Oct 2022 16:48:42 - (UTC) Nicola via ntg-context wrote: > On 2022-10-14, Alan Braslau via ntg-context > wrote: > > A recent upgrade of the editor neovim leads to the following error > > when using % identification at the head of .tex source > > files.

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

2022-10-14 Thread Nicola via ntg-context
On 2022-10-14, Alan Braslau via ntg-context wrote: > A recent upgrade of the editor neovim leads to the following error > when using % identification at the head of .tex source files. The ConTeXt plugin (as well as MetaPost and MetaFont ones) has recently been rewritten in Vim 9 script (t

[NTG-context] (any) neovim users?

2022-10-14 Thread Alan Braslau via ntg-context
A recent upgrade of the editor neovim leads to the following error when using % identification at the head of .tex source files. Error detected while processing BufReadPost Autocommands for "*": Error executing lua callback: /usr/local/share/nvim/runtime/lua/vim/filetype/detec

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

2022-10-13 Thread Max Chernoff via ntg-context
= true -- Callback function userdata.lines(head) if status.output_active or tex.nest.ptr > 1 or not show_lines then return head end local i = 0 for n in node.traverseid(no

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

2022-10-13 Thread Joel via ntg-context
ESS = tex.sp "0.4pt"       RULE_LENGTH    = tex.sp "3cm"         -- Callback       function userdata.lines(head)           if status.output_active or               tex.nest.ptr > 1           then               return head           end             local i = 0           for n in

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

2022-10-10 Thread Max Chernoff via ntg-context
x.sp "1em" RULE_THICKNESS = tex.sp "0.4pt" RULE_LENGTH= tex.sp "3cm" -- Callback function userdata.lines(head) if status.output_active or tex.nest.ptr > 1 then return head end

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

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

2022-09-04 Thread Mikael Sundqvist via ntg-context
Littledene Bay Road Oxford NZ > NZBN: 9429041761809 > > > - Original message - > From: Bruce Horrocks via ntg-context > To: ntg-context mailing list > Cc: Bruce Horrocks > Subject: [NTG-context] Quick way to proofread / check index entries? > Date: Sun

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

2022-09-04 Thread Richard Mahoney via ntg-context
list Cc: Bruce Horrocks Subject: [NTG-context] Quick way to proofread / check index entries? Date: Sunday, 4 September 2022 06:51 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

[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] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread Hans Hagen via ntg-context
v,l,next) if how then setwhd(l,h+d+o,w,0) setorientation(l,0x003,0,0,h,d-o) end if n == list then setlist(box,l) end end end local function flushrange(head,current,first,last) lo

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

2022-08-15 Thread Max Chernoff via ntg-context
e don't use these boxes and registers because we run in > \insertmode=2. This gives us more state info (i kept the old method > around for now). Inserts always felt a little hacky in TeX, so I think that the new methods are a huge improvement. > > Second, how do I get the head

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

2022-08-15 Thread Hans Hagen via ntg-context
ore state info (i kept the old method around for now). Second, how do I get the head of the insert box from Lua? With LuaTeX, from TeX you would use "\box" and from Lua you can use "tex.box[]". With LuaMetaTeX, you use "\insertbox" from TeX, but I'm not sure ho

[NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
quot;ins" nodes, but the subtype of the "insert" nodes is always zero in LuaMetaTeX, so I'm not sure how to get the class/type. Second, how do I get the head of the insert box from Lua? With LuaTeX, from TeX you would use "\box" and from Lua you can use "tex.box[]&quo

Re: [NTG-context] ConTeXt meeting 2022 – please register!

2022-08-04 Thread Henning Hraban Ramm via ntg-context
that my cooperative would pay for it. Well, if no beginners attend, nobody will talk for beginners. Yes, it’s often way over my head, esp. what Hans and Taco explain, but after the third time I start to understand ;) It’s like when I started reading challenging computer magazines like c’t

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-29 Thread cryo shock via ntg-context
ng MWE you can see my progress along with some notes to > > help understanding. > > > > There are two questions, I'd wish could be answered: > > > > 1. Why does TeX insert a blank page before a pagefigure I enclose within > > a (hidden) head? > > > >

Re: [NTG-context] Can't manipulate glue added by tex.preparelinebreak

2022-07-26 Thread Hans Hagen via ntg-context
On 7/26/2022 8:18 AM, Max Chernoff via ntg-context wrote: Hi Hans, The new tex.preparelinebreak is great (thanks again), but I can't seem to figure out how to manipulate the parfillskip nodes that it adds. MWE: \newbox\testbox \startluacode function test(head

[NTG-context] Can't manipulate glue added by tex.preparelinebreak

2022-07-26 Thread Max Chernoff via ntg-context
Hi Hans, The new tex.preparelinebreak is great (thanks again), but I can't seem to figure out how to manipulate the parfillskip nodes that it adds. MWE: \newbox\testbox \startluacode function test(head) if head.id ~= node.id "par" then r

Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-25 Thread Hans Hagen via ntg-context
notes to help understanding. There are two questions, I'd wish could be answered: 1. Why does TeX insert a blank page before a pagefigure I enclose within a (hidden) head? 2. Can the \bookmark[list]{text} command be somehow used for multi-level bookmarking? While the first question would make

[NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-24 Thread cryo shock via ntg-context
be answered: 1. Why does TeX insert a blank page before a pagefigure I enclose within a (hidden) head? 2. Can the \bookmark[list]{text} command be somehow used for multi-level bookmarking? While the first question would make up for a more consistent solution, the second question would do the job

Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
he hyphen > width at the very beginning, but then I reset the total width to zero each > loop. That's probably why this wasn't working before). > >> * The other cases still seem a bit obscure to me, and I tried to trace where >> each of them might be trigg

Re: [NTG-context] linebreak error: no leftinit or rightinit or leftfill or rigthfill expected

2022-07-15 Thread Hans Hagen via ntg-context
I just updated my ConTeXt to system          > ConTeXt  ver: 2022.07.06 21:42 LMTX  fmt: 2022.7.12  int: english/english yesterday and got a error message in using tex.linebreak(head)  as follow: luatex warning  > linebreak: no [ leftinit | rightinit | leftfill | rigthfill] expected I c

Re: [NTG-context] linebreak error: no leftinit or rightinit or leftfill or rigthfill expected

2022-07-15 Thread Hans Hagen via ntg-context
I just updated my ConTeXt to system          > ConTeXt  ver: 2022.07.06 21:42 LMTX  fmt: 2022.7.12  int: english/english yesterday and got a error message in using tex.linebreak(head)  as follow: luatex warning  > linebreak: no [ leftinit | rightinit | leftfill | rigthfill] expected I c

  1   2   3   4   5   6   7   8   9   10   >