在学习连字符时,我遇到了一些有趣的事情。
当我编码时:
\documentclass{article}
\hyphenation{acro-nym}
\begin{document}
\fbox{\begin{minipage}{3cm}
TUG is an acronym. It means \TeX\ Users Group.
\end{minipage}}
\end{document}
正如我预期的那样:
但是,当我替换时\hyphenation{acro-nym}
,\usepackage[none]{hyphenat}
结果仍然相同。就好像包没有被识别一样。发生了什么事?
可能有帮助:我目前在 Windows 7 Ultimate SP1 中使用“MiKTeX 2.9”和“TeXnicCenter 1.0 Stable Release Candidate 1”作为我的编辑器。
使用,如果未在序言中写入,\listfiles
我只能获得结果。上述代码的 如下:\usepackage[none]{hyphenat}
.log
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
Underfull \hbox (badness 2103) in paragraph at lines 7--7
[]\OT1/cmr/m/n/10 TUG is an acro-
[]
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 7.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 7.
[1
]
*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
***********
答案1
我无法使用最新的 TeXLive 2013 看到它
\listfiles
\documentclass{article}
\hyphenation{acro-nym}
\usepackage[none]{hyphenat}
\begin{document}
\fbox{\begin{minipage}{3cm}
TUG is an acronym. It means \TeX\ Users Group.
\end{minipage}}
\end{document}
*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
hyphenat.sty 2009/09/02 v2.3c hyphenation utilities
***********