Angus Leeming wrote:
On Monday 22 September 2003 2:39 pm, Jean-Marc Lasgouttes wrote:

%% Do command #1 if file #2 exists, else print a warning
\newcommand{\DoOrWarn}[2]{
 \IfFileExists{#2}{#1{#2}}{\warnNotFound{#2}}
}


Guess what? I got greedy!

I'm trying to write a design document describing how to implement 'modifiers' for InsetExternal. It's quite an education ;-)

Ultimately, the problem really boils down to how do we create an appropriate external template syntax?



After reading the document, I wonder what the \executeIfFound is for.
I see what it _does_, but why let latex handle an error condition?
Isn't it better to simply give a message through the GUI
(Your figure doesn't exist/failed to convert)
This is much faster as the error is reported so early
that latex don't have to run at all.
Do we want to generate a .dvi/.ps/.pdf at all in
such a case?

An ability to skip some figures might be handy of course,
but shouldn't that be explicit?  I.e. the user click some
"no output" button in the external inset, (or a global "draft" thing)
and then lyx don't produce any latex at all for the inset?

I'm a bit worried about the user who thinks a large document
printed fine, only to discover later that the tricky
figure on page 67 was silently omitted.

Helge Hafting



Reply via email to