Last active
October 22, 2022 21:48
-
-
Save BrechtDeMan/647fbb26b94f62ce730d to your computer and use it in GitHub Desktop.
LaTeX tip: easily enable/disable highlight in a file (e.g. to highlight modifications or important sections)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{color, soul} | |
% allow highlighting reference | |
\soulregister\cite7 | |
\soulregister\ref7 | |
\soulregister\pageref7 | |
% comment out one of the two: | |
\newcommand{\markasnew}[1]{\hl{#1}} % highlight | |
%\newcommand{\markasnew}[1]{{#1}} % don't highlight | |
% Use of new command: see http://en.wikibooks.org/wiki/LaTeX/Macros#New_commands |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello