Hi Stefano,

The Makefile has solved my issues by just ignoring the error and forcing
the compilation by doing : make recompile. The Lyx version is : LyX 2.0.3 .

 The makefile  exports the lyx file to tex file and compiles by using:
                           lyx -batch -f -e latex finalproject-report.lyx
and generates   finalproject-report.tex and compiles it.

There are a lot of errors in LaTex that aren't  important and annoying .  I
have installed all LaTex packages in Linux .

Here is the makefile code:  http://sprunge.us/WhPi

Going back to the error subject:
The  LyX gives three errors when I try to compile:

(1)

 \floatstyle

{}

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.


(2)

 \newfloat

{}{}{}

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.


(3)

 \floatname

{}{\protect\name}

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.



Here is the complete error log :  http://sprunge.us/aQXJ

Here is the latex generated preamble :  http://sprunge.us/eHWi


In the tex source code I 've seen that : Lyx automatically inserts this
codes.


\DeclareTextSymbol{\~}{LGR}{126}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\floatstyle{}
\newfloat{}{}{}
\providecommand{\name}{}
\floatname{}{\protect\name}


If I compile by exporting to tex  and doing :   pdflatex
monografia-parcial18.tex  it will give the same errors that are reported in
Lyx.

If I remove this codes in the tex file and compile it , there won't be any
errors reported and any issues.

If I don't remove this trouble code and export to Tex  and do:  pdflatex
 <file>.tex   and hit CR every time and do all others steps like bibitex,
 makeindex and forcing the compilation. It will build the  target pdf file
as expected. That is what the makefile does.

I believe that another benefit of Makefile is more control  and make more
easier to find the errors by viewing the error log file and all the
compilation process.  In addition the user can add more automation like
version control , send to remote repository ...  The makefile is one the
best Unix tools.

I hope this Makefile be useful to someone.

Regards,
Caio







2013/5/14 stefano franchi <stefano.fran...@gmail.com>

>
>
>
> On Mon, May 13, 2013 at 11:08 AM, caio rodrigues <
> caiorss.rodrig...@gmail.com> wrote:
>
>> Thanks anyway. I have found the following solution.  It's better to use a
>> Makefile to compile the LyX file . One advantage of using the makefile is
>> that debugging is more easier and the folder gets more clean after
>> compilation and the  It can ignore the LaTex errors that are not critical
>> and perform intermediare operations. And makes the Unix Junkies more happy.
>>
>>
> Hi Caio,
>
> I am not really sure how switching to Latex export plus direct compilation
> with a makefile solved your original issues. What happened to those errors
> you got when compiling from within lyx? Did they magically disappear? That
> may indicate that lyx is not finding all your Tex packages.
>
> Cheers,
>
> S.
>
> --
> __________________________________________________
> Stefano Franchi
> Associate Research Professor
> Department of Hispanic Studies            Ph:   +1 (979) 845-2125
> Texas A&M University                          Fax:  +1 (979) 845-6421
> College Station, Texas, USA
>
> stef...@tamu.edu
> http://stefano.cleinias.org
>

Reply via email to