![\cref 未引用位于单独文件中的 \chapter](https://linux22.com/image/320543/%5Ccref%20%E6%9C%AA%E5%BC%95%E7%94%A8%E4%BD%8D%E4%BA%8E%E5%8D%95%E7%8B%AC%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%20%5Cchapter%20.png)
我开始使用\cref
from the package,因为它比from packagecleveref
具有更好的可读性。但我遇到了命令无法识别已放入外部或等环境中的标签的问题。由于我很久以前就写了论文,并且在过去几天里一直在摆弄它的外观,当我尝试使用 引用外部章节时出现问题,它给出的错误是标签类型的参考格式,请记住图片被正确引用,位于同一章节或外部。\autoref
hyperref
\cref
\chapter
\section
\cref
cref
' 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}
我知道它适用于hyperref
package,但不适用于cleveref
package。\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}