summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/scratch3
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-18 21:15:39 +0000
committerKarl Berry <karl@freefriends.org>2019-05-18 21:15:39 +0000
commit420aca847b333b4c412617f58f660a5197e470fc (patch)
tree3b23d8115920f7f6796870c3948478c94b17dff1 /Master/texmf-dist/tex/latex/scratch3
parent5b2ab1c7e44689b07f900be82bcc32899b6acf48 (diff)
scratch3 (18may19)
git-svn-id: svn://tug.org/texlive/trunk@51158 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/scratch3')
-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