1

When I do a search in some LaTeX documents in the Mac OS X app Preview, I get some strange characters in the search results. These seem to be characters inserted by macros, e.g. by biblatex. The respective letters, e.g. page numbers in a citation, cannot be found via the search either.

I suspect it could be a combination of XeLaTeX and biblatex documents. You can reproduce the phenomenon in the documentation to biblatex-dw, which also uses XeLaTeX and biblatex. However, neither in the original biblatex documentation (pdflatex) or the XeLaTeX documentation (without biblatex) does it happen.

In Acrobat Reader this problem does not occur because the results are not listed.

Does anyone know how to avoid this? The bigger problem is of course that some words cannot be searched.

Edit by moewe: The following MWE reproduces the problem when run with XeLaTeX

\documentclass{article}
\usepackage[osf]{libertine}
\begin{document}
lorem 2015
\end{document}

Edit: @moewe: Thanks for the hints.

Strange thing happened: as I was searching the site for questions related to xelatex/oldstyle numbers, I was convinced that my question was a duplicate of Small-caps, old-style numbers, and some ligatures produce odd symbols in PDF copy text? and I would have to change to LuaLaTeX. But now the problem does not seem to exist anymore for me in newly compiled documents! Neither the suggested MWE nor the example in the linked question nor my own document has this problem. In a two-year old version of the document the problem is there, but not in a newly compiled one (TeX Live 2012 vs 2014). Have there been any changes in the last year regarding the xetex font problem that might have solved it?

closed as off-topic by egreg, Andrew, user13907, Symbol 1, LaRiFaRi Apr 14 '15 at 9:38

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Just for reference, the problem occurs (amongst others) on p. 11 of the biblatex-dw documentation in "Author: Title, in: Book, pp. 100-150.": the string "Author: Title, in: Book, pp." is fine, while "100-150" cannot be copied. The problem could be reproduced with SumatraPDF and Adobe Reader (on Windows 7). Maybe it has to do with old style numbering. You will find that no number at all can be found or copied - the all become weird unicode characters. Could you come up with a minimal document that shows this error? I suspect it is not biblatex's fault. – moewe Apr 13 '15 at 5:32
  • I have added a MWE of my own. Please check if the error occurs with that as well. It seems like there is no connection at all with biblatex, just with old style figures. – moewe Apr 13 '15 at 5:47
  • @moewe I don't get any strange character (TL 2014, Mac OS X 10.9) – egreg Apr 13 '15 at 22:56
  • @egreg On my MikTeX 2.9 XeLaTeX (3.14159265-2.6-0.99991) I get Unicode U+E11A for "2" (and so on) when copying the characters (ins SumatraPDF as well as AdobeReader). – moewe Apr 14 '15 at 5:15
  • 4
    I'm voting to close this question as off-topic because the issue doesn't seem to be reproducible – egreg Apr 14 '15 at 8:09

Browse other questions tagged or ask your own question.