Thanks for the feedback! The problem is not about child documents, but
the chunk option fig.align='center' in your child documents. This
option is not really for the "general-purpose" Markdown, because
Markdown does not support the alignment of images. What knitr does
when it sees fig.align in Markdown is to generate HTML code <img
src=... style="display: block; margin: auto" /> instead of using the
original Markdown syntax ![]() to write images. At the moment, Pandoc
does not seem to recognize the <img> tag when it converts Markdown to
LaTeX.
I think we will solve this problem in the future by using native LaTeX
code to write figures when the document output is expected to be PDF.
For now, the best strategy is to avoid anything that is not supported
in the native (Pandoc) Markdown syntax.
Regards,
Yihui
--
Yihui Xie <
xiey...@gmail.com>
Web:
http://yihui.name