各位同志好, 请教下有没有人遇到过在tcolorbox环境中, 页数比较少的时候正常显示, 字多太多就显示异常
正常:
异常:
tex原代码:
documentclass[twoside,10.5pt]{article}
usepackage{mystyle}
usepackage{graphicx}
usepackage{subcaption}
usepackage{multirow}
usepackage{amsmath}
usepackage{tabularx}
usepackage{caption}
usepackage{algorithm}
usepackage{algorithmicx}
usepackage{algpseudocode}
usepackage{indentfirst}
usepackage{pdfpages}
usepackage[many]{tcolorbox}
%参考文献设置
usepackage[backend=biber,style=gb7714-2015,gbalign=gb7714-2015,gbpub=false,gbnamefmt = lowercase]{biblatex}
addbibresource[location=local]{mybibfile.bib}
% usepackage{endnotes}
% renewcommand{enoteheading}{vspace*{0.5cm}leavevmode}
makeatletter
newtcolorbox{ubox}{
breakable,
height fixed for=all,
height fill,
colback=white,
arc=0mm,
outer arc=0pt,
width=1.01linewidth,
boxrule=.5pt,
colframe=black,
left=1.2pt,
right=1.2pt,
top=0mm,
before upper={parindent24bp}
}
newenvironment{breakablealgorithm}
{% begin{breakablealgorithm}
begin{center}
\refstepcounter{algorithm}% New algorithm
\hrule height.8pt depth0pt \kern2pt% \@fs@pre for \@fs@ruled
\renewcommand{\caption}[2][\relax]{% Make a new \caption
{\raggedright\textbf{\ALG@name~\thealgorithm} ##2\par}%
\ifx\relax##1\relax % #1 is \relax
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}##2}%
\else % #1 is not \relax
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}##1}%
\fi
\kern2pt\hrule\kern2pt
}
}{% end{breakablealgorithm}
\kern2pt\hrule\relax% \@fs@post for \@fs@ruled
end{center}
}
makeatother
begin{document}
includepdf[pages={1-3}]{cover.pdf}
captionsetup{labelformat=default,labelsep=space}
% tableofcontents% 添加目录
setcounter{page}{2}
thispagestyle{fancy}
vspace{-0.30cm}
begin{ubox}
setlength{parindent}{2em}
input{./body/summury.tex}
input{./body/background.tex}
newpage
input{./body/reference.tex}
newpage
input{./body/DRO-PS}
newpage
input{./body/DRO-WSN.tex}
newpage
input{./body/DRO-SWSS.tex}
vspace{0.30cm}
noindenthspace*{-0.009textwidth}rule{1.019textwidth}{0.5pt}
end{ubox}
end{document}
报错: