-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
author-year引文格式问题 #183
Comments
此外,author-year文末的参考文献格式与官方的格式要求还有挺多的不同的。麻烦检查更新一下,谢谢! |
使用了 bibtex 还是 biblatex? |
bibtex的 |
跟这段代码有关。 fduthesis/source/fduthesis.dtx Lines 5675 to 5679 in 6c32f74
有哪些不同?或者发一份官方的格式要求? |
[找到了以前的贴子。半角的问题解决了。但是发现文末的参考文献格式跟要求的很不一样,不知是否有办法解决。我是经院的,好像经院要求的格式有点特殊。。。麻烦了 |
文件没传上来? |
参考文献默认是按照 GB/T 7714—2015 的格式,跟《经济研究》的格式有相当的差异。贵校不同院系用的参考文献格式都不一样,我就懒得改 bst 了。建议用 biblatex, |
你好,请问style指的是bib-style还是cite-style?或者能否提供一下bst文件,我自己来修改。谢谢! |
https://github.com/CTeX-org/gbt7714-bibtex-style author-year 样式还是建议使用 biblatex,因为中文文献无法用 bibtex 自动按照拼音排序。 |
chinese-erj 应该是能满足要求的,当初是应 @EthanDeng 要求做的,当时是检验了的,可以试试看,如果有什么问题可以反馈给我。 |
采用chinese-erj格式的话都需要改哪些地方呢?采用的编译器和Texlive version是哪个版本?我仅改了bib-backend和bib-style结果变成了这样 |
编译方式问题,参考文献那一步,用biber,而不是bibtex |
切换到 biblatex 时需要删掉 |
第一个问题: 1 %参考文献文本字体为默认字体, 字号为小五, 利用ctex设置 |
为什么你的文献表中的逗号看起来不对,难道不是全角么?用最新的chinese-erj |
字号调小了之后就没有问题了,多谢多谢! |
加上下面这段就好了: \renewcommand*{\revsdnamepunct}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%
\DeclareDelimFormat{nameyeardelim}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%\addcomma\addspace
\DeclareDelimFormat[bib,biblist]{nameyeardelim}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%\addcomma\addspace
\DeclareDelimFormat{bibpagespunct}{\iffieldequalstr{userd}{chinese}{}{\addcomma\addspace}}%\addcomma\addspace
\renewcommand*{\newunitpunct}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%\addcomma\space
\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
\DeclareDelimFormat*{multinamedelim}{\iffieldequalstr{userd}{chinese}{、}{\addcomma\addspace}}%\addcomma\addspace
%
% 重设title的输出
%
% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
% 利用toggle做标识符是否输出的判断
\renewbibmacro*{title}{%
\ifboolexpr{%
test{\iffieldundef{title}}%
and
test{\iffieldundef{subtitle}}%
}%
{}%
{\setunit{\iffieldequalstr{userd}{chinese}{:}{\addcolon\addspace}}\printtext[title]{\bibtitlefont%增加字体控制命令%增加了标点:
\printfield[titlecase]{title}%
\ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
{}{\setunit{\subtitlepunct}%
\printfield[titlecase]{subtitle}}%
\iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
{\setunit{\subtitlepunct}\printfield{titleaddon}}%
\iftoggle{bbx:gbtype}{%
\iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
{\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
{\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}% 判断是否为报纸
{\printfield[gbtypeflag]{usera}}}% 其它
}}{}%
%\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
%\newunit
}%
}} 比如: TeX 文件
\documentclass[twoside]{article}
\usepackage{ctex}
\usepackage{xcolor}
\usepackage{toolbox}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\usepackage[top=3cm,bottom=3cm,left=3cm,right=3cm]{geometry}
\usepackage[backend=biber,style=chinese-erj]{biblatex}
\renewcommand*{\revsdnamepunct}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%
\DeclareDelimFormat{nameyeardelim}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%\addcomma\addspace
\DeclareDelimFormat[bib,biblist]{nameyeardelim}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%\addcomma\addspace
\DeclareDelimFormat{bibpagespunct}{\iffieldequalstr{userd}{chinese}{}{\addcomma\addspace}}%\addcomma\addspace
\renewcommand*{\newunitpunct}{\iffieldequalstr{userd}{chinese}{,}{\addcomma\addspace}}%\addcomma\space
\renewcommand*{\finentrypunct}{\iffieldequalstr{userd}{chinese}{。}{\adddot}}
\DeclareDelimFormat*{multinamedelim}{\iffieldequalstr{userd}{chinese}{、}{\addcomma\addspace}}%\addcomma\addspace
%
% 重设title的输出
%
% 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen
% 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件
% 利用toggle做标识符是否输出的判断
\renewbibmacro*{title}{%
\ifboolexpr{%
test{\iffieldundef{title}}%
and
test{\iffieldundef{subtitle}}%
}%
{}%
{\setunit{\iffieldequalstr{userd}{chinese}{:}{\addcolon\addspace}}\printtext[title]{\bibtitlefont%增加字体控制命令%增加了标点:
\printfield[titlecase]{title}%
\ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题
{}{\setunit{\subtitlepunct}%
\printfield[titlecase]{subtitle}}%
\iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格
{\setunit{\subtitlepunct}\printfield{titleaddon}}%
\iftoggle{bbx:gbtype}{%
\iffieldundef{note}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准
{\iffieldequalstr{note}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准
{\iffieldequalstr{note}{news}{\printfield[gbtypeflagn]{usera}}% 判断是否为报纸
{\printfield[gbtypeflag]{usera}}}% 其它
}}{}%
%\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点
%\newunit
}%
}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@ARTICLE{方军雄2007所有制,
AUTHOR = {方军雄},
DATE = {2007},
JOURNALTITLE = {经济研究},
PAGES = {82--92},
TITLE = {所有制, 制度环境与信贷资金配置},
VOLUME = {12},
key={fang1}
}
@ARTICLE{李晓西1994转轨过程中的结构性通货膨胀,
AUTHOR = {李晓西},
DATE = {1994},
JOURNALTITLE = {经济研究},
KEYWORDS = {李晓西1994转轨过程中的结构性通货膨胀},
NUMBER = {10},
PAGES = {28--32},
TITLE = {转轨过程中的结构性通货膨胀},
key={li1}
}
@ARTICLE{刘凤良2017,
AUTHOR = {刘凤良 and 章潇萌 and 于泽},
DATE = {2017},
JOURNALTITLE = {金融研究},
KEYWORDS = {刘凤良2017},
NUMBER = {02},
PAGES = {54--69},
TITLE = {高投资、结构失衡与价格指数二元分化},
key={liu1}
}
@ARTICLE{楼继伟2016改革,
AUTHOR = {楼继伟},
DATE = {2016},
JOURNALTITLE = {求是},
KEYWORDS = {楼继伟2016改革},
NUMBER = {1},
PAGES = {24--26},
TITLE = {中国经济最大潜力在于改革},
key={low2}
}
@ARTICLE{吕捷2015cpi,
AUTHOR = {吕捷 and 王高望},
DATE = {2015},
JOURNALTITLE = {经济研究},
KEYWORDS = {吕捷2015cpi},
PAGES = {011},
TITLE = {CPI 与 PPI “背离” 的结构性解释},
VOLUME = {4},
key={lv3}
}
@ARTICLE{罗德明2012要素市场扭曲,
AUTHOR = {罗德明 and 李晔 and 史晋川},
DATE = {2012},
JOURNALTITLE = {经济研究},
KEYWORDS = {罗德明2012要素市场扭曲},
NUMBER = {3},
PAGES = {4--14},
TITLE = {要素市场扭曲、资源错置与生产率},
key={luo2}
}
@ARTICLE{王国静2014金融冲击,
AUTHOR = {王国静 and 田国强},
DATE = {2014},
JOURNALTITLE = {经济研究},
KEYWORDS = {王国静2014金融冲击},
NUMBER = {3},
PAGES = {20--34},
TITLE = {金融冲击和中国经济波动},
VOLUME = {49},
key={wang2}
}
@ARTICLE{王文甫2010价格粘性,
AUTHOR = {王文甫},
DATE = {2010},
JOURNALTITLE = {管理世界},
KEYWORDS = {王文甫2010价格粘性},
NUMBER = {9},
PAGES = {11--25},
TITLE = {价格粘性, 流动性约束与中国财政政策的宏观效应——动态新凯恩斯主义视角},
key={wang2}
}
@ARTICLE{徐伟康2010对,
AUTHOR = {徐伟康},
DATE = {2010},
JOURNALTITLE = {经济研究},
KEYWORDS = {徐伟康2010对},
NUMBER = {5},
PAGES = {139--148},
TITLE = {对《 消费者价格指数与生产者价格指数: 谁带动谁?》 一文的质疑},
key={xu2}
}
@ARTICLE{杨光2010经济波动,
AUTHOR = {杨光 and 孙浦阳 and 龚刚},
DATE = {2010},
JOURNALTITLE = {经济研究},
NUMBER = {02},
PAGES = {47--60},
TITLE = {经济波动问题一},
VOLUME = {50},
key={yang2}
}
@ARTICLE{杨光2017经济波动,
AUTHOR = {杨光 and 孙浦阳 and 龚刚},
DATE = {2017},
JOURNALTITLE = {经济研究},
NUMBER = {02},
PAGES = {47--60},
TITLE = {经济波动问题三},
VOLUME = {50},
key={yang2}
}
@ARTICLE{杨光2015经济波动,
AUTHOR = {杨光 and 孙浦阳 and 龚刚},
DATE = {2015},
JOURNALTITLE = {经济研究},
KEYWORDS = {杨光2015经济波动},
NUMBER = {02},
PAGES = {47--60},
TITLE = {经济波动, 成本约束与资源配置一},
VOLUME = {50},
key={yang2}
}
@ARTICLE{杨光2015经济波动b,
AUTHOR = {杨光 and 孙浦阳 and 龚刚},
DATE = {2015},
JOURNALTITLE = {经济研究},
KEYWORDS = {杨光2015经济波动},
NUMBER = {02},
PAGES = {47--60},
TITLE = {经济波动, 成本约束与资源配置二},
VOLUME = {50},
key={yang2}
}
@ARTICLE{杨汝岱2015中国制造,
AUTHOR = {杨汝岱},
DATE = {2015},
JOURNALTITLE = {经济研究},
KEYWORDS = {杨汝岱2015中国制造},
PAGES = {61--74},
TITLE = {中国制造业企业全要素生产率研究},
VOLUME = {2},
key={yang2}
}
@ARTICLE{张成思2010长期均衡,
AUTHOR = {张成思},
DATE = {2010},
JOURNALTITLE = {经济研究},
KEYWORDS = {张成思2010长期均衡},
PAGES = {42--52},
TITLE = {长期均衡, 价格倒逼与货币驱动},
VOLUME = {6},
key={zhang1}
}
@ARTICLE{bernanke1989agency,
AUTHOR = {Bernanke, Ben and Gertler, Mark},
PUBLISHER = {JSTOR},
DATE = {1989},
JOURNALTITLE = {The American Economic Review},
volume={33},
number={4},
PAGES = {14--31},
TITLE = {Agency costs, net worth, and business fluctuations},
}
@ARTICLE{Carlson2000,
AUTHOR = {Carlson, C. D. and M. Cropper and K. Palmer},
DATE = {2000},
JOURNALTITLE = {Discussion Paper No. 98-44-REV. Resources for Future},
TITLE = {Sulfur Dioxide Control by Electric Utilities: What Are the Gains from
Trade?},
location={Washington, DC}
}
@BOOK{李四1991--,
AUTHOR = {李四},
PUBLISHER = {经济出版社},
DATE = {1991},
TITLE = {论经济},
key={li3}
}
@BOOK{李四1991b--,
AUTHOR = {李四},
PUBLISHER = {经济出版社},
DATE = {1991},
TITLE = {论计划与市场},
edition={载于王五编辑《计划与市场》论文集},
Pages = {59-69},
key={li3}
}
@BOOK{约翰1978--,
AUTHOR = {约翰},
PUBLISHER = {译文出版社},
edition={中译本},
DATE = {1978},
TITLE = {论需求},
key={yue1}
}
@BOOK{曾约翰1978--,
AUTHOR = {曾约翰},
PUBLISHER = {经济出版社},
DATE = {1978},
TITLE = {论计划和需求},
key={zeng1}
}
@BOOK{John1978--,
AUTHOR = {John, D.},
PUBLISHER = {Oxfiord Press},
DATE = {1978},
TITLE = {On Demand},
}
@ARTICLE{lucas1987money,
AUTHOR = {Lucas, Robert and Stokey, Nancy},
PUBLISHER = {Econometric Society},
DATE = {1987},
JOURNALTITLE = {Econometrica},
KEYWORDS = {lucas1987money},
NUMBER = {3},
PAGES = {491--513},
TITLE = {Money and Interest in a Cash-in-Advance Economy},
VOLUME = {55},
}
@ARTICLE{quadrini2011financial,
AUTHOR = {Quadrini, Vincenzo},
DATE = {2011},
JOURNALTITLE = {Economic Quarterly},
KEYWORDS = {quadrini2011financial},
NUMBER = {3},
PAGES = {209--254},
TITLE = {Financial Frictions in Macroeconomic Fluctuations},
VOLUME = {79},
}
@ARTICLE{saiz2010geographic,
AUTHOR = {Saiz, Albert},
PUBLISHER = {JSTOR},
DATE = {2010},
JOURNALTITLE = {quarterly Journal of Economics},
KEYWORDS = {saiz2010geographic},
NUMBER = {3},
TITLE = {The geographic determinants of housing supply},
VOLUME = {125},
}
@ARTICLE{wang2006another,
AUTHOR = {Wang, Peng-fei and Wen, Yi},
PUBLISHER = {Elsevier},
DATE = {2006},
JOURNALTITLE = {Journal of Economic Dynamics and Control},
KEYWORDS = {wang2006another},
NUMBER = {12},
PAGES = {2533--2552},
TITLE = {Another look at sticky prices and output persistence},
VOLUME = {30},
}
@REPORT{xu2012role,
AUTHOR = {Xu, TengTeng},
INSTITUTION = {Faculty of Economics, University of Cambridge},
DATE = {2012},
KEYWORDS = {xu2012role},
TITLE = {The role of credit in international business cycles},
}
@ARTICLE{zhang2009china,
AUTHOR = {Zhang, Wenlang},
PUBLISHER = {Elsevier},
DATE = {2009},
JOURNALTITLE = {Journal of Macroeconomics},
KEYWORDS = {zhang2009china},
NUMBER = {3},
PAGES = {473--484},
TITLE = {China’s monetary policy: Quantity versus price rules},
VOLUME = {31},
}
\end{filecontents}
\addbibresource{\jobname.bib}
%
\begin{document}
\section{经济研究参考文献格式示例}
引用标注
\subsection*{(1)基本方法}
a 带页码
\cite[第34页]{吕捷2015cpi}
\cite[p.55]{bernanke1989agency}
b 不带页码
\cite{吕捷2015cpi}
\cite{bernanke1989agency}
\subsection*{(2)作者作为句子主语出现}
a 带页码
\textcite[第34页]{吕捷2015cpi}
b 不带页码
\textcite{吕捷2015cpi}
\subsection*{(3) 同时引用多篇文献}
\cite{吕捷2015cpi,方军雄2007所有制,李晓西1994转轨过程中的结构性通货膨胀}
\textcite{吕捷2015cpi,方军雄2007所有制,bernanke1989agency}
\subsection*{(4) 引用同一作者的多篇文献}
\cite{杨光2010经济波动,杨光2015经济波动,杨光2015经济波动b,杨光2017经济波动}
\subsection*{(5) 其它示例}
\cite{杨光2015经济波动,杨光2015经济波动b,方军雄2007所有制,李晓西1994转轨过程中的结构性通货膨胀,刘凤良2017}
\cite{约翰1978--}
\cite{John1978--}
\cite{李四1991--,李四1991b--}
\cite{曾约翰1978--}
\cite{Carlson2000}
\nocite{*}
{
%\hyphenation{Proce-edings}
\hyphenpenalty=100 %断词阈值, 值越大越不容易出现断词
\tolerance=5000 %丑度, 10000为最大无溢出盒子, 参考the texbook 第6章
\hbadness=100 %如果丑度超过hbadness这一阀值, 那么就会发出警告
\printbibliography
}
\end{document} 结果为: |
问题解决,非常感谢! |
biber 是 biblatex 的后端,应该是其他地方配置有误。 最推荐使用 latexmk 编译。 |
|
实在不好意思。刚收到最新的格式要求,参考文献格式又变回了GB2015的author-year格式了。。。 |
简直坑……另外 GB2015 是个什么鬼。
这两种格式一般不会混用,建议传下格式要求文件确认下。 |
用biblatex的话换成
|
无论如何修改cite-style无法改变文中引用的格式,仍然保持numerical的格式。 |
首先抱歉,我在模板里面写错了一个地方,所以需要手动修改一下。
总之比较麻烦,希望谅解~ |
你用citet和citep就行,风格与一般理解一致。或者用textcite,cite也行。 |
如果使用 bibtex 可以 \fdutsetup{
bib-backend = bibtex,
bib-style = author-year,
} 参考文献表的位置: \setcitestyle{numbers}
\printbibliography |
有个问题是,GB/T 7714—2015 author-year 式的参考文献表中年份是会提前到作者后面的。这样设置 |
请问这个cls文件要从哪里调出?我在overleaf上找到的模板没有呀 |
在 \PassOptionsToPackage{
sorting=gb7714-2015,
gblanorder=chineseahead,
sortlocale=zh__pinyin
}{biblatex} |
不知道前面改了什么地方,bibtex已经编译不了了。。。 |
参考文献的问题已解决。能否看一下插图目录和列表目录的问题,报错显示的是undefined control sequence |
把下载之后生成的 如果有其他问题请开新 issue 提问。 |
bibtex 和 biblatex/biber 是不兼容的,你的需求比如按拼音排序用 bibtex 是做不了的。
绝大多数人写的 tex 文档都是这样,不必觉得不好意思(逃 |
问题暂时都解决了,这几天不停地叨扰实在不好意思,感谢感谢! |
|
现在的模板,author-year的格式在正文中的引用,年份的括号是全角的,但是格式要求的应该是半角。是否能够调整一下?临近交稿了发现这个问题,还请尽快答复,谢谢!
The text was updated successfully, but these errors were encountered: