texlive[57531] Master/texmf-dist/tex/latex/ocgx2: ocgx2 (26jan21)

commits+karl at tug.org commits+karl at tug.org
Tue Jan 26 22:47:45 CET 2021


Revision: 57531
          http://tug.org/svn/texlive?view=revision&revision=57531
Author:   karl
Date:     2021-01-26 22:47:44 +0100 (Tue, 26 Jan 2021)
Log Message:
-----------
ocgx2 (26jan21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty
    trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty

Modified: trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty	2021-01-26 21:47:29 UTC (rev 57530)
+++ trunk/Master/texmf-dist/tex/latex/ocgx2/ocgbase.sty	2021-01-26 21:47:44 UTC (rev 57531)
@@ -92,11 +92,10 @@
 %
 % The Current Maintainer of this work is A. Grahn.
 
-\RequirePackage{expl3}
 \RequirePackage{l3keys2e}
 
-\def\g at ocgbase@date at tl{2019/11/04}
-\def\g at ocgbase@version at tl{0.17}
+\def\g at ocgbase@date at tl{2021/01/25}
+\def\g at ocgbase@version at tl{0.18}
 
 \ProvidesExplPackage{ocgbase}{\g at ocgbase@date at tl}{\g at ocgbase@version at tl}
 {support package for ocgx2.sty}
@@ -139,7 +138,7 @@
 \tl_new:N\g_ocgbase_ocgs_tl %takes ocg object refs
 \seq_new:N\g_ocgbase_offocgs_seq
 
-\pbs_at_end_dvi:n{
+\AddToHook{shipout/lastpage}{
   \tl_if_empty:NF\g_ocgbase_ocgs_tl{
     %global OCG array
     \pbs_pdfobj:nnn{}{array}{\g_ocgbase_ocgs_tl}

Modified: trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty	2021-01-26 21:47:29 UTC (rev 57530)
+++ trunk/Master/texmf-dist/tex/latex/ocgx2/ocgx2.sty	2021-01-26 21:47:44 UTC (rev 57531)
@@ -37,11 +37,10 @@
 %
 % The Current Maintainer of this work is A. Grahn.
 
-\RequirePackage{xparse}
 \RequirePackage{l3keys2e}
 
-\def\g at ocgxii@date at tl{2020/06/11}
-\def\g at ocgxii@version at tl{0.49}
+\def\g at ocgxii@date at tl{2021/01/25}
+\def\g at ocgxii@version at tl{0.50}
 
 \ProvidesExplPackage{ocgx2}{\g at ocgxii@date at tl}{\g at ocgxii@version at tl}
 {ports `ocgx' functionality to dvips+ps2pdf, xelatex and dvipdfmx}
@@ -1255,16 +1254,20 @@
         /Export<</ExportState/OFF>>
       }{on}
       \tl_gset:cx{ocgxii_ocg_OCView}{\ocgbase_last_ocg:}
+      \ocgbase_add_ocg_to_radiobtn_grp:nn{OCPrintViewGrp}{\ocgbase_last_ocg:}
       %in case somebody wants to reopen with \begin{ocg}...
       \tl_gset:cx{ocgxii_ocg_OCView.opts}{
-        showingui=never,printocg=never,exportocg=never}
+        showingui=never,printocg=never,exportocg=never,
+        radiobtngrp=OCPrintViewGrp}
       \ocgbase_new_ocg:nnn{OCPrint}{
         /Print<</PrintState/ON>>
         /Export<</ExportState/ON>>
       }{off}
       \tl_gset:cx{ocgxii_ocg_OCPrint}{\ocgbase_last_ocg:}
+      \ocgbase_add_ocg_to_radiobtn_grp:nn{OCPrintViewGrp}{\ocgbase_last_ocg:}
       \tl_gset:cx{ocgxii_ocg_OCPrint.opts}{
-        showingui=never,printocg=always,exportocg=always}
+        showingui=never,printocg=always,exportocg=always,
+        radiobtngrp=OCPrintViewGrp}
       \ocgxii_enable_ocglinks:
       \iow_now:Nx\@mainaux{
         \token_to_str:N\ocgxii at newkey{ocgx2.ocg.OCView}{



More information about the tex-live-commits mailing list.