Add real files (no links)

Signed-off-by: Riccardo Finotello <riccardo.finotello@gmail.com>
This commit is contained in:
2020-08-31 10:26:36 +02:00
parent 4c6756bf74
commit 2565b24263
7 changed files with 530 additions and 8 deletions

View File

@@ -1 +0,0 @@
latex-commons/packages/debug.sty

21
debug.sty Normal file
View 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