安装 EB Garamond (miktex lua) encore encore

安装 EB Garamond (miktex lua) encore encore

有很多相关的问题和答案。我查看了为 pdfLaTeX 安装 EB Garamond(再来一次)并在那里尝试了 lua 答案。lualatex从这个 MWE 上新安装的 Miktex

\documentclass{memoir}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{EB Garamond}
\begin{document}

The Quick Brown Fox Jumps Over The Lazy Dog. 0123456789 

\emph{Try italics.} \\
{\bfseries Try bold face} \\
{\scshape Try small caps} \\

\end{document}

生产

starting package maintenance...
installation directory: C:\Users\eb\AppData\Roaming\MiKTeX\2.9
package repository: http://mirrors.rit.edu/CTAN/systems/win32/miktex/tm/packages/
lightweight database digest: 8a9d030e8c8fa3aaa59a4f1bbb445ea5
going to download 8096508 bytes
going to install 181 file(s) (1 package(s))
downloading http://mirrors.rit.edu/CTAN/systems/win32/miktex/tm/packages/tipa.tar.lzma...
8096508 bytes, 765.27 KB/Sec
extracting files from tipa.tar.lzma...
======================================================================

(C:/Users/eb/AppData/Roaming/MiKTeX/2.9//tex/latex/tipa/t3enc.def(save: C:/Users
/eb/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otf/lmromanslant10-regul
ar.lua)(save: C:/Users/eb/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/ot
f/lmromanslant10-regular.luc)(save: C:/Users/eb/AppData/Local/MiKTeX/2.9/luatex-
cache/generic/fonts/otf/lmroman10-italic.lua)(save: C:/Users/eb/AppData/Local/Mi
KTeX/2.9/luatex-cache/generic/fonts/otf/lmroman10-italic.luc)(save: C:/Users/eb/
AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otf/lmroman10-bold.lua)(save
: C:/Users/eb/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otf/lmroman10-
bold.luc) ("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/euenc/eu2lmss.fd")(save:
 C:/Users/eb/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts/otf/lmsans10-re
gular.lua)(save: C:/Users/eb/AppData/Local/MiKTeX/2.9/luatex-cache/generic/fonts
/otf/lmsans10-regular.luc))
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/graphics/graphicx.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/graphics/keyval.sty")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/graphics/graphics.sty"
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/graphics/trig.sty")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/00miktex/graphics.cfg")
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/pdftex-def/pdftex.def"
("C:/Program Files (x86)/MiKTeX 2.9/tex/generic/oberdiek/ltxcmds.sty")
("C:/Program Files (x86)/MiKTeX 2.9/tex/generic/oberdiek/pdftexcmds.sty"
(C:/Program Files (x86)/MiKTeX 2.9/scripts/oberdiek/pdftexcmds.lua))))))
("C:/Program Files (x86)/MiKTeX 2.9/tex/latex/fontspec/fontspec.cfg")))
luaotfload | cache : No lookup cache, creating empty.
luaotfload | db : Reload initiated; reason: "unresolved font name: 'ebgaramond12
'"
luaotfload | db : Font index saved

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "EBGaramond12" cannot be found.

Miktex 包管理器说 ebgaramond 在那里。

fontspec 文档非常密集。

我看过http://docs.miktex.org/manual/advanced.html#psfonts,无济于事。我无法检查,updmap.cfg因为 Windows 7 搜索找不到它,而且我不知道在哪里手动查找。

编辑:根据@UlrikeFischer 评论:

eb@7J8B8W1 ~
$  luaotfload-tool -u -vv
...
luaotfload | util : Task completed successfully

eb@7J8B8W1 ~
$  luaotfload-tool --alias=luaotfload-tool --find="ebgaramond"
luaotfload | resolve : Cannot find "ebgaramond".

編輯:進步! \usepackage{ebgaramond}与 一起使用pdflatex。(粗体字不行,但根据 @egreg 在其他地方的评论,我无论如何也不想要它。)

也许我应该将我的整个项目从 luatex 转移到 pdftex。

答案1

如果包管理器已正确安装了 type1 字体,则可以选择使用 pdfLaTeX 进行编译:

\documentclass{memoir}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{ebgaramond}

\begin{document}

  \centering
  The Quick Brown Fox Jumps Over The Lazy Dog.\\
  0123456789\\
  \emph{Try italics.}\\
  {\scshape Try small caps.}

\end{document}

EB Garamond 类型 1

我省略了粗体测试,因为 EB Garamond 在设计上缺少粗体。

相关内容