Kristoffer Carlsson

Results 1581 comments of Kristoffer Carlsson

We could do like BenchmarkTools and implement interpolation in the macro.

I think you should be able to pass `use_default_preamble = false` and `preamble = ["\\usepackage{foo}", ...]` to the `TikzDocument` constructor.

I guess you could pass `preamble = PGFPlotsX.CUSTOM_PREAMBLE`. But it is perhaps a bit odd that `use_default_preamble = false` also removes the custom additions. @tpapp, opinions?

But your second link is for the function called `_default_preamble` which you describe as "building the full preamble" is exactly what is being disabled if one uses `!use_default_preamble` (the first...

For now: ```jl td = TikzDocument(; use_default_preamble = false, preamble = PGFPlotsX.CUSTOM_PREAMBLE) ```

I don't think the situation where you want to export multiple formats of the same figure is that common. As you said, writing to .tex is free so the only...

Thinking about it more, a `keep_pdf` is a good idea. I don't think there is a need for `keep_tex`.

> which would make it easier to find and document. Perhaps, but it would also be a bit annoying? I think just making it more clear in the documentation is...

For this issue, I meant it would be good to have a `Node` object with a Julia constructor. So instead of having to use the string `raw"\node[fill=green] at (2, 5)...

> I have looked at common usages on StackOverflow and the TikZ manual, and I am not sure that aiming to cover even a fraction of them is simple. Yeah,...