使用 lualatex-dev 创建 Tagpdf(部分应为 H1 标签)

使用 lualatex-dev 创建 Tagpdf(部分应为 H1 标签)

我想使用Tagged PDFLaTeX文件中获取LuaLaTeX-Dev。输出标记的 PDF 已成功创建,但如何去除change/delete不需要的标签PART?请参阅以下屏幕截图:

在此处输入图片描述

LaTeX 内核版本为:LaTeX2e <2024-06-01> pre-release-0 (develop 2024-2-14 branch) and L3 programming layer <2024-01-22>

TagPDF 版本为:2024-02-04 v0.98v

Lua 和 MikTeX 是:This is LuaHBTeX, Version 1.17.1 (MiKTeX 24.1)

我的 MWE 是:

\DocumentMetadata{testphase=phase-II,pdfstandard=UA-1,pdfversion=1.7,uncompress}

\documentclass{book}

\usepackage{graphics,amsmath}

\usepackage{hyperxmp,array}

\usepackage[pdfborderstyle={/S/U/W 0},bookmarksnumbered,bookmarksopen=true,colorlinks,%
    linkcolor=blue,citecolor=blue,urlcolor=blue,%
    linktoc=none, pdfview={XYZ null null 1.00}]{hyperref}

\begin{document}
    
\chapter{Chapter Title Here}

\section{Introduction}\label{S1}

In total, 37.7{\%} of respondents (49.4{\%}. This study's objective was to
remove barriers to employment for PwCD through inclusive design of
technology supports in warehouses and similar settings.
Specifically, a nonlinear context-aware prompting system (NCAPS) was
developed, iteratively refined, and tested.

\begin{table}[h]
\caption{Distribution of Participant Characteristics}
\begin{tabular}{@{}lclr}
\hline
\multicolumn{1}{l}{\textbf{Participant}} & \textbf{Age} & \textbf{Gender} & \textbf{Diagnosis}\\
\hline
\textbf{P01} & 28 & F & Cerebral Palsy\\
\textbf{P02} & 25 & M & Autism Spectrum Disorder\\
\textbf{P03} & --- & M & Autism Spectrum Disorder\\
\textbf{P04} & 38 & F & IDD (unspecified)\\
\textbf{P05} & 25 & M & Cerebral Palsy\\
\textbf{P06} & 23 & M & Down Syndrome\\
\textbf{P07} & 19 & M & IDD (unspecified)\\
\hline
\end{tabular}{}
\end{table}


In a pilot crossover
study, subjects with cognitive disabilities participated in
simulated work sessions, picking orders in a small warehouse
environment using the NCAPS and industry-standard paper tickets.
Their performance was assessed in terms of errors and productivity,
and their insights and perspectives were gathered. The resulting
NCAPS prevented or corrected all errors for all but one participant.
It also increased productivity for participants with the poorest
baseline (paper ticket) performance, but decreased productivity for
those with high baseline performance. 
    
\begin{figure}[b]
%\includegraphics[alt={Figure 1}]{image.png}
\caption{Structure of NCAPS implementation.}
\end{figure}

\end{document}

表格可能未标记(TR、TD 标签……)如何获取预期的标记 PDF?

答案1

您需要phase-III标记部分命令,以及table用于基本表格标记的模块。然后,您还应该告诉代码第一行是标题行(请注意,表格模块当前不支持标题列)。因此从此开始

\DocumentMetadata{testphase={phase-III,table},pdfstandard=UA-1,pdfversion=1.7,uncompress}
\tagpdfsetup{table-header-rows=1} % \tagpdfsetup{table/header-rows=1} in next latex-dev

评论:

  • hyperxmp:hyperxmp 不兼容。标记代码将抑制它,因此其命令和设置将被忽略。

  • uncompress:这只需要调试并且可以使 pdf 变得更大。

  • 下一个 LaTeX-dev(今天发布)将包含对\maketitle(您需要加载标题模块)和\marginpar各种错误修复的支持。因此,我建议使用 lualatex-dev 进行编译(我不知道 miktex 什么时候会得到它,在 texlive 中应该会在一两天内)。

  • 新的标题模块还将把标题文本设置为窗口标题,但在此之前,您应该对 UA-1 使用 hyperref 选项pdfdisplaydoctitle

相关内容