当我编译 main.tex 时,文档的第一页(而不是标题页)上有一个感叹号。我使用的是独立类和 overleaf。我以前没有遇到过这个问题,如何解决?
参见下面的图片,它的外观和 MWE:
与我当前的设置类似的 MWE:
Main.tex:
\documentclass[8pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[table,xcdraw]{xcolor}
\usepackage{graphicx}
\usepackage{subfiles}
\usepackage{bm}
\usepackage{booktabs}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage[a4paper]{geometry}
\newgeometry{left=3cm,bottom=0.1cm}
\RequirePackage{amsmath}
\RequirePackage[noblocks]{authblk}
\usepackage[natbibapa]{apacite}
\bibliographystyle{apacite}% bibliography management package. [round] (default) round parenthesis setting
\RequirePackage{amssymb}
\usepackage{graphicx}
\usepackage{threeparttable}
%\usepackage[hidelinks]{hyperref}
\usepackage{float}
\usepackage{helvet}
\usepackage{soul}
\usepackage{todonotes}
\usepackage{booktabs}
\definecolor{blue1}{RGB}{0, 0, 108}
\usepackage[colorlinks=true,linkcolor=blue1,urlcolor=blue1,citecolor=blue1,anchorcolor=blue1]{hyperref}%
\usepackage{footnote}
\usepackage[section]{placeins}
\usepackage{subcaption}
\usepackage{subfiles}
\usepackage{tikz}
\usepackage[subpreambles=true]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepackage[labelformat=parens,labelsep=quad,skip=3pt,font=footnotesize,labelfont=bf]{caption}
\usepackage{multirow}
\captionsetup{compatibility=false}
\title{MWE}
\author{}
\date{\today}
\newcommand{\imsize}{0.32\linewidth}
\begin{document}
\maketitle
\newpage
\input{Results}
\end{document}
Results.tex
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[table,xcdraw]{xcolor}
\usepackage{graphicx}
\usepackage{subfiles}
\usepackage{booktabs}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage[a4paper]{geometry}
\newgeometry{left=3cm,bottom=0.1cm}
\RequirePackage{amsmath}
\RequirePackage[noblocks]{authblk}
\usepackage[natbibapa]{apacite}
\bibliographystyle{apacite}% bibliography management package. [round] (default) round parenthesis setting
\RequirePackage{amssymb}
\usepackage{graphicx}
\usepackage{threeparttable}
%\usepackage[hidelinks]{hyperref}
\usepackage{float}
\usepackage{helvet}
\usepackage{soul}
\usepackage{todonotes}
\usepackage{booktabs}
\definecolor{blue1}{RGB}{0, 0, 108}
\usepackage[colorlinks=true,linkcolor=blue1,urlcolor=blue1,citecolor=blue1,anchorcolor=blue1]{hyperref}%
\usepackage{footnote}
\usepackage[section]{placeins}
\usepackage{subcaption}
\usepackage{subfiles}
\usepackage{tikz}
\usepackage[subpreambles=true]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\usepackage[labelformat=parens,labelsep=quad,skip=3ptm, font=footnotesize, labelfont=bf]{caption}
\usepackage{multirow}
\begin{document}
\section*{Results}
\end{document}
最终编辑:MWE 足以快速检测出问题。\usepackage[labelformat=parens,labelsep=quad,skip=3ptm, font=footnotesize, labelfont=bf]{caption}
是导致问题的原因,应该skip=3ptm
如此skip=3pt
。已修复