huzhen
huzhen
这家伙很懒,什么也没写!

注册于 4年前

回答
8
文章
0
关注者
0

使用pdflatex也没有问题,但要注意,目前使用pdflatex,参考文献用中文的bibtexkey时,会报错,但忽略错误也能正确输出参考文献,但正文会有额外输出。若使用英文的bibtexkey,则没有任何问题。

所以尽量使用xelatex编译,则没有bibtexkey的限制。

我的环境是:texlive2023,biblatex 3.19

bib文件为:

@article{jamshidian1989exact,
title={An exact bond option formula},
author={Jamshidian, Farshid},
journal={The journal of Finance},
volume={44},
number={1},
pages={205--209},
year={1989},
publisher={Wiley Online Library}
}

@article{加斯顿,
title={An exact bond option formula},
author={Jamshidian, Farshid},
journal={The journal of Finance},
volume={44},
number={1},
pages={205--209},
year={1989},
publisher={Wiley Online Library}
}

引用:

cite{jamshidian1989exact}
cite{加斯顿}
nocite{*}

结果为:

image.png

但有额外的输出:
image.png

你用的是biblatex,所以跟bst是没有关系的。

你只要调整如下环境的水平间距的控制即可,把里面的labelwidth调小一点就好了。

\defbibenvironment{bibliography}
  {\list
     {\printtext[labelnumberwidth]{%
        \printfield{labelprefix}%
        \printfield{labelnumber}}}
     {\addtolength{\labelnumberwidth}{\biblabelextend}%
     \setlength{\labelwidth}{0.9cm}%
      \setlength{\labelsep}{\biblabelsep}%
      \setlength{\leftmargin}{\labelwidth}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemindent}{\bibitemindent}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}

选项用错啦,
请改成
gbnamefmt =lowercase,gblabel=plain

上面耿老师给你了命令行编译的方式。

若一定要使用IDE,那么要做如下设置
image.png

注意其中的默认文献工具改为biber。

你确定一下你的系统中是否有两个biber?

命令行查一下:使用如 which biber 或where biber等命令。或者用everything搜索看一下。

which biber

/d/texlive/2022/bin/win32/biber

你的texlive是重新安装的还是从texliev2021升级的?

你再查一下你的环境变量?是否texlive2022的路径在里面?

path

PATH=d:\Anaconda3;d:\Anaconda3\Library\mingw-w64\bin;d:\Anaconda3\Library\usr\bin;d:\Anaconda3\Library\bin;d:\Anaconda3\Scripts;d:\Anaconda3\bin;d:\Anaconda3\condabin;D:\texlive\2022\bin\win32

texlive2022默认就是2.17了。

biber --version

biber version: 2.17

你可以先用命令行测试一下,再用IDE去编译。

xelatex jobname
biber jobname

最后你再把这些命令的运行结果贴出来看一下,如此方便找到问题所在。

image.png

代码为:

\documentclass{ctexart}
\usepackage[paperheight=16cm]{geometry}
\usepackage[style=gb7714-2015ay,gblanorder=chineseahead,sortcites=false]{biblatex}
\usepackage[colorlinks]{hyperref}


\begin{filecontents}{\jobname.bib}
@Article{Park2010-696-715,
  Title                    = {metadata quality Control in Digital repositories and collections: criteria, semantics, and mechanisms},
  Author                   = {Park, J R and tosaka, Y.},
  Journal                  = {Cataloging \& classification quarterly},
  Number                   = {8},
  Pages                    = {696-715},
  Volume                   = {48},
  Url                      = {http://www.tandfonline.com},
  Urldate                  = {2013-09-05},
  Year                     = {2010}
}


@Patent{姜锡洲1989,
  Title                    = {一种温热外敷药制备方案},
  Author                   = {姜锡洲},
  Date                     = {1989-07-26},
  Number                   = {88105607.3},
  Titleaddon               = {中国}
}

@Book{冯友兰2008--,
  author     = {冯友兰},
  title      = {冯友兰自选集},
  year       = {2008},
  publisher  = {北京大学出版社},
  address    = {北京},
  edition    ={2},
  pages      ={第1版自序}
}

@inbook{李约瑟1991--,
  author     = {李约瑟},
  title      = {题词},
  bookauthor = {苏克福 and 管成学 and 邓明鲁},
  booktitle  = {苏颂与《本草图经》研究},
  year       = {1991},
  publisher  = {长春出版社},
  address    = {长春},
  pages      = {扉页}
}


@Article{Chiani2009-231-254,
  Title                    = {Coexistence between UWB and narrow-band wireless communication systems},
  Author                   = {Chiani, M. and Giorgetti, A.},
  Journal                  = {Proc. IEEE, Special Issue on UWB Technology and Emerging Applications},
  Number                   = {2},
  Pages                    = {231-254},
  Volume                   = {97},
  Year                     = {2009}
}

@Article{Pinto2009-1268-1282,
  Title                    = {A stochastic geometry approach to coexistence in heterogeneous wireless networks},
  Author                   = {Pinto, P. and Giorgetti,A. and Win,M. Z. and Chiani,M.},
  Journal                  = {IEEE J. Sel. Areas Commun., Special Issue on Stochastic Geometry and Random Graphs for Wireless Networks},
  Number                   = {7},
  Pages                    = {1268-1282},
  Volume                   = {27},
  Year                     = {2009}
}

\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\cite{Pinto2009-1268-1282,李约瑟1991--,Chiani2009-231-254,冯友兰2008--,Park2010-696-715,姜锡洲1989}
\printbibliography
\end{document} 

a.png

代码为:

\documentclass{ctexart}
\usepackage[paperheight=16cm]{geometry}
\usepackage[style=gb7714-2015ay,gbfootbib=true]{biblatex}
\usepackage[colorlinks]{hyperref}


\begin{filecontents}{\jobname.bib}
@Patent{姜锡洲1989,
  Title                    = {一种温热外敷药制备方案},
  Author                   = {姜锡洲},
  Date                     = {1989-07-26},
  Number                   = {88105607.3},
  Titleaddon               = {中国}
}

@Book{冯友兰2008--,
  author     = {冯友兰},
  title      = {冯友兰自选集},
  year       = {2008},
  publisher  = {北京大学出版社},
  address    = {北京},
  edition    ={2},
  pages      ={第1版自序}
}

@inbook{李约瑟1991--,
  author     = {李约瑟},
  title      = {题词},
  bookauthor = {苏克福 and 管成学 and 邓明鲁},
  booktitle  = {苏颂与《本草图经》研究},
  year       = {1991},
  publisher  = {长春出版社},
  address    = {长春},
  pages      = {扉页}
}

\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

文献\citeauthor{姜锡洲1989}\footfullcite{姜锡洲1989}是一种专利;
文献\citeauthor{李约瑟1991--}\footfullcite{李约瑟1991--}是一种一本书;
文献\citeauthor{冯友兰2008--}\footfullcite{冯友兰2008--}是一种一本书。

文献\citet{姜锡洲1989}\footfullcite{姜锡洲1989}是一种专利;
文献\citet{李约瑟1991--}\footfullcite{李约瑟1991--}是一种一本书;
文献\citet{冯友兰2008--}\footfullcite{冯友兰2008--}是一种一本书。

文献\citep{姜锡洲1989}\footfullcite{姜锡洲1989}是一种专利;
文献\citep{李约瑟1991--}\footfullcite{李约瑟1991--}是一种一本书;
文献\citep{冯友兰2008--}\footfullcite{冯友兰2008--}是一种一本书。

\printbibliography
\end{document} 

发布
问题