我已经配置了csquotes
以斜体显示引文,但我希望输出结果\textelp
符合\textnormal
要求。我该如何实现?
我以为只需包装一下就很容易了,但它产生了我无法解释的\textelp
杂散。[]
梅威瑟:
\documentclass{article}
\usepackage{csquotes}
\DeclareQuoteStyle[meide]{danish}
{\itshape\quotedblbase}
{\textquotedblleft}
[0.05em]
{\normalfont\guillemotright}
{\guillemotleft}
\setquotestyle[meide]{danish}
\newcommand\ellision{%
\textnormal\textelp{}%
}
\begin{document}
\enquote{abc abc abc \textelp{} abc abc abc} % the [...] is in italics
\enquote{abc abc abc \ellision{} abc abc abc} % the [...] is followed by empty brackets
\enquote{abc abc abc {\textnormal\textelp{}} abc abc abc} % same
\end{document}
答案1
\textnormal
接受一个参数,所以你应该写
\textnormal{\textelp{}}
反而。
\documentclass{article}
\usepackage{csquotes}
\DeclareQuoteStyle[meide]{danish}
{\itshape\quotedblbase}
{\textquotedblleft}
[0.05em]
{\normalfont\guillemotright}
{\guillemotleft}
\setquotestyle[meide]{danish}
\newcommand\ellision{%
\textnormal{\textelp{}}%
}
\begin{document}
\enquote{abc abc abc \textelp{} abc abc abc} % the [...] is in italics
\enquote{abc abc abc \ellision{} abc abc abc} % the [...] is followed by empty brackets
\enquote{abc abc abc {\textnormal{\textelp{}}} abc abc abc} % same
\end{document}