北科 LaTeX 模板 Overleaf 線上編輯筆記
論文加油(゚∀。)
基本設定
北科論文模板下載
下載網址:https://github.com/ntut-xuan/NTUT-Thesis-Template
Code -> Download ZIP
匯入 overleaf 線上編輯
overleaf:https://www.overleaf.com/project
New Project -> Upload Project
調整 Compiler
點左上角的 Menu,把 Compiler 改成 XeLateX
修正中文字體錯誤
在 main.tex 檔案中,找到這一行註解掉(在最前面加上 %)
%\setCJKmainfont{標楷體} % 中文字體
然後在下面加入這兩行,接著點 Recompiler,中文就會正常顯示了
%\setCJKmainfont{標楷體} % 中文字體
\setCJKfamilyfont{kai}{TW-Kai}
\newcommand*{\edukai}{\CJKfamily{kai}}
設定基本資料
ntut-labels.tex:科系、論文名稱、學位、研究生
page/abstract.tex:論文頁數與關鍵字
page/abstract-en.tex:論文頁數與關鍵字(英文版)
加入自己的頁面
- 在 chapter 資料夾內建立自己的 .tex 檔案
- 找到 main.tex 檔案,使用
\include
把剛剛建立的 .tex 檔案頁面加入
1
2
3
4
5
6
7
8
% 章節一
\include{chapter/chapter1-introduction.tex}
% 章節二
\include{chapter/chapter2-related-work.tex}
% 新增自己的章節...
\include{chapter/chapter3-methods.tex}
\include{chapter/chapter4.tex}
\include{chapter/conclusion.tex}
(頁面順序會按照 include 的前後來排序)
文章編輯相關
表格使用範例
表格本體設計
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\begin{table}[h!]
\centering
\resizebox{\textwidth}{!}{ %自動調整寬度
\begin{tabular}{|p{3cm}|c|c|c|c|c|c|c|}
\hline
\textbf{} & \textbf{無防禦} & \textbf{字數限制} & \textbf{語言偵測} & \textbf{輸入檢測 URL} & \textbf{輸出檢測 URL} & \textbf{防禦性 Prompt} & \textbf{整合所有策略} \\ \hline
\textbf{搜集資訊} & X & - & - & - & - & - & - \\ \hline
\textbf{詐騙} & V & X & X & X & X & X & X \\ \hline
\textbf{惡意軟體} & V & X & X & X & X & X & X \\ \hline
\textbf{入侵} & X & - & - & - & - & - & - \\ \hline
\textbf{操控輸出} & V & X & X & V & V & X & X \\ \hline
\textbf{可用性破壞} & V & V & V & V & V & X & X \\ \hline
\textbf{提取文件} & X & - & - & - & - & - & - \\ \hline
\textbf{提示提取} & V & V & V & V & V & V & V \\ \hline
\end{tabular}}
\caption{防禦策略與其應用}
\label{tab:mitigation-strategies-application} %表格的 label,要在文章中提起的時候會用到
\end{table}
在文章中提起表格
1
\ref{tab:injection-prompts-combined}
cite 使用範例
找到 reference.bib 檔案
將類似這樣的內容加入其中
1
2
3
4
5
6
@article{owaspllmtop10:2023, %cite內容是要用到這邊的文字
title={OWASP TOP10 LLM},
author={OWASP},
year={2023},
url={https://owasp.org/www-project-top-10-for-large-language-model-applications/assets/PDF/OWASP-Top-10-for-LLMs-2023-v1_1.pdf}
}
在文章中提起 cite
1
\cite{owaspllmtop10:2023}
更改 cite 排序方式
改成依照 cite 提到的順序來編號
找到 main.tex 裡面的
1
\usepackage[backend=bibtex]{biblatex}
改成這樣
1
\usepackage[backend=bibtex,sorting=none]{biblatex}
支語糾察隊
一些寫論文常見的支語
1
2
3
4
數據 -> 資料
優化 -> 最佳化
代碼 -> 程式碼
本文章以 CC BY 4.0 授權