如题,承接上问,https://wenda.latexstudio.net/q-1423.html 这个问号意思大概就是文献没有找到,没有定义。 现在给一个例子: ```tex \documentclass[onecolumn]{article} \usepackage{xcite} \usepackage{xr-hyper} % \usepackage{xr} \usepackage{graphicx} \graphicspath{{figures/}} \usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black,urlcolor=black]{hyperref} \externaldocument{../RNN_TEVC_v2/CBG_TEVC_v2} \externalcitedocument{../RNN_TEVC_v2/CBG_TEVC_v2} \begin{document} This is a example: \ref{fig-flowchart} . cite\cite{rakitianskaia2016analysis, gallagher2001fitness, phan2013error} \ref{aaa} aaa \end{document} ``` 外部文件相关内容如下: ```tex \labeltext{The current problem generators, however, produce problems with homogeneous internal structures and regular basins of attraction (Fig. \ref{fig-contsCompar9}), which consequently, to some extent, reduces the optimization difficulty \cite{pitzer2012comprehensive}. }\label{aaa} ``` 效果图: ![](https://pics.latexstudio.net/data/images/201911/e6c18ec4a716e2e.png) console信息: ``` Command Line: bibtex.exe "response" Startup Folder: D:\工作\科研\项目\测试问题生成-CLG-TEC\TEC修改\Response bibtex: warning: running with administrator privileges This is BibTeX, Version 0.99d (MiKTeX 2.9.6840 64-bit) The top-level auxiliary file: response.aux I found no \bibdata command---while reading file response.aux I found no \bibstyle command---while reading file response.aux (There were 2 error messages) Command Line: texify.exe --pdf --tex-option=--interaction=errorstopmode --tex-option=--synctex=1 "D:\工作\科研\项目\测试问题生成-CLG-TEC\TEC修改\Response\response.tex" Startup Folder: D:\工作\科研\项目\测试问题生成-CLG-TEC\TEC修改\Response texify: warning: running with administrator privileges pdflatex: warning: running with administrator privileges This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) entering extended mode (D:/工作/科研/项目/测试问题生成-CLG-TEC/TEC修改/Response/response .tex LaTeX2e <2018> patch level 5 ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\base\size10.clo")) ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\xcite\xcite.sty") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\hyperref\xr-hyper.sty") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics\graphicx.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics\keyval.sty") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics\graphics.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics\trig.sty") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics-cfg\graphics.cfg") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics-def\pdftex.def"))) ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty")) ("D:\SOFTWARE\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg") ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\url\url.sty")) Package hyperref Message: Driver (autodetected): hpdftex. ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def" ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty")) (response.aux ) ("D:\SOFTWARE\MiKTeX 2.9\tex\context\base\supp-pdf.mkii" [Loading MPS to PDF converter (version 2006.09.02).] ) ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\oberdiek\epstopdf-base.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\oberdiek\grfext.sty")) ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics\color.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\graphics-cfg\color.cfg")) ("D:\SOFTWARE\MiKTeX 2.9\tex\latex\hyperref\nameref.sty" ("D:\SOFTWARE\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty")) (response.out) (response.out) ! Undefined control sequence. cite.\XC@prefix rakitianskaia2016analysis\@extra@b@citeb l.13 ...ysis, gallagher2001fitness, phan2013error} ? Process has been terminated ... ```

1 回答1

1
`xr` 宏包只支持 `\label`-`\ref` 机制,不支持 `\bibitem - \cite`。 如果需要引用文献 `\cite{rakitianskaia2016analysis, gallagher2001fitness, phan2013error}`,那么需要在当前文件载入包含这三条文献的 bib 文件。
  • 参考https://wenda.latexstudio.net/q-1426.html – aloner 2019-11-16 22:18 回复

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。