Difference between revisions of "Command/texdefinition"

From Wiki
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><!-- a short command summary goes here -->
+
<cd:shortdesc>The command <tt>\texdefinition</tt> executes a command
The command <tt>\texdefinition</tt> is used for ...
 
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:variants>
 
<cd:variants>
Line 13: Line 12:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<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


\texdefinition

Summary

The command \texdefinition executes a command

Settings

\texdefinition{...}
{...}name

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}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: