summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-list.tex
blob: aa046af9b68c2b056130179fb2d2dc886fbf450e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% !Mode:: "TeX:DE:UTF-8:Main"

% This example shows how one can patch lists command
% it is based on enumitem

% Pay attention to casing. Li/LI, Lbody/Lbody are different.

% It doesn't test nesting!

% lists are now handled in phase-III,
% enumitem is currently incompatible!
\DocumentMetadata{pdfversion=1.7,uncompress,testphase=phase-III}


\documentclass{scrbook}
\usepackage[english]{babel}

\usepackage{iftex}
\ifluatex
  \usepackage{fontspec}
  \usepackage{luacode}
\else
  \usepackage[T1]{fontenc}
\fi



\tagpdfsetup
  {
    tabsorder=structure,
  }

\usepackage{lipsum}%\textheight3cm

\begin{document}
%I don't want to handle pagestyles, so set everything to empty:
\pagestyle{empty}\renewcommand\chapterpagestyle{empty}



\begin{itemize}
\item Ducks say quack
\item Marmots say something Parmotlike
\end{itemize}

\begin{enumerate}
\item The highest pass is the Col de l'Iseran.
\item The second highest pass is the Passo dello Stelvio.
\end{enumerate}

\begin{description}
\item[ducks] yellow
\item[marmots] brown
\end{description}


\end{document}