summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-08-29 03:02:07 +0000
committerNorbert Preining <norbert@preining.info>2021-08-29 03:02:07 +0000
commit66f6e60b6dc60cc08482030b92df223b6a51b15f (patch)
treee64c800b73c0989d7e812b4a703088ceb131e0c4 /macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex
parentb11ef0810f2b6a651ce97d7e639f9c85efeedbd5 (diff)
CTAN sync 202108290302
Diffstat (limited to 'macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex')
-rw-r--r--macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex7
1 files changed, 3 insertions, 4 deletions
diff --git a/macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex b/macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex
index 554efad01e..d04f8824fb 100644
--- a/macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex
+++ b/macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex
@@ -8,16 +8,15 @@
\makeatletter
%\def\lst@outputspace{\pdffakespace\ } %not so good
% this here works fine with luatex, if the font has a space glyph:
+% the pdf then has four space glyphs. But this doesn't mean that they get copied&pasted!
\def\lst@visiblespace{\lst@ttfamily{\char32}{\char32}}
% with pdftex this could work
%\def\lst@visiblespace{\lst@ttfamily{\pdffakespace\ }{\pdffakespace\ }}
-\tagpdfsetup{activate-all,interwordspace=on,show-spaces,log=v}
+\tagpdfsetup{activate,interwordspace=on,show-spaces,log=v}
\begin{document}\pagestyle{empty}
-\tagstructbegin{tag=Document}
\tagmcbegin{tag=P}
\begin{lstlisting}[showspaces]
aaa aaa xxxx
\end{lstlisting}
\tagmcend
-\tagstructend
-\end{document} \ No newline at end of file
+\end{document} \ No newline at end of file