Search code examples
latexr-markdownpandocbookdown

How to write Chinese quotes in Bookdown


I had tested in bookdown template, and found that “”, which is Chinese quotes, would be translated to ``,''。 But if you write “” in a block or other begin,end blocks, the Chinese quotes, “”, would not be translated to ``,''。So you will get different Chinese quotes, in the final pdf file. Can I set in some place to turn off such translation? Thank you.


Solution

  • I use another method.

    % 解决双引号不一致的问题。
    \newcommand\cqh{“} % chinese quote head
    \newcommand\cqt{”} % chinese quote tail
    

    or add space after ``''. The solution is not very good. I add md_extensions: -smart make no sense.

    For English, `` '' works very well, but In Chinese, it becomes ugly. Hope pandoc become good enough.