雜七雜八的工具(LaTex)——一個文獻閱讀報告模板


//2021年12月3日17點05分

//參考資料:Multi-file LaTeX projects - Overleaf, Online LaTeX Editor

//內容:一個簡單的中文文獻&實驗記錄報告模板

//前言:模板是基於Overleaf示例的魔改

========================================================================================================================

由於最近需要寫一個文獻閱讀報告,因此想到用tex寫一個模板,這樣即省了word調格式的煩惱,又省了后面添加參考文獻的麻煩。

本文模板基於Overleaf魔改,采用南科大源下載的tex+texstudio

首先是主文件代碼:

 1 \documentclass[11pt]{article}
 2 \usepackage[subpreambles=true]{standalone}
 3 \usepackage{import}
 4 \usepackage{cite}
 5 %插入中文宏包
 6 \usepackage[UTF8]{ctex}
 7 %設置頁面布局
 8 \usepackage{geometry}
 9 \geometry{left=2.0cm, right=2.0cm, top=2.5cm, bottom=2.5cm}
10 \title{群體行為識別文獻閱讀報告}
11 \author{xxx,2070xxxx,XXXX電子與信息工程學院}
12 \date{2021年12月4日}
13 
14 \usepackage[resetlabels,labeled]{multibib}
15 
16 \begin{document}
17 
18 \maketitle
19 
20 \import{sections/}{摘要}
21 
22 \section{研究難點}
23 \import{sections/}{研究難點}
24 
25 \section{研究方法}
26 \import{sections/}{研究方法}
27 
28 \subsection{識別}
29 \import{sections/subsections/}{識別}
30 
31 \subsection{識別方法}
32 \import{sections/subsections/}{識別方法}
33 
34 \subsection{識別方法}
35 \import{sections/subsections/}{識別方法}
36 
37 \section{總結與展望}
38 \import{sections/}{總結與展望}
39 
40 \bibliographystyle{plain}
41 \bibliography{references}
42 
43 \end{document}

 

然后是一個子文件模板示例:

 1 \documentclass[class=article, crop=false]{standalone}
 2 \usepackage[subpreambles=true]{standalone}
 3 \usepackage{import}
 4 \usepackage{blindtext}
 5 \usepackage[UTF8]{ctex}
 6 \begin{document}
 7     A TikZ figure will be rendered below this line
 8     
 9 %    \begin{figure}[ht]
10 %        \centering
11 %        \subimport{../}{diagram.tex}
12 %        \label{fig:tikzexample}
13 %        \caption{A nice simple diagram}
14 %    \end{figure}
15     
16     \blindtext
17 \end{document}

這樣一個按章節划分的中文tex模板就搞定了。

另外:Overleaf博客Multi-file LaTeX projects - Overleaf, Online LaTeX Editor提供了兩種方式。

(PS:Package fontspec Warning: Font "FandolSong-Regular" does not contain requested Script "CJK". 這個報錯可以忽略)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM