diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tagpdf/ex-attribute.tex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-attribute.tex')
-rw-r--r-- | macros/latex/contrib/tagpdf/ex-attribute.tex | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-attribute.tex b/macros/latex/contrib/tagpdf/ex-attribute.tex new file mode 100644 index 0000000000..df0325025e --- /dev/null +++ b/macros/latex/contrib/tagpdf/ex-attribute.tex @@ -0,0 +1,63 @@ +% !Mode:: "TeX:DE:UTF-8:Main" +\documentclass{scrartcl} +\usepackage[english]{babel} +\usepackage{tagpdf} +\tagpdfsetup{activate-all,uncompress} + +\ifluatex\else +\pdfcatalog{/Lang (en-UK)} +\pdfinfo {/Title (Title)} +\fi + +\tagpdfsetup +{ + newattribute = {TH-col} { <</Owner /Table /Scope /Column>> }, + newattribute = {TH-row} { <</Owner /Table /Scope /Row>> }, + newattribute = {TH-both}{ <</Owner /Table /Scope /Both>> }, + newattribute = {Lay-borderdotted}{ <</Owner /Layout /Borderstyle /Dotted >> }, +} +\begin{document} +\pagestyle{empty} % +\tagstructbegin{tag=Document} + +\tagstructbegin{tag=Table} +\begin{center} +\begin{tabular}{ l | c | } +\hline +\tagstructbegin{tag=THead} + \tagstructbegin{tag=TR} + \tagstructbegin{tag=TH,attribute= {TH-both,Lay-borderdotted}} + \tagmcbegin{tag=TH} + h1 + \tagmcend + \tagstructend & + \tagstructbegin{tag=TH,attribute-class= {TH-col,Lay-borderdotted}} + \tagmcbegin{tag=TH} + h2 + \tagmcend + \tagstructend + \tagstructend %TR + \tagstructend %Thead + \\ \hline + \tagstructbegin{tag=TBody} + \tagstructbegin{tag=TR} + \tagstructbegin{tag=TD} + \tagmcbegin{tag=TD} + r1 + \tagmcend + \tagstructend %TD +& + \tagstructbegin{tag=TD} + \tagmcbegin{tag=TD} + h2 + \tagmcend + \tagstructend + \tagstructend %TR + \tagstructend %TBody + \\ \hline + \end{tabular} +\end{center} +\tagstructend + +\tagstructend +\end{document}
\ No newline at end of file |