Skip to content

tianhaoo/Soochow-University-Thesis-Overleaf-LaTeX-Template

Repository files navigation

苏州大学研究生毕业论文Latex模板 - Overleaf

Soochow University Thesis Overleaf LaTeX Template

readme XeLaTex overleaf

背景

现有的关于苏大毕业论文LaTex模板的内容包括@huhamhire 的项目sudathesis贡献的sudathesis.cls文件 和@hinesboySUDA-Latex将其整合后可以在texlive+vscode平台运行的项目。

本项目是在两位学长的基础上修改了部分格式,并对完全跨平台编译做了适配,使之运行在 Overleaf 平台上,如果你有如下的痛点,则可以考虑使用本项目:

  • 厌倦了臃肿的本地latex开发环境和被texlive搞乱的系统环境变量

  • 修改大论文时各种版本的pdf文件传来传去,在版本对齐中浪费了大量时间,无法多人协作

  • 本地latex环境的依赖冲突问题或者其他问题导致编译出现莫名bug,本地编译器无法正常运行

  • VScode的插件LaTeX Workshop出bug不会调试,自带编辑器TexWorks editor又慢又老掉牙

  • 在实验室电脑配置了论文环境,对该电脑百般呵护生怕数据丢失,离开实验室后无法在其他设备上写毕业论文

安装

  1. 在本页面 右上角 code -> download zip

  1. overleaf.comNew Project -> Upload Project -> select a .zip file, 上传刚才下载的zip文件

  1. 在左上角 Menu -> Compiler 中选择编译器为XeLaTex, 然后右上角ReCompile

  1. 初次编译速度较慢,后续再编译速度会提升。

使用说明

  1. content文件夹中修改相应章节的内容

  2. main.tex规定文章结构

  3. reference.bib里面是参考文献

  4. 关于算法algorithm缩进的问题,一个可选方案是手动添加缩进:

  • 缩进显示错误:

  • 手动调整缩进,正常显示:

  1. 关于subfigure的问题
% 单张图片
\begin{figure*}[!htbp]
\centering
\includegraphics[width=1\linewidth]{sudamark.jpg}
\caption{The illustration of protocol. }
  \vspace{-5 mm} 
\label{fig:protocol}
\end{figure*}

% 三张图片竖直排列
\begin{figure}[!tbp]
\centering

\begin{subfigure}{\textwidth}
\centering
\includegraphics[width=.8\linewidth]{sudamark.jpg}  
\caption{111}
\label{fig:111}
\end{subfigure} % 注意换行

\begin{subfigure}{\textwidth}
\centering
\includegraphics[width=.8\linewidth]{sudamark.jpg}  
\caption{222}
\label{fig:222}
\end{subfigure} % 注意换行

\begin{subfigure}{\textwidth}
\centering
\includegraphics[width=.8\linewidth]{sudamark.jpg}  
\caption{333}
\label{fig:333}
\end{subfigure} % 注意换行

\caption{The impact of different data.}
\label{fig:dataset_distribution}
\end{figure}


% 两张图片横向排列
\begin{figure}
  \begin{subfigure}[b]{.5\columnwidth}
      \includegraphics[width=.8\linewidth]{sudamark.jpg}  
      \caption{MNIST}
      \label{fig:11}
  \end{subfigure}
  \hfill
  \begin{subfigure}[b]{.5\columnwidth}
      \includegraphics[width=.8\linewidth]{sudamark.jpg}  
      \caption{CIFAR-10}
      \label{fig:22}
  \end{subfigure}
\caption{Instantaneous results.}
\label{fig:1122}
\end{figure}


% 四张图片
\begin{figure}
  %\centering % Not needed
  \begin{subfigure}[b]{.5\columnwidth}
      \includegraphics[width=.8\linewidth]{sudamark.jpg}  
      \caption{MNIST}
      \label{fig:1111}
  \end{subfigure}
  \hfill
  \begin{subfigure}[b]{.5\columnwidth}
      \includegraphics[width=.8\linewidth]{sudamark.jpg}  
      \caption{MNIST}
      \label{fig:2222}
  \end{subfigure}
  %% leave a blank line to create a line break

  \begin{subfigure}[b]{.5\columnwidth}
      \includegraphics[width=.8\linewidth]{sudamark.jpg}  
      \caption{CIFAR-10}
      \label{fig:3333}
  \end{subfigure}
  \hfill
  \begin{subfigure}[b]{.5\columnwidth}
      \includegraphics[width=.8\linewidth]{sudamark.jpg}  
      \caption{CIFAR-10}
      \label{fig:4444}
  \end{subfigure}
  \caption{Instantaneous results.}
  \label{fig:1234}
\end{figure}
  1. 关于文本送审后修改的文本高亮问题,使用soul包不支持中文。原生的colorbox可以小范围使用,但是不支持换行,并且文字周围有边界。可以用别人写的cjkhl,实测完美运行。将cjkhl.sty下载到main.tex的同级目录,然后把下面这一段放在begin{document}之前即可。但是cjkhl不支持高亮数学公式,可以用colorbox处理数学公式。
% 高亮操作相关
\usepackage{cjkhl}
\usepackage{color}
\newcommand{\hl}[1]{\cjkhl{yellow}{#1}} % 把这个注释打开即可高亮文本
% \newcommand{\hl}[1]{{#1}}	  % 把这个注释打开即可取消所有高亮
% 用法示例: 这是一段\hl{高亮文本}的示例。

进阶

  1. 本项目中使用的宋体为FandolSong,楷体为FandolKai,均为Overleaf支持的字体
    如果对目前的字体不满意可以从下面列表中寻找由Overleaf支持的字体 Overleaf支持的字体列表
    也可以自行上传其他字体 在overleaf中添加其他字体的方式

  2. 如果有以下情况:

    • overleaf.com网站在线编译的速度有要求
    • 对文章内容隐私性有要求
    • 梯子不快
      的同学,可以考虑在内网的强悍服务器上搭建一个本地的Overleaf平台,现已支持docker

相关仓库

  • sudathesis — LaTeX template for bachelor's thesis in Soochow University
  • SUDA-Latex — 苏州大学-硕士毕业大论文-Latex模版(附安装使用说明)
  • Overleaf - A web-based collaborative LaTeX editor

维护者

@tianhaoo

如何贡献

非常欢迎你的加入!提一个 Issue 或者提交一个 Pull Request。

Soochow-University-Thesis-Overleaf-LaTeX-Template 遵循 Contributor Covenant 行为规范。

使用许可

MIT © Tianhaoo

Star History

Star History Chart

Security Status