Slight color change for task borders
parent
1d24d70855
commit
7f96bcf9fc
14
task.sty
14
task.sty
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue