Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [callback]

The tag has no usage guidance.

10
votes
1answer
108 views

marking end of words in luatex - problem with math

I'm trying to mark the end of "words" (including punctuation) with luatex callbacks. (At the end I want to inject space chars at this positions, but the example uses rules for the visualization). ...
1
vote
0answers
54 views

Insert LaTeX code at line break (follow up)

This is a follow-up question to David Carlisle's answer here (Insert LaTeX code at line break). In addition to glyph nodes, is there a way to insert (almost) arbitrary LaTeX commands with the help of ...
3
votes
1answer
84 views

Why user-defined whatsit kicks out kerning?

I ran in to trouble marking math content (in this example I'll be talking about simple superscript) with user-defined whatsit. Font kerning does not appear if whatsit is in between characters where ...
1
vote
1answer
59 views

Lualatex, print over all pages

I'd like to define in Lualatex a way to add a text after each page. For example, add a code that display a big stamp in the middle of the page on top of the text (adbegshi does something similar, but ...
7
votes
1answer
95 views

How to use LuaTeX `append_to_vlist_filter` callback

I am considering a solution to the automatic grid typesetting problem though LuaTeX callbacks. The most relevant one seems to be append_to_vlist_filter. (vpack can also work, I support, but a less ...
2
votes
0answers
67 views

luatex tex.print does not trigger process_input_buffer callback?

I've defined a new LaTeX command to randomize itemize-like lists using LuaLaTeX like this: \newcommand*\Randomize{% \directlua{% questions.itemstbl = {""} luatexbase....
4
votes
0answers
81 views

Callback to be run at the end of the job

My Lua initialization script opens some files that are written to in the course of the run. I would like to additionally write some last bytes to them when LuaTeX is done processing all code. It ...
9
votes
1answer
136 views

LuaTeX hpack_filter callback not triggering on certain hlist creations

EDIT: The hpack_filter is triggered and my question pointless. Consult my answer on why I missed the callback invocation. I am using LuaTeX to analyze the creation process of math expressions in a ...
11
votes
1answer
528 views

LuaTeX callback for single line captions

I am using LuaTeX and its associated callbacks (pre_linebreak_filter, post_linebreak_filter and mlist_to_hlist) to analyze lines and paragraphs during typesetting of a pdf document. This works fine ...
3
votes
1answer
215 views

process_input_buffer callback in LuaTeX [closed]

I try to play with the callback function process_input_buffer provided by LuaTeX, but unluckily I don't get what I expect. The manual said that This callback allows you to change the contents of ...