I am using LyX and I tried adding a macro that includes TeX code but it seems as if it doesn't recognize the \abs
command:
To be clarified, when adding the following TeX code the file compiles:
and the absolute value is presented correctly in the exported pdf file:
Any help would be appreciated.