mohuangrui / ucasthesis

LaTeX Thesis Template for the University of Chinese Academy of Sciences
3.47k stars 936 forks source link

如何实现Bib正文为author-year文末为numbered排列 #375

Closed zhongwei-yao closed 2 years ago

zhongwei-yao commented 2 years ago

检查 / Check

编译环境 / Compilation Environment

描述问题 / Problem Description

问题描述:

如何在文本中使用author-year形式的citation: Jones (1995); 括号: (Jones, 1995)。

同时,文末的参考文献前有序号:

[1] Jones, 1995. [2] Paul, ...

日志文件 / .log file

将编译生成的 .log 文件拖入下行空白处:

问题截图 / Screenshots

将出现的问题或需要实现的效果的 截图照片 拖入下行空白处:

最小工作示例(MWE) / Minimal Working Example

hushidong commented 2 years ago

biblatex这边,目前使用如下方法最方便(虽然使用标注样式和著录样式分开设置也可以):


\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage[colorlinks=true,citecolor=blue!75!black]{hyperref}
\usepackage[backend=biber,style=gb7714-2015ay,gbalign=gb7714-2015]{biblatex}

\begin{filecontents}{\jobname.bib}

@Article{Walls2013-399-418,
  Title                    = {drought, deluge and declines: the impact of precipition extremes on amphibians in a changing climate},
  Author                   = {Walls, S C and barichivich, W. J. and BROWN, m. e.},
  Journal                  = {Biology},
  Number                   = {1},
  Pages                    = {399-418},
  Volume                   = {2},
  Url                      = {http://www.mdpi.com},
  Urldate                  = {2013-11-04},
  Year                     = {2013},
  doi                      = {10.3390/biology2010399}
}

@Article{Zhang2007-500-503,
  Title                    = {The design and experimental investigations of supersonic length shorted nozzle},
  Author                   = {Zhang, Min Li and Yi, Shi He and Zhao, Yu Xin},
  Journal                  = {ACTA AERODYNAMICA SINICA},
  Number                   = {4},
  Pages                    = {500-503},
  Volume                   = {25},
  Year                     = {2007},
  nameformat={quanpin},
}

@Book{Yi2013--,
  Title                    = {Supersonic and hypersonic nozzle design},
  Address                  = {Beijing},
  Author                   = {Yi, Shi He and Zhao, Yu Xin and He, Lin and Zhang, Min Li},
  Publisher                = {National Defense Industry Press},
  Year                     = {2013},
  nameformat={quanpin},
}

@Archive{中国第一历史档案馆2001--,
  author    = {中国第一历史档案馆 and 辽宁省档案馆},
  title     = {中国明朝档案总汇},
  year      = {2001},
  address   = {桂林},
  publisher = {广西师范大学出版社},
}

@Www{萧钰2001--,
  Title                    = {出版业信息化迈入快车道},
  Author                   = {萧钰},
  Url                      = {http://www.creader.com/news/20011219/200112190019.html},
  Urldate                  = {2002-04-15},
  Date                     = {2001-12-19}
}

\end{filecontents}

\addbibresource{\jobname.bib}
%\addbibresource{example.bib}

\begin{document}

文献\citet{Walls2013-399-418,Zhang2007-500-503,Yi2013--,中国第一历史档案馆2001--,萧钰2001--}

文献\citep{Walls2013-399-418,Zhang2007-500-503,Yi2013--,中国第一历史档案馆2001--,萧钰2001--}

\printbibliography

\end{document} 

结果为: 图片

zhongwei-yao commented 2 years ago

按照@hushidong的方法,我在artratex.sty这个文件做了如下修改:

image

并在正文中启用了\usepackage[biber,authoryear,list]{Style/artratex},但是文末参考文献还是没能实现number

image

能帮忙看看是哪里出了问题嘛?

hushidong commented 2 years ago

gbalign选择直接写选项名。 gbalign 选项 :right, left, center, gb7714-2015, gb7714-2015ay.

zhongwei-yao commented 2 years ago

请问是这样吗?\RequirePackage[backend=biber,style=\artxbiberauy,gbalign=gb7714-2015,mincitenames=1,maxcitenames=2]{biblatex} 好像参考文献还是没有标号。

hushidong commented 2 years ago

更新一下biblatex-gb7714-2015

换其它选也行的,比如:gbalign=right

zhongwei-yao commented 2 years ago

非常感谢,更新了之后实现了!