1

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:

example of small caps

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.

5
  • Welcome to text.se.
    – Cicada
    Commented Jan 25, 2023 at 5:07
  • Can your provide a small compileable code example that illustrates the issue?
    – Cicada
    Commented Jan 25, 2023 at 5:08
  • 1
    I think 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.
    – Skillmon
    Commented Jan 25, 2023 at 5:24
  • the alternative would be to use {\small HTML} (or some other fitting font size). Commented Jan 25, 2023 at 9:43
  • Another semi-viable solution might be to modify the small caps font such that upper case letters are actually rendered in (real) small caps and then use \textsc{HTML}.
    – Marijn
    Commented Jan 25, 2023 at 9:43

0

You must log in to answer this question.

Browse other questions tagged .