微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

有没有办法在引号内自动移动句点? csquotes 似乎不起作用

如何解决有没有办法在引号内自动移动句点? csquotes 似乎不起作用

csquotes 在这种情况下不起作用,可能是因为我使用的是自定义命令:

\documentclass[12pt,letter,american]{article}
\usepackage[american]{babel}
\usepackage[autopunct,style=american]{csquotes}
\newcommand{\qq}[1]{\textquote{#1}}
\begin{document}
This is an \qq{example}.
\end{document}

\qq 不会将尾随句点移动到报价中,例如This is an \qq{example}. 仍然会产生 This is an “example”. 我已经用 \qq 写了一本书,并希望将引用样式更改为将句点和冒号移动到引号中的样式。有没有安全的方法自动实现这一目标?也许一个包不同于csquotes?到目前为止,我在网上找到的唯一解决方案无法正确处理间距。

解决方法

请参阅 csquotes 文档,第 9.2 节:

\documentclass[12pt]{article}
\usepackage[american]{babel}
\usepackage[autopunct,style=american]{csquotes}
\renewcommand{\mktextquote}[6]{#1#2#4#5#3#6}
\newcommand{\qq}[1]{\textquote{#1}}
\begin{document}
This is an \qq{example}.
\end{document}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。