Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Inspired by this question i used accsupp to protect the headers of my pdf from being copied which works nicely so far. I tried to do the same thing for the footnotemarks which hasn't worked so far. Screenshot:

enter image description here

I tried using:

\documentclass{article}
\usepackage{accsupp}
\renewcommand{\thefootnote}{%
  \BeginAccSupp{ActualText={}}\arabic{footnote}\EndAccSupp{}%
}
\begin{document}
This is a test\footnote{This is a footnote}
\end{document}

An ideas? The actual text of the footnote should stay selectable.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

The problem is fragility:

\documentclass{article}
\usepackage{accsupp}
\renewcommand{\thefootnote}{%
  \protect\BeginAccSupp{ActualText={}}\arabic{footnote}\protect\EndAccSupp{}%
}
\begin{document}
This is a test\footnote{This is a footnote}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.