I am using \floatfoot
to creates notes for a figure in a paper. I would like to include an equation in the notes for this figure. Specifically, I am trying to use the following code:
\floatfoot{Notes: The figure shows coefficients from the following specification:
$$ y = \alpha + \beta X $$
where $y$ is an outcome.}
When I compile this code, the PDF looks correct, although I get several errors in TeXnicCenter. I get errors like,
! Missing $ Inserted
where there are clearly no issues with a missing $ in the above code.
I was wondering if anyone has any recommendations to avoid getting these errors in TeXnicCenter. I've also tried to use the align
and equation
environments in the \floatfoot
command and this generates different (but obviously still problematic) errors.
$$ ... $$
anyway (see e.g. Why is \[ ... \] preferable to $$ ... $$?). Using inline math isn't an option? I.e.$ y = \alpha + \beta X $
.