# Latex Ref寫法
* 用latex寫ref的時候, 通常會用這兩種語法:
1. 另外準備一個new_ref.bib檔案: 把所有欄位填好, 系統自動套用template轉出格式 (懶人用)
```
\bibliographystyle{IEEEtran}
\bibliography{new_ref}
```
2. 用bibitem: 你寫什麼, 他就產生什麼 (需要對ref格式很清楚, 不太建議用這個 XD)
```
\bibitem{}R. Fardel, M. Nagel, F. Nuesch, T. Lippert, and A. Wokaun, ``Fabrication of organic light emitting diode pixels by laser-assisted forward transfer,'' {\em Appl. Phys. Lett.}, vol. 91, no. 6, Aug. 2007, Art. no. 061103.
```
## 注意事項
1. 作者的姓 & 名, 要注意順序. 還有名字的縮寫 (建議全部寫全名, 讓latex幫你轉縮寫)
2. 標題的大小寫 (ex: 通常會寫GAN, 沒注意就變成gan)
3. 研討會論文, 開頭會先用in Proc. (表示來自研討會的收錄刊物. 可參考: https://academia.stackexchange.com/questions/35031/what-is-the-meaning-of-in-proceedings-of)
4. 年份只要寫一次就好, 有些研討會會寫20XX年, 這個可以略過
5. 各網站都有ref的匯出功能, 但匯出的格式都不一樣, **需要人工手動調整**!!! 不是貼進去bib檔案就好.
### 作者姓名的順序
以YOLO論文為例, 作者為 Redmon, Joseph and Divvala, Santosh and Girshick, Ross and Farhadi, Ali.
在author欄位裡面, 多個作者會用and來連接. 但姓放在前面時, 需要多個逗號!
`寫法1: author={Redmon, Joseph and Divvala, Santosh and Girshick, Ross and Farhadi, Ali}`
`寫法2: author={Joseph Redmon and Santosh Divvala and Ross Girshick and Ali Farhadi}`
有時候太多逗號會眼花, 而且有些來源只提供縮寫 & 使用大括號{}, 可能會遇到姓名的順序錯誤
所以, **建議用寫法2**. (無腦的把作者全名貼進去)
用中文人名當例子可能比較好懂(!?)
`寫法1: author={張, 學友 and 劉, 德華 and 黎, 明 and 郭, 富城}`
`寫法2: author={學友 張 and 德華 劉 and 明 黎 and 富城 郭}`
### 標題的大小寫
同樣用YOLO當例子, 如果這樣寫, 只有第一個字是大寫, 後面都會變小寫
語法: `titel={You Only Look Once: Unified, Real-Time Object Detection},`
輸出結果: `You only look once: unified, real-time object detection`
如果想要產生一樣的寫法, 就用雙引號""在前後 or 使用兩個大括號
修正後語法: `title="{You Only Look Once: Unified, Real-Time Object Detection}", `
修正後語法: `title={{You Only Look Once: Unified, Real-Time Object Detection}}, `
在編排的時候, 請統一全部title的寫法. ex: 只有第一個字首大寫的話, 就全部這樣做. 如果要每個字首大寫, 就比照辦理.
### 研討會論文
繼續用YOLO當例子 XD
語法: `booktitle={2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, `
因為ref最後會寫年份, 這邊的2016就可以拿掉. 有些會寫第幾屆, 也可以刪掉. 然後轉出來的結果會是:
`in IEEE Conference on Computer Vision and Pattern Recognition (CVPR)`
可是開頭應該是in Proc.才對, 所以開頭加個字就好 (可參考: https://libraryguides.vu.edu.au/ieeereferencing/confernenceproceedings)
修正後語法: `booktitle={Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, `
輸出結果: `in Proc. IEEE Conference on Computer Vision and Pattern Recognition (CVPR)`
### 簡單結論
作者寫法: author={作者全名, 多個作者用and連接, 讓latex自動轉換},
標題寫法: title="{每個字首都大寫, 特定專有名詞全部大寫}",
研討會寫法: booktitle={Proc. 研討會名稱, 不需要年份&屆數}, `
# Reference格式
- 交大碩論格式: https://coe.nctu.edu.tw/master/doc/h/h4_2_c.pdf
- 更新版:
https://aa.nycu.edu.tw/wp-content/uploads/%E5%9C%8B%E7%AB%8B%E9%99%BD%E6%98%8E%E4%BA%A4%E9%80%9A%E5%A4%A7%E5%AD%B8%E7%A0%94%E7%A9%B6%E7%94%9F%E5%AD%B8%E4%BD%8D%E8%AB%96%E6%96%87%E6%A0%BC%E5%BC%8F%E8%A6%8F%E7%AF%84.pdf
---
下面還在整理中 XD
---
## Journal
### 例子
@ARTICLE{nfv,
author={Juliver Gil Herrera and Juan Felipe Botero},
title="{Resource Allocation in NFV: A Comprehensive Survey}",
journal={IEEE Transactions on Network and Service Management},
year={2016},
volume={13},
number={3},
pages={518-532}
}
### 空白版
@ARTICLE{xxxxx,
author={???},
title="{???}",
journal={???},
year={??},
volume={?},
number={?},
pages={??}
}
---
## Conference
### 例子
> @INPROCEEDINGS{iot_shopping_cart,
> author={T. R. {Lekhaa} and S. {Rajeshwari} and J. A. {Sequeira} and S. {Akshayaa}},
> title="{Intelligent Shopping Cart using Bolt Esp8266 based on Internet of Things}",
> booktitle={Proc. International Conference on Advanced Computing Communication Systems (ICACCS)},
> year={2019},
> volume={},
> number={},
> pages={758-761}
> }
### 空白版
> @INPROCEEDINGS{xxxxxx,
> author={??},
> title="{??}",
> booktitle={Proc. ??},
> year={??},
> volume={},
> number={},
> pages={??}
> }
注意: booktitle這邊, 不需要寫年份 & 第幾屆的資訊!!
---
## 技術文件
### 例子
> @manual{onem2m,
> organization={oneM2M},
> title="{oneM2M TS 0001 Functional Architecture}",
> url = {https://www.onem2m.org/images/files/deliverables/Release2/TS-0001-%20Functional_Architecture-V2_10_0.pdf},
> year={2016}
> }
### 空白版
> @manual{xxx,
> organization={xxx},
> title="{xxx}",
> url = {http://xxx},
> year={xxx}
> }
---
## 網頁資訊
### 寫法1: online
* 有些地方好像不支援online的寫法? 最近弄MDPI sensors的投稿, 他們的template不支援@online
> @online{gcp_pubsub,
> author = {Google},
> title = "{Google Cloud Pub/Sub Documentation}",
> url = {https://cloud.google.com/pubsub/docs/overview},
> year = {2021}
> }
> @online{gcp_pubsub,
> author = {xx},
> title = "{xxx}",
> url = {https://xxxx},
> year = {xxx}
> }
### 寫法2: misc
> @misc{xxx,
> author = {xx},
> title = "{xxx}",
> url = {https://xxxx},
> year = {xxx}
> }
### 寫法3: www (最近用這個)
https://tex.stackexchange.com/questions/479589/how-to-cite-website-with-mdpi-template-using-bibtex
> @www{ogredevelopmentteamOGREOpenSource2019,
> author = {{Ogre Development Team}},
> title = {{{OGRE}} - {{Open Source 3D Graphics Engine}}},
> url = {https://www.ogre3d.org/},
> urldate = {xx.xx.2019},
> }
### 空白版
> @www{xxxx,
> author = {xxxxx},
> title = {xxxxx},
> url = {https://xxxxxx},
> urldate = {xx.xx.2019},
> }
---
## arXiv文章
### 例子 (最近用這個)
> @article{redmon2018yolov3,
> title={{YOLOv3}: An incremental improvement},
> author={Redmon, Joseph and Farhadi, Ali},
> year={2018},
> journal = {arXiv:1804.02767}
> }
### 空白版
> @article{xxxxx,
> title={xxxxx},
> author={xxxx},
> year={xxx},
> journal = {arXiv:xxx.xxx}
> }