From ee2646b5655caed7653109b6778351ddb61ca9fc Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 21 Apr 2020 16:51:25 +0200 Subject: [PATCH] Update output.jl --- src/output.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/output.jl b/src/output.jl index 7a6c9660..b8e95bb7 100644 --- a/src/output.jl +++ b/src/output.jl @@ -45,6 +45,7 @@ end eps(fn::AbstractString) = eps(current(), fn) function tex(plt::Plot, fn::AbstractString) + fn = addExtension(fn, "tex") io = open(fn, "w") show(io, MIME("application/x-tex"), plt) close(io) @@ -102,7 +103,7 @@ end function addExtension(fn::AbstractString, ext::AbstractString) try oldext = getExtension(fn) - if oldext == ext + if _savemap[oldext] == ext return fn else return "$fn.$ext"