MiKTeX 连字功能在 MacOS 上不起作用。(没有连字功能。)

MiKTeX 连字功能在 MacOS 上不起作用。(没有连字功能。)

我刚刚买了第一台 Mac,正在尝试在系统上安装 Latex。一切似乎都运行良好,只是 MiKTeX 拒绝对单词进行连字符处理,因此当我的单词太长时,行会溢出页面宽度。我收到以下警告消息:

Overfull \hbox (33.25203pt too wide) in paragraph

并且右边距被破坏: 在此处输入图片描述 我使用哪种编译器并不重要。我尝试过 XeLaTex、PdfLaTeX、LaTeX、LuaLaTeX 和 Latexmk。

我有哪些切口并不重要。在上面的例子中,.tex 文件非常简单:

\documentclass[a4paper]{article}

\begin{document}
Loremipsum dolorsit amet, vixerror choroveniam at. Novix evertiturvituperatoribus. Unumintellegam estno, omnislobortis reformidansnec te. Nullam vituperatoribus usuex. Sitte meliusdebitis, eusit laboresinermis repudiare. Utamurminimum iusno, hisquando facilisisin, eigraeci laoreet eam. Seaei dictasperfecto, integreeruditi copiosaenequi. Cumei dicamfacilisi erroribus. Dictacongue integrevisut, prodebitis inermisluptatumte. Netale constituamhis, namad nulla necessitatibus. Videinermis hisid, teassum nostronominavi nam, aliquamindoctum theophrastus nevel. Te sitdicuntepicuri.
\end{document}

我使用过两个不同的编辑器(TexPad 和 TexStudio),两者都有同样的问题。

我怀疑缺少了一些语言文件。但在 MiKTeX 控制台中,一切似乎都很好。 在此处输入图片描述

日志文件似乎没有包含任何有用的信息:

This is XeTeX, Version 3.14159265-2.6-0.99999 (MiKTeX 2.9.6800) (preloaded format=xelatex 2018.9.26)  26 SEP 2018 10:41
entering extended mode
**./base.tex
(base.tex
LaTeX2e <2018-04-01> patch level 5

("/Users/eric/Library/Application Support/MiKTeX/texmfs/install/tex/latex/base/
article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class

("/Users/eric/Library/Application Support/MiKTeX/texmfs/install/tex/latex/base/
size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (base.aux)
\openout1 = `base.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.

Overfull \hbox (33.25203pt too wide) in paragraph at lines 4--5
[]\TU/lmr/m/n/10 Loremipsum dolorsit amet, vixerror choroveniam at. Novix evert
iturvituperatoribus.
 []


Overfull \hbox (2.522pt too wide) in paragraph at lines 4--5
\TU/lmr/m/n/10 Unumintellegam estno, omnislobortis reformidansnec te. Nullam vi
tuperatoribus
 []


Overfull \hbox (14.89603pt too wide) in paragraph at lines 4--5
\TU/lmr/m/n/10 iusno, hisquando facilisisin, eigraeci laoreet eam. Seaei dictas
perfecto, integreeruditi
 []


Overfull \hbox (10.06203pt too wide) in paragraph at lines 4--5
\TU/lmr/m/n/10 copiosaenequi. Cumei dicamfacilisi erroribus. Dictacongue integr
evisut, prodebitis
 []


Overfull \hbox (12.71202pt too wide) in paragraph at lines 4--5
\TU/lmr/m/n/10 inermisluptatumte. Netale constituamhis, namad nulla necessitati
bus. Videinermis
 []

[1

] (base.aux) ) 
Here is how much of TeX's memory you used:
 203 strings out of 429720
 2087 string characters out of 3179525
 58063 words of memory out of 3000000
 4157 multiletter control sequences out of 15000+200000
 3648 words of font info for 15 fonts, out of 3000000 for 9000
 0 hyphenation exceptions out of 8191
 22i,4n,17p,592b,107s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on base.pdf (1 page).

答案1

作为(至少)第三个由于 Christian Schenk 对这个问题的评论而解决这个问题的人,我想我会将其作为答案发布出来,这样其他人就不会错过它。

美国连字符模式 (hyphen.tex) 是 knuth-lib 包的一部分。您应该确保已安装此包,然后运行initexmf --mklangsinitexmf --dump以更新格式文件。

只需从终端运行这两个命令(第二个命令需要几分钟) - 即使是非管理员用户也可以使用。

相关内容