>>>>> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes:

Mael> To solve this problem, I wrote lyxfigedit, a little bash script
Mael> (see attached file) that allows to edit a figure by opening the
Mael> appropriate file in its editor. This trick only works on Mac OS.
Mael> [To developpers: For sure, a better solution would be to
Mael> integrate the concept directly into LyX.]

Mael> To use the shell, make it executable (and accessible in your
Mael> path) and then you'll be able to use it through 'Preferences >
Mael> File formats' for each file format you wish to specify.

Mael> For example,

Mael> 'LyX preferences > File formats > PDF (ps2pdf)' > Editor:
Mael> lyxfigedit $ $i .pdf .graffle

Mael> will open 'example.graffle' in OmniGraffle (if installed) when
Mael> clicking the Edit" button in LyX graphics dialog for
Mael> 'example.pdf'. If no editor nor file 'example.graffle' is found,
Mael> the PDF file will just be shown in the Finder.

What about adding the format .graffle in your preferences and
documenting the command to create a pdf from graffle (assuming this is
possible, of course). The you just insert the graffle file into LyX
and forget about the rest.

JMarc

Reply via email to