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

The section page and TikZ external #260

Closed
kellertuer opened this issue Feb 13, 2017 · 3 comments
Closed

The section page and TikZ external #260

kellertuer opened this issue Feb 13, 2017 · 3 comments

Comments

@kellertuer
Copy link

I really like to use Metropolis since I discovered it. However, I have a few graphics I use in my talks, that are better to be prerendered and included, which is nicely done by the TiKz library external.

However when I activate external, every sectionpage produces also an extra externalized pdf (of just the line). Would it be possible to add an \tikzexternaldisable before and a \tikzexternalenableafter each tikzpicture the theme generates? I know, that this can be done, I did it myself a while ago;
so this might also be seen as a reminder for myself ;) I am just not yet used to dtx files and haven't found my old files with the fix (in my old theme a while ago).

Best,
Kellertuer.

@matze matze closed this as completed in dc7ae3d Feb 13, 2017
@kellertuer
Copy link
Author

Hi, thanks for the quick fix, the one point to keep in mind is, that if you don't load the external library of TikZ your solution will throw an error, because then the \tikzexternaldisable and enable-commands are not defined. That's what I meant with i'll have to look for that, i'm sorry, that I wasn't more clear in the first place.

@matze matze reopened this Feb 13, 2017
@matze
Copy link
Owner

matze commented Feb 13, 2017

Yep, you are right. I think we could either define those to NOPs if they don't exist or prematurely load external. Hmm ...

@kellertuer
Copy link
Author

I still can't find my old code, but I think I had something to check whether external was loaded, stored that value in a boolean and sorrounded both commands by an if. Which is a little longer that your NOPs Idea. I wouldn't just prematurely load external though.

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