Is there an option in TeXstudio to get from a command to its definition?
(similar to Visual Studio's F12 or PyCharm's Ctrl+B)
For example, I have the source line:
\input{other.tex}
The \equat{} is: $\varx + \vary = 0$
And in other.tex file I have:
\newcommand{\equat}{\text{Important Equation}}
\newcommand{\varx}{\text{$x$}}
\newcommand{\vary}{\text{$y$}}
And I want to navigate from \equat{}to its definition in other.tex file, preferably with keyboard shortcut.
\newcommand{\equation}without getting errors; you cannot define commands such as\var1and\var2. And defining something as\text{$x$}is really wrong. – egreg Jul 13 '22 at 10:09\text{$x$}really wrong? – user107511 Jul 13 '22 at 11:59\varxin both text and math modes. If you really want to (but you shouldn't),\newcommand{\varx}{\ensuremath{x}}would be the most efficient code. If you use your definition in math mode, TeX has to exit it, typeset four instances of the math modexand use one of them. – egreg Jul 13 '22 at 12:12