生成指定標準形式的參考文獻2021.2.25
- 1、前言
- 2、參考文獻參考格式及標準(以一篇論文為例說明)
- 2.1 實體論文匯出參考格式檔案
- 2.1.1 BibTeX檔案(.bib)
- 2.1.2 RIS檔案(.ris)
- 2.2 參考文獻參考三大標準
- 2.2.1 GB/T 7714-2015
- 2.2.2 MLA
- 2.2.3 APA
- 3、用學術搜索平臺匯出各種標準的參考
- 3.1 百度學術
- 3.2 谷歌學術
- 3.3 中國知網
- 3.4 萬方
- 3.5 ResearchGate
- 3.6 ScienceDirect
- 4、撰寫文后參考文獻參考的解決方案
- 5、word檔案中參考文獻排序小tip
- 6 總結
1、前言
眾多學者和研究人員在撰寫論文或修改論文時,他們都不可避免地要對參考文獻進行整理、編號和排序,其實在整個程序中,論文的排版并不費時,而在參考文獻的整理上會占用太多時間,絕大多數學者可能會選擇使用參考管理軟體來管理論文后面的參看文獻,但仍有少數研究人員可能更傾向于與自己查找參考來組織文后參考文獻格式(原因在于他們不太愿意使用參考管理軟體,或許是懶得安裝,或許是軟體不太友好等等),
目前來說,常用的參考管理軟體包括:NoteExpress,EndNote,NoteFirst,ProCite, RefWorks,Zotero,JabRef,BibDesk 等,然而,本人目前為止也僅使用過EndNote和NoteExpress而已,后來也卸載不用了,
2、參考文獻參考格式及標準(以一篇論文為例說明)
在各大學術平臺匯出文獻的參考格式以Plain Text、BibTeX和RIS為主,其中Plain Text作為純文本簡單易懂,這里不做介紹,
2.1 實體論文匯出參考格式檔案
下面以這篇論文Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques為例,說明文獻匯出參考的程序,



到此,Taylor Francis Online官網給出的參考如下:
Esra Deniz Güner, Hatice Oncel Cekim & Galip Se?kin (2021) Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques, Environmental Forensics, 22:1-2, 172-188, DOI: 10.1080/15275922.2020.1834025
可能官網匯出的參考與我們期望的標準有所差異,那么需要從Taylor Francis Online官網匯出文獻對應的BibTex格式和RIS格式檔案及內容,然后根據內容按照相應的標準補齊并修正參考文獻參考即可,

2.1.1 BibTeX檔案(.bib)
Bib TeX格式對應的.bib檔案介紹


實體檔案bib.bib

@article{doi:10.1080/15275922.2020.1834025,
author = {Esra Deniz Güner and Hatice Oncel Cekim and Galip Se?kin},
title = {Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques},
journal = {Environmental Forensics},
volume = {22},
number = {1-2},
pages = {172-188},
year = {2021},
publisher = {Taylor & Francis},
doi = {10.1080/15275922.2020.1834025},
URL = {
https://doi.org/10.1080/15275922.2020.1834025
},
eprint = {
https://doi.org/10.1080/15275922.2020.1834025
}
}
2.1.2 RIS檔案(.ris)
RIS格式對應的.ris檔案介紹


TY - JOUR
T1 - Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques
AU - Güner, Esra Deniz
AU - Cekim, Hatice Oncel
AU - Se?kin, Galip
Y1 - 2021/04/03
PY - 2021
DA - 2021/04/03
N1 - doi: 10.1080/15275922.2020.1834025
DO - 10.1080/15275922.2020.1834025
T2 - Environmental Forensics
JF - Environmental Forensics
JO - null
SP - 172
EP - 188
VL - 22
IS - 1-2
PB - Taylor & Francis
SN - 1527-5922
M3 - doi: 10.1080/15275922.2020.1834025
UR - https://doi.org/10.1080/15275922.2020.1834025
ER -
0
2.2 參考文獻參考三大標準
當前通用的參考文獻參考標準主要包括三種:GB/T 7714-2015、MLA和APA,
2.2.1 GB/T 7714-2015
GB/T 7714-2015標準
GB/T 7714-2015標準檔案下載

Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques[J]. Environmental Forensics, 2021, 22(1-2) : 172-188.
2.2.2 MLA
MLA官網


“Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques”. Environmental Forensics 22.1-2(2021): 172-188.
2.2.3 APA
APA格式官網


(2021). Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques. Environmental Forensics, 22(1-2), pp. 172-188.
3、用學術搜索平臺匯出各種標準的參考
3.1 百度學術

百度學識訓出的三種參考標準:

3.2 谷歌學術

谷歌學識訓出的三種參考標準:

3.3 中國知網


知網匯出參考的三種標準:



3.4 萬方

萬方匯出參考格式(由于萬方資料庫檢索不到上述論文,以其他論文為例):
BibTeX格式





GB/T 7714-2015標準

萬方支持的自定義格式比較友好,支持用戶選擇想要的格式,前提得能在萬方資料庫中檢索到所需文獻才能使用,

3.5 ResearchGate

ResearchGate匯出的參考格式(RIS、Bib TeX和Plain Text):

ResearchGate匯出的RIS如下:
TY - JOUR
AU - Güner, Esra Deniz
AU - Cekim, Hatice
AU - Se?kin, Galip
PY - 2020/11/17
SP - 1
EP - 17
T1 - Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques
VL - 22
DO - 10.1080/15275922.2020.1834025
JO - Environmental Forensics
ER -

ResearchGate匯出的Bib TeX如下:
@article{article,
author = {Güner, Esra Deniz and Cekim, Hatice and Se?kin, Galip},
year = {2020},
month = {11},
pages = {1-17},
title = {Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques},
volume = {22},
journal = {Environmental Forensics},
doi = {10.1080/15275922.2020.1834025}
}

ResearchGate匯出的Plain Text如下:
Güner, Esra Deniz & Cekim, Hatice & Se?kin, Galip. (2020). Determination of water quality assessment in wells of the G?ksu Plains using multivariate statistical techniques. Environmental Forensics. 22. 1-17. 10.1080/15275922.2020.1834025.
3.6 ScienceDirect

ScienceDirect可以匯出RIS和Bib TeX參考格式,
4、撰寫文后參考文獻參考的解決方案
方式一:可以通過百度學識訓者谷歌學識訓出文獻的參考,對于參考中不全的內容或者格式不對的內容進行修改,若論文的頁碼不全需要下載全文進行補全即可,
方式二:利用ResearchGate或文獻來源期刊網站匯出BibTeX檔案或RIS檔案或Plain Text純文本檔案,這三種檔案都可以用記事本Notepad打開查看,
在方式二中,我們可以對匯出的BibTeX檔案或RIS檔案進行讀取,使用流行編程語言(如C++、Java、Python、C#、VB、Matlab等)來將作者、期刊名稱或會議名稱、論文型別、論文標題、發表年份、卷號、期號和頁碼范圍等欄位進行決議,然后只需將這些字串按照所需的指定標準有序進行字串連接即可,當然支持生成批量參考文獻參考最好,
遍歷檔案夾讀取.ris或.bib格式的匯出文獻獲得參考文獻參考的Python代碼:
import os
#os.walk方法獲取當前路徑下的root(所有路徑)、dirs(所有子檔案夾)、files(所有檔案)
Standard1 = "GB/T 7714-2015" # 三大參考文獻參考標準
# Esra Deniz Güner, Cekim H O , Sekin G . Determination of water quality assessment in wells of the Gksu Plains using multivariate statistical techniques[J]. Environmental Forensics, 2020(5):1-17.
Standard2 = "MLA"
# Esra Deniz Güner, H. O. Cekim , and G. Sekin . "Determination of water quality assessment in wells of the Gksu Plains using multivariate statistical techniques." Environmental Forensics 5(2020):1-17.
Standard3 = "APA"
# Esra Deniz Güner, Cekim, H. O. , & Sekin, G. . (2020). Determination of water quality assessment in wells of the gksu plains using multivariate statistical techniques. Environmental Forensics(5), 1-17.
mystandard = "GB/T 7714-2015" #自己所需的文獻參考標準
path = "d:\\搜狗高速下載\\Exportcitatioin"
filename = "" #讀取參考文獻的txt
for root, dirs, files in os.walk(path):
for file in files:
#print file.decode('gbk') #檔案名中有中文字符時轉碼
if os.path.splitext(file)[1] == '.ris' or os.path.splitext(file)[1] == '.bib':
filename = path +"\\"+ os.path.splitext(file)[0]+os.path.splitext(file)[1]
cankaowenxian = ""
fopen = open(filename, 'r')
lines = fopen.readlines()
if (".ris" in filename):
# RIS格式
TY = "" # 期刊型別
T1 = "" # 標題
AU = "" # 第一作者
PY = "" # 發表日期
DO = "" # 論文的doi號
JO = "" # 期刊名稱
SP = "" # 起始頁碼
EP = "" # 終止頁碼
VL = "" # 卷號
IS = "" # 期號
tempauthorcount = 0
authorcount = 0
for line in lines:
if ("AU" in line):
authorcount = authorcount + 1 # 先統計作者的數目
for line in lines:
if ("TY" in line):
TY = line[6:].rstrip('\n')
elif ("T1" in line):
T1 = line[6:].rstrip('\n')
elif ("AU" in line):
if AU != '':
if tempauthorcount == authorcount - 1:
AU += " and "
else:
AU += ", "
AU += line[6:].rstrip('\n')
tempauthorcount = tempauthorcount + 1
elif ("JO" in line):
JO = line[6:].rstrip('\n')
elif ("PY" in line):
PY = line[6:].rstrip('\n')
elif ("VL" in line):
VL = line[6:].rstrip('\n')
elif ("IS" in line):
IS = line[6:].rstrip('\n')
elif ("SP" in line):
SP = line[6:].rstrip('\n')
elif ("EP" in line):
EP = line[6:].rstrip('\n')
elif ("DO" in line):
DO = line[22:].rstrip('\n')
if mystandard == Standard1 and TY == 'JOUR':
cankaowenxian = AU + ". " + T1 + "[J]. " + JO + ", " + PY + ", " + VL + "(" + IS + "):" + SP + "-" + EP + "." + "(doi:" + DO + ")" # 期刊匯出的參考格式
elif mystandard == Standard2:
cankaowenxian = AU + ". \"" + T1 + ".\" " + JO + " " + VL + "." + IS + "(" + PY + "): " + SP + "-" + EP + "." + "(doi:" + DO + ")" # 期刊匯出的參考格式
elif mystandard == Standard3:
cankaowenxian = AU + ". " + PY + ". " + T1 + ". " + JO + ", " + VL + "(" + IS + "), " + SP + "-" + EP + "." + "(doi:" + DO + ")" # 期刊匯出的參考格式
elif (".bib" in filename):
# Bib TeX格式
author = "" # 作者
title = "" # 標題
journal = "" # 期刊名稱
volume = "" # 卷號
number = "" # 期號
pages = "" # 頁碼范圍
year = "" # 發表年份
publisher = ""
doi = "" # 論文的doi號
for line in lines:
if ("author" in line):
authortemp = line[line.find('{') + 1:line.find('}')].rstrip('\n')
authortemp = authortemp.split('and') # 作者字串陣列
i = 0
for temp in authortemp:
if (i == 0):
author += temp
elif i == len(authortemp) - 1 and len(authortemp) == 3:
author += 'and' + temp
elif (i == 3):
author += ', et al'
break
else:
author += ',' + temp
i = i + 1
elif ("title" in line):
title = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("journal" in line):
journal = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("volume" in line):
volume = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("number" in line):
number = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("pages" in line):
pages = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("year" in line):
year = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("publisher" in line):
publisher = line[line.find('{') + 1:line.find('}')].rstrip('\n')
elif ("doi" in line):
doi = line[line.find('{') + 1:line.find('}')].rstrip('\n')
if mystandard == Standard1:
cankaowenxian = author + ". " + title + "[J]. " + journal + ", " + year + ", " + volume + "(" + number + "):" + pages + ".(" + "doi:" + doi + ")" # 期刊匯出的參考格式
elif mystandard == Standard2:
cankaowenxian = author + ". \"" + title + ".\" " + journal + " " + volume + "." + number + "(" + year + "): " + pages + ".(" + "doi:" + doi + ")" # 期刊匯出的參考格式
elif mystandard == Standard3:
cankaowenxian = author + ". " + year + ". " + title + ". " + journal + ", " + volume + "(" + number + "), " + pages + ".(" + "doi:" + doi + ")" # 期刊匯出的參考格式
print("讀取" + filename + "結束!")
print(cankaowenxian)
用代碼讀取以下檔案夾中所有的.ris和.bib格式檔案,每篇文獻組成參考列印出來,

PyCharm中運行結果:

參考標準為GB/T 7714-2015的控制臺列印結果:
讀取d:\搜狗高速下載\Exportcitatioin\S2090123220300540.bib結束!
Muhammad Adnan Shereen , Suliman Khan , Abeer Kazmi , et al. COVID-19 infection: Origin, transmission, and characteristics of human coronaviruses[J]. Journal of Advanced Research, 2020, 24():91-98.(doi:https://doi.org/10.1016/j.jare.2020.03.005)
讀取d:\搜狗高速下載\Exportcitatioin\S2090123220300540.ris結束!
Shereen, Muhammad Adnan, Khan, Suliman, Kazmi, Abeer, Bashir, Nadia and Siddique, Rabeea. COVID-19 infection: Origin, transmission, and characteristics of human coronaviruses[J]. Journal of Advanced Research, 2020, 24():91-98.(doi:10.1016/j.jare.2020.03.005)
讀取d:\搜狗高速下載\Exportcitatioin\tandf_uenf2022_172.bib結束!
Esra Deniz G眉ner , Hatice Oncel Cekim and Galip Se莽kin. Determination of water quality assessment in wells of the G枚ksu Plains using multivariate statistical techniques[J]. Environmental Forensics, 2021, 22(1-2):172-188.(doi: https://doi.org/10.1080/15275922.2020.1834025)
讀取d:\搜狗高速下載\Exportcitatioin\tandf_uenf2022_172.ris結束!
G眉ner, Esra Deniz, Cekim, Hatice Oncel and Se莽kin, Galip. Determination of water quality assessment in wells of the G枚ksu Plains using multivariate statistical techniques[J]. null, 2021, 22(1-2):172-188.(doi:.2020.1834025)
參考標準為MLA的控制臺列印結果:
讀取d:\搜狗高速下載\Exportcitatioin\S2090123220300540.bib結束!
Muhammad Adnan Shereen , Suliman Khan , Abeer Kazmi , et al. "COVID-19 infection: Origin, transmission, and characteristics of human coronaviruses." Journal of Advanced Research 24.(2020): 91-98.(doi:https://doi.org/10.1016/j.jare.2020.03.005)
讀取d:\搜狗高速下載\Exportcitatioin\S2090123220300540.ris結束!
Shereen, Muhammad Adnan, Khan, Suliman, Kazmi, Abeer, Bashir, Nadia and Siddique, Rabeea. "COVID-19 infection: Origin, transmission, and characteristics of human coronaviruses." Journal of Advanced Research 24.(2020): 91-98.(doi:10.1016/j.jare.2020.03.005)
讀取d:\搜狗高速下載\Exportcitatioin\tandf_uenf2022_172.bib結束!
Esra Deniz G眉ner , Hatice Oncel Cekim and Galip Se莽kin. "Determination of water quality assessment in wells of the G枚ksu Plains using multivariate statistical techniques." Environmental Forensics 22.1-2(2021): 172-188.(doi: https://doi.org/10.1080/15275922.2020.1834025)
讀取d:\搜狗高速下載\Exportcitatioin\tandf_uenf2022_172.ris結束!
G眉ner, Esra Deniz, Cekim, Hatice Oncel and Se莽kin, Galip. "Determination of water quality assessment in wells of the G枚ksu Plains using multivariate statistical techniques." null 22.1-2(2021): 172-188.(doi:.2020.1834025)
參考標準為APA的控制臺列印結果:
讀取d:\搜狗高速下載\Exportcitatioin\S2090123220300540.bib結束!
Muhammad Adnan Shereen , Suliman Khan , Abeer Kazmi , et al. 2020. COVID-19 infection: Origin, transmission, and characteristics of human coronaviruses. Journal of Advanced Research, 24(), 91-98.(doi:https://doi.org/10.1016/j.jare.2020.03.005)
讀取d:\搜狗高速下載\Exportcitatioin\S2090123220300540.ris結束!
Shereen, Muhammad Adnan, Khan, Suliman, Kazmi, Abeer, Bashir, Nadia and Siddique, Rabeea. 2020. COVID-19 infection: Origin, transmission, and characteristics of human coronaviruses. Journal of Advanced Research, 24(), 91-98.(doi:10.1016/j.jare.2020.03.005)
讀取d:\搜狗高速下載\Exportcitatioin\tandf_uenf2022_172.bib結束!
Esra Deniz G眉ner , Hatice Oncel Cekim and Galip Se莽kin. 2021. Determination of water quality assessment in wells of the G枚ksu Plains using multivariate statistical techniques. Environmental Forensics, 22(1-2), 172-188.(doi: https://doi.org/10.1080/15275922.2020.1834025)
讀取d:\搜狗高速下載\Exportcitatioin\tandf_uenf2022_172.ris結束!
G眉ner, Esra Deniz, Cekim, Hatice Oncel and Se莽kin, Galip. 2021. Determination of water quality assessment in wells of the G枚ksu Plains using multivariate statistical techniques. null, 22(1-2), 172-188.(doi:.2020.1834025)
5、word檔案中參考文獻排序小tip
如下圖所示,這里演示如何將這些參考文獻按照首字母升序排序:(參考在 Word 中按字母順序對串列進行排序)

在word的開始選單下找到排序,在排序視窗中選擇主要關鍵字為段落數,型別選擇拼音,勾選升序后點擊確定即可,



6 總結
總的來說,可能有的學者覺得手動整理參考文獻的參考特別耗時費力,但參考管理軟體也不是萬能的,準確率也有待提高 ,所以盡量自己能夠利用編程工具決議參考文獻的匯出檔案來生成參考,這樣能夠保證參考文獻參考的正確性和規范性,畢竟自己動手、豐衣足食嘛!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/264161.html
標籤:python
