-
Notifications
You must be signed in to change notification settings - Fork 0
/
chato-notes.sty
42 lines (36 loc) · 1.23 KB
/
chato-notes.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
37
38
39
40
41
42
% Simple package for inserting notes
% ChaTo - http://www.chato.cl/
% Thu Feb 28 08:55:22 AST 2013
\ProvidesPackage{chato-notes}[2009/08/19 ChaTo notes]
\RequirePackage{color,marvosym,xspace}
% Colors
\definecolor{MyRed}{rgb}{0.6,0.0,0.0}
\definecolor{MyBlack}{rgb}{0.1,0.1,0.1}
\newcommand{\inred}[1]{{\color{MyRed}\sf\textbf{\textsc{#1}}}}
% Frame
\newcommand{\frameit}[2]{
{\small\begin{center}
{\color{MyRed}
\framebox[.95\columnwidth][l]{
\begin{minipage}{.9\columnwidth}
\inred{#1}: {\sf\color{MyBlack}#2}
\end{minipage}
}
}
\end{center}}
}
\DeclareOption{show}{
\newcommand{\nnote}[2][]{\def\@tmpsig{#1}\frameit{{\large\Pointinghand} Note}{#2\ifx \@tmpsig \@empty \else \mbox{ --\em #1}\fi}}
\newcommand{\todo}[2][]{\def\@tmpsig{#1}\frameit{{\large\Writinghand} To-do}{#2\ifx \@tmpsig \@empty \else \mbox{ --\em #1}\fi}}
\newcommand{\inote}[1]{\inred{$\lceil${{\Pointinghand} }} \inred{\sf #1} \inred{$\rfloor$}}
\newcommand{\citemissing}[0]{\inred{[citation]}\xspace}
\newcommand{\tocite}[1]{\inred{[#1]}\xspace}
}
\DeclareOption{hide}{
\newcommand{\nnote}[2][]{}
\newcommand{\todo}[2][]{}
\newcommand{\inote}[1]{}
\newcommand{\citemissing}[0]{}
\newcommand{\tocite}[0]{}
}
\ProcessOptions