On 14/05/2013 7:21 PM, caio rodrigues wrote:
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 .
Actually, maybe LyX should just have an option to keep processing even
in case of errors, as is possible with many LaTeX editors or by
compiling yourself.
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}
Can you please provide a minimal LyX file and the custom layout file you
are using? Obviously, LyX shouldn't be outputting these empty float
definitions.
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
That's great, thanks for sharing!
--
Julien