close
LaTex 預設上不會把摘要、文獻等頁碼給編進目錄中
但通常在寫論文時,需要把摘要、文獻、誌謝等頁碼出現在目錄中
並且以羅馬數字的型式出現
在你要編進目錄的所在位置,使用 \addcontentsline{toc}
並且採用 chapter 顯示層級(依需求也可改成 section 等)
所以就是 \addcontentsline{toc}{層級}{顯示名稱}
然後最後就是你顯示在目錄的名稱
%使用 \pagenumbering{Roman} 讓頁碼變成羅馬數字的表示方式
\pagenumbering{Roman}
%如果使用了 hyperref 這一個 package 來生成 PDF 的連結
%則必須要在前面加上 \phantomsection
\phantomsection
\addcontentsline{toc}{chapter}{摘要}
xxxxxx文章內容xxxxxx
xxxxxx文章內容xxxxxx
xxxxxx文章內容xxxxxx
\pagenumbering{Roman}
%如果使用了 hyperref 這一個 package 來生成 PDF 的連結
%則必須要在前面加上 \phantomsection
\phantomsection
\addcontentsline{toc}{chapter}{摘要}
xxxxxx文章內容xxxxxx
xxxxxx文章內容xxxxxx
xxxxxx文章內容xxxxxx
參考文獻的作法也是一樣
%如果使用 \addcontentsline 造成頁碼的錯亂的話
%則在前面再加上 \clearpage
%而由於 book 及 report 新章節是由奇數頁面開始
%因此要改成 \cleardoublepage
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{參考文獻}
\bibliographystyle{plain}
\bibliography{reference}
%則在前面再加上 \clearpage
%而由於 book 及 report 新章節是由奇數頁面開始
%因此要改成 \cleardoublepage
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{參考文獻}
\bibliographystyle{plain}
\bibliography{reference}
最後在本文前,將頁碼的數字改回阿拉伯數字的表示方式
%\setcounter 表示頁數從 1 開始
\setcounter{page}{1}
\pagenumbering{arabic}
\setcounter{page}{1}
\pagenumbering{arabic}
全站熱搜