作为根据这个问题,我正在使用csquotes
将引号转换为印刷引号。但是,当通过\selectlanguage
引号更改语言时,不再转换。(我需要英文摘要和丹麦语内容。与重命名摘要相比,我发现在摘要前后更改语言更“漂亮”,尽管这更麻烦。)
梅威瑟:
\documentclass[article,12pt,a4paper,openany,oneside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,danish]{babel}
\usepackage[danish=quotes]{csquotes}
\MakeOuterQuote{"}
\usepackage{lmodern}
\begin{document}
\selectlanguage{danish}
Quote: "Morbi dolor risus."
\end{document}
答案1
您可以使用\EnableQuotes
来取回引号。但我个人更喜欢使用\MakeAutoQuote
非 ASCII 参数的命令:
\documentclass[article,12pt,a4paper,openany,oneside]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,danish]{babel}
\usepackage[autostyle, %if quote style should change with language
danish=quotes]{csquotes}
\MakeAutoQuote{«}{»}
\MakeOuterQuote{"}
\usepackage{lmodern}
\begin{document}
\selectlanguage{danish}
\EnableQuotes
"Quote"
danish Quote: «Morbi «dolor» risus.»
\selectlanguage{english}
\EnableQuotes
"Quote"
english Quote: «Morbi «dolor» risus.»
\end{document}