-
Notifications
You must be signed in to change notification settings - Fork 109
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
Support applying options to multiple examples as suggested in #640 #1339
base: master
Are you sure you want to change the base?
Conversation
This PR is also related to #971 |
3994ad2
to
a22132d
Compare
suggested in pgf-tikz#640 Signed-off-by: Hanson Char <[email protected]>
a22132d
to
cf6c892
Compare
simplify the usage of having multiple examples with the same options. Signed-off-by: Hanson Char <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
|
I am not sure if I understand your message right, but also the actual version (without your PR) doesn't work in all cases so far. |
Oops, never mind my last comment. My bad checking out the wrong source from the wrong branch locally. |
For the record: Here are other examples that could make use of this PR:
|
Indeed. I am working on my forked branch (specifically |
After fixing all the missing preambles and extending the existing I plan to submit two pull requests - one for fixing the preamble, etc. so that readers of the manual can copy-and-paste any of the examples in the pdf and have them successfully compiled, and another for the extended extractors and scripts. (I've got other miscellaneous things fixed as well, but I'll delay those to future pull requests.) However, these changes presume the fixes in this pull request #1339 have been merged. Any chance that can be done any time soon? |
That sounds awesome. Unfortunately I am a Windows child with almost no knowledge about bash scripts. After modifying it a bit so I could run it in Git Bash it extracted 2391 files. I assume it is my fault that I couldn't replicate 2503 extractions as you. I didn't run the compilations until the end, because in series this takes "forever" Merging usually is done by the master chief @hmenke, but I haven't seem him for a while (at least I can't remember ...). Have you (@muzimuzhi) seen him? |
2391 sounds significantly on the low side. Did you specify both the texlua ~/github.com/pgf/doc/generic/pgf/extract.lua ~/github.com/pgf/tex ~/github.com/pgf/doc ~/tmp/mwe (Running in parallel is an optimization that can be done later on.) |
Sorry, forgot that the main branch is called "master" so I didn't run the script on your "main" branch. Now I also extracted 2305 TEX files. |
I think you meant 2503, but yeah. |
Of course. It seems I really need holidays :) |
Motivation for this change
The conversation at #640 on the possibility of supporting the specification of options that can be applied to multiple examples.
To demonstrate the usage of this feature, I've modified
ControlElectric.lua
, while simplifying the code by removing unnecessary double quotes at the same time.Checklist