\def - Tex 命令
名称
\def - 用于定义您自己的命令。
概要
{ \def\myCommandName{ <replacement text> } }
Explore our latest online courses and learn new skills at your own pace. Enroll and become a certified expert to boost your career.
描述
\def 命令用于定义您自己的命令(控制序列、宏、定义);必须在使用前出现(在数学分隔符内);
示例
\def\myHearts{\color{purple}{\heartsuit}\kern-2.5pt\color{green}{\heartsuit}} \myHearts\myHearts
♡♡♡♡\def\myHearts#1#2{\color{#1}{\heartsuit}\kern-2.5pt\color{#2}{\heartsuit}} \myHearts{red}{blue}
♡♡
广告