\documentclass[a4paper,12pt]{report}
%------------------------------------------------------------
\usepackage{amssymb,amsmath,amsthm,latexsym,mathrsfs,amsfonts,dsfont}
%-----accent
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,pagebackref=true]{hyperref}
\hypersetup{urlcolor=blue, citecolor=red, linkcolor=blue}
\newtheorem{corollary}{Corollary}[section]
\usepackage[capitalise,noabbrev,nameinlink]{cleveref}
\begin{document}
\chapter{Preliminary}
....The crucial idea of the proof is to make use ..... (see \cref{fekete} in \cref{app}).
\chapter*{Appendix}\label{app}
\begin{corollary}\label{fekete}
\end{corollary}
\end{document}
我想获得
答案1
您需要\appendix
在行前添加\chapter*{Appendix}
并删除*
以获得编号的附录。然后就cleveref
可以工作了。
请查看代码(我将您的标签更改为更好的标签!)
\documentclass[a4paper,12pt]{report}
%\usepackage{amssymb,amsmath,amsthm,latexsym,mathrsfs,amsfonts,dsfont}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[colorlinks=true,pagebackref=true]{hyperref}
\usepackage[capitalise,noabbrev,nameinlink]{cleveref}
\hypersetup{urlcolor=blue, citecolor=red, linkcolor=blue}
\newtheorem{corollary}{Corollary}[section]
\begin{document}
\tableofcontents
\chapter{Preliminary}
The crucial idea of the proof is to make use ..... (see \cref{cor:fekete} in \cref{cha:app}).
\appendix
\chapter{Supplemental material}\label{cha:app} % <=======================================
\begin{corollary}\label{cor:fekete}
\end{corollary}
\end{document}
及其结果:
和第 3 页:
具有更好的章节标题并且没有双重附录:-)