%% %% This is file `latex-lab-testphase-marginpar.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% latex-lab-marginpar.dtx (with options: `package') %% %% This is a generated file. %% %% Copyright 2021-2023 LaTeX Project %% %% This file was generated from file(s) of the `LaTeX-lab Bundle'. %% ------------------------------------------------------------------------------------ %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3c or later is part of all distributions of LaTeX %% version 2008 or later. %% %% This file may only be distributed together with a copy of the LaTeX %% `LaTeX-lab Bundle'. You may however distribute the `LaTeX-lab Bundle' %% without such generated files. %% %% The newest sources can be found below %% %% https://github.com/latex3/latex2e/required/latex-lab %% %% where one can also log issues in case there are any. %% %% %% File: latex-lab-marginpar.dtx %% \def\ltlabmarginpardate{2024-02-12} \def\ltlabmarginparversion{0.85b} \ProvidesExplPackage {latex-lab-testphase-marginpar} {\ltlabmarginpardate} {\ltlabmarginparversion} {Changes related to the tagging of the margin notes} \int_new:N \g__kernel_marginpar_int \socket_new:nn {tagsupport/marginpar/begin}{0} \socket_new:nn {tagsupport/marginpar/end}{0} \socket_new_plug:nnn {tagsupport/marginpar/begin}{default} { \if_mode_horizontal: \tag_mc_end: \tag_struct_begin:n{tag=Aside,parent=\g__tag_para_main_struct_tl}% \else: \tag_struct_begin:n{tag=Aside}% \fi: } \socket_new_plug:nnn {tagsupport/marginpar/end}{default} { \tag_struct_end: \if_mode_horizontal: \tag_mc_begin:n{} \fi: } \socket_assign_plug:nn {tagsupport/marginpar/begin}{default} \socket_assign_plug:nn {tagsupport/marginpar/end}{default} \long\def \@savemarbox #1#2{% \UseTaggingSocket{marginpar/begin} \global\setbox #1% \color@vbox \vtop{% \hsize\marginparwidth \@parboxrestore \@marginparreset #2\par \@minipagefalse \outer@nobreak }% \color@endbox \UseTaggingSocket{marginpar/end} } \long\def\@ympar#1{% \@savemarbox\@marbox{#1}% \global\setbox\@currbox\copy\@marbox \tag_stop: \@xympar \tag_start:} \long\def\@xmpar[#1]#2{% \int_gincr:N\g__kernel_marginpar_int \property_if_recorded:eTF { tag_marginpar-opt-\int_use:N\g__kernel_marginpar_int } { \@savemarbox\@marbox {#1 \property_record:ee { tag_marginpar-opt-\int_use:N\g__kernel_marginpar_int }{page} }% \tag_stop: \@savemarbox\@currbox{#2}% \tag_start: } { \@savemarbox\@currbox{#2}% \tag_stop: \@savemarbox\@marbox{#1 \property_record:ee { tag_marginpar-opt-\int_use:N\g__kernel_marginpar_int }{page}} \tag_start: } \tag_stop: \@xympar \tag_start: } \endinput %% %% End of file `latex-lab-testphase-marginpar.sty'.