I'm using hyperref for clickable links in my document and acro for acronyms.
I aim to retain colored links in the PDF viewer, either with colored rectangles or colored text. However, I don't want to print them in color on physical paper.
I found a helpful solution here for printing url-links, Table of Contents/List of Figures, citations, and references to figures in black, while keeping the links red in the PDF viewer. I've used \usepackage[ocgcolorlinks]{ocgx2} to achieve this.
Although hidelinks-option would be a quick fix, allowing me to print everything in black, it would make all links invisible in the PDF viewer.
Nevertheless, the acronyms are still printed in red on paper. Is there a way to avoid this? I appreciate any help!
Here my MWE:
\documentclass[%
paper=a4,
oneside=true,
bibliography=totoc,
listof=notnumbered,
numbers=noenddot,
parskip=half,
headsepline,
footsepline,
fontsize=12pt
]{scrreprt}
\KOMAoptions{listof=entryprefix}
\usepackage[ngerman, english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{url}
\usepackage{hyperref} %hidelinks
\usepackage[ocgcolorlinks]{ocgx2}
\usepackage{acro}
\acsetup{make-links = true, list/sort=true}
\DeclareAcronym{fir}{
short = {FIR},
long = {finite impulse response}
}
\DeclareAcronym{ofdm}{
short = {OFDM},
long = {orthogonal frequency division multiplexing}
}
\begin{document}
\tableofcontents
\chapter{One}
\section{Section One}
In signal processing, a \ac{fir} filter is a filter with finite impulse response. \acp{fir} filters can be discrete-time or continuous-time.
\section{Section Two}
In \ac{ofdm}, several bits can be sent in parallel, or at the same time, in separate substream channels. With \ac{ofdm}, the subchannel frequencies are close together and overlapping but are still orthogonal.
\chapter{Two}
\lipsum[1]
\par\url{www.foo.com}
\end{document}