Skip to content

Commit

Permalink
correct default open action
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Apr 6, 2024
1 parent bdfecda commit 411da3d
Show file tree
Hide file tree
Showing 36 changed files with 1,177 additions and 1,175 deletions.
4 changes: 2 additions & 2 deletions tagpdf-tree.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@
%
% \begin{variable}{\g_@@_tree_openaction_struct_tl}
% We need a variable that indicates which structure is wanted in the OpenAction. By default we use
% 1 (the Document structure).
% 2 (the Document structure).
% \begin{macrocode}
\tl_new:N \g_@@_tree_openaction_struct_tl
\tl_gset:Nn \g_@@_tree_openaction_struct_tl {1}
\tl_gset:Nn \g_@@_tree_openaction_struct_tl { 2 }
% \end{macrocode}
% \end{variable}
%
Expand Down
66 changes: 33 additions & 33 deletions testfiles-luatex/debug-structures-2.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ tagpdf DEBUG Info: Tagging restarted
] (debug-structures-2.aux)
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
=========================
The structure 0 contains:
The structure 1 contains:
> Type => /StructTreeRoot
> S => /StructTreeRoot
> rolemap => {StructTreeRoot}{pdf}
> parentrole => {StructTreeRoot}{pdf}
The structure has the following kids:
> Struct 1
> Struct 2
=========================
=========================
The structure 1 contains:
The structure 2 contains:
> Type => /StructElem
> S => /Document
> NS => pdf2
> rolemap => {Document}{pdf2}
> parentrole => {Document}{pdf2}
> P => parent structure: 0 = /StructTreeRoot
> P => parent structure: 1 = /StructTreeRoot
The structure has the following kids:
> Struct 4
> Struct 5
=========================
=========================
The structure 2 contains:
The structure 3 contains:
> Type => /StructElem
> S => /figures
> NS => latex
Expand All @@ -48,7 +48,7 @@ The structure has the following kids:
> NONE
=========================
=========================
The structure 3 contains:
The structure 4 contains:
> Type => /StructElem
> S => /tables
> NS => latex
Expand All @@ -59,82 +59,82 @@ The structure has the following kids:
> NONE
=========================
=========================
The structure 4 contains:
The structure 5 contains:
> Type => /StructElem
> S => /Sect
> NS => pdf2
> rolemap => {Sect}{pdf2}
> parentrole => {Sect}{pdf2}
> P => parent structure: 1 = /Document
> P => parent structure: 2 = /Document
The structure has the following kids:
> Struct 5
> Struct 7
> Struct 9
> Struct 11
> Struct 6
> Struct 8
> Struct 10
> Struct 12
=========================
=========================
The structure 5 contains:
The structure 6 contains:
> Type => /StructElem
> S => /section
> NS => latex
> rolemap => {H1}{pdf2}
> parentrole => {H1}{pdf2}
> P => parent structure: 4 = /Sect
> P => parent structure: 5 = /Sect
The structure has the following kids:
> Struct 6
> Struct 7
> MC 3
=========================
=========================
The structure 6 contains:
The structure 7 contains:
> Type => /StructElem
> S => /Lbl
> NS => pdf2
> rolemap => {Lbl}{pdf2}
> parentrole => {Lbl}{pdf2}
> P => parent structure: 5 = /section
> P => parent structure: 6 = /section
The structure has the following kids:
> MC 1
> MC 2
=========================
=========================
The structure 7 contains:
The structure 8 contains:
> Type => /StructElem
> S => /text-unit
> NS => latex
> rolemap => {Part}{pdf2}
> parentrole => {Sect}{pdf2}
> P => parent structure: 4 = /Sect
> P => parent structure: 5 = /Sect
The structure has the following kids:
> Struct 8
> Struct 9
=========================
=========================
The structure 8 contains:
The structure 9 contains:
> Type => /StructElem
> C => /justify
> S => /text
> NS => latex
> rolemap => {P}{pdf2}
> parentrole => {P}{pdf2}
> P => parent structure: 7 = /text-unit
> P => parent structure: 8 = /text-unit
The structure has the following kids:
> MC 4
> Struct 9
> Struct 10
> MC 6
=========================
=========================
The structure 9 contains:
The structure 10 contains:
> Type => /StructElem
> S => /Link
> NS => pdf2
> rolemap => {Link}{pdf2}
> parentrole => {Link}{pdf2}
> P => parent structure: 4 = Sect
> P => parent structure: 5 = Sect
The structure has the following kids:
> MC 5
> OBJR reference
=========================
=========================
The structure 10 contains:
The structure 11 contains:
> Type => /StructElem
> S => /Span
> NS => pdf2
Expand All @@ -145,30 +145,30 @@ The structure has the following kids:
> NONE
=========================
=========================
The structure 11 contains:
The structure 12 contains:
> Type => /StructElem
> S => /text-unit
> NS => latex
> rolemap => {Part}{pdf2}
> parentrole => {Sect}{pdf2}
> P => parent structure: 4 = /Sect
> P => parent structure: 5 = /Sect
The structure has the following kids:
> Struct 12
> Struct 13
=========================
=========================
The structure 12 contains:
The structure 13 contains:
> Type => /StructElem
> C => /justify
> S => /text
> NS => latex
> rolemap => {P}{pdf2}
> parentrole => {P}{pdf2}
> P => parent structure: 11 = /text-unit
> P => parent structure: 12 = /text-unit
The structure has the following kids:
> MC 7
=========================
Package tagpdf Info: Finalizing the tagging structure:
(tagpdf) Writing out ~12 structure objects
(tagpdf) Writing out ~13 structure objects
(tagpdf) with ~9 'MC' leaf nodes.
(tagpdf) Be patient if there are lots of objects!
Package tagpdf Info: writing ParentTree
Expand Down
66 changes: 33 additions & 33 deletions testfiles-luatex/debug-structures.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ tagpdf DEBUG Info: Tagging restarted
] (debug-structures.aux)
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
=========================
The structure 0 contains:
The structure 1 contains:
> Type => /StructTreeRoot
> S => /StructTreeRoot
> rolemap => {StructTreeRoot}{pdf}
> parentrole => {StructTreeRoot}{pdf}
The structure has the following kids:
> Struct 1
> Struct 2
=========================
=========================
The structure 1 contains:
The structure 2 contains:
> Type => /StructElem
> S => /Document
> rolemap => {Document}{}
> parentrole => {Document}{}
> P => parent structure: 0 = /StructTreeRoot
> P => parent structure: 1 = /StructTreeRoot
> NS => pdf2
The structure has the following kids:
> Struct 4
> Struct 5
=========================
=========================
The structure 2 contains:
The structure 3 contains:
> Type => /StructElem
> S => /figures
> rolemap => {Sect}{}
Expand All @@ -48,7 +48,7 @@ The structure has the following kids:
> NONE
=========================
=========================
The structure 3 contains:
The structure 4 contains:
> Type => /StructElem
> S => /tables
> rolemap => {Sect}{}
Expand All @@ -59,82 +59,82 @@ The structure has the following kids:
> NONE
=========================
=========================
The structure 4 contains:
The structure 5 contains:
> Type => /StructElem
> S => /Sect
> rolemap => {Sect}{}
> parentrole => {Sect}{}
> P => parent structure: 1 = /Document
> P => parent structure: 2 = /Document
> NS => pdf2
The structure has the following kids:
> Struct 5
> Struct 7
> Struct 9
> Struct 11
> Struct 6
> Struct 8
> Struct 10
> Struct 12
=========================
=========================
The structure 5 contains:
The structure 6 contains:
> Type => /StructElem
> S => /section
> rolemap => {H1}{}
> parentrole => {H1}{}
> P => parent structure: 4 = /Sect
> P => parent structure: 5 = /Sect
> NS => user
The structure has the following kids:
> Struct 6
> Struct 7
> MC 3
=========================
=========================
The structure 6 contains:
The structure 7 contains:
> Type => /StructElem
> S => /Lbl
> rolemap => {Lbl}{}
> parentrole => {Lbl}{}
> P => parent structure: 5 = /section
> P => parent structure: 6 = /section
> NS => pdf2
The structure has the following kids:
> MC 1
> MC 2
=========================
=========================
The structure 7 contains:
The structure 8 contains:
> Type => /StructElem
> S => /text-unit
> rolemap => {Part}{}
> parentrole => {Sect}{}
> P => parent structure: 4 = /Sect
> P => parent structure: 5 = /Sect
> NS => user
The structure has the following kids:
> Struct 8
> Struct 9
=========================
=========================
The structure 8 contains:
The structure 9 contains:
> Type => /StructElem
> C => /justify
> S => /text
> rolemap => {P}{}
> parentrole => {P}{}
> P => parent structure: 7 = /text-unit
> P => parent structure: 8 = /text-unit
> NS => user
The structure has the following kids:
> MC 4
> Struct 9
> Struct 10
> MC 6
=========================
=========================
The structure 9 contains:
The structure 10 contains:
> Type => /StructElem
> S => /Link
> rolemap => {Link}{}
> parentrole => {Link}{}
> P => parent structure: 4 = Sect
> P => parent structure: 5 = Sect
> NS => pdf2
The structure has the following kids:
> MC 5
> OBJR reference
=========================
=========================
The structure 10 contains:
The structure 11 contains:
> Type => /StructElem
> S => /Span
> rolemap => {Span}{}
Expand All @@ -145,30 +145,30 @@ The structure has the following kids:
> NONE
=========================
=========================
The structure 11 contains:
The structure 12 contains:
> Type => /StructElem
> S => /text-unit
> rolemap => {Part}{}
> parentrole => {Sect}{}
> P => parent structure: 4 = /Sect
> P => parent structure: 5 = /Sect
> NS => user
The structure has the following kids:
> Struct 12
> Struct 13
=========================
=========================
The structure 12 contains:
The structure 13 contains:
> Type => /StructElem
> C => /justify
> S => /text
> rolemap => {P}{}
> parentrole => {P}{}
> P => parent structure: 11 = /text-unit
> P => parent structure: 12 = /text-unit
> NS => user
The structure has the following kids:
> MC 7
=========================
Package tagpdf Info: Finalizing the tagging structure:
(tagpdf) Writing out ~12 structure objects
(tagpdf) Writing out ~13 structure objects
(tagpdf) with ~9 'MC' leaf nodes.
(tagpdf) Be patient if there are lots of objects!
Package tagpdf Info: writing ParentTree
Expand Down
Loading

0 comments on commit 411da3d

Please sign in to comment.