summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tagpdf/ex-spaceglyph-listings.tex
diff options
context:
space:
mode:
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