<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 28 Sept 2024 at 03:50, user202729--- via luatex <<a href="mailto:luatex@tug.org">luatex@tug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
It looks like there is a bug in the synctex code. Please take a look.<br>
<br>
(In particular, the node is a kern node but the macro assumes it's a glue node. This gives incorrect values in the generated synctex file, with the fix it gives correct values.)<br>
<br>
```<br>
diff --git a/source/texk/web2c/synctexdir/synctex.c b/source/texk/web2c/synctexdir/synctex.c<br>
index b9b5d8a..c2fe83f 100644<br>
--- a/source/texk/web2c/synctexdir/synctex.c<br>
+++ b/source/texk/web2c/synctexdir/synctex.c<br>
@@ -2060,14 +2060,14 @@ static inline void synctex_record_node_kern(halfword p)<br>
# endif<br>
if (SYNCTEX_SHOULD_COMPRESS_V) {<br>
len = SYNCTEX_fprintf(SYNCTEX_FILE, "k%i,%i:%i,=:%i\n",<br>
- SYNCTEX_TAG_MODEL(p,glue),<br>
- SYNCTEX_LINE_MODEL(p,glue),<br>
+ SYNCTEX_TAG_MODEL(p,kern),<br>
+ SYNCTEX_LINE_MODEL(p,kern),<br>
SYNCTEX_CTXT_CURH UNIT,<br>
SYNCTEX_WIDTH(p) UNIT);<br>
} else {<br>
len = SYNCTEX_fprintf(SYNCTEX_FILE, "k%i,%i:%i,%i:%i\n",<br>
- SYNCTEX_TAG_MODEL(p,glue),<br>
- SYNCTEX_LINE_MODEL(p,glue),<br>
+ SYNCTEX_TAG_MODEL(p,kern),<br>
+ SYNCTEX_LINE_MODEL(p,kern),<br>
SYNCTEX_CTXT_CURH UNIT,<br>
SYNCTEX_CTXT_CURV UNIT,<br>
SYNCTEX_WIDTH(p) UNIT);<br>
```<br>
<br>
Please take a look. Thank you.<br>
<br></blockquote><div><br></div><div>Ok, I will check it.</div><div><br></div><div>--</div><div>luigi </div></div></div>