Skip to content

Instantly share code, notes, and snippets.

@BrechtDeMan
Last active October 22, 2022 21:48
Show Gist options
  • Save BrechtDeMan/647fbb26b94f62ce730d to your computer and use it in GitHub Desktop.
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)
\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
@Mary-xl
Copy link

Mary-xl commented Jan 10, 2022

hello

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment