Bug in running external program (-shell-escape)
Mario D
egalua at gmail.com
Fri Feb 24 10:56:39 UTC 2023
It looks like I have found a bug using the external library in lyx:
if you pass the option
\tikzexternalize[prefix=some_dir/]
then lyx is not able to create the subdir "some_dir" in its temporary
working dir under the /tmp tree, which results in a compilation error since
lyx is not able to write the necessary files.
If you don't pass any prefix option, the file compiles correctly, since lyx
can write all necessary files in the relative temp dir.
A MWE is the attached file, which results in the following latex source.
M
---------------------------------------------------------------------------------------------------------------------------------
%% LyX 2.3.6 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=picts/]
\makeatother
\begin{document}
\[
\begin{tikzpicture}
\node (0) at (0,0) {$1$};
\node (1) at (0,1) {$2$};
\draw[-] (0) edge (1);
\end{tikzpicture}
\]
\end{document}
---------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230224/27b654b7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.lyx
Type: application/x-lyx
Size: 2409 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230224/27b654b7/attachment.lyx>
More information about the lyx-devel
mailing list