在LaTeX,如果你以正常的方式写报价(标点符号),那么你会遇到问题。通常我们用引号将词语写成:“你的话”。这在LaTeX中显示为“您的单词”(开始和结束报价面向同一侧)。
在LaTeX中正确的书面报价方式是:
1 2 |
`Your word' = for single quote ``Your words'' = for double quotes |
您还可以使用csquotes包来实现此目的。
1 2 |
\enquote{Your words} = for single quote \enquote*{Your words} = for double quotes |
注意:报价设施是上下文敏感的。如果您使用“english”(美国)作为babel包的选项,则单引号和双引号将切换。我使用'英国'选项为babel包。
这里是使用csquotes包的示例文档代码。
1 2 3 4 5 6 7 8 9 10 11 12 13 |
\documentclass{article} \usepackage[british]{babel} \usepackage{csquotes}
\begin{document}
This will not work: "General quotation mark"
(generates backward quotation mark at the beginning) \\
This will work: \enquote{Hello Single World} and \enquote*{Testing Double}
\end{document} |
输出:
希望这可以帮助。
谢谢。