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

后端 未结 6 1798
梦谈多话
梦谈多话 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:24

    If you want to use \newcommand, you can also include \usepackage{xspace} and define command by \newcommand{\newCommandName}{text to insert\xspace}. This can allow you to just use \newCommandName rather than \newCommandName{}.

    For more detail, http://www.math.tamu.edu/~harold.boas/courses/math696/why-macros.html

提交回复
热议问题