Sorry, I meant the compilation of LyX documents is much faster. This matters if you have many tikz-figures in your document.
> On 22 Feb 2025, at 10:39, mkriele--- via lyx-users <lyx-users@lists.lyx.org> > wrote: > > Andrew has answered your question. Another possibility is to have a latex > file for each tikz-picture which produces pdf file for the corresponding > figure. These pdf files can be inserted as figures in LyX. This approach has > two advantages: Firstly, you can use a good editor with syntax highlighting > to edit your pictures. Secondly, the compilation of the latex document is > much faster. You will automatically see the change in LyX, whenever any of > these pdf files is updated. In those latex files I am using > > \usepackage[active,tightpage,psfixbb]{preview} > \PreviewEnvironment{pgfpicture} > \setlength\PreviewBorder{0pt} > > in order to just produce the figures without any surrounding white space. I > don’t remember whether one actually needs the second and third line, but you > certainly need the package tightpage. > > Regards > Marcus -- lyx-users mailing list lyx-users@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-users