-
Notifications
You must be signed in to change notification settings - Fork 40
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
Use only custom Preamble #179
Comments
I think you should be able to pass |
Yes, this disables the predefined preamble but the PGFPlotsX.CUSTOM_PREAMBLE is not used as well. |
I guess you could pass |
Sorry, I didn't read your comment clearly. I used the option |
@KristofferC: are you sure it does? My reading of the code is that when The full preamble is built using four global sources and then the |
But your second link is for the function called |
Ok, I tried the following:
The result is the name.tex file which still includes
before |
For now: td = TikzDocument(; use_default_preamble = false, preamble = PGFPlotsX.CUSTOM_PREAMBLE) |
Yes: when I agree that the naming of these functions is a bit misleading. We could introduce a flag for toggling |
Ok, now I'm doing:
which is almost what I want except for
at the beginning of the document. Can I disable them as well? |
It looks like you don't want to save a document, just standalone TikZ code. I wonder what your use case is, and whether you would be better served with open("some_path.tex", "w") do io
println(io, "some preamble I need")
print_tex(io, td)
end or something similar wrapped in a function. Also look at saving with a |
Well actually you are right, this is probably the easiest solution. I somehow thought that using build in methods would be beneficial. My usecase:
What I did in the end:
And thank you very much for the help! |
Executing the following removes the
It seems that |
I think this one can be closed. Thanks again! |
I was wondering if the option exists to include only the custom preamble and not the predefined. I would like to include my own options and not the predefined.
The text was updated successfully, but these errors were encountered: