Closed caimiao0714 closed 5 years ago
Thanks for your feedback. It seems a plotting function does not work lines 45-46 in demo_zh.Rmd. If you remove these lines from body.Rmd, maybe this error could be removed.
However, it cannot clear the problem. Maybe you could try other templates. I have no mac and I am unable to test.
Thanks Peng. That works for me!
Hi Peng,
Here is another problem I have tried for a few days but could not solve, but I think it should be fairly simple for you.
While using the Chinese template 5, the figure caption cannot correctly show up it includes Chinese characters (for example fig.cap='中文标题'
). Here is what I get:
I check the LaTeX source file and it is not coded correctly either: \textless{}U+4E2D\textgreater{}\textless{}U+6587\textgreater{}\textless{}U+6807\textgreater{}\textless{}U+9898\textgreater{}
. My guess is that pandoc
cannot recognize Chinese characters in RMarkdown chunk.
Is there any suggestions on getting round this problem?
Thank you!
Try this in .Rmd:
(ref:fig-cn) 中文标题
```{r, fig.cap='(ref:fig-cn)'}
plot(cars)
See [Chapter 2.2.4 in the bookdown manual](https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html#text-references).
Try this in .Rmd:
(ref:fig-cn) 中文标题 ```{r, fig.cap='(ref:fig-cn)'} plot(cars)
See [Chapter 2.2.4 in the bookdown manual](https://bookdown.org/yihui/bookdown/markdown-extensions-by-bookdown.html#text-references).
That works great! Thank you so much Peng!
Hi Peng,
I tried generating a bookdownplus project using template 5 官方中文模板, but it seems not to work on my computer.
Here are my session information, my codes and the error messages:
Any thoughts?