Rainer M Krug wrote:
> One more question: how can I deal with a function which requires two
> paramerer, e.g. \textattachfile{FILENAME.EXT}{THE TEXT OF THE LINK} in
> a module? Is there anywhere an example on how an inset with two
> parametern looks?
In Paragraphy styles (not in layouts I think), you can specify RequiredArgs.
See Customization.lyx.
A workaround in layouts is to simply insert }{ as a separator. This is a bad
hack, though.
> > However, I do not think such a module is the way to go. I would
> > rather try with an external material template. Have a look at the
> > pdfpages template for a model (in the file external_templates).
>
> Makes sense - never thought about that.
> I'll look into that and think about it. For the moment, I am going to
> use the module.
>
> Do I assume correctly, that these files I specify as external content
> will be included in the lyx archive? That would be a great advantage.
They should. And there are many more advantages. The file paths are known to
LyX, you can have preview, you can easily define options, etc.
Jürgen