-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I just discovered the attachfile2 LaTeX package, which enables me to
attach files to a pdf file, and it works very nicely:
1) add
\usepackage{attachfile2}
to the preamble
2) add
\attachfile{/path/to/document.lyx}
into an ERT box in the document where the link to the attachment
should be located
That's it.
Now I have two questions concerning my "manual" implementation:
1) is there a variable which I could use so that the ERT always works?
I know about \jobname{}, bu it seems this does not get expanded in the
command \attachfile{}?
2) is there a way that I can put \attachfile{} in the preamble, so
that it gets automatically added as an additional last page of the
document? In this way, I could easily control it without changing
anything in the actual content of the document.
Thinking ahead: I think it would be nice, tio have the option to do
this automatically, i.e. have a checkbox in the document settings,
(under pdf) that the .lyx file or the lyx archive could be added as an
attachment.
Even one step further, additional export formats could also be
attached, e.g. a .rtf version for editing?
Any suggestions / comments?
Cheers,
Rainer
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: [email protected]
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk8FdBIACgkQoYgNqgF2egpVMACdGVjuNzdwbc8XiEaBeDYzy9Ob
rNAAnA3prPMWT9OvKUE77JVVo3hx+kvU
=7jkU
-----END PGP SIGNATURE-----