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

tikzset #50

Closed
Lecrapouille opened this issue Sep 24, 2019 · 6 comments
Closed

tikzset #50

Lecrapouille opened this issue Sep 24, 2019 · 6 comments

Comments

@Lecrapouille
Copy link

Hi! Is this possible to add an extra parameter to TikzPicture in the aim to add code for \tikzset{?
For example to change the style for arrows:

\tikzset{myarrow/.style={->,draw=black,line width=1pt}}

LaTeX code to be placed before \begin{tikzpicture}[.

@Lecrapouille
Copy link
Author

PS: If you wish I can create a PR!

@mykelk
Copy link
Member

mykelk commented Sep 24, 2019

I think you can do this through the preamble. See this for example. Do you have a more user friendly way in mind?

@Lecrapouille
Copy link
Author

Thanks for your fast answer but preamble seems to placed before \begin{document} Is this really alright? Seem to be a little touchy to place tikz code before the document.

@mykelk
Copy link
Member

mykelk commented Sep 24, 2019

Yep, I often put it before the start of the document and it works just fine.

@Lecrapouille
Copy link
Author

Ok thanks I tried and effectively that it worked fine :) Just a last point. I'm writting a jupyther page but TikzPictures.jl create temporary directories temp_dir = _mktempdir("./"). Now I have so many folder inside my git project. I can add a .gitignore file but is it possible to create them in other folder for example /tmp ?

@mykelk
Copy link
Member

mykelk commented Sep 24, 2019

If you look at the code here, it should be deleting the temp directories. If you can fix or narrow down the issue feel free to file another issue or PR. I'll close this one for now.

@mykelk mykelk closed this as completed Sep 24, 2019
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