Closed giordano closed 8 years ago
For the record, this happens only with standalone
class, not with article
, so maybe this isn't a bug in the package.
Hi Mosè,
Yeah, I'm not exactly sure what the cause of this is, but loading the
tikz
options for standalone
does some weird stuff. In particular, it
will try and start and stop the page at each \begin{tikzpicture}
and
\end{tikzpicture}
(or equivalent therefore). The final semi-colon at the
end of the \feynmandiagram
declaration behaves like an
\end{tikzpicture}
so the standalone
starts a new page. I can only
guess that in the process, it no longer is in a math environment, hence the
errors. Even if it did compile, you wouldn't get your desired result.
You can try it without the tikz
option, it might work better for this
case.
Josh
On Mon, Feb 8, 2016 at 10:29 AM Mosè Giordano notifications@github.com wrote:
For the record, this happens only with standalone class, not with article, so maybe this isn't a bug in the package.
— Reply to this email directly or view it on GitHub https://github.com/JP-Ellis/tikz-feynman/issues/19#issuecomment-181139742 .
You can try it without the
tikz
option, it might work better for this case.
Almost: loading tikz
as a package, as usual, at least makes the figure appear in the output file, but I still get errors during compilation.
If you think it's rather something weird on standalone
side, feel free to close this ticket!
Yeah, I believe it is an issue with standalone
, so I will close this issue. Thanks for the heads up though!
Maybe I'm missing something, when I try to compile the snippet provided in documentation regarding using
\feynmandiagram
within anequation
environment compilation (withlualatex
) fails with many errorsHere are some of the errors:
What am I missing?