I'm working with LyX 2.2.0, Windows 10 and MiKTeX 2.9 distibution.

If I write in my preamble:
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix={Figures/}]
all works well, but the externalized files are stored in a LyX temp dir,
hence I loose them when I close LyX (you use \tikzexternalize also to save
time, if you loose the figures, time is not saved).

If I write:
\tikzexternalize[prefix={"C:/Users/MyName
MySurname/Documents/LaTeX/Figures/"}]
I get the error:
! I can't write on file `"C:/Users/MyName
MySurname/Documents/LaTeX/Figures/MyDoc-figure0.md5"'.

I've already written to lyx-users, but without success.
I've also posted a question on TEX SE, they told me the solution is to set
MIKTEX_ALLOWUNSAFEOUTPUTFILES=1 but this is dangerous:
http://tex.stackexchange.com/questions/319721/tikz-externalization-with-absolute-path-and-miktex-distribution

Is there an alternative?
Thank you!

Carla

Reply via email to