On Wed, Feb 26, 2020 at 09:50:21PM -0700, Joel Kulesza wrote: > Yes, I see now what is meant. I was reading previous pointers to External > Material as suggestions that PDFPages would already do what I wanted.
Thinking more, more straightforward solution to your problem would be just new check box ("Include file as pdf attachment as well") in the listings dialog, which would create necessary latex code for inclusion (and possible (re)define varible e.g. "attached_file" with the filename string to be used later). You would not need to play with external material mechanism. The downside is that you won't be able to use filename string ahead of the listings inset (or after another one). Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel