Skip to content

Instantly share code, notes, and snippets.

@PadreSVK
Last active May 14, 2019 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PadreSVK/a2bd0ff6f4c439bc308741a31095f0f9 to your computer and use it in GitHub Desktop.
Save PadreSVK/a2bd0ff6f4c439bc308741a31095f0f9 to your computer and use it in GitHub Desktop.
Setup todo (with list and chapter link) for latex template FEKT

Add custom todo list to TOC

usage => \todo{..... here is some stupid thing....}

\obsah
\seznamobrazku
\seznamtabulek
\listoflistings
%remove - list of todos
\listoftodos
%remove - list of todos
\cleardoublepage\pagestyle{plain} % zapnutí číslování stránek
\include{text/uvod}
\makeatletter
\newcounter{todo}
\newcommand\todo[1]{%
\refstepcounter{todo}%
\textcolor[rgb]{1,0,0}{TODO => #1 <=TODO}%
\addcontentsline{tod}{subsection}{#1~}%
}%
\newcommand\todoname{todo}
\newcommand\listtodoname{List of ToDos}
\newcommand\listoftodos{%
\newpage
\section*{\listtodoname}\@starttoc{tod}
\addcontentsline{toc}{chapter}{\listtodoname}%
}
\makeatother
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment