
艾格格關於任意使用裝備但使用真正的utf8x
europecv 類別武斷地認為 utf8 不是一個好的選項,並且即使傳遞的選項是 utf8 也使用 utf8x,這當然是愚蠢的。
如何解決Europecv中任意使用utf8x的問題? 是否可以對實際套件進行任何更改以支援 utf8,而不是 utf8x?
履歷是關於出版的,應該是最新世紀的,例如這裡。我也希望有 XeLaTeX 支援(現在只有 pdflatex,討論這裡)對於 Europecv ,可以同時實施並停止內在加載輸入法。
答案1
班級europecv
說
\DeclareOption{utf8}{\AtEndOfClass{\inputencoding{utf8x}}}
這是一個很大的錯誤。此類首次發佈時,utf8
不支援希臘語直接輸入,這是使用utf8x
.幾年來,utf8
做支持希臘語,因此沒有理由以這種方式保留該選項。
然而,為了向後相容,也許應該添加一個新選項,例如realutf8
.
您可以透過以下組合強制europecv
不載入inputenc
該選項。utf8x
% trick to fool europecv into thinking XeTeX is used
\ifdefined\Umathchar\else\let\Umathchar\relax\fi
\documentclass[helvetica,narrow]{europecv} % no utf8 option!!!
% undo the effect of the trick
\ifx\Umathchar\relax\let\Umathchar\UNDEFINED\fi
\usepackage[utf8]{inputenc}
<rest of the preamble>
最好的方法是說服作者europecv
提供一個載入該選項realutf8
的選項。inputenc
utf8