Is there any way I can define a variable in LaTeX?

后端 未结 6 1800
梦谈多话
梦谈多话 2020-12-04 04:57

In LaTeX, how can I define a string variable whose content is used instead of the variable in the compiled PDF?

Let\'s say I\'m writing a tech doc on a software and

6条回答
  •  执念已碎
    2020-12-04 05:35

    This works for me: \newcommand{\variablename}{the text}

    For eg: \newcommand\m{100}

    So when you type " \m\ is my mark " in the source code,

    the pdf output displays as :

    100 is my mark

提交回复
热议问题