View source: R/post-process-add-alt-text.R
post_process_add_alt_text | R Documentation |
pdfmanagement-testphase
LaTeX packageAdd alternative text to figures in the document via the
pdfmanagement-testphase
LaTeX package
post_process_add_alt_text(
x,
accessible_pdf = NULL,
title_page_image = NULL,
title_page_image_width_cm = NULL,
figures_dir = NULL,
knitr_figures_dir = NULL,
...
)
x |
Tex code, as a vector of lines read in from a TeX file by
|
accessible_pdf |
Logical. If |
figures_dir |
The subdirectory of the "doc" directory containing images that have previously been made such as pictures and logos, and all other figures made outside the scope of this project |
... |
Absorbs arguments meant for other functions |
Searches the given TEX file for the includegraphics{}
,
finds the correct alternative text for those calls by searching through
the project RMD files for the matching (ref:variable-alt)
definitions
and injects the text and the pdfmanagement-testphase
structural
LaTeX lines for web accessibility
The modified Tex code, as a vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.