Questions tagged [sockets]
Sockets are places in LaTeX code into which a predeclared plug of code can be fitted.
4 questions
1
vote
0
answers
65
views
In-text floats vs bottom floats: how to get consistent spacing?
Since the 2025-06-01 LaTeX kernel update, the new socket build/column/baselineattach lets us attach bottom floats using the baseline of the last text line.
With \AssignSocketPlug{build/column/...
4
votes
1
answer
180
views
How to debug/correct missing number error in plug during memoization?
The error is caused by the definition on line 436. Although this seems not to depend on memoize, all my attempts to eliminate memoize result in the code compiling.
The definition on line 436 is not ...
9
votes
1
answer
238
views
Example of using plugs and sockets
I have read the the ltsockets.dtx documentation as well as applications of plugs and sockets in the lttagging.dtx and also watched the TUG video. I am struggling to think of examples where the concept ...
13
votes
1
answer
424
views
Is the main advantage of sockets that they are TeX's version of enum?
I'm wanting to understand sockets better. The following is adapted from texdoc ltsockets:
\documentclass{article}
\NewSocket{fooSocket}{2}
\NewSocketPlug{fooSocket}{fooSocketPlugA}{foo-A: #1!#2}
\...