1
0
Fork 0

Slight color change for task borders

master
Mike Gerwitz 2013-08-15 12:04:54 -04:00
parent 1d24d70855
commit 7f96bcf9fc
1 changed files with 13 additions and 9 deletions

View File

@ -1,7 +1,12 @@
% Task environment
\RequirePackage[usenames,dvipsnames]{xcolor}
\newcommand\taskname{Requisite}
% Tango Icon Theme Aluminum
\definecolor{taskrulecolor}{HTML}{2e3436}
\newcounter{taskc}
\setcounter{taskc}{0}
\renewcommand\thetaskc{\Roman{taskc}}
@ -18,27 +23,26 @@
}
\newlength\taskspace
\newlength\@@task@barwidth
\setlength\@@task@barwidth\textwidth
\addtolength\@@task@barwidth\marginparwidth
\addtolength\@@task@barwidth\marginparsep
\newenvironment{task}[1][]%
{%
\goodbreak
\setlength\taskspace{2ex}%
\refstepcounter{taskc}%
\vspace{-0.5\parskip}%
\textcolor{taskrulecolor}{%
\leavevmode\llap{\rule{\marginparwidth}{2pt}}%
\rule{\textwidth}{2pt}%
}%
\vspace{-0.5\baselineskip}%
\begin{@task}[#1]%
}%
{%
\end{@task}%
\vspace{-0.85\baselineskip}%
\textcolor{taskrulecolor}{%
\leavevmode\llap{\rule{\marginparwidth}{1pt}}%
\rule{\textwidth}{1pt}%
}%
\ignorespaces
}