Charpentier Philippe wrote:
>
> Hi,
> I would like to know if it is possible to define a viewer, a converter,
> a custom_export_command or something else such that, with one click on a
> menu entry, the two following things are done when the file DIR/file.lyx
> is open in LyX:
>
> 1) DIR/file.lyx is exported in latex to DIR/file.tex
> 2) a bash script is run on DIR/file.tex (i.e. with the complete path)
Add format "Charpentier" to the list of available formats using the
Edit->Preferences dialog:
(Qt) File Formats pane
(xforms) Conversion->Formats tab folder
Eg:
Format: charpentier
GUI name: Charpentier
Shortcut:
Extension: chp
Viewer
Press "Modify" and then "Save"
Thereafter, define a converter LaTeX->Charpentier using the
(Qt) Converters pane
(xforms) Conversion->Converters tab folder
> For example, the script would manage the compilation process (diffrently
> than LyX do it) in such a way that I would be able to use vtex without
> crashing lyx.
LyX should not crash. Please send a backtrace so that we can ascertain what
is going wrong.
Angus