In my document, I've typeset abbreviations in small caps so that they don't stand out from the surrounding text.
Here is a small example:
JavaScript and \textsc{html}
Using tectonic
, this produces:
I'm satisfied with how this looks, but when I select and copy the "HTML" in the PDF output, it's "html", lowercase. Is there any way to make it uppercase? Or, perhaps, is this a cursed thing to do?
Edit: I found this question, which seems to be what I'm looking for. However, the accepted solution (using accsupp) didn't work when I tried it; the text was still lowercase.
accsupp
is the only viable solution (but might be mistaken, at least it's what I'd have suggested). Note that not every PDF viewer seems to listen to it, so it might actually work, but just not with your viewer.{\small HTML}
(or some other fitting font size).\textsc{HTML}
.