I'm looking for a package/command that will highlight anything I wrap with it. Currently the closest thing I've found is soul but it has many shortcomings:
- No sectioning highlighting
- No automatic footnotes highlighting
- No
\citehighlighting unless wrapped in an\mbox{} - No
\citephighlighting
Here's an example article where these points can be seen:
\documentclass{article}
\usepackage{hyperref}
\hypersetup{colorlinks=true, urlcolor=blue, citecolor=cyan, pdfborder={0 0 0},}
\usepackage{soul}
\usepackage{natbib}
\bibliographystyle{plainnat}
\begin{document}
\section{\hl{Title of a section}}
This is a line with no highlighting done.\\
\hl{This is a line where a citation \citep{Knuth86} appears.}
\hl{This is a line with a footnote\footnote{And this is the footnote that should also be automatically highlighted.} which I want highlighted.}
\bibliography{biblio}
\end{document}
where the biblio.bib file looks like:
@ARTICLE{Knuth86,
author = {Knuth, D. E.},
title = "{The TeXbook}",
year = 1986,
}
If you try to compile it with the usual:
pdflatex "%f" && bibtex "%e" && pdflatex "%f" && pdflatex "%f"
command, it will fail for all the reasons I gave above. Isn't there something that just works?
Edit
The accepted answer comes close but after finding out about latexdiff (http://www.ctan.org/pkg/latexdiff) I actually switched to using that app instead of manually highlighting text.

