I tried your suggestion but it did not help.

I then tried to simply import the .tex that was
generated by highlight into and ERT box.   

I invoked the highlight program from the command line
and generated the .tex and then I put it in an ERT. 
Then I tried to view pdfLaTeX and got the same error
as if I tried to use the LyX template to import the
code and do the conversion.   

I believe that the .tex that was generated was the
problem.  There appears to be errors in the end of
line backslashes that are generated.  At least that is
my guess.     

When I try to import this code below and then run
pdfLaTeX it causes an error.   I had to remove the
last line to make it generate correctly.
    >>> }\hlstd{\ \ \ \ }\hlstd{}\hlkwd{printf 


\noindent
\ttfamily
\hlstd{}\hlcom{/{*} Standard header files
{*}/}\hlstd{}\hspace*{\fill}\\
\hldir{\#include $<$stdio.h$>$}\hspace*{\fill}\\
\hlstd{}\hldir{\#include
$<$math.h$>$}\hspace*{\fill}\\
\hlstd{}\hldir{\#include
$<$stdlib.h$>$}\hspace*{\fill}\\
\hlstd{}\hspace*{\fill}\\
\hspace*{\fill}\\
\hlkwb{void }\hlstd{}\hlkwd{calc\textunderscore
graceful}\hlstd{}\hlsym{();}\hspace*{\fill}\\
\hlstd{}\hspace*{\fill}\\
\hlkwd{main}\hlstd{}\hlsym{()}\hspace*{\fill}\\
\hlstd{}\hlsym{\{}\hspace*{\fill}\\
\hlstd{\hspace*{\fill}\\
}\hlstd{\ \ \ \ }\hlstd{}\hlkwd{printf 


--- Gunnar Lindholm <[EMAIL PROTECTED]> wrote:

> > I tried it but also got stopped with errors as
> below.
> > It looks like the highlighter is not running to
> > generate the .tex.
> >
> >  ...nput{.\0C__LyXDocs_Temp_graceful_prog.tex}
> >                                                   
> }
> > The control sequence at the end of the top line
> > of your error message was never \def'ed. If you
> have
> > misspelled it (e.g., `\hobx'), type `I' and the
> > correct
> > spelling (e.g., `I\hbox'). Otherwise just
> continue,
> > and I'll forget about whatever was undefined.
> 
> I have two ideas, 
> 1)But one could perhaps change the $$o  to a
> specified absolute filename  "C:
> \foobar.tex" ?
> 2) comment out the things that was added to the
> preamble?
> 



 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

Reply via email to