附录导入到 main.tex 时无法正确显示

附录导入到 main.tex 时无法正确显示

我使用该standalone软件包是为了可以单独撰写论文的各个部分。我的附录分为几个部分。当我编译时,appendices.tex它会按预期显示,即 1. [标题] 后跟图表。
附录.tex 编译

但当我将其导入时,main.tex部分现在与照片分离了。我不知道如何修复它。
Main.tex 已编译

这是我的代码:

主文本

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{standalone}
\usepackage{import}
\usepackage{graphicx}
%\usepackage{appendix}

% paragraph formatting for better readability
\setlength{\parindent}{4em} % indent length starting 2nd paragraph onwards
\setlength{\parskip}{1em}  % number of lines to skip between paragraphs
\renewcommand{\baselinestretch}{1.0} % thickness of the line separating paragraphs

\title{Research Report}
\author{name}
\date{March 2021}

\begin{document}

\maketitle

\import{Sections/}{Introduction}
\import{Sections/}{Methodology}

\newpage
\appendix
\import{Sections/}{Appendices}

\end{document}

附录.tex

\documentclass[class=article, crop=false]{standalone}
\usepackage{import}
\usepackage{graphicx}
\graphicspath{{\subfix{Figures/Appendices}}}


% paragraph formatting for better readability
\setlength{\parindent}{4em} % indent length starting 2nd paragraph onwards
\setlength{\parskip}{1em}  % number of lines to skip between paragraphs
\renewcommand{\baselinestretch}{1.0} % thickness of the line separating paragraphs

\begin{document}


\counterwithin{figure}{section}
    \section{ Calibrate the setup}
        \begin{figure}[htbp]
            \centering
            \includegraphics[scale=0.42,keepaspectratio]{Figures/Appendices/02 Calibrate the setup.png}
            \caption{Test}
            \label{Appendix: sfdds}
        \end{figure}
        
    \section{Start the Laser}
        \begin{figure}[htbp]
            \centering
            \includegraphics[scale=0.29,keepaspectratio]{Figures/Appendices/03 Start the laser.png}
            \caption{Test}
        \end{figure}
    
    \section{Turn-off the laser}
        \begin{figure}[htbp]
            \centering
            \includegraphics[scale=0.73,keepaspectratio]{Figures/Appendices/04 Shut down the laser.png}
            \caption{Test}
        \end{figure}


\end{document}



提前致谢!

相关内容