Comments (6)
@yudai-nkt Thanks a lot for reporting this bug!
I tried to implement a workaround which
- uses the
\randomseed
you suggested for lualatex - uses a fixed seed for xelatex (and added a warning about this to the documentation).
from tikzducks.
Now using \pgfmathsetseed{\time}
for xelatex
Updates only once per minute, but generally works
from tikzducks.
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 \pdfrandomseed
, which can be a better seed (you aren't making an encryption, but it's better indeed), for (u)pLaTeX, which are Japanese variants of LaTeX. I'll be glad if you support the use of \pdfrandomseed
in (u)pLaTeX as well although the number of users are considerably smaller than that of other engines.
My follow-up isn't a bug report but just a proposal of enhancement, so I never mean to rush you. Thanks again.
from tikzducks.
@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 :)
from tikzducks.
no matter how big or small the number of users might be. If such a small change helps someone it is worth doing it
Much appreciated for the kind words. Also looking forward to the next release! ✨🦆
from tikzducks.
@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 \randomseed
primitive.
Would you be able to test with (u)pLaTeX? I would be very grateful to hear your feedback! Thanks in advance!
from tikzducks.
Related Issues (20)
- Documentation: Link not working HOT 1
- pgfonlayer HOT 2
- Milkshake Duck
- Rounded corners do not scale well
- Ducktor HOT 3
- autoscale text HOT 5
- Monet and Surfer HOT 3
- FaceMask HOT 1
- More accessories/shoes HOT 1
- Tikzducks-generic file missing? HOT 6
- Document how to use /fill with a selected duck HOT 2
- Avoid name clashes with the figchild package HOT 1
- Does not always work on TexpadTex HOT 8
- Tikz library `ducks` is not portable
- Broom duck doesn't work - PGF Keys error HOT 3
- Scale scales y and x shift HOT 2
- Pirate duck
- more hairstyles HOT 1
- `\selectcolormodel{gray}` does not work for `\path[fill=<some pure color>]` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tikzducks.