\cref 未引用位于单独文件中的 \chapter

\cref 未引用位于单独文件中的 \chapter

我开始使用\creffrom the package,因为它比from packagecleveref具有更好的可读性。但我遇到了命令无法识别已放入外部或等环境中的标签的问题。由于我很久以前就写了论文,并且在过去几天里一直在摆弄它的外观,当我尝试使用 引用外部章节时出现问题,它给出的错误是标签类型的参考格式,请记住图片被正确引用,位于同一章节或外部。\autorefhyperref\cref\chapter\section\crefcref' undefined

\documentclass[a4paper, 12pt, oneside]{report}  
\usepackage{graphicx}  
\usepackage{amsmath}  
\usepackage{amssymb}  
\usepackage{hyperref}  
\usepackage{cleveref}  

\begin{document}
%------------------------------------------------------
\include{MainMatter/Chapter1}  
\include{MainMatter/Chapter2}  
\include{MainMatter/Chapter3}  
\include{MainMatter/Chapter4}  
\include{MainMatter/Chapter5}  
\include{MainMatter/Chapter6}  
\include{MainMatter/Chapter7}  
%======================================================  
\end{document}

接下来我chapter4.tex在其中一个部分中引用了其他章节或部分:

For this purpose special gripper fingers have been constructed and implemented (more in `\cref{Ch:GripHandBeerBottGlass}`).

这是从单独的文件中调用chapter6.tex并标记的

\chapter{Gripper for Handling Beer Bottles and Beer Glasses}\label{Ch:GripHandBeerBottGlass}  

我知道它适用于hyperrefpackage,但不适用于cleverefpackage。\cref我只得到

For this purpose special gripper fingers have been constructed and implemented (more in ??).

正如克里斯蒂安所提到的,上传章节的基本部分。

%This is the Chpater 4 Chapter4.tex
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\footnotesize \slshape \rightmark}
\fancyhead[R]{\thepage}
\fancyfoot{}
\chapter{Modelling of System Layout}\label{Ch:ModelSysLay}
    \thispagestyle{empty}
%============================================================================
        \subsubsection{Gripper and Gripper Fingers}\label{Sss:C4_GripnGriFing}

 \newcommand{\parl}{\setlength{\parskip}{\baselineskip}}
 For manipulating of bottles, glasses, fixtures and opening of bottles in the workcell there should be a robot gripper that can utilize gripper jaw to its full potential. As it was mentioned in the beginning, these gripper jaws should be able to pick up bottle from a crate, take a bottle for opening and in the end pouring, and manipulating fixtures if needed. For this purpose special gripper fingers have been constructed and implemented (more in \cref{Ch:GripHandBeerBottGlass}).\parl%

如图所示,我试图在第 4 章的子部分中引用第 6 章。

%This is the Chpater 6 Chapter6.tex
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\footnotesize \slshape \rightmark}
\fancyhead[R]{\thepage}
\fancyfoot{}

%============================================================================
\chapter{Gripper for Handling Beer Bottles and Beer Glasses}\label{Ch:GripHandBeerBottGlass}
\thispagestyle{empty}

相关内容