1

Is it possible in latex to have single file like equations.tex and able to call part of it to our main.tex just like a combination of \include{} or \input{} and \cite{}?

For example I have a centralized equation.tex with content:

\begin{equation}
\label{eq:miqp-obj}
\min_{\mathbf{x}}C = \frac{1}{2} \mathbf{x}^{T}Q\mathbf{x}+\mathbf{c}^{T}\mathbf{x} 
\end{equation}

\begin{equation} \label{eq:miqp-cons} A\mathbf{x} \preceq \mathbf{b}, \end{equation}

and in my main.tex I call:

Equation can be seen in (\ref{eq:miqp-obj}).

\include{equations.tex/eq:miqp-obj} % or \input{equations.tex/eq:miqp-obj}

The idea is to have a centralized equations. A workaround is using eqautions/ folder and have each equation its separate .tex file, then use \input.

0 Answers0