\synctex 原语是什么?它的文档在哪里?

\synctex 原语是什么?它的文档在哪里?

问题就在标题里。

(不用说我尝试过texdoc synctex|etex_man|pdftex|pdftex-a|xetex|luatex,我发现的唯一的事情是它是由extraprimitivesLuaTeX 中的函数启用的。它看起来像一个内部数字寄存器,但文档理想情况下/希望包括例如我们可以在编译期间/页面之间打开和关闭它吗?等)

答案1

extensions.c在 luatex 源中有

int synctexoption;

/*tex

    A convenient primitive is provided: \.{\\synctex=1} in the input source file
    enables synchronization whereas \.{\\synctex=0} disables it. Its memory
    address is |synctex_code|. It is initialized by the {\sl Sync\TeX} controller
    to the command-line option if given. The controller may filter some reserved
    bits.

    In order to give the {\sl Sync\TeX} controller read and write access to the
    contents of the \.{\\synctex} primitive, we declare |synctexoffset|, such
    that |mem[synctexoffset]| and \.{\\synctex} correspond to the same memory
    storage. |synctexoffset| is initialized to the correct value when quite
    everything is initialized.

*/

/*tex Holds the true value of |synctex_code|: */

与对应于的原语不同shell-escape,它不是只读的并且可以在本地设置。

相关内容