Advertisement
Guest User

code-latex-list-dates

a guest
Sep 4th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.43 KB | None | 0 0
  1. \newcounter{mycntr}\newcommand\mycntr{\arabic{mycntr}} %https://tex.stackexchange.com/questions/287267/how-can-i-test-the-value-of-two-counters
  2. \setcounter{mycntr}{0}
  3. \newenvironment{schedule}[1][\relax]
  4.  {\par#1\longdate\renewcommand{\item}{\par%
  5.     \stepcounter{mycntr}\ifnum\value{mycntr}>5\relax%
  6.       \setcounter{mycntr}{1}\AdvanceDate[3]%
  7.     \else
  8.       \AdvanceDate[1]%
  9.     \fi\today\newline\hspace{1cm}}
  10.  }{\par}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement