On Sat, Jul 11, 2015 at 9:48 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote:
> On Sat, 11 Jul 2015, Liviu Andronic wrote:
>
>> Another way to do this is to keep figure floats, labels and cross-refs
>> exclusively in LyX. So the chunk would simply output a graph, and you
>> place the chunk within a LyX float (with associated caption and label).
>> Then use normal LyX workflow.
>
>
>   Might as well keep this in the same thread for posterity's sake.
>
>   The first figure addes in a float allowed the document to be compiled with
> pdflatex. When I added a new paragraph with a second figure float
> compilation fails but the explicit error is not shown.
>
Knitr seems to be picky about label names of figure chunks to be
unique. Check this. Also, to be safe, keep to one figure per chunk. As
for the log, I think some knitr messages aren't in the log per se, but
are displayed in the Messages pane. Inspect that for clues.

Liviu


>   I created a small test file from the document that contains all the knitr
> chunks and the two figure floats. Attached is the .lyx file (version 2.1.3),
> the /tmp/.../.log file, and the .RData file from the working directory. This
> should be enough to replicate the document. I cannot find the error in the
> log file; more experienced eyes than mine probably can. It is puzzling that
> the one figure worked, but adding an additional figure broke something.
>
>   Because this document will have many figures I need to understand how to
> avoid compilation errors as writing continues.
>
> Thanks,
>
> Rich



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library

Reply via email to