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

Why is limit_to not exposed for TIKZ #69

Closed
H-M-H opened this issue Jan 9, 2021 · 3 comments
Closed

Why is limit_to not exposed for TIKZ #69

H-M-H opened this issue Jan 9, 2021 · 3 comments

Comments

@H-M-H
Copy link
Contributor

H-M-H commented Jan 9, 2021

I tend to use \includegraphics for TIKZ pictures a lot but in this case I need them without preamble but with the .tikz file ending. Is there a reason why limit_to is set to :all only?

mutable struct TIKZ <: SaveType
filename::AbstractString
limit_to::Symbol
TIKZ(filename::AbstractString) = new(removeExtension(filename, ".tikz"), :all)
end

I can workaround this by changing limit_to after creating a TIKZ object and this seems to work just fine.

@mykelk
Copy link
Member

mykelk commented Jan 9, 2021

Feel free to file a PR where we can pass in an optional argument.

@H-M-H
Copy link
Contributor Author

H-M-H commented Jan 9, 2021

Alright, have a look at #70 then.

@mykelk
Copy link
Member

mykelk commented Jan 9, 2021

Thanks!

@mykelk mykelk closed this as completed Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants