< TeX

Synopsis

\csname

Description

Used with \endcsname. The text between the two commands build the name of a TeX command.

Example

 \def\x{paragraph}

 % \def\startparagraph#1{...}
 \def\csname start\x\endcsname#1{...}

 % \def\stopparagraph#1{...}
 \def\csname stop\x\endcsname#1{...} 

 % \startparagraph{mytext}
 \csname start\x\endcsname{mytext}
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.