Quantcast
Channel: Active questions tagged copy-paste - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 70

prevent text selection on pdf in \ruby context

$
0
0

I was wondering if there is an "easy" way to prevent selection on furigana produced by \ruby command so it's easier to select>copy>paste on translator or other place.

%!TEX TS-program = xelatex\documentclass[12pt]{article}\usepackage{xeCJK}\usepackage{ruby}\setCJKmainfont{Microsoft JhengHei}\begin{document}  \ruby{赤}{あか}いです,そして\ruby{新}{あたら}しいです\end{document}

for instance, if i copy the following piece (in the result pdf)

enter image description here

And then i go and paste it (on the browser, for example) I get : そしてあたら新しいです. The あたら part is the one i want to avoid to be selected.

I was hopping for some latex magic like

\ruby{赤}{あか}いです,そして\ruby{新}{\UNSELECTABLE{あたら}}しいです

Thanks in advance.


Viewing all articles
Browse latest Browse all 70

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>