Slight color change for task borders
parent
1d24d70855
commit
7f96bcf9fc
22
task.sty
22
task.sty
|
@ -1,7 +1,12 @@
|
||||||
% Task environment
|
% Task environment
|
||||||
|
|
||||||
|
\RequirePackage[usenames,dvipsnames]{xcolor}
|
||||||
|
|
||||||
\newcommand\taskname{Requisite}
|
\newcommand\taskname{Requisite}
|
||||||
|
|
||||||
|
% Tango Icon Theme Aluminum
|
||||||
|
\definecolor{taskrulecolor}{HTML}{2e3436}
|
||||||
|
|
||||||
\newcounter{taskc}
|
\newcounter{taskc}
|
||||||
\setcounter{taskc}{0}
|
\setcounter{taskc}{0}
|
||||||
\renewcommand\thetaskc{\Roman{taskc}}
|
\renewcommand\thetaskc{\Roman{taskc}}
|
||||||
|
@ -18,27 +23,26 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
\newlength\taskspace
|
\newlength\taskspace
|
||||||
|
|
||||||
\newlength\@@task@barwidth
|
|
||||||
\setlength\@@task@barwidth\textwidth
|
|
||||||
\addtolength\@@task@barwidth\marginparwidth
|
|
||||||
\addtolength\@@task@barwidth\marginparsep
|
|
||||||
\newenvironment{task}[1][]%
|
\newenvironment{task}[1][]%
|
||||||
{%
|
{%
|
||||||
\goodbreak
|
\goodbreak
|
||||||
\setlength\taskspace{2ex}%
|
\setlength\taskspace{2ex}%
|
||||||
\refstepcounter{taskc}%
|
\refstepcounter{taskc}%
|
||||||
\vspace{-0.5\parskip}%
|
\vspace{-0.5\parskip}%
|
||||||
\leavevmode\llap{\rule{\marginparwidth}{2pt}}%
|
\textcolor{taskrulecolor}{%
|
||||||
\rule{\textwidth}{2pt}%
|
\leavevmode\llap{\rule{\marginparwidth}{2pt}}%
|
||||||
|
\rule{\textwidth}{2pt}%
|
||||||
|
}%
|
||||||
\vspace{-0.5\baselineskip}%
|
\vspace{-0.5\baselineskip}%
|
||||||
\begin{@task}[#1]%
|
\begin{@task}[#1]%
|
||||||
}%
|
}%
|
||||||
{%
|
{%
|
||||||
\end{@task}%
|
\end{@task}%
|
||||||
\vspace{-0.85\baselineskip}%
|
\vspace{-0.85\baselineskip}%
|
||||||
\leavevmode\llap{\rule{\marginparwidth}{1pt}}%
|
\textcolor{taskrulecolor}{%
|
||||||
\rule{\textwidth}{1pt}%
|
\leavevmode\llap{\rule{\marginparwidth}{1pt}}%
|
||||||
|
\rule{\textwidth}{1pt}%
|
||||||
|
}%
|
||||||
\ignorespaces
|
\ignorespaces
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue