使用 fontspec 时,无法通过 Apple pdf 引擎复制或搜索我的文档。使用 cmap 也无济于事。
\documentclass[oneside, 12pt]{book}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Adobe Garamond Pro}
\begin{document}
\chapter{Fontspec Doesn't Work}
This text doesn't copy correctly.
\end{document}
这是一个已知的问题?
我的操作系统是 Mac OSX 10.11.6 El Capitan。Texpad 内置查看器的问题最严重,Preview 的问题次之,Adobe Reader 的问题不存在。我使用的是 LuaTeX 0.95.0 和 XeTeX 3.14159265-2.6-0.99996
日志:
/Library/TeX/texbin/xelatex -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=/Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp main.tex
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/bk12.clo)) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1lmr.fd)) (/usr/local/texlive/2016/texmf-dist/tex/xelatex/xunicode/xunicode.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/tipa/t3enc.def (/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1lmss.fd)) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/xetex.def)))) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/tipa/t3cmr.fd)
Chapter 1.
[1] (/Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.aux) )
Output written on /Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.pdf (1 page).
SyncTeX written on /Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.synctex.gz.
Transcript written on /Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.log.
/Library/TeX/texbin/xelatex -file-line-error -interaction=nonstopmode -synctex=1 -output-directory=/Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp main.tex
This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/bk12.clo)) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1lmr.fd)) (/usr/local/texlive/2016/texmf-dist/tex/xelatex/xunicode/xunicode.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/tipa/t3enc.def (/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu1lmss.fd)) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/xetex.def)))) (/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (/Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.aux) (/usr/local/texlive/2016/texmf-dist/tex/latex/tipa/t3cmr.fd)
Chapter 1.
[1] (/Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.aux) )
Output written on /Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.pdf (1 page).
SyncTeX written on /Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.synctex.gz.
Transcript written on /Users/bfh/OneDrive/Documents/Thesis/MWE/.texpadtmp/main.log.