Microtype 和 Minion Pro

Microtype 和 Minion Pro

在我格式化我的电脑(Windows 7 Pro 64 位)之前,我安装了 MiKTeX(32 位),对于 Minion Pro,一切都很顺利。从那时起,我一直在使用 ShareLaTeX,今天我安装了 MiKTeX 和 Minion Pro,但不知怎么的,有些东西坏了。

\documentclass[10pt,a4paper]{book}

\usepackage[
  fullfamily,
  opticals,
  textosf,
  mathlf,
  loosequotes
]{MinionPro}

\usepackage[
  toc,
  eqno,
  enum,
  bib,
  lineno
]{tabfigures} %employs tabular figures

\usepackage[
%  protrusion  =true,
%  expansion   =true,
%  tracking    =true,
%  letterspace =50,
%  final
]{microtype}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{lipsum}
\begin{document}
test
\end{document}

上述设置没有问题(pdflatex)。但是,只要我取消注释任何 `microtype 选项,就会得到:

! LaTeX Error: Option clash for package microtype.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.26 

The package microtype has already been loaded with options:
  [kerning=true]
There has now been an attempt to load it with options
  [ protrusion =true, ]
Adding the global options:
  kerning=true, protrusion =true, 
to your \documentclass declaration may fix this.
Try typing  <return>  to proceed.

(添加错误消息中描述的选项没有帮助。)

如果评论Minion Pro选项:

\documentclass[10pt,a4paper]{book}

\usepackage[
%  fullfamily,
%  opticals,
%  textosf,
%  mathlf,
%  loosequotes
]{MinionPro}

\usepackage[
  toc,
  eqno,
  enum,
  bib,
  lineno
]{tabfigures} %employs tabular figures

\usepackage[
  protrusion  =true,
  expansion   =true,
  tracking    =true,
  letterspace =50,
  final
]{microtype}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}

我得到:

Package microtype Warning: Unknown slot number of character
(microtype)                `\j '
(microtype)                in font encoding `T1' in inheritance list
(microtype)                `microtype.cfg/228(protrusion)'.

LaTeX Font Info:    Font shape `T1/MinionPro-OsF/m/sl' in size <10> not availab
le
(Font)              Font shape `T1/MinionPro-OsF/m/it' tried instead on input l

那么(希望不要被贴上“太本地化”的标签)到底是什么出了问题?

答案1

按照@blackened 的建议将我的评论转换为答案

MinionPro正如您从文档中看到的,该包已经加载了微类型。因此,您可能会遇到一些选项冲突。也许使用\PassOptionsToPackage{<options>}{microtype}是加载之前的选项。MinionPro

相关内容