summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty27
1 files changed, 22 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty b/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty
index 1807dc82f31..9ed5ad5517a 100644
--- a/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty
+++ b/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oasymb-l3draw.sty
@@ -1,13 +1,30 @@
\RequirePackage{expl3}
\ProvidesExplPackage {biblatex-ext-oasymb-l3draw}
- {2020/05/09} {0.8f}
+ {2020/08/09} {0.8g}
{open access symbols with l3draw (MW)}
\RequirePackage{xparse}
\RequirePackage{l3keys2e}
+\RequirePackage{l3color}
\RequirePackage{l3draw}
+\msg_new:nnn { biblatex-ext-oasymb-l3draw } { OutdatedL3Draw }
+ { Your~versions~of~'l3color'~and~'l3draw~do~not~support~
+ '\token_to_str:N\color_fill:n'. \\
+ Please~update~'l3color'~and~'l3draw'~to~version~2020-08-07~or~above.\\
+ Limited~support~for~older~versions~with~
+ '\token_to_str:N\draw_color_fill:n'~is~available,~
+ but~not~tested~extensively.
+ }
+
+\cs_if_exist:NTF \color_fill:n
+ { \cs_set_eq:NN \__extblx_color_fill:n \color_fill:n }
+ {
+ \msg_warning:nn {biblatex-ext-oasymb-l3draw} {OutdatedL3Draw}
+ \cs_set_eq:NN \__extblx_color_fill:n \draw_color_fill:n
+ }
+
% PLoS Open Access symbol based on
% https://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg
% public domain/CC0 by PLoS & Wikipedia users Nina, Beao and JakobVoss
@@ -37,7 +54,7 @@
\draw_path_moveto:n { 41*\l__extblx_oasymb_scale_plos_dim,
32*\l__extblx_oasymb_scale_plos_dim }
\draw_path_arc:nnn { 000 } { 360 } { 09*\l__extblx_oasymb_scale_plos_dim }
- \draw_color_fill:n { oasymb_plos_orange }
+ \__extblx_color_fill:n { oasymb_plos_orange }
\draw_path_use_clear:n { fill }
\draw_end:
}
@@ -92,7 +109,7 @@
\draw_path_moveto:n { 6.7*\l__extblx_oasymb_scale_oanet_dim,
4 *\l__extblx_oasymb_scale_oanet_dim }
\draw_path_arc:nnn { 360 } { 000 } { 2.7*\l__extblx_oasymb_scale_oanet_dim }
- \draw_color_fill:n { oasymb_oanet_green }
+ \__extblx_color_fill:n { oasymb_oanet_green }
\draw_path_use_clear:n { fill }
\draw_path_rectangle_corners:nn { 13.7*\l__extblx_oasymb_scale_oanet_dim,
@@ -109,7 +126,7 @@
\draw_path_lineto:n { (11+cosd(300)*2.7)*\l__extblx_oasymb_scale_oanet_dim,
(4+sind(300)*2.7)*\l__extblx_oasymb_scale_oanet_dim }
\draw_path_arc:nnn { 300 } { 000 } { 2.7*\l__extblx_oasymb_scale_oanet_dim }
- \draw_color_fill:n { oasymb_oanet_gold }
+ \__extblx_color_fill:n { oasymb_oanet_gold }
\draw_path_use_clear:n { fill }
\draw_path_moveto:n
@@ -122,7 +139,7 @@
(4+sind(-035.5)*4.3)*\l__extblx_oasymb_scale_oanet_dim }
\draw_path_arc:nnn { -035.5 } { 035.5 }
{ 4.3*\l__extblx_oasymb_scale_oanet_dim }
- \draw_color_fill:n { oasymb_oanet_intersect }
+ \__extblx_color_fill:n { oasymb_oanet_intersect }
\draw_path_use_clear:n { fill }
\draw_end:
}