Documents Using the article Document Class
If you want to produce tagged PDF files using the article document class, you can use this template as a starting point:
- Template for creating tagged PDF files with the
articledocument class
- Document class and packages: Start by defining the document class with
\documentclass{article}. This specifies that the document is an article. Then include the necessary packages:\usepackage[tagged]{accessibility}: This package improves the accessibility of the PDF document, which is important for screen-reader users.\usepackage{graphicx}: This package allows you to insert images.\usepackage{pdfcomment}: This package is used to add comments to the PDF.\usepackage{hyperref}: This package allows you to create hyperlinks in the document.
- Hyperlink settings: Use
\hypersetupto configure the properties of hyperlinks in the document. Replace the values in curly brackets with your own information:pdftitle: The title of your document.pdfauthor: The author’s name.pdfsubject: The subject or topic of the document.pdfkeywords: Keywords that describe the content.pdfproducerandpdfcreator: You can usually retain the default values,LaTeXandpdflatex.
- Document content:
- Begin the content section with
\begin{document}.
- Begin the content section with
- Ending the document:
- End the document with
\end{document}.
- End the document with
Documents with Images That Need Alternative Text
- To add images, use the following command:
\pdftooltip{\includegraphics[width=0.5\textwidth]{path/to/your/image.jpg}}{This is alternative text for the image}. - Here,
widthspecifies the width of the image, andpath/to/your/image.jpgis the file path to the image in your LaTeX environment. Add the alternative text as the final argument in\pdftooltip. - Enter the document content as ordinary text below the image insertion command.
Documents Produced with Beamer
At present, the accessibility package does not work with Beamer. To create tagged PDFs from documents produced with Beamer, you need to use Adobe Acrobat. Adobe Acrobat is available through the UiO Software Kiosk.
- Open the document in Acrobat: From the menu, select File, then Open. Select the PDF document produced with Beamer.
- Export the document to PowerPoint: From the menu, select File, then Save As Other. Then select Microsoft PowerPoint Presentation.
- Save the document as a PDF in PowerPoint: Open the file in PowerPoint. Then select File and Save As. Select Save as PDF to create a tagged PDF file.
How to use Adobe Acrobat [in Norwegian]
Do you have feedback on how we can improve this page?
Contact us:
Email: eilin-kontakt@sv.uio.no