summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/media4svg/media4svg.sty')
-rw-r--r--Master/texmf-dist/tex/latex/media4svg/media4svg.sty13
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/media4svg/media4svg.sty b/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
index 680cf944a55..0045fd684e0 100644
--- a/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
+++ b/Master/texmf-dist/tex/latex/media4svg/media4svg.sty
@@ -23,8 +23,8 @@
%
% The Current Maintainer of this work is A. Grahn.
-\def\g@msvg@date@tl{2022/09/23}
-\def\g@msvg@version@tl{0.11}
+\def\g@msvg@date@tl{2022/09/27}
+\def\g@msvg@version@tl{0.12}
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage{media4svg}{\g@msvg@date@tl}{\g@msvg@version@tl}
@@ -242,6 +242,10 @@
\l_msvg_full_name_tl}{72}{{?nl}}\g_msvg_media_blob_tl
}
}
+ \tl_set:Nx\l_msvg_viewbox_wd_tl{\fp_eval:n{
+ \g_msvg_px_per_bp_tl*\dim_to_decimal_in_bp:n{\g_msvg_wd_tl}}}
+ \tl_set:Nx\l_msvg_viewbox_tt_tl{
+ \fp_eval:n{\g_msvg_px_per_bp_tl*\dim_to_decimal_in_bp:n{\g_msvg_tt_tl}}}
\special{dvisvgm:raw
\bool_if:nT{
\tl_if_blank_p:V\g_msvg_controls_tl&&
@@ -310,11 +314,10 @@
<svg~
width='\dim_to_decimal_in_bp:n{\g_msvg_wd_tl}'~
height='\dim_to_decimal_in_bp:n{\g_msvg_tt_tl}'~
- viewBox='0~0~\fp_eval:n{\g_msvg_px_per_bp_tl*\dim_to_decimal_in_bp:n{\g_msvg_wd_tl}}~
- \fp_eval:n{\g_msvg_px_per_bp_tl*\dim_to_decimal_in_bp:n{\g_msvg_tt_tl}}'
+ viewBox='0~0~\l_msvg_viewbox_wd_tl\space\l_msvg_viewbox_tt_tl'
>
<foreignObject~
- width='100\msvg_percent:'~height='100\msvg_percent:'~
+ width='\l_msvg_viewbox_wd_tl'~height='\l_msvg_viewbox_tt_tl'~
style='cursor:~pointer;'~
\bool_if:nT{
\tl_if_blank_p:V\g_msvg_controls_tl&&