Add real files (no links)
Signed-off-by: Riccardo Finotello <riccardo.finotello@gmail.com>
This commit is contained in:
21
debug.sty
Normal file
21
debug.sty
Normal file
@@ -0,0 +1,21 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{debug}[2020/06/10 Debug package]
|
||||
|
||||
\RequirePackage{xparse} %----------- improved \newcommand
|
||||
\RequirePackage{marginnote} %------- use margin note in floats
|
||||
\RequirePackage[usenames,
|
||||
dvipsnames,
|
||||
svgnames,
|
||||
table]{xcolor} %---- provide colours
|
||||
|
||||
\ProcessOptions\relax
|
||||
|
||||
\newcounter{draftcommentcnt}
|
||||
\NewDocumentCommand{\draftcomment}{s O{red} m}{%
|
||||
\def\margnote{\IfBooleanTF{#1}{\marginnote}{\marginpar}}%
|
||||
\stepcounter{draftcommentcnt}%
|
||||
\textcolor{#2}{#3}%
|
||||
\margnote{\textcolor{#2}{$\Leftarrow$ \arabic{draftcommentcnt}}}%
|
||||
}
|
||||
|
||||
% vim: ft=tex
|
||||
Reference in New Issue
Block a user