summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/media9/media9.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/media9/media9.sty')
-rw-r--r--macros/latex/contrib/media9/media9.sty56
1 files changed, 50 insertions, 6 deletions
diff --git a/macros/latex/contrib/media9/media9.sty b/macros/latex/contrib/media9/media9.sty
index 07bb391c01..a40d6fbe52 100644
--- a/macros/latex/contrib/media9/media9.sty
+++ b/macros/latex/contrib/media9/media9.sty
@@ -41,8 +41,8 @@
\RequirePackage{l3keys2e}
-\def\g@mix@date@tl{2021/09/12}
-\def\g@mix@version@tl{1.22}
+\def\g@mix@date@tl{2021/10/18}
+\def\g@mix@version@tl{1.23}
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesExplPackage{media9}{\g@mix@date@tl}{\g@mix@version@tl}
@@ -1905,6 +1905,26 @@
},
INTERSECTIONCOLOR .value_required:n = {true},
+ SHOWTRANSPARENT .choices:nn = {true,false}{
+ \int_compare:nF{\l_mix_level_tl=2}{
+ \msg_error:nnxxxx{media9}{key~not~allowed}
+ {\g_mix_vfile_tl}{\int_use:N\l_mix_lineno_int}{SHOWTRANSPARENT}
+ {CROSSSECT}
+ }
+ \tl_set:Nx\l_mix_csst_tl{/ST~\l_keys_choice_tl}
+ },
+ SHOWTRANSPARENT .default:n = {true},
+
+ SECTIONCAPPING .choices:nn = {true,false}{
+ \int_compare:nF{\l_mix_level_tl=2}{
+ \msg_error:nnxxxx{media9}{key~not~allowed}
+ {\g_mix_vfile_tl}{\int_use:N\l_mix_lineno_int}{SECTIONCAPPING}
+ {CROSSSECT}
+ }
+ \tl_set:Nx\l_mix_cssc_tl{/SC~\l_keys_choice_tl}
+ },
+ SECTIONCAPPING .default:n = {true},
+
TRANSFORM .code:n = {
\int_compare:nF{\l_mix_level_tl=\c_one_int}{
\msg_error:nnxxxx{media9}{key~not~allowed}
@@ -1937,6 +1957,8 @@
\tl_clear:N\l_mix_cspc_tl %plane colour
\tl_clear:N\l_mix_csic_tl %intersection colour
\tl_clear:N\l_mix_csiv_tl %intersection visibility
+ \tl_clear:N\l_mix_csst_tl %cut side shown transparent
+ \tl_clear:N\l_mix_cssc_tl %section capping
},
CROSSSECT .value_forbidden:n = {true},
@@ -2018,7 +2040,7 @@
/C~[\l_mix_cscentre_tl]
/O~[\l_mix_csorient_tl]
\l_mix_csop_tl\l_mix_cspv_tl\l_mix_cspc_tl
- \l_mix_csic_tl\l_mix_csiv_tl
+ \l_mix_csic_tl\l_mix_csiv_tl\l_mix_csst_tl\l_mix_cssc_tl
}
\tl_put_right:Nx\l_mix_saarray_tl{~\mix_pdflastobj:}
\tl_set:Nn\l_mix_cscount_tl{\c_one_int}
@@ -2409,8 +2431,8 @@
\RequirePackage{l3keys2e}
-\def\g@mix@date@tl{2021/09/12}
-\def\g@mix@version@tl{1.22}
+\def\g@mix@date@tl{2021/10/18}
+\def\g@mix@version@tl{1.23}
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
\ProvidesExplPackage{media9}{\g@mix@date@tl}{\g@mix@version@tl}
@@ -4335,6 +4357,26 @@
},
INTERSECTIONCOLOR .value_required:n = {true},
+ SHOWTRANSPARENT .choices:nn = {true,false}{
+ \int_compare:nF{\l_mix_level_tl=2}{
+ \msg_error:nnxxxx{media9}{key~not~allowed}
+ {\g_mix_vfile_tl}{\int_use:N\l_mix_lineno_int}{SHOWTRANSPARENT}
+ {CROSSSECT}
+ }
+ \tl_set:Nx\l_mix_csst_tl{/ST~\l_keys_choice_tl}
+ },
+ SHOWTRANSPARENT .default:n = {true},
+
+ SECTIONCAPPING .choices:nn = {true,false}{
+ \int_compare:nF{\l_mix_level_tl=2}{
+ \msg_error:nnxxxx{media9}{key~not~allowed}
+ {\g_mix_vfile_tl}{\int_use:N\l_mix_lineno_int}{SECTIONCAPPING}
+ {CROSSSECT}
+ }
+ \tl_set:Nx\l_mix_cssc_tl{/SC~\l_keys_choice_tl}
+ },
+ SECTIONCAPPING .default:n = {true},
+
TRANSFORM .code:n = {
\int_compare:nF{\l_mix_level_tl=\c_one_int}{
\msg_error:nnxxxx{media9}{key~not~allowed}
@@ -4367,6 +4409,8 @@
\tl_clear:N\l_mix_cspc_tl %plane colour
\tl_clear:N\l_mix_csic_tl %intersection colour
\tl_clear:N\l_mix_csiv_tl %intersection visibility
+ \tl_clear:N\l_mix_csst_tl %cut side shown transparent
+ \tl_clear:N\l_mix_cssc_tl %section capping
},
CROSSSECT .value_forbidden:n = {true},
@@ -4448,7 +4492,7 @@
/C~[\l_mix_cscentre_tl]
/O~[\l_mix_csorient_tl]
\l_mix_csop_tl\l_mix_cspv_tl\l_mix_cspc_tl
- \l_mix_csic_tl\l_mix_csiv_tl
+ \l_mix_csic_tl\l_mix_csiv_tl\l_mix_csst_tl\l_mix_cssc_tl
}
\tl_put_right:Nx\l_mix_saarray_tl{~\mix_pdflastobj:}
\tl_set:Nn\l_mix_cscount_tl{\c_one_int}