如何使用正式的csQuotes和页面引用?

如何使用正式的csQuotes和页面引用?

我一直在尝试编写一份包含正确挪威语引文的文档。这csQuotes似乎是最好的。我也使用 natbid 来引用参考文献,但是当使用 \citep[page]{refference} 而不是 \citep{refference} 时,文档无法编译

\begin{filecontents}{biblio.bib}
@book{Feynman,
        author = "Richard P. Feynman",
        title = "Surely You're Joking, Mr.Feynman!",
        publisher = "WW.Norton Company, Inc",
        year = "1985"
}
\end{filecontents}

\documentclass[12pt,a4paper]{article}
\usepackage[sort,numbers,square]{natbib}
\usepackage[norsk]{babel}
\usepackage[autostyle]{csquotes}

\begin{document}

\textquote[Feynman \citep[s39-41]{Feynman}]{One thing I never did learn was contour integration. I had learned to do integrals 
    by various methods shown in a book that my high school physics teacher Mr. Bader had 
    given me. That book also showed how to differentiate parameters under the integral 
    sign—it's a certain operation. It turns out that's not taught very much in the 
    universities; they don't emphasize it.

    But I caught on how to use that method, and I used that one damn tool again and again. 
    So because I was self-taught using that book, I had peculiar methods of doing integrals. 
    The result was, when guys at MIT or Princeton had trouble doing a certain integral, it 
    was because they couldn't do it with the standard methods they had learned in school. If 
    it was contour integration, they would have found it; if it was a simple series expansion, 
    they would have found it. Then I come along and try differentiating under the integral sign, 
    and often it worked. So I got a great reputation for doing integrals, only because my box of 
    tools was different from everybody else's, and they had tried all their tools on it before 
    giving the problem to me.}{}{}

\bibliographystyle{plain}
\bibliography{biblio}    

\end{document}

在此示例中,使用 时文档编译正常\citep[s39-41]{Feynman},使用 时则编译失败。\citep[s39-41]{Feynman} 经过更多测试后,似乎在引号中不使用空格时文档确实可以编译。但结果有点奇怪。有人知道如何正确使用csQuote\citep吗?

答案1

的可选参数会使\citepLaTeX 感到困惑,因为]被视为 的可选参数的结尾\textquote

只需将命令放在括号中即可。

这是一个编辑过的版本。

\begin{filecontents}{\jobname.bib}
@book{Feynman,
  author = {Richard P. Feynman},
  title = {Surely You're Joking, {Mr.} {Feynman}!},
  publisher = {W. W. Norton Company, Inc.},
  year = {1985},
}
\end{filecontents}

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,norsk]{babel}
\usepackage[sort,numbers,square]{natbib}
\usepackage{csquotes}

\begin{document}

\begin{hyphenrules}{english}
\textquote[Feynman {\citep[s39-41]{Feynman}}]{One thing I never did learn was contour 
  integration. I had learned to do integrals
  by various methods shown in a book that my high school physics teacher Mr. Bader had 
  given me. That book also showed how to differentiate parameters under the integral 
  sign—it's a certain operation. It turns out that's not taught very much in the 
  universities; they don't emphasize it.

  But I caught on how to use that method, and I used that one damn tool again and again. 
  So because I was self-taught using that book, I had peculiar methods of doing integrals. 
  The result was, when guys at MIT or Princeton had trouble doing a certain integral, it 
  was because they couldn't do it with the standard methods they had learned in school. If 
  it was contour integration, they would have found it; if it was a simple series expansion, 
  they would have found it. Then I come along and try differentiating under the integral sign, 
  and often it worked. So I got a great reputation for doing integrals, only because my box of 
  tools was different from everybody else's, and they had tried all their tools on it before 
  giving the problem to me.}{}{}
\end{hyphenrules}

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

在此处输入图片描述

相关内容