编辑:这是我的问题的截屏:https://vid.me/uBHN
我已经克隆了这个项目:
https://github.com/vermiculus/smppaper
然后我在目录中创建了一个sections
名为的新文件,this.tex
如下所示
\section{Further Work}
\label{sec:further-work}
There are many things that, due to the sheer time constraints of the project,
have been left undone.
Some are tasks that I consider to be bugs or areas of severe lacking,
but some are critical bugs of the interface that should be taken into account
when using it.
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../smp.tex"
%%% TeX-PDF-mode: t
%%% reftex-cite-format: "\\autocite{%l}"
%%% TeX-command-default: "arara"
%%% TeX-engine: xetex
%%% End:
在将该文件包含在主文件之后smp.tex
文件使用
\include{sections/this}
并保存两个文件然后我尝试运行
reftex-citation
并得到以下错误:
byte-code: No valid bibliography in this document, and no default available
我不知道这是为什么 - 而且当我用 Google 搜索这个错误时,我得到有关 Reftex 未找到参考书目的信息。
这没有意义,因为当我打开一个文件
smppaper/sections/further-work.tex
并运行时refTeX-citation
,我可以看到可能的 bibTeX 条目列表。
似乎正在进行某种编译,但我不确定这是什么,因为当我打开一个新文件时,引用似乎也会被动态编译,这是消息缓冲区的粘贴:
Loading /smppaper/auto/smp.el (source)...done
Loading /smppaper/auto/smp.el (source)...done
Loading /smppaper/sections/auto/this.el (source)...done
Loading /smppaper/auto/this.el (source)...done
Applying style hooks... done
byte-code: Beginning of buffer
Compiling label environment definitions...done
Scanning entire document...
Scanning file /home/vco/vermy/smppaper/smp.tex
Scanning file abstract.txt
Scanning file sections/this
Scanning section 1 ...
Scanning file sections/introduction
Scanning section 2 ...
Scanning file sections/mathematical-representation
Scanning section 3 ...
Scanning file sections/logical-representation
Scanning section 4 ...
Scanning file sections/interface-test
Scanning section 5 ...
Scanning file sections/interface-ssa
Scanning section 6 ...
Scanning file sections/further-work
Scanning section 7 ...
Scanning file sections/reflection
Scanning section 8 ...
Scanning file appendices/bundle-format
Scanning section A ...
Scanning file appendices/gui-organization
Scanning section B ...
Scanning document... done
Sorting bibitem...
Removing duplicates... done
Quit
Mark set
我不确定这是做什么的,但看着这些线条,Loading /smppaper/sections/auto/this.el (source)...done
我觉得它们可能很有趣,但我看不出有什么不同。当我浏览further-work.el
并比较它时,我看不出有什么不同。
进一步的工作.el
(TeX-add-style-hook "further-work"
(lambda ()
(LaTeX-add-labels
"sec:further-work"
"sec:tasks:bugs"
"task:alg-aggr"
"task:update-name"
"task:test"
"task:definition-newline"
"task:valid-pred"
"task:reliable-hl"
"task:dates"
"task:testing-interface"
"task:interface"
"task:gui-syntax-highlighting"
"task:gui-definition-wrapping"
"task:smarter-def"
"task:temp-files"
"sec:tasks:ext"
"tast:autodate"
"task:gephi-glue"
"task:anigexf"
"task:gui-visualizer"
"task:texport"
"task:bundle-graphs"
"task:save-history"
"task:arbitrary-attributes"
"task:magical-references"
"task:stackless"
"task:genetic")))
此.el
(TeX-add-style-hook
"this"
(lambda ()
(add-to-list 'LaTeX-verbatim-environments-local "lstlisting")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "path")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "url")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "nolinkurl")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperbaseurl")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperimage")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "hyperref")
(add-to-list 'LaTeX-verbatim-macros-with-braces-local "lstinline")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "path")
(add-to-list 'LaTeX-verbatim-macros-with-delims-local "lstinline")
(LaTeX-add-labels
"sec:further-work"))
:latex)
他们似乎没有任何与 Reftex 相关的东西(对我来说)?
所以我不确定发生了什么或者如何解决这个问题。