
PDF (XeLaTeX で生成) から単語をコピーすると、コピーされたテキストにランダムなギリシャ文字が含まれるという問題が発生します。
\documentclass[12pt,a4paper,english]{report}
% setup encoding
\usepackage[utf8]{inputenc}
%set language
\usepackage[british,english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern,cmap}
%setup font
\usepackage{fontspec}
\setmainfont{Calibri}
\begin{document}
{\large A dissertation submitted in partial fulfilment of\\
the requirements for the degree of\\}
\end{document}
(簡潔にするためにテキストは省略しました)。
上記の PDF を生成し、本文をコピーすると、次の文字列が生成されます。
A dissertaƟon submiƩed in parƟal fulĮlment of the requirements for the degree of
フォントの包含を削除すると、コピー&ペーストは問題なく機能するので、フォントの使用方法に問題があると考える理由がありますか? 誰かアイデアはありますか?
答え1
XeLaTeXやLuaLaTeX では、、、inputenc
を使用しないでください。ただし、これ以外にも合字に関する問題があります。合字は XeLaTeX では Unicode エントリに正しくマップされません。LuaLaTeX では次のように動作します:lmodern
cmap
fontenc
\documentclass[12pt,a4paper,english]{report}
\usepackage[british,english]{babel}
\usepackage{fontspec}
\setmainfont{Calibri.ttf}
\begin{document}
{\large A dissertation submitted in partial fulfilment of\\
the requirements for the degree of\par}
\end{document}
ゼラテックス:
論文