On Tue, Feb 27, 2001 at 12:55:52PM +0200, Dekel Tsur wrote:
> On Mon, Feb 26, 2001 at 03:45:42PM -0800, Kenward Vaughan wrote:
> > #
> > # FORMATS SECTION ##########################
> > #
> > 
> > \format "ochem" "tex" "Ochem" ""
> > \viewer "ochem" "/bin/true"
> > 
> > #
> > # CONVERTERS SECTION ##########################
> > #
> > 
> > \converter "latex" "ochem" "ochemppLyx $$b" ""
> 
> > Now I can see Ochem as a choice under both the export and view menus, and
> > the script runs when either is chosen.  However, the results die part way
> > through processing with a runaway text error involving the imbedded code. 
> > Bear in mind that this file (and code) works PERFECTLY with lyx 1.1.15 using
> > the script as a custom exporter.
> > 
> > The exported tex files from the two lyx versions differ, but only in the
> > text parts.  
> 
> Try exporting to latex (in 1.1.6) and then run ochemppLyx manually. Does it
> work ?
> Also, what is the output (in stdout) you get when you try to export to
> "Ochem" ?
...

I got your note later this morning.  Thanks for the reply.  Yes, a manual
run on a Latex export works.  I've put the results of my "scrounging around"
in (yet) another note to the group.

The output I see when trying to use the converter says something like
"Exporting Latex to Ochem" followed by a line showing the call to the
script, followed by the Latex log output I normally see when the script is
run, which shows the error being generated during the first Latex run (where
the drawing package extracts the code from the file for processing).

That last part I confirmed by manually running latex on the file (as done in
the script).
 
> PS: It is better to remove the gv line from your script, and then put
> the following in ~/.lyx/preferences:
> 
> \format ps2      ps  "Postscript (Ochem)" ""
> \converter "latex" "ps2" "ochemppLyx $$b" ""
> 
> but it probably won't solve your problem.

I'll give it a try.  Thanks!

Kenward
-- 
It is not so very important for a person to learn facts.  For that he
doesn't really need a college education, for he can learn them from
books.  The value of an education in a liberal arts college is not the
learning of many facts but the training of the mind to thinking--something
that cannot be learned from books.     Albert Einstein

Reply via email to