Created
September 30, 2019 23:01
-
-
Save Marcus-Zhu/a0791b0ac75ae08d870507d100cd549d to your computer and use it in GitHub Desktop.
latex night mode
This file contains hidden or 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
% % invert colors for dark view | |
\usepackage{datetime} | |
\usepackage{pdftexcmds} | |
\usepackage{xcolor} | |
\newcount\minutestart | |
\newcount\minuteend | |
\def\giventimestart#1#2#3{\minutestart=#1 \multiply\minutestart by60 \advance\minutestart by#2 } | |
\def\giventimeend#1#2#3{\minuteend=#1 \multiply\minuteend by60 \advance\minuteend by#2 } | |
\giventimestart{18}{0}{0} | |
\giventimeend{10}{0}{0} | |
\ifnum\time>\minutestart gt | |
\pagecolor[rgb]{0.2,0.2,0.2} | |
\color[rgb]{1,1,1} | |
\fi | |
\ifnum\time<\minuteend lt | |
\pagecolor[rgb]{0.2,0.2,0.2} | |
\color[rgb]{1,1,1} | |
\fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment