Programming

Logic, arithmetic, keys, hooks, dates and placeholder text, for packages and documents built from data.

63 packages. Each page says how mLaTeX supports one, lists the commands it gives, and shows a document that uses it, taken from mLaTeX's own tests so that it compiles as written.

NameWhat it does
advdateDates moved
atbegshiAt page shipout
atveryendAt the very end
auxhookHooks into the aux file
bigintcalcBig integers
bitsetBit sets
blindtextText to fill a page with, the printer's Lorem ipsum
calcLengths written as sums, such as \textwidth-2cm, and \widthof
catchfileA file into a macro
chngcntrCounters within counters
currfileThe current file
datetimeThe date written the ways a document writes it
datetime2Today's date and the time, in the document's own style; a date written out from its parts, and one kept under a name to be used again
duckumentsDuck documents
environ\NewEnviron, an environment whose body is read whole into \BODY
etexE-TeX
etoolboxThe tests and switches a package, or a document built from a program's values, decides what to set with
everypageA hook on every page
everyshiEvery shipout
expl3LaTeX3
fixltx2eLaTeX fixes
fmtcountNumbers and counters written in words and as ordinals
fpFixed-point arithmetic
gettitlestringTitles as strings
ifluatexLuaTeX or not
ifoddpageOdd or even page
ifpdfPDF output or not
iftexWhich TeX program
ifthen\ifthenelse and \whiledo, with ifthen's tests
ifxetexWhich TeX program
infwarerrInfo, warnings and errors
intcalcInteger arithmetic
isodateDates in ISO form
kantlipsumKant's filler text
keyvalKeys and values
kvoptionsKey-value options
kvsetkeysSetting keys
l3keys2eLaTeX3 keys as options
letltxmacroCopying robust macros
lipsumPlaceholder text, for a layout to be judged before its words exist
ltxcmdsLaTeX kernel commands
luacodeLua code
mweMinimal working examples
pdftexcmdsPdfTeX primitives
perpageCounters reset per page
pgfkeysPGF keys
regexpatchPatching by regular expression
rerunfilecheckRerun checks
scrtimeThe time
shellescShell escape
silenceSilencing warnings
tex4htHTML conversion
totcountCounter totals
trigTrigonometry
trimspacesTrimming spaces
uniquecounterUnique counters
xargsSeveral optional arguments
xfpArithmetic in the document
xifthenifthen's tests, and whether a text is empty, holds another, or names a command
xkeyvalExtended keys
xparseDocument commands
xpatchPatching commands
xstringString tests