| 1 |
\documentclass[a4paper,12pt]{ctexart} |
| 2 |
\usepackage[top=2.5cm,bottom=2.5cm,left=3cm,right=2.5cm]{geometry} |
| 3 |
\usepackage{hyperref} |
| 4 |
\usepackage{graphicx} |
| 5 |
\usepackage{booktabs} |
| 6 |
\usepackage{longtable} |
| 7 |
\usepackage{listings} |
| 8 |
\usepackage{xcolor} |
| 9 |
\usepackage{enumitem} |
| 10 |
|
| 11 |
\hypersetup{ |
| 12 |
colorlinks=true, |
| 13 |
linkcolor=blue, |
| 14 |
filecolor=magenta, |
| 15 |
urlcolor=cyan, |
| 16 |
} |
| 17 |
|
| 18 |
\lstset{ |
| 19 |
basicstyle=\ttfamily\small, |
| 20 |
breaklines=true, |
| 21 |
frame=single, |
| 22 |
backgroundcolor=\color{gray!10}, |
| 23 |
keywordstyle=\color{blue}, |
| 24 |
stringstyle=\color{red} |
| 25 |
} |
| 26 |
% 页眉仅显示节标题文本,避免与页码混淆 |
| 27 |
\renewcommand{\sectionmark}[1]{\markright{#1}} |
| 28 |
|
| 29 |
\title{\textbf{CQJTU-Latex-Thesis 使用指南}} |
| 30 |
\author{CQJTUThesis Development Team} |
| 31 |
\date{v1.0.2 (2026-02-11)} |
| 32 |
|
| 33 |
\begin{document} |
| 34 |
|
| 35 |
\pagenumbering{gobble} |
| 36 |
\maketitle |
| 37 |
\thispagestyle{empty} |
| 38 |
\clearpage |
| 39 |
\pagenumbering{Roman} |
| 40 |
\setcounter{page}{1} |
| 41 |
\tableofcontents |
| 42 |
\clearpage |
| 43 |
\pagenumbering{arabic} |
| 44 |
\setcounter{page}{1} |
| 45 |
|
| 46 |
\section{简介} |
| 47 |
|
| 48 |
重庆交通大学学位论文 LaTeX 模板,支持本科、硕士(学术型/专业型)、博士论文。 |
| 49 |
|
| 50 |
\begin{itemize} |
| 51 |
\item \textbf{版本}: v1.0.2 |
| 52 |
\item \textbf{更新日期}: 2026-02-11 |
| 53 |
\item \textbf{编译环境}: XeLaTeX + TeX Live 2020+ |
| 54 |
\end{itemize} |
| 55 |
|
| 56 |
\textbf{格式要求参考}: |
| 57 |
\begin{itemize} |
| 58 |
\item 本科论文:《重庆交通大学本科毕业论文(设计)模板》(2024年版) |
| 59 |
\item 研究生论文:《重庆交通大学研究生学位论文格式要求》(2013年修订版) |
| 60 |
\end{itemize} |
| 61 |
|
| 62 |
\section{快速开始} |
| 63 |
|
| 64 |
\subsection{本科毕业论文} |
| 65 |
|
| 66 |
\textbf{使用示例文件}: \texttt{examples/cqjtuthesis-bachelor.tex} |
| 67 |
|
| 68 |
\begin{lstlisting}[language=TeX] |
| 69 |
\documentclass{../tex/cqjtuthesis} % 默认为本科模式 |
| 70 |
% 或显式指定 |
| 71 |
\documentclass[degree=bachelor]{../tex/cqjtuthesis} |
| 72 |
\end{lstlisting} |
| 73 |
|
| 74 |
\textbf{内容目录}: \texttt{examples/contents/} \\ |
| 75 |
\textbf{编译命令}: \texttt{cd examples \&\& latexmk -xelatex cqjtuthesis-bachelor.tex} |
| 76 |
|
| 77 |
\subsection{学术型硕士学位论文} |
| 78 |
|
| 79 |
\textbf{使用示例文件}: \texttt{examples/cqjtuthesis-master.tex} |
| 80 |
|
| 81 |
\begin{lstlisting}[language=TeX] |
| 82 |
\documentclass[degree=master]{../tex/cqjtuthesis} % 默认为学术型 |
| 83 |
% 或显式指定 |
| 84 |
\documentclass[degree=master, degree-type=academic]{../tex/cqjtuthesis} |
| 85 |
\end{lstlisting} |
| 86 |
|
| 87 |
\textbf{内容目录}: \texttt{examples/contents-graduate/} \\ |
| 88 |
\textbf{编译命令}: \texttt{cd examples \&\& latexmk -xelatex cqjtuthesis-master.tex} |
| 89 |
|
| 90 |
\subsection{专业型硕士学位论文} |
| 91 |
|
| 92 |
\textbf{使用示例文件}: \texttt{examples/cqjtuthesis-professional.tex} |
| 93 |
|
| 94 |
\begin{lstlisting}[language=TeX] |
| 95 |
\documentclass[degree=master, degree-type=professional]{../tex/cqjtuthesis} |
| 96 |
\end{lstlisting} |
| 97 |
|
| 98 |
\textbf{内容目录}: \texttt{examples/contents-graduate/} \\ |
| 99 |
\textbf{编译命令}: \texttt{cd examples \&\& latexmk -xelatex cqjtuthesis-professional.tex} |
| 100 |
|
| 101 |
\subsection{博士学位论文} |
| 102 |
|
| 103 |
\textbf{使用示例文件}: \texttt{examples/cqjtuthesis-doctor.tex} |
| 104 |
|
| 105 |
\begin{lstlisting}[language=TeX] |
| 106 |
\documentclass[degree=doctor]{../tex/cqjtuthesis} |
| 107 |
\end{lstlisting} |
| 108 |
|
| 109 |
\textbf{内容目录}: \texttt{examples/contents-graduate/} \\ |
| 110 |
\textbf{编译命令}: \texttt{cd examples \&\& latexmk -xelatex cqjtuthesis-doctor.tex} |
| 111 |
|
| 112 |
\section{选项说明} |
| 113 |
|
| 114 |
\subsection{类选项} |
| 115 |
|
| 116 |
\begin{longtable}{llll} |
| 117 |
\toprule |
| 118 |
选项 & 可选值 & 默认值 & 说明 \\ |
| 119 |
\midrule |
| 120 |
\texttt{degree} & \texttt{bachelor} / \texttt{master} / \texttt{doctor} & \texttt{bachelor} & 学位类型 \\ |
| 121 |
\texttt{degree-type} & \texttt{academic} / \texttt{professional} & \texttt{academic} & 学位类别 \\ |
| 122 |
\bottomrule |
| 123 |
\end{longtable} |
| 124 |
|
| 125 |
\subsection{校徽选项} |
| 126 |
|
| 127 |
\begin{tabular}{ll} |
| 128 |
\toprule |
| 129 |
选项 & 说明 \\ |
| 130 |
\midrule |
| 131 |
\texttt{\textbackslash coverlogo\{blue\}} & 蓝色校徽(推荐) \\ |
| 132 |
\texttt{\textbackslash coverlogo\{red\}} & 红色校徽 \\ |
| 133 |
\texttt{\textbackslash coverlogo\{legacy\}} & 旧版校徽 \\ |
| 134 |
\bottomrule |
| 135 |
\end{tabular} |
| 136 |
|
| 137 |
\section{主要格式区别} |
| 138 |
|
| 139 |
\subsection{页面设置} |
| 140 |
|
| 141 |
\begin{tabular}{lll} |
| 142 |
\toprule |
| 143 |
项目 & 本科论文 & 研究生论文 \\ |
| 144 |
\midrule |
| 145 |
纸张 & A4 & A4 \\ |
| 146 |
上边距 & 2.5cm & 3.0cm \\ |
| 147 |
下边距 & 2.0cm & 2.5cm \\ |
| 148 |
左边距 & 3.0cm & 3.0cm \\ |
| 149 |
右边距 & 2.0cm & 3.0cm \\ |
| 150 |
装订线 & 无 & 0.5cm \\ |
| 151 |
\bottomrule |
| 152 |
\end{tabular} |
| 153 |
|
| 154 |
\subsection{摘要与目录} |
| 155 |
|
| 156 |
\begin{tabular}{lll} |
| 157 |
\toprule |
| 158 |
项目 & 本科 & 研究生 \\ |
| 159 |
\midrule |
| 160 |
摘要标题 & “摘 要”(小三号黑体) & “摘 要”(三号黑体,2空格) \\ |
| 161 |
摘要正文 & 小四号宋体,1.5倍行距 & 小四号宋体,20磅固定行距 \\ |
| 162 |
\bottomrule |
| 163 |
\end{tabular} |
| 164 |
|
| 165 |
\section{封面信息定义} |
| 166 |
|
| 167 |
\subsection{基本信息(所有学位类型)} |
| 168 |
|
| 169 |
\begin{lstlisting}[language=TeX] |
| 170 |
\title{论文题目} |
| 171 |
\englishtitle{English Title} |
| 172 |
\author{你的姓名} |
| 173 |
\studentid{你的学号} |
| 174 |
\school{你的学院} |
| 175 |
\major{你的专业} |
| 176 |
\advisor{指导教师姓名 职称} |
| 177 |
\completedate{2024年6月} |
| 178 |
\coverlogo{blue} |
| 179 |
\end{lstlisting} |
| 180 |
|
| 181 |
\subsection{本科生额外字段} |
| 182 |
|
| 183 |
\begin{lstlisting}[language=TeX] |
| 184 |
\cohort{20XX} % 届别,如2024 |
| 185 |
\classnum{你的班级} % 班级号 |
| 186 |
\end{lstlisting} |
| 187 |
|
| 188 |
\subsection{研究生额外字段} |
| 189 |
|
| 190 |
\begin{lstlisting}[language=TeX] |
| 191 |
\clc{U491} % 分类号 |
| 192 |
\securitylevel{保密} % 密级 |
| 193 |
\discipline{交通运输工程} % 一级学科 |
| 194 |
\subdiscipline{交通信息工程及控制} % 二级学科 |
| 195 |
\degreecategory{硕士学位} % 申请学位类别 |
| 196 |
\submitdate{2024年5月15日} % 论文提交日期 |
| 197 |
\defenddate{2024年5月20日} % 论文答辩日期 |
| 198 |
\end{lstlisting} |
| 199 |
|
| 200 |
\section{文件结构} |
| 201 |
|
| 202 |
\begin{lstlisting} |
| 203 |
cqjtuthesis/ |
| 204 |
├── README.md # 说明文件 |
| 205 |
├── tex/ # TeX运行时文件 |
| 206 |
│ └── cqjtuthesis.cls # 模板类文件 |
| 207 |
├── doc/ # 文档 |
| 208 |
│ ├── cqjtuthesis-doc-zh.md # 中文使用指南 |
| 209 |
│ └── cqjtuthesis-doc.tex # PDF文档源码 |
| 210 |
└── examples/ # 示例文件 |
| 211 |
├── cqjtuthesis-bachelor.tex |
| 212 |
├── cqjtuthesis-master.tex |
| 213 |
├── cqjtuthesis-professional.tex |
| 214 |
├── cqjtuthesis-doctor.tex |
| 215 |
├── contents/ # 本科内容 |
| 216 |
├── contents-graduate/ # 研究生内容 |
| 217 |
└── figures/ # 图片文件夹 |
| 218 |
\end{lstlisting} |
| 219 |
|
| 220 |
\section{使用步骤} |
| 221 |
|
| 222 |
\begin{enumerate} |
| 223 |
\item \textbf{选择正确的模板文件}:根据学位类型选择对应的 \texttt{.tex} 文件。 |
| 224 |
\item \textbf{修改封面信息}:修改 \texttt{\textbackslash title}, \texttt{\textbackslash author} 等信息。 |
| 225 |
\item \textbf{修改示例内容}:本修改 \texttt{contents/} 或 \texttt{contents-graduate/} 下的源文件。 |
| 226 |
\item \textbf{添加参考文献}:在 \texttt{examples/bibliography/cqjtuthesis-refs.bib} 中添加。 |
| 227 |
\item \textbf{编译生成PDF}:推荐使用 \texttt{latexmk} 或反复执行 \texttt{xelatex -> bibtex -> xelatex -> xelatex}。 |
| 228 |
\end{enumerate} |
| 229 |
|
| 230 |
\section{常见问题} |
| 231 |
|
| 232 |
\textbf{Q: 如何切换学位类型?} \\ |
| 233 |
A: 修改 \texttt{\textbackslash documentclass} 的 \texttt{degree} 选项。 |
| 234 |
|
| 235 |
\textbf{Q: 论文题目太长怎么办?} \\ |
| 236 |
A: 建议精简标题,模板统一使用单行显示。 |
| 237 |
|
| 238 |
\textbf{Q: 编译出错怎么办?} \\ |
| 239 |
A: 检查文件路径、确保安装了中文字体(SimSun, SimHei)、检查参考文献bib文件。 |
| 240 |
|
| 241 |
\section{更多信息} |
| 242 |
|
| 243 |
\begin{itemize} |
| 244 |
\item 官方格式要求:请参考学校官网相关模板。 |
| 245 |
\item 技术支持:建议使用 TeX Live 2020+ 环境。 |
| 246 |
\end{itemize} |
| 247 |
|
| 248 |
\end{document} |