Part two of this mess.
Now I have LyX 1.4.3 and an external template that looks like this
Template CppKod
GuiName "[C++ $$Basename]"
HelpText
Snyggar till C++ kod
HelpTextEnd
InputFormat cpp
FileFilter "*.{cpp,h,hpp,c}"
AutomaticProduction true
Format LaTeX
Product "{\\small \\input{$$FPath$$Basename.tex} }"
UpdateFormat latex
#UpdateCommand "highlight -A -L -t 4 -I -S cpp -f -r -q $$FName
-o
$$FName.tex"
UpdateResult "$$FName.tex"
FormatEnd
Format PDFLaTeX
Product "{\\small \\input{$$FPath$$Basename.tex} }"
UpdateFormat latex
#UpdateCommand "highlight -A -L -t 4 -I -S cpp -f -r -q $$FName
-o
$$FName.tex"
UpdateResult "$$FPath$$Basename.tex"
FormatEnd
TemplateEnd
And the result is a file that lacks some of the images that are used.
In the console I get:
dvips: Could not find figure file /home/gunnar/Skola//int_area.eps; continuing
and that file really exists in the current directory.
This picture is included with ERT by \includegraphics{int_area.eps}
I'm very confused now.
On Thursday 28 December 2006 11:50, Gunnar wrote:
> I have made an external template (or converter for external files as it is
> with the new lyx versions, i use 1.4.2)
>
> I get the error message: An errror occurred whilst running
> highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o
>
> The command in the converter in the preferences menu is:
> highlight -A -L -t 4 -I -S cpp -f -r -q $$FName -o $$FName.tex
>
> I'm not really sure what is going on here. I thought I had it working.
> Any ideas, anyone?
>
> Regards Gunnar.