文献管理软件zotero 提供了非常多的样式csl文件, 不过 latex 好像根本不能识别这些样式文件, 请问如何优雅的在 latex 中使用csl参考样式文件. 主文件con.tex文件如下, 样式文件随便找的一个英文期刊的omega这个,比较顺手.
\documentclass{article}
\usepackage{amsmath}
\usepackage[colorlinks,linkcolor=red]{hyperref} % 超链接
\bibliographystyle{omega}
% 正常的参考文献格式可以用, 比如plainnat
% 我把从 zotero 网上下载的参考文献样式 csl 文件按照 bst 文件的引用方式,则参考文献不显示
% csl文件和 tex 文件的同一目录下
\begin{document}
hhhh \cite{islei1988judgemental} , ssakhd \cite{joseph1999generating}
\bibliography{con.bib}
\end{document}
con.bib 文件内容如下
@Article{islei1988judgemental,
author = {Islei, Gerd and Lockett, AG},
journal = {Eur J Oper Res},
title = {Judgemental modelling based on geometric least square},
year = {1988},
number = {1},
pages = {27--35},
volume = {36},
publisher = {Elsevier}
}
@Article{joseph1999generating,
author = {Joseph, Anito and others},
journal = {Comput Oper Res},
title = {Generating consensus priority point vectors: a logarithmic goal programming approach},
year = {1999},
number = {6},
pages = {637--643},
volume = {26},
publisher = {Elsevier}
}
报错如下,
开始 : bibtex "con".aux
This is BibTeX, Version 0.99d (TeX Live 2019)
The top-level auxiliary file: con.aux
I couldn't open style file omega.bst
---line 18 of file con.aux
: \bibstyle{omega
: }
I'm skipping whatever remains of this command
I found no style file---while reading file con.aux
(There were 2 error messages)
出现错误
总之编译不出参考文献
网上找了一下 我找到了解决方案
,利用pan'doc进行转变,
pandoc --bibliography=con.bib --csl=omega.csl -o out.pdf con.tex
在没有图片的情况下我能正常编译,并输出out.pdf, 如果有图片的情况下则不能正常输入 pdf. 我期待最好能导出thebibliography bibitem条目, 类似bst文件导出bbl文件,这样我就能直接粘贴到
tex 文件中. 方便后续操作, 本机系统 mac: mactex + texstudio下执行