
Gostaria de alterar a apresentação do comando \label{}
. Mais precisamente para os teoremas de ntheorem
.
Na verdade, criei um teorema chamado "suposição" e gostaria de referir uma suposição com uma letra em vez de um número.
Então eu tenho no meu preâmbulo
\newtheorem*{hyp}{Assumption}}
Eu declaro em meu artigo
\begin{hyp}[\ref{H}]\label{H}
\end{hyp}
Quando me refiro a H
, (1)
é impresso, mas meu objetivo é chegar (H)
com um link dinâmico. Eu conheço o comando \tag{}
no ambiente, \begin{equation}
mas isso é tudo.
Proponho este exemplo mínimo.
\documentclass[11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage[colorlinks=true,linkcolor=blue,citecolor=red,backref=page]{hyperref}
\usepackage[hyperref]{ntheorem}
{\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\itshape}
\theoremseparator{:}
\newtheorem*{hyp}{Assumption}}
\begin{document}
\begin{hyp}[\ref{sheme}]\label{sheme}
Bla bla
\end{hyp}
\begin{hyp}[H]
Bla bla
\end{hyp}
\begin{equation} 1=1, \tag{\textbf{H}$_{Mon}$} \label{mono} \end{equation}
Reference to mono: (\ref{mono}), with an hyperlink
\end{document}
É possível alterar um rótulo em um equation
ambiente. Como posso fazer em outro lugar?
Responder1
Dizer \usepackage[hyperref]{ntheorem}
não é suficiente aqui. O hyperref
pacote também deve ser carregado!
\documentclass[11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage[hyperref]{ntheorem}
\usepackage{hyperref}
{\theoremheaderfont{\normalfont\bfseries}
\theorembodyfont{\itshape}
\theoremseparator{:}
\newtheorem*{hyp}{Assumption}}
\begin{document}
\begin{hyp}[\ref{sheme}]\label{sheme}
Bla bla
\end{hyp}
\begin{hyp}[H]
Bla bla
\end{hyp}
\begin{equation} 1=1, \tag{\textbf{H}$_{Mon}$} \label{mono} \end{equation}
Reference to mono: (\ref{mono}), with an hyperlink
\end{document}
Responder2
Finalmente criei o seguinte ambiente
\newenvironment{assumption}[1][\unskip]{%
\begin{enumerate}[label=(\textbf{#1}),leftmargin=60pt]
\item\label{#1}}
{\end{enumerate}}
e conseguir o que quero.