Browse Source

Make limit_to available for TIKZ like with TEX

This exposes limit_to in the constructor of TIKZ just like TEX does,
including the option include_preamble to keep things consistent.
pull/70/head
HMH 5 days ago
parent
commit
2b8ac2dbca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TikzPictures.jl

+ 1
- 1
src/TikzPictures.jl View File

@ -101,7 +101,7 @@ end
mutable struct TIKZ <: SaveType
filename::AbstractString
limit_to::Symbol
TIKZ(filename::AbstractString) = new(removeExtension(filename, ".tikz"), :all)
TIKZ(filename::AbstractString; include_preamble::Bool=true, limit_to::Symbol=(include_preamble ? :all : :picture)) = new(removeExtension(filename, ".tikz"), limit_to)
end
mutable struct SVG <: SaveType


Loading…
Cancel
Save