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.
Here the makefile code: I hope this to be useful to someone else : To compile and catch the errors: $ make To compile and ignore the annoying errors: $ make remake ( automatically open the document in pdf ) To compile and update without reopen the document in pdf: $ make update ################################################ # Author: Caio Rodrigues # Description: Compiles lyx file to pdflatex # # Commands: # make remake : Force recompile and ignore non critical errors and open the pdf # make update : Update the generated pdf # make : Compile catching the errors # #---------------------------------------------------------------------------------------------------------------- # LYX FILE NAME TO BE COMPILED # SRCC=monografia-parcial18.lyx # BASENAME - Name without file type SRC=$(basename $(SRCC)) # TEX file name TEXNAME=$(SRC).tex REPORT=$(SRC).pdf #---------------------------------------------------------------- # LATEX PROCESSOR TOOLS # #---------------------------------------------------------------- # # LATEX PROCESSOR TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error # Index Processor INDEX= makeindex # BIBTEX PROCESSOR BIB= bibtex # PDF VIWER #PDF=okular PDF=evince ALL: $(REPORT) $(REPORT) : $(TEXNAME) $(TEX) $(SRC) # Generates the reference $(BIB) $(SRC) $(BIB) $(SRC) $(INDEX) $(SRC).nlo -s nomencl.ist -o $(SRC).nls $(TEX) $(SRC) $(TEX) $(SRC) $(TEX) $(SRC) # Generate list of symbols and names # #$(INDEX) $(SRC).nlo -s nomencl.ist -o $(SRC).nls #$(TEX) $(SRC) #$(TEX) $(SRC) @echo "" @echo "----------------------------------------------" @echo " END of compilation " @echo "----------------------------------------------" $(TEXNAME) : $(SRCC) lyx -batch -f -e latex $(SRCC) remake: # Clean and make the target file again # and clean the mess and view pdf # make cleanall # Restart compile make -i # Ignore errors make clean # Clean the mess $(PDF) $(REPORT) & > /dev/null 2>&1 update: # Update the taret file and clean the mess # rm -rf $(REPORT) make -i # make clean clean: rm -rf $(TEXNAME) *.bak *.aux *.blg *.idx rm -rf *.toc *.out *.dvi *.siglx *.symbols *.lof *.bbl rm -rf *.ilg *.lot *.nlo *.sigla *.nls *.siglax *.symbolsx cleanall: rm -rf $(REPORT) make clean # Dummy to command to test the makefile commands # dummy: @echo "TEXNAME="$(TEXNAME) @echo "SRCC="$(SRCC) @echo "SRC="$(SRC) @echo "REPORT="$(REPORT) 2013/5/10 stefano franchi <stefano.fran...@gmail.com> > > On Tue, Apr 30, 2013 at 12:42 PM, caio rodrigues < > caiorss.rodrig...@gmail.com> wrote: > >> >> %% Because html converters don't know tabularnewline >> \providecommand{\tabularnewline}{\\} >> \floatstyle{} >> \newfloat{}{}{} >> \providecommand{\name}{} >> \floatname{}{\protect\name} >> > > The first line is inserted automatically as soon as you start a new table > float. But I have never seen the following 4 lines. Did LyX insert them in > the preamble? Have you tried inserting a table into a new test file? > > > Cheers, > > Stefano > > > -- > __________________________________________________ > 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 >