On Wed, Feb 26, 2020 at 06:15:20AM -0700, Joel Kulesza wrote: > > I think the most obvious candidate is external material machinery. > > This means that I???ll have to specify the file name twice, right? It is > often the case that I want/need to list the file but also want to include it > for the readers convenience. The frustration of files being renamed and > having to keep them updated in multiple places is why I???m becoming tired of > ERT. This, and having multiple items for each file (a program listing and the > ERT).
Well, if the external template can spit out whatever tex code, right? So it could print the command for material embedding, but it could also print out some variable/label which contains the name of the file (like emebdding_no_01=file.mp3). You would need to define two strings - emebdding_no_01 && file.mp3, but from then you could change filename string at one place as much as you want while keeping the label name constant and using it within the document (through e.g. insetinfo or ERT). Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel