-
Notifications
You must be signed in to change notification settings - Fork 2
/
softdev.sty
36 lines (29 loc) · 1.15 KB
/
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
33
34
35
36
% --------------------------------
% 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\jacob[2][default]{\mynote[#1]{Jacob}{#2}}
\newcommand\jeremy[2][default]{\mynote[#1]{Jeremy}{#2}}
\newcommand\laurie[2][default]{\mynote[#1]{Laurie}{#2}}
\newcommand\pino[2][default]{\mynote[#1]{Pino}{#2}}
\newcommand\cris[2][default]{\mynote[#1]{Cristian}{#2}}
\newcommand\andrei[2][default]{\mynote[#1]{Andrei}{#2}}
\newcommand\dejice[2][default]{\mynote[#1]{Dejice}{#2}}
%% end of comment macros