summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/scratch3/scratch3.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/scratch3/scratch3.sty')
-rw-r--r--Master/texmf-dist/tex/latex/scratch3/scratch3.sty18
1 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/scratch3/scratch3.sty b/Master/texmf-dist/tex/latex/scratch3/scratch3.sty
index 09ae438498b..f2b467de7c1 100644
--- a/Master/texmf-dist/tex/latex/scratch3/scratch3.sty
+++ b/Master/texmf-dist/tex/latex/scratch3/scratch3.sty
@@ -4,9 +4,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
\def\scrname{ scratch3 }%
-\def\scrver { 0.11 }%
+\def\scrver { 0.12 }%
% %
-\def\scrdate{ 2019/03/10 }%
+\def\scrdate{ 2019/05/18 }%
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
@@ -521,6 +521,10 @@
\fi
\scr_setcolors
\def\scr_current_blockcolor{#2}%
+ \unless\ifdefined\scr_contrast% bugfix 0.11
+ \scr_normalizedec\scr_contrast contrast[0,100]%
+ \edef\scr_contrast{\number\numexpr100-\scr_contrast}%
+ \fi
\begin{tikzpicture}[
baseline=(x.base),
x=1ex,
@@ -699,6 +703,7 @@
\definecolor{penline} {HTML}{595e73}%
\definecolor{penblue} {HTML}{4c8eea}%
\definecolor{penvline} {HTML}{0da57a}%
+
\newenvironment{scratch}[1][]
{\skv_ifempty{#1}{}{\setscratch{#1}}%
\sffamily
@@ -775,7 +780,9 @@
\kern-.66667ex\relax
\fi
\edef\scr_linewidth{\the\dimexpr\useKV[\scrname]{line width}\relax}%
- \ifdefined\scr_current_blockcolor\else
+ \ifdefined\scr_current_blockcolor% bugfix 0.11
+ \edef\scr_current_blockcolor{\scr_current_blockcolor dd}%
+ \else
\def\scr_current_blockcolor{black}%
\fi
\begin{tikzpicture}[
@@ -789,7 +796,7 @@
\node[
line width=\scr_linewidth,
rounded rectangle,
- draw={\ifboolKV[\scrname]{print}{scr_linegray}{\scr_current_blockcolor dd}},
+ draw={\ifboolKV[\scrname]{print}{scr_linegray}{\scr_current_blockcolor}},
fill=white,
text=black
]
@@ -1002,3 +1009,6 @@ Versions :
| | | \scr_blockloop |
| | | * \boolmoreblocks n'est plus bugguée |
|---------+------------+------------------------------------------------------|
+| 0.12 | 18/05/2019 | * bug corrigé dans \ovalnum |
+| | | * bug corrigé dans \scr_ovalbox |
+|---------+------------+------------------------------------------------------| \ No newline at end of file