summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-structure.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tagpdf/ex-structure.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-structure.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-structure.tex76
1 files changed, 76 insertions, 0 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-structure.tex b/macros/latex/contrib/tagpdf/ex-structure.tex
new file mode 100644
index 0000000000..ae42376476
--- /dev/null
+++ b/macros/latex/contrib/tagpdf/ex-structure.tex
@@ -0,0 +1,76 @@
+% !Mode:: "TeX:DE:UTF-8:Main"
+\documentclass{book}
+\usepackage[english,ngerman]{babel}
+\usepackage{tagpdf}
+\usepackage{amsmath}
+\usepackage{graphicx}
+\tagpdfifpdftexT
+ {
+ \usepackage[T1]{fontenc}
+ }
+
+\tagpdfifluatexT
+ {
+ \usepackage{fontspec}
+ \usepackage{luacode}
+ }
+
+
+\tagpdfsetup{tabsorder=structure,
+ activate-all,
+ uncompress
+ }
+\newsavebox\mybox
+
+\usepackage{lipsum}%\textheight3cm
+\usepackage{fancyhdr}
+\pagestyle{fancy}
+\fancyhf{}
+
+\cfoot{\tagmcbegin{artifact=pagination}\thepage\tagmcend}
+\begin{document}
+\tagstructbegin{tag=Document}
+
+ \tagstructbegin{tag=Sect}
+ \tagstructbegin{tag=H}
+ \tagmcbegin{tag=H}
+ \section{Section}
+ \tagmcend
+ \tagstructend
+ \tagstructbegin{tag=P}
+ \tagmcbegin{tag=P,raw=/Alt (x)}
+ a paragraph\par x
+ \tagmcend
+ \tagstructend
+
+ \tagstructbegin{tag=L} %List
+ \tagstructbegin{tag=LI}
+ \tagstructbegin{tag=Lbl}
+ \tagmcbegin{tag=Lbl}
+ 1.
+ \tagmcend
+ \tagstructend
+ \tagstructbegin{tag=LBody}
+ \tagmcbegin{tag=P}
+ List item body
+ \tagmcend
+ \tagstructend %lbody
+ \tagstructend %Li
+
+ \tagstructbegin{tag=LI}
+ \tagstructbegin{tag=Lbl}
+ \tagmcbegin{tag=Lbl}
+ 2.
+ \tagmcend
+ \tagstructend
+ \tagstructbegin{tag=LBody}
+ \tagmcbegin{tag=P}
+ another List item body
+ \tagmcend
+ \tagstructend %lbody
+ \tagstructend %Li
+ \tagstructend %L
+
+ \tagstructend %Sect
+\tagstructend %Document
+\end{document} \ No newline at end of file