
단락을 참조하고 싶지만 번호를 매기지 않은 경우 어떻게 해야 합니까?
현재 저는 다음과 같은 일을 하고 있습니다.
\subsection{A}
This is where I'm referring to the paragraph, using cref.
For further information, see \cref{par:X}.
\subsection{B}
Bla bla blub
\paragraph{Paragraph header}\label{par:X}
lorem impsum dolor met sit amet whatever I don't know the rest
불행하게도 이것은 그 자체로 "..., 하위 섹션 [B의 번호]를 참조하십시오"만 인쇄합니다.
이제 다음을 사용하면:
\setcounter{secnumdepth}{6}
\crefname{paragraph}{paragraph}{paragraphs}
\Crefname{paragraph}{paragraph}{paragraphs}
서문에서 나는~할 수 있다단지 (하위(하위)) 섹션 대신 참조 단락을 사용하세요.
그러나 나는 단락을 실제 번호가 매겨진 헤더가 아닌 텍스트 내부의 강조로 사용하고 싶습니다. 현재 일어나고 있는 일입니다. 단락에는 번호가 매겨져 있습니다.
그러므로 내 질문은 - "문단 참조"로 렌더링되도록 내 레이블을 어떻게 참조해야 합니까?단락 헤더"(위 예에서) 실제 단락에는 번호가 할당되지 않습니까?
답변1
단락 제목을 참조하려면 패키지 \nameref
에서 다음을 사용할 수 있습니다 hyperref
.
\documentclass{article}
\usepackage{hyperref}
\usepackage{cleveref}
\begin{document}
\subsection{A}
This is where I'm referring to the paragraph, using cref.
For further information, see \nameref{par:X}.
\subsection{B}
Bla bla blub
\paragraph{Paragraph header}\label{par:X}
lorem impsum dolor met sit amet whatever I don't know the rest
\end{document}