I use the acronym
package for managing acronyms.
I would like to show the acronym hyperlink without special colors or borders, just as plain text.
Is there a way to do this?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI use the acronym
package for managing acronyms.
I would like to show the acronym hyperlink without special colors or borders, just as plain text.
Is there a way to do this?
Package acronym
uses \AC@hyperlink
for its links. This can be redefined to locally set option hidelinks
:
\documentclass{article}
\usepackage{acronym}
\usepackage{hyperref}[2011/02/05]
\makeatletter
\AtBeginDocument{%
\renewcommand*{\AC@hyperlink}[2]{%
\begingroup
\hypersetup{hidelinks}%
\hyperlink{#1}{#2}%
\endgroup
}%
}
\makeatother
\begin{document}
\ac{foo} and \ac{foo}
\begin{acronym}
\acro{foo}[FB]{FooBar}
\end{acronym}
\end{document}
If you want to get rid of the link entirely:
\documentclass{article}
\usepackage{acronym}
\usepackage{hyperref}[2011/02/05]
\makeatletter
\AtBeginDocument{%
\renewcommand*{\AC@hyperlink}[2]{#2}%
}
\makeatother
\begin{document}
\ac{foo} and \ac{foo}
\begin{acronym}
\acro{foo}[FB]{FooBar}
\end{acronym}
\end{document}