Skip to content

Overleaf超时 #543

@yangpuhai

Description

@yangpuhai

发生了什么?

旧版本(yang yating等维护)在免费版本的Overleaf上可以正常完成编译。
而新版本(2024年推出,由Feng Kaiyu等维护)在Overleaf上内容较多(10万字,150+参考文献)时会造成超时,需要开通Overleaf会员才能完成编译,给学生带来了巨大困难。

你期望的结果

希望新版本可以适当改进以实现在内容较多时也可以在免费版本的Overleaf上完成编译

BIThesis 模板

graduate-thesis

2025年10月更新

2025年夏秋 Overleaf 又把免费编译时长降到 10 s 了。
对于 ctex + biber(中文排版+参考文献),只要加一些基础包并插一张图,就能超过 10 s,所以 Overleaf 基本上没救了……

解决办法:
换用免费编译 30 s 的国产 TeXPage,或其它平台,或者本地编译
(以上节选自 FAQ

实验:ctex + biber + 若干基础包 ⇒ 超过十秒

环境:TeX Live 2025、XeLaTeX。

结果

Windows 本地编译:平均 12 s,标准差 3 s。

> hyperfine 'latexmk -xelatex -g'
Benchmark 1: latexmk -xelatex -g
  Time (mean ± σ):     12.872 s ±  3.005 s    [User: 10.552 s, System: 2.147 s]
  Range (min … max):    8.801 s … 19.521 s    10 runs

Overleaf 在线编译:十次有五次超时。

Image

Overleaf 具体测试方法:连续重复编译十次,每次选择“重新编译 → 从头重新开始编译”,中间随机休息几秒钟到几分钟,但不编辑任何文件。
具体结果:✓✗✗✗✗✓✓✓✓✗,其中 ✓ 代表成功编译,✗ 代表超时。

测试用例

https://cn.overleaf.com/read/mnzvgzdyvtkv#e5842d

Image Image Image Image

main.tex:

% !TeX program = xelatex
% !BIB program = biber
\documentclass{ctexbook} % 基本中文排版

% collection-latex
\usepackage{etoolbox} % 基础编程工具
\usepackage[bookmarksnumbered]{hyperref} % 交叉引用
\usepackage{graphicx} % 插图
\usepackage{fancyhdr} % 页眉页脚
\usepackage{amsmath} % 数学公式
\usepackage{amsthm} % 定理证明
\usepackage{array} % 表格 tabular

% collection-latexextra
\usepackage{enumitem} % 列表
\usepackage{fmtcount} % 转换数字格式
\usepackage{multirow} % 表格跨单元格
\usepackage{titletoc} % 目录格式

% collection-latexrecommended
\usepackage{booktabs} % 三线表
\usepackage[strut=off]{caption} % 图表标题
\usepackage{pdfpages} % 插图
\usepackage[nodisplayskipstretch]{setspace} % 行距
\usepackage{mathtools} % 数学公式

% collection-bibtexextra 参考文献
\usepackage[
  defernumbers=true,
  backend=biber,
  style=gb7714-2015,
  gbalign=gb7714-2015,
]{biblatex}
\addbibresource{main.bib}


\begin{document}
\frontmatter
\tableofcontents
\clearpage

\mainmatter
\include{chapter1.tex}

\backmatter
\printbibliography

\end{document}

chapter1.tex:

\chapter{绪论}

正文包括绪论、论文具体研究内容及结论部分。博士学位论文:一般为6~10万字,其中绪论要求为1万字左右。硕士学位论文:一般为3~5万字,其中绪论要求为0.5万字左右。(外语学科:中文、日文不少于3万字,西文2万字左右。)

绪论一般作为第1章。绪论应包括本研究课题的学术背景及其理论与实际意义;本领域的国内外研究进展及成果、存在的不足或有待深入研究的问题;本研究课题的来源及主要研究内容等。

\label{chap:intro}
\section{本论文研究的目的和意义}

近年来,随着人们生活水平的不断提高,人们越来越注重周围环境对身体健康的影响。作为服装是人们时时刻刻最贴近的环境,尤其是内衣,对人体健康有很大的影响。由于合时刻刻最贴近的环境,尤其是内衣,对人体健康有很大的影响。由于合成纤维的衣着舒适性、手感性,天然纤维的发展又成为人们关注的一大热点。

……\cite{Takahashi1996Structure,Xia2002Analysis,Jiang1989,Mao2000Motion,Feng1998}

\section{国内外研究现状及发展趋势}

\subsection{形状记忆聚氨酯的形状记忆机理}

根据文献\parencite{Jiang2005Size},形状记忆聚合物(SMP)是继形状记忆合金后在80年代发展起来的一种新型形状记忆材料。形状记忆高分子材料在常温范围内具有塑料的性质,即刚性、形状稳定恢复性;同时在一定温度下(所谓记忆温度下)具有橡胶的特性,主要表现为材料的可变形性和形变恢复性。即“记忆初始态-固定变形-恢复起始态”的循环。

固定相只有物理交联结构的聚氨酯称为热塑性SMPU,而有化学交联结构称为热固性SMPU。热塑性和热固性形状记忆聚氨酯的形状记忆原理示意图如图\ref{fig:diagram}所示

\begin{figure}[hbt]
 \centering
 \includegraphics[width=0.75\textwidth]{figure1.png}
 % \caption[这里的文字将会显示在 listoffigure 中]{这里的文字将会显示在正文中}
 \caption{热塑性形状记忆聚氨酯的形状记忆机理示意图}\label{fig:diagram}
\end{figure}


\subsection{形状记忆聚氨酯的研究进展}
%\label{sec:requirements}
首例SMPU是日本Mitsubishi公司开发成功的……。

\subsection{水系聚氨酯及聚氨酯整理剂}

水系聚氨酯的形态对其流动性,成膜性及加工织物的性能有重要影响,一般分为三种类型\cite{Jiang2005Size} ,如表 \ref{tab:category}所示。

\begin{table}[hbt]
  \centering
  \caption{水系聚氨酯分类} \label{tab:category}
  \begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}cccc}
  \toprule
    类别			&水溶型		&胶体分散型		&乳液型 \\
  \midrule
    状态			&溶解$\sim$胶束	&分散		&白浊 \\
    外观			&水溶型		&胶体分散型		&乳液型 \\
    粒径$/\mu m$	&$<0.001$		&$0.001-0.1$		&$>0.1$ \\
    重均分子量	&$1000\sim 10000$	&数千$\sim 20$万 &$>5000$ \\
  \bottomrule
  \end{tabular*}
\end{table}

\subsubsection{四级节标题}

根据需要,也可设四级节标题。

由于它们对纤维织物的浸透性和亲和性不同,因此在纺织品染整加工中的用途也有差别,其中以水溶型和乳液型产品较为常用。另外,水系聚氨酯又有反应性和非反应性之分。虽然它们的共同特点是分子结构中不含异氰酸酯基,但前者是用封闭剂将异氰酸酯基暂时封闭,在纺织品整理时复出。相互交联反应形成三维网状结构而固着在织物表面。
……


\section{常见问题和疑难解答}

如果您遇到\href{https://bithesis.bitnp.net/faq/char-missing.html}{生僻字无法显示}、
\href{https://bithesis.bitnp.net/faq/enumitem-nosep.html}{列表项间距过大}、
\href{https://bithesis.bitnp.net/faq/longtable.html}{三线表需要跨页}等问题,
请参考\href{https://bithesis.bitnp.net/faq/}{在线文档的「疑难杂症」部分}。

main.bib:

%%
% BIThesis 研究生学位论文模板 The BIThesis Template for Graduate Thesis
% This file has no copyright assigned and is placed in the Public Domain.
%%


@article{Jiang2005Size,
  title = {形状记忆聚合物研究现状与发展},
  author = {姜敏 and 彭少贤 and 郦华兴},
  journal = {现代塑料加工应用},
  volume = {17},
  number = {2},
  pages = {53-56},
  year = {2005},
}

@article{Takahashi1996Structure,
  title = {Structure and properties of {shape-memory} polyurethane block
           copolymers},
  author = {Takahashi, Toshisada and Hayashi, Noriya and Hayashi, Shunichi},
  journal = {Journal of Applied Polymer Science},
  volume = {60},
  number = {7},
  pages = {1061-1069},
  year = {1996},
}

@inproceedings{Xia2002Analysis,
  title = {Analysis of Affective Characteristics and Evaluation of Harmonious
           Feeling of Image Based on 1/f Fluctuation Theory},
  author = {Xia, Mao and Chen, Bin and Gang, Zhu and Itsya, Muta},
  booktitle = {Developments in Applied Artificial Intelligence, International
               Conference on Industrial and Engineering, Applications of
               Artificial Intelligence and Expert Systems, Iea/aie 2002, Cairns,
               Australia, June 17-20, 2002, Proceedings},
  pages = {780-789},
  year = {2002},
}

@patent{Jiang1989,
  title = {一种温热外敷药的制备方法},
  author = {姜锡洲},
  location = {中国},
  number = {881056078},
  date = {1983-08-12},
}

@article{Mao2000Motion,
  title = {情感工学破解"舒服"之谜},
  author = {毛峡},
  journal = {科技文萃},
  number = {7},
  pages = {157-158},
  year = {2000},
}

@article{Feng1998,
  title = {核反应堆管道和压力容器的LBB分析},
  author = {冯西桥 and 何树延},
  journal = {力学进展},
  volume = {28},
  number = {2},
  pages = {198-217},
  year = {1998},
}

figure1.png: https://github.com/BITNP/BIThesis/blob/d4a0d8778c65b0b53b4f189c4aa04aec7e55dc7e/templates/graduate-thesis/figures/figure1.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions