1

当我尝试导出包含多个biblatex cite 宏的 Org 缓冲区时,导出失败,我收到以下消息:

org-export-latex-preprocess:错误的类型参数:stringp,nil

复数 biblatex 宏是可以接受多个参数的宏,例如\autocites, \textcites,其中花括号中的每个参数都是参考书目,具体示例如下

\autocites[11]{someref}[22]{anotherref}

如果上面的示例被放置在 Org-buffer中并被C-e L按下,则导出失败并显示上面引用的消息。

如何让 Org-mode 识别复数 biblatex 引用宏以便导出成功?

我在 Emacs 23.3.1 中运行 Org-mode 7.6。

4

1 回答 1

1

我认为它现在可能正在工作,我刚刚测试了以下内容:

* test
  - Inline LaTeX \autocites[11]{someref}[22]{anotherref}
  - Latex single line block
    #+latex: \autocites[11]{someref}[22]{anotherref}
  - Latex code block
    #+begin_latex
      \autocites[11]{someref}[22]{anotherref}
    #+end_latex

LaTeX 导出成功,但是我无法将它一直推送到 pdf ( C-c C-e d)。LaTeX 导出成功,但无法转换为 pdf(我可能没有为它正确配置序言或软件包)。我假设如果乳胶正确出来,它应该能够在需要时将其生成 pdf。

乳胶出口(缺少序言):

\section{test}
\label{sec-1}

\begin{itemize}
\item Inline \LaTeX{} \autocites[11]{someref}[22]\{anotherref\}
\item Latex single line block
  \autocites[11]{someref}[22]{anotherref}
\item Latex code block
    \autocites[11]{someref}[22]{anotherref}
\end{itemize}

假设这是您期望从该文件中获得的输出,我猜想该问题已在 7.6 和 7.8 之间的某个时间点得到解决。


根据要求进行进一步测试

- Latex code block
  #+begin_latex
    \cites[11]{someref}[22]{anotherref}
    \Cites[11]{someref}[22]{anotherref}
    \parencites[11]{someref}[22]{anotherref}
    \Parencites[11]{someref}[22]{anotherref}
    \footcites[11]{someref}[22]{anotherref}
    \footcitetexts[11]{someref}[22]{anotherref}
    \smartcites[11]{someref}[22]{anotherref}
    \Smartcites[11]{someref}[22]{anotherref}
    \textcites[11]{someref}[22]{anotherref}
    \Textcites[11]{someref}[22]{anotherref}
    \supercites[11]{someref}[22]{anotherref}
    \autocite[11]{someref}[22]{anotherref}
    \Autocites[11]{someref}[22]{anotherref}
  #+end_latex

变成

\item Latex code block
    \cites[11]{someref}[22]{anotherref}
    \Cites[11]{someref}[22]{anotherref}
    \parencites[11]{someref}[22]{anotherref}
    \Parencites[11]{someref}[22]{anotherref}
    \footcites[11]{someref}[22]{anotherref}
    \footcitetexts[11]{someref}[22]{anotherref}
    \smartcites[11]{someref}[22]{anotherref}
    \Smartcites[11]{someref}[22]{anotherref}
    \textcites[11]{someref}[22]{anotherref}
    \Textcites[11]{someref}[22]{anotherref}
    \supercites[11]{someref}[22]{anotherref}
    \autocite[11]{someref}[22]{anotherref}
    \Autocites[11]{someref}[22]{anotherref}

因此,它似乎适用于所有情况

于 2012-02-02T14:59:39.310 回答