Difference between revisions of "Command/texdefinition"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \texdefinition") |
|||
Line 1: | Line 1: | ||
<cd:commandgroup name="texdefinition" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | <cd:commandgroup name="texdefinition" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | ||
− | <cd:shortdesc> | + | <cd:shortdesc>The command <tt>\texdefinition</tt> executes a command |
− | The command <tt>\texdefinition</tt> | ||
</cd:shortdesc> | </cd:shortdesc> | ||
<cd:variants> | <cd:variants> | ||
Line 13: | Line 12: | ||
</cd:command> | </cd:command> | ||
</cd:variants> | </cd:variants> | ||
− | <cd:description> | + | <cd:description>Executes the command given as argument, if it exists. Otherwise does nothing. |
− | </cd:description> | + | |
− | <cd:examples></cd:examples> | + | This command is itself not expandable, which makes it useful especially when command names need to be input or output to files. It is heavily used by the bibliography code, for example.</cd:description> |
+ | <cd:examples><cd:example title=""><context source="yes"> | ||
+ | \texdefinition{section}{Section title} | ||
+ | </context></cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> | ||
<cd:seealso> | <cd:seealso> |
Latest revision as of 14:59, 3 December 2021
Contents
\texdefinition
Summary
The command \texdefinition executes a command
Settings
Description
Executes the command given as argument, if it exists. Otherwise does nothing.
This command is itself not expandable, which makes it useful especially when command names need to be input or output to files. It is heavily used by the bibliography code, for example.
Examples
Example 1
\texdefinition{section}{Section title}