bib 文件中的項既可以用 {} 也可以用 " "
對於 author 項,有時候是名在前,姓氏在后,有時候是名在后,姓氏在前。兩者中間有時用一個 "," 相隔.
有時候在 bib 文件中用上了作者姓名的全稱,但是顯示結果按照不同的格式設置,會顯示簡稱,名字用首字母大寫加 "." 表示
當設置
\bibliographystyle{abbrvnat}
\bibliography{Ch4}
且弄丟了 abbrvnat 的文件時就會進行姓名的縮寫,但這是否要bib條目中輸入的是全名,然后顯示的是縮寫。
ch1.bib 和 ch2.bib 中 {} 和雙引號混用,並且 ch1.bib 手工進行了硬編碼的縮寫,似乎這是不必要的。如果要利用 abbrvnat 進行縮寫,是否要注意姓名的格式和順序,而不要輸錯了。
@book{1, //google scholar 多采用此格式
title = {Foundations of machine learning},
author = {Mohri, Mehryar and Rostamizadeh, Afshin and Talwalkar, Ameet}, //當使用逗號時,姓氏在前,名在后,並用逗號隔開
year = {2018},
edition = {second},
publisher = {The MIT Press},
}
@book{2,
title = {Foundations of machine learning}, // dblp 多采用此格式
author = {Mehryar Mohri and Afshin Rostamizadeh and Ameet Talwalkar}, //當不使用逗號時,按照西文正常寫法,名在前,姓在后,
year = {2018}, // 縮寫會縮寫第一個單詞 Mehryar -> M.
edition = {second},
publisher = {The MIT Press},
}
@book{3,
title = {Foundations of machine learning},
author = {M. Mohri and A. Rostamizadeh and A. Talwalkar}, // 這里是手工硬編碼縮寫
year = {2018}, // 在這里,可能 latex 會把 M. 當做一個單詞,僅一個字母,縮寫仍是這個樣子
edition = {second},
publisher = {The MIT Press},
}
這三種在 \bibliographystyle{abbrvnat} 下效果一致
address 一般在美國本土舉辦,不用寫國家名 USA, 在其他國家舉辦則一般寫 city, country, 在美國舉辦一般寫,city, province
對於 incollection 結構 需要有 publisher 項,但這里應該是 inproceedings, 則不需要 publisher 項。
@incollection{NIPS2019_9263,
title = {Fast-rate PAC-Bayes Generalization Bounds via Shifted Rademacher Processes},
author = {Yang, Jun and Sun, Shengyang and Roy, Daniel M},
booktitle = {Advances in Neural Information Processing Systems 32},
editor = {H. Wallach and H. Larochelle and A. Beygelzimer and F. d\textquotesingle Alch\'{e}-Buc and E. Fox and R. Garnett},
pages = {10802--10812},
year = {2019},
publisher = {}
}
在刪去輔助文件式,一不小心把 abbrvant.bst 也刪去了,導致參考文獻的格式一直不對,年份 2009 在最后面,而非在作者后用括號括起來
會議的 In Proceedings of the 23rd International Conference of Machine Learning (ICML)
注意 1st(first), 2nd(second), 3rd(third), 4th(forth) ... 10th(tenth), 11th, 12th, 13th, 13th, 15th, 20th, 21st, 22nd(twenty second), 23rd (twenty third)
...
之前寒假整理 refenrence 發現, anthor = {} 可以用兩種寫法:
1. {A B and C D}
2. {B,A and D, C} google scholar 與 dblp 上下載的恰好相反
還發現 title = {} 里面可以使用 $ $ 來標示公式。
今天調試 nips 模板,發現 natbit 要與 plainnat 搭配使用,用 plain 會報錯。用google 一下子就搜到了,百度還是搜不到。
https://tex.stackexchange.com/questions/166840/why-do-i-get-author-when-i-use-citet-with-natbib
