I created an external reference file with many mathematical formulas. very similar to this: foonotes in external page the equations.tex is so structured :
\documentclass[10pt]{article}
\usepackage{amssymb,amsmath}
%\usepackage{catchfilebetweentags}
\usepackage{stackengine} %% barbII
\usepackage{cancel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[overload]{empheq}
\newcommand{\for}{\text{for }}
\begin{document}
\begin{enumerate}
\item \underline{\textit{Principio di conservazione della massa }}:
%<*eq001>
\begin{center}
\begin{equation}\label{eq001}
\textbf{m} = \Intlim{V_{m}}\rho(x,t)\de{V}
\end{equation}
\end{center}
%</eq001>
%<*eq002>
\begin{center}
\begin{equation}\label{eq002}
\Dtot{m}{t} =\Dtot{}{t} \Intlim{V_{m}}\rho(x,t)\de{V} = 0
\end{equation}
\end{center}
%</eq002>
\item \underline{\textit{Principio di bilancio della quantità di moto}} (Eulero, 1752):
%<*eq003>
\begin{center}
\begin{equation}\label{eq003}
\textbf{q} = \Intlim{V_{m}}\rho\textbf{u}\de{V}
\end{equation}
\end{center}
%</eq003>
\end{enumerate}
\end{document}
In the preamble of the main.tex i inserted this:
\usepackage{catchfilebetweentags}
\newcommand{\loadeq}[1]{%
\ExecuteMetaData[equations.tex]{eq#1}%
}
I call the various formulas in chapter01.tex with the loadeq {equation number} command :
bla bla bla bla bla bla bla
\loadeq{003}
the problem is born if:
- I want to align two equations;
\loadeq{003} = \loadeq{003} - I want to align the equation and a text;
ciao = \loadeq{003} - I want to align a particular symbol with the equation.
$\vec{\Pi}=$ \loadeq{003}
It would be interesting to understand how to be able to concatenate different \loadeq{arg}




\ExplSyntaxOn ....\prop...\seq....... \ExplSyntaxOff. how come it signals it as an unrecognized command? – Antonio Oct 23 '18 at 18:38\Aboxed. have a error : Misplaced alignment tab character &. \Aboxed{\barbII{\tau} =\useeqq*{010}}. I replaced with\boxedcommand, with this i dont'have problems – Antonio Oct 23 '18 at 18:58