Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

inlinedef – Inline expansions within definitions

The pack­age pro­vides a macro \In­line that pre­cedes a \def or \gdef. Within the def­i­ni­tion text of an in­lined def­i­ni­tion, key­words such as \Ex­pand may be used to se­lec­tively in­line cer­tain ex­pan­sions at def­i­ni­tion-time. This eases the pro­cess of re­defin­ing macros in terms of the orig­i­nal def­i­ni­tion, as well as def­i­ni­tions in which the to­ken that must be ex­panded is deep within, where \ex­pandafter would be dif­fi­cult and \edef is not suit­able. Another ap­pli­ca­tion is as an eas­ier ver­sion of \af­ter­group, by defin­ing a macro in terms of ex­panded lo­cal vari­ables, then end­ing the group with \ex­pandafter\end­group\macro.

Sources/macros/latex/contrib/inlinedef
Doc­u­men­ta­tion
Ver­sion1.0
Li­censeThe LaTeX Project Public Li­cense
Copy­right2008 Stephen D. Hicks
Main­tainerStephen Hicks
Con­tained inTeXLive as in­linedef
MiKTeX as in­linedef
Topics al­ter­na­tive ways of defin­ing macros

Down­load the con­tents of this pack­age in one zip archive (147.1k).

Guest Book Sitemap Contact 2014-04-17 19:09 CEST