0

Is there a way to add a text by reference using LaTeX? I have several text references to 'versionXX.yy'. I wonder if I can define this in one place so I don't need to update it in all places.

Thanks

M24
  • 109
  • 1
  • 2
  • 11

1 Answers1

1

You could define a variable or new command with your version at the beginning and then just use this definition. See here

Btw. there is a special site called tex.stackexchange.com for this kind of questions.

FreshD
  • 2,914
  • 2
  • 23
  • 34
  • ok, this works well. However, I still have a problem: `code` \begin{fullwidth} \begin{lstlisting}[language=bash] mv ~/Downloads/application_\Version.bin .. # Move installer to home directory \end{lstlisting} \end{fullwidth} `endcode` In this case it does not work. I am new to LaTeX :/ P.S.: sorry for the formatting :( – M24 Jan 22 '18 at 11:26
  • The listing environment will print everything in the way you write it down. And I'm not sure if you can use variables in there – FreshD Jan 22 '18 at 11:34