> However, I think that resizing/rotation options should be added to the
> external inset.

Yes, I think so to. If you read the ExternalTemplate.lyx file, you will
notice that this is mentioned as a feature to implement for a volunteer.
I think it should be designed such that there are optional parameters
for all commands, and another for a products. In the dialog, there
should be two parameter boxes, and a drop-down list where you can choose
which export format, you are parameterizing.  Such a setup would also
allow for previewing of all different export formats.

At the moment, there is only one general parameter box, and you can
only preview the primary format, and that obvious sucks.
We did not have time to implement the full parameter version at the
meeting, and I don't have time to do this now.
But at the same time, I feel that the external inset is not completely
finished without this feature, so I would be very happy if somebody
picked up the torch, and did this small refinement.

> Format LaTeX
>     Product "\\begin{picture}(0,0)\\includegraphics{$$Basename.eps}\<-no break
> \\end{picture}\\input{$$Basename.pstex_t}"
>     Requirement "graphics"
>     UpdateCommand "python $$Sysdir/scripts/fig2pstex.py $$FName $$Parameters"
> FormatEnd
>
> No. You should write a python script that generates both the pstex and the
> pstex_t files automatically (in the example above, the suffix of the 
> Postscript file should be changed from pstex to eps).

By now, it would come as no surprise that I'd like to ask Dekel to submit
a patch that improves the XFig external inset ;-)

If you need to add a certain package to the LaTeX preamble, you have
two options: Either just insert it with a Preamble command in the
external_templates file (and make sure that it is robust enough to
be included several times), or extend LaTeXFeatures.[Ch] with a new
package, and use the name in the Requires command in the external_
templates file.

When I get some more feedback on the external inset, I will find time
to update the documentation accordingly.  BTW, if somebody is messing
around with the documentation anyway, they would be welcome to insert
the ExternalTemplates.lyx document into the User guide, or whatever
existing help document is appropriate.

Greets,

Asger

Reply via email to