-
Notifications
You must be signed in to change notification settings - Fork 13
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
tikzducks v0.5 is incompatible with LuaLaTeX and XeLaTeX #14
Comments
@yudai-nkt Thanks a lot for reporting this bug! I tried to implement a workaround which
|
Now using |
Thank you for the quick fix! In addition to 7d836bb, something like \RequirePackage{ifluatex}
\RequirePackage{ifxetex}
\ifluatex
\let\pdfrandomseed\randomseed
\fi
\ifxetex
\pgfmathsetseed{\time}
\else
\pgfmathsetseed{\number\pdfrandomseed}
\fi will utilize e-(u)pTeX's My follow-up isn't a bug report but just a proposal of enhancement, so I never mean to rush you. Thanks again. |
@yudai-nkt Thanks a lot for your comment! I'll happily integrate your code suggestion into the package, no matter how big or small the number of users might be. If such a small change helps someone it is worth doing it (especially as I cannot see any real drawbacks of the new code). It works just fine from what I can tell! I had already submitted the bug fix 7d836bb to CTAN in order to make the package usable again as soon as possible, so I will include ef333d1 only in the next version of the package. Please report again, if you happen to notice any other problems between the tikzducks package and (u)pLaTeX (I have to admit, these are engines I don't use regularly -- in fact today was probably the first time I did :) |
Much appreciated for the kind words. Also looking forward to the next release! ✨🦆 |
@yudai-nkt Please excuse me for pinging you about this old thread, but I just made some changes about the random seed because as of 2019 xelatex now also supports the Would you be able to test with (u)pLaTeX? I would be very grateful to hear your feedback! Thanks in advance! |
After updating TeX Live on my end, I got interested in how
\randuck
is implemented and found the following line. https://github.com/samcarter8/tikzducks/blob/2f69d05fef84253fb6ff60081c2eb5d78b72b653/tikzducks.sty#L767LuaTeX of version 0.81.0 or higher and XeTeX don't have the primitive
\pdfrandomseed
whereas pdfTeX and e-(u)pTeX do. Therefore, the following MWEcannot be typeset with XeLaTeX and LuaLaTeX.
Solution with LuaLaTeX is easy; you only need to
\let
\pdfrandomseed
to be\randomseed
(possibly with version checking). There seems to have been a discussion about PRNG in XeTeX, but I don't have time to read all the thread at the moment and XeTeX doesn't have a primitive named\randomseed
.The text was updated successfully, but these errors were encountered: