Controls in yexο
Keyword |
Group |
Notes |
Purpose |
---|---|---|---|
_Input |
io |
π» |
This is where the input streams live. |
_Output |
io |
π» |
This is where the output streams live. |
|
math |
π€Έπ½ |
Switches inline maths mode on or off. |
|
font |
π€Έπ½ |
Adds an italic correction. |
|
other |
π½ |
? |
|
math |
π½ |
? |
|
Glue |
? |
|
|
Glue |
? |
|
|
math |
π½ |
? |
|
other |
π½ |
? |
|
Number |
? |
|
|
arithmetic |
Adds two quantities. |
|
|
other |
π½ |
? |
|
other |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
Number |
How badly the most recent line of text was set. |
|
|
Glue |
? |
|
|
debug |
π½ |
? |
|
other |
πͺπ½ |
? |
|
Glue |
? |
|
|
Glue |
? |
|
|
Number |
? |
|
|
box |
π½ |
? |
|
Dimen |
? |
|
|
Number |
? |
|
|
other |
? |
|
|
register |
πͺ |
? |
|
box |
π½ |
? |
|
io |
π½ |
? |
|
io |
π½ |
? |
|
Number |
? |
|
|
tab |
π½ |
? |
|
register |
πͺ |
? |
|
tab |
π½ |
? |
|
tab |
π½ |
? |
|
other |
π½ |
? |
|
Number |
? |
|
|
Number |
? |
|
|
macro |
πͺ |
? |
|
Number |
? |
|
|
Number |
? |
|
|
math |
π½ |
? |
|
Number |
? |
|
|
Dimen |
? |
|
|
register |
πͺ |
? |
|
other |
π½ |
? |
|
Dimen |
? |
|
|
math |
π½ |
? |
|
math |
π½ |
? |
|
Number |
? |
|
|
Dimen |
? |
|
|
arithmetic |
Divides two quantities. |
|
|
Number |
? |
|
|
box |
? |
|
|
debug |
π½ |
? |
|
macro |
πͺ |
? |
|
conditional |
πͺ |
? |
|
Dimen |
? |
|
|
other |
π½ |
? |
|
other |
π½ |
? |
|
other |
πͺπ½ |
? |
|
io |
π½ |
? |
|
Number |
? |
|
|
math |
π½ |
? |
|
Tokenlist |
? |
|
|
string |
πͺ |
? |
|
Number |
? |
|
|
debug |
π½ |
? |
|
Number |
? |
|
|
Tokenlist |
? |
|
|
Tokenlist |
? |
|
|
Tokenlist |
? |
|
|
Tokenlist |
? |
|
|
Tokenlist |
? |
|
|
Tokenlist |
? |
|
|
Tokenlist |
? |
|
|
Number |
? |
|
|
other |
π½ |
? |
|
Number |
? |
|
|
conditional |
πͺ |
? |
|
Number |
? |
|
|
box |
π½ |
? |
|
Number |
? |
|
|
font |
? |
|
|
font |
Gets and sets various details of a font. |
|
|
font |
π½ |
Inserts the name of the current font. |
|
other |
π½ |
? |
|
macro |
πͺ |
? |
|
macro |
πͺ |
? |
|
Number |
? |
|
|
other |
π½ |
? |
|
Number |
? |
|
|
Dimen |
? |
|
|
Number |
? |
|
|
box |
? |
|
|
box |
Skips horizontally by zero, but with infinite stretchability and shrinkability. |
|
|
box |
? |
|
|
box |
Skips horizontally by zero, but with even more infinite stretchability. |
|
|
box |
Cancels the stretchability of a previous hfil. |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Number |
? |
|
|
box |
Adds a horizontal rule. |
|
|
Dimen |
? |
|
|
box |
Adds a horizontal leader. |
|
|
box |
Skips horizontally by zero, but with infinite stretchability and shrinkability. |
|
|
box |
? |
|
|
hyphen |
π½ |
? |
|
font |
Sets the character used for hyphenation. |
|
|
Number |
? |
|
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
conditional |
πͺ |
? |
|
other |
π½ |
? |
|
io |
? |
|
|
other |
? |
|
|
io |
π½ |
? |
|
Number |
? |
|
|
other |
π½ |
? |
|
Number |
? |
|
|
Number |
? |
|
|
Tokenlist |
? |
|
|
gismo |
? |
|
|
Number |
? |
|
|
box |
? |
|
|
Dimen |
? |
|
|
Number |
? |
|
|
Glue |
? |
|
|
box |
π½ |
? |
|
math |
π½ |
? |
|
Number |
? |
|
|
Glue |
? |
|
|
math |
π½ |
? |
|
other |
TODO |
|
|
math |
π½ |
? |
|
Number |
? |
|
|
Glue |
? |
|
|
Dimen |
? |
|
|
macro |
πͺ |
? |
|
Number |
? |
|
|
box |
? |
|
|
other |
πͺ |
? |
|
Number |
? |
|
|
box |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
register |
πͺ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
math |
π½ |
? |
|
Dimen |
? |
|
|
Number |
? |
|
|
Dimen |
? |
|
|
other |
π½ |
? |
|
Muglue |
? |
|
|
string |
πͺ |
? |
|
gismo |
π½ |
? |
|
Number |
? |
|
|
box |
? |
|
|
box |
? |
|
|
math |
π½ |
? |
|
arithmetic |
Multiplies two quantities. |
|
|
register |
πͺ |
? |
|
Number |
? |
|
|
other |
π½ |
? |
|
other |
π½ |
? |
|
other |
πͺ |
The argument is not expanded. |
|
other |
? |
|
|
math |
π½ |
? |
|
math |
π½ |
? |
|
debug |
π½ |
? |
|
Dimen |
? |
|
|
font |
Selects the null font, which contains no characters. |
|
|
other |
π½ |
? |
|
tab |
π½ |
? |
|
io |
π½ |
? |
|
io |
π½ |
? |
|
conditional |
πͺ |
? |
|
macro |
πͺ |
? |
|
Tokenlist |
? |
|
|
Number |
? |
|
|
math |
π½ |
? |
|
Dimen |
? |
|
|
math |
π½ |
? |
|
math |
π½ |
? |
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
other |
Add a paragraph break. |
|
|
Glue |
The amount of space to add at the end of a paragraph. |
|
|
Dimen |
? |
|
|
other |
πͺ |
? |
|
Glue |
? |
|
|
hyphen |
π½ |
? |
|
Number |
? |
|
|
other |
? |
|
|
Number |
? |
|
|
Number |
? |
|
|
Dimen |
? |
|
|
Number |
? |
|
|
Dimen |
? |
|
|
Number |
? |
|
|
math |
π½ |
? |
|
box |
? |
|
|
io |
π½ |
? |
|
other |
Does nothing. |
|
|
Number |
? |
|
|
math |
π½ |
? |
|
Number |
? |
|
|
Glue |
? |
|
|
other |
π½ |
? |
|
math |
π½ |
? |
|
Dimen |
? |
|
|
math |
π½ |
? |
|
debug |
π½ |
? |
|
box |
? |
|
|
hyphen |
π½ |
? |
|
tab |
π½ |
? |
|
other |
Sends a box to the output. |
|
|
other |
π½ |
? |
|
box |
? |
|
|
Number |
? |
|
|
Number |
? |
|
|
other |
πͺ |
? |
|
other |
π½ |
? |
|
font |
? |
|
|
register |
πͺ |
? |
|
Number |
? |
|
|
Glue |
? |
|
|
tab |
π½ |
? |
|
gismo |
π½ |
? |
|
box |
π½ |
? |
|
box |
π½ |
? |
|
Dimen |
? |
|
|
Glue |
? |
|
|
other |
? |
|
|
Glue |
? |
|
|
math |
π½ |
? |
|
other |
Takes an argument, one of many kinds (see the TeXbook p212ff) and returns a representation of that argument. |
|
|
Muglue |
? |
|
|
Muglue |
? |
|
|
Number |
? |
|
|
register |
πͺ |
? |
|
Number |
? |
|
|
box |
π½ |
? |
|
Glue |
? |
|
|
log |
Commands before they are executed |
|
|
log |
Characters not in the font |
|
|
log |
Macros, as they are expanded |
|
|
log |
If positive, logs go to stdout; otherwise they go to the logfile. |
|
|
log |
Boxes that are shipped out |
|
|
log |
Page-break calculations |
|
|
log |
Line-break calculations |
|
|
log |
Deassignments when groups end |
|
|
log |
Statistics about memory usage |
|
|
Number |
? |
|
|
math |
π½ |
? |
|
other |
π½ |
? |
|
other |
π½ |
? |
|
box |
π½ |
? |
|
box |
π½ |
? |
|
box |
π½ |
? |
|
other |
π½ |
? |
|
other |
π½ |
? |
|
other |
πͺ |
? |
|
other |
π½ |
? |
|
other |
π½ |
? |
|
Number |
? |
|
|
box |
? |
|
|
box |
? |
|
|
box |
Skips vertically by zero, but with infinite stretchability. |
|
|
box |
Skips vertically by zero, but with more infinite stretchability. |
|
|
box |
Cancels the stretchability of a previous vfil. |
|
|
Dimen |
? |
|
|
Dimen |
? |
|
|
box |
Adds a vertical rule. |
|
|
Dimen |
? |
|
|
box |
Adds a vertical leader. |
|
|
box |
? |
|
|
box |
Skips vertically by zero, but with infinite stretchability and shrinkability. |
|
|
box |
? |
|
|
box |
? |
|
|
Number |
? |
|
|
io |
πͺ |
? |
|
macro |
πͺ |
? |
|
box |
π½ |
? |
|
Glue |
? |
|
|
Number |
? |
|
|
other |
Add an unbreakable space. |
Parameters are listed with their type name in the group column, in italics.
Symbol |
Meaning |
---|---|
π€Έ |
Active character. Whenever the character appears in ordinary text, this routine will be called. |
πͺ |
Expandable control. These controls work at a low level, because they
deal with the flow of control. For example, |
π» |
Appears in the controls table, but is not visible from TeX code. |
π½ |
Not currently implemented. Eventually, everything will be implemented, but at present this isnβt. (Parameters are not marked.) |
- class yex.control.C_Control(is_long=False, is_outer=False, name=None, *args, **kwargs)[source]ο
Bases:
object
Superclass of all controls.
- A control has:
- a name, which is a string. If you donβt pass one in,
we default to the name of the class in lowercase.
a __call__() method, which causes it to run
- the flags is_long and is_outer, which affect
where it can be called
Each control is usually referred to by at least one yex.parse.Control object in a given Document. But those objects are symbols, and these are procedures; donβt get them confused.
A Document keeps track of many controls. The control doesnβt know which doc itβs in, but when itβs called, it can find it by looking in the doc field of tokens.
Some controls (such as the superclass) have names beginning with C_. This is so that they canβt be called from TeX code; TeX identifiers canβt contain underscores. If they began with a plain underscore, Python wouldnβt export them from their modules.
- property identifierο
A good string to use for looking up this control in a document.
In practice, it could be stored under a different string as well, or instead, or it might not be stored at all. But this is often a reasonable shot.
β.. list-table:: Control keywordsnβ β :header-rows: 1nβ βnβ β * - Keywordnβ β - Groupnβ β - Notesnβ β - Purposenβ