Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example does not compile out of the box #1

Closed
natfarleydev opened this issue Aug 21, 2015 · 4 comments
Closed

Example does not compile out of the box #1

natfarleydev opened this issue Aug 21, 2015 · 4 comments
Labels

Comments

@natfarleydev
Copy link

On cloning, compiling with lualatex -shell-escape tikz-feynman.tex fails as it cannot create the folder pgf-img. Creating the folder fixes the problem, although it would be nice if this was done automatically (or at least documented in the README).

@JP-Ellis
Copy link
Owner

I didn't think people would be actually trying to compile the documentation itself, but I will make sure to fix that in the next version. The package itself, tikz-feynman.sty, doesn't rely on the externalization at all.

If you are curious, the externalization calls is a way to avoid re-creating the pictures every time. This can save a considerable amount of time on very large documents and I make use of some basic Linux programs and bash syntax so that it works nicely with Latexmk. If you comment out lines 61 to 67 it should work fine.

@natfarleydev
Copy link
Author

The compilation still fails if you take out lines 61-67 unless you use -interaction=batchmode. But I think this is a problem with Tikz (so perhaps documentation/creating a Makefile is the most appropriate fix). This is a general problem when using the tikz-feynman.sty file.

In summary lualatex -interaction=batchmode -shell-escape tikz-feynman.tex works :).

@JP-Ellis
Copy link
Owner

That's interesting; I just tried compiling the documentation with lines 61-67 commented out and it compiles fine without -interaction=batchmode.

The interaction mode actually doesn't change whether it successfully compiles or not, it just changes whether lualatex asks you what to do at each error it encounters. With batchmode, it is essentially telling lualatex to compile as much as it possibly can and skip over all errors.

Did you make sure to apply the patch to TikZ? If you have done that, can you post the log file somewhere so I can have a look?

@natfarleydev
Copy link
Author

My mistake, I assumed the patch had been applied in the sty file! I'll have to apply the patch myself.

JP-Ellis added a commit that referenced this issue Feb 1, 2016
PGFkeys usually removes spaces around keys; however, it seems to treat
spaces within `#1` differently to those outside of it.

Fixes #15.

Signed-off-by: JP-Ellis <josh@jpellis.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants