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

Disable warning for Lua #49

Open
melsophos opened this issue Jan 21, 2018 · 2 comments
Open

Disable warning for Lua #49

melsophos opened this issue Jan 21, 2018 · 2 comments
Labels

Comments

@melsophos
Copy link

just started to use your package (and I find it extremely wonderful), but i am quite annoyed with all the warnings saying that key "X" is ignored because I am not using LuaTex. I don't have time now to move to LuaTex (or to make work the code you gave on your blog), so it would be nice to have an option to disable the warnings. I have placed manually all vertices and the result looks good.

@JP-Ellis JP-Ellis added the bug label Jan 22, 2018
@JP-Ellis
Copy link
Owner

There's an option to disable LuaTeX warnings:

\tikzfeynmanset{warn luatex=false}

but it doesn't seem to be working at the moment as it is still displaying errors even when set to false. If you really want to disable the warnings at the moment, then a temporary fix would be to change the lines

\def\tikzfeynman@luatex@required@path{
  \PackageWarning{tikz-feynman}{The key you tried to use '\pgfkeyscurrentpath/\pgfkeyscurrentname' requires LuaTeX.  It will be ignored.}
}
\def\tikzfeynman@luatex@required@key{
  \PackageWarning{tikz-feynman}{The key you tried to use '\pgfkeyscurrentpath' requires LuaTeX.  It will be ignored.}
}

to

\def\tikzfeynman@luatex@required@path{
  %\PackageWarning{tikz-feynman}{The key you tried to use '\pgfkeyscurrentpath/\pgfkeyscurrentname' requires LuaTeX.  It will be ignored.}
}
\def\tikzfeynman@luatex@required@key{
  %\PackageWarning{tikz-feynman}{The key you tried to use '\pgfkeyscurrentpath' requires LuaTeX.  It will be ignored.}
}

in tikzfeynmankeys.code.tex.

@melsophos
Copy link
Author

It works perfectly, thanks!
Once the option works maybe you could mention it in the documentation? I was expecting such a possibility but did not find it in the doc (PDF version).

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