-
Notifications
You must be signed in to change notification settings - Fork 0
/
softdev.sty
32 lines (25 loc) · 953 Bytes
/
softdev.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% --------------------------------
% Software Development Team Macros
% --------------------------------
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{softdev}[2013/09/16 Softdev Macros]
\ProcessOptions\relax
%% macros and includes for the comments. Set boolean to enable/disable
\RequirePackage{xcolor}
\RequirePackage{xstring} % for IfSubr
% shown comment tags
\def\@SDShowCommentTags{default}
\def\SDShowCommentTags#1{\def\@SDShowCommentTags{#1}}
\newcommand\ifSDCommentTagEnabled[2]{\IfSubStr{,#2,}{,#1,}}
\newcommand\mynote[3][default]{%
\textcolor{red}{%
\ifSDCommentTagEnabled{#1}{\@SDShowCommentTags}{%
\fbox{\bfseries\sffamily\scriptsize#2}%
{\small$\blacktriangleright$\textsf{\emph{#3}}$\blacktriangleleft$}%
}{}%
}%
}
\newcommand\jake[2][default]{\mynote[#1]{Jake}{#2}}
\newcommand\laurie[2][default]{\mynote[#1]{Laurie}{#2}}
\newcommand\edd[2][default]{\mynote[#1]{Edd}{#2}}
%% end of comment macros