章节标题中的断行

章节标题中的断行

我在文档章节标题的自动换行功能上遇到了问题,但只有当我在笔记本电脑上编译时才会出现这种情况。这是我的文档

\documentclass{article}

\tracingparagraphs=1
\listfiles

\begin{document}

\section{In (b) the nature of k was left intentionally unspecified. While it's true... }

\end{document}

我不断收到以下信息:

在此处输入图片描述

然而,当我将代码复制到 Overleaf 中时,它看起来完全正常: 在此处输入图片描述

我尝试过从命令行进行编译,删除所有日志等,然后重新编译,但在我的笔记本电脑上没有任何效果。是什么导致了这个问题?

编辑:我删除了所有正在使用的软件包,但问题仍然存在。以下是 .log 文件的内容:

This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6600 64-bit) (preloaded format=pdflatex 2018.2.11)  11 FEB 2018 13:11
entering extended mode
**./blah.tex
(blah.tex
LaTeX2e <2017-04-15>
Babel <3.17> and hyphenation patterns for 75 language(s) loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (blah.aux)
\openout1 = `blah.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.
LaTeX Font Info:    ... okay on input line 7.
@firstpass
[]\OT1/cmr/bx/n/14.4 In (b) the nature of k was left intentionally 
@ via @@0 b=22 p=0 d=1024
@@1: line 1.1 t=1024 -> @@0
unspecified 
@\par via @@1 b=0 p=-10000 d=100
@@2: line 2.2- t=1124 -> @@1

@firstpass
[]\OT1/cmr/bx/n/14.4 . While it's true... 
@\par via @@0 b=0 p=-10000 d=100
@@1: line 1.2- t=100 -> @@0

 [1

{C:/Users/Andrew/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}] (blah.aux)


 *File List*
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
 ***********

 ) 
Here is how much of TeX's memory you used:
 208 strings out of 493303
 2394 string characters out of 3138853
 53826 words of memory out of 3000000
 3845 multiletter control sequences out of 15000+200000
 4245 words of font info for 16 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 23i,4n,19p,179b,107s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmbx12.pfb><C:/Pr
ogram Files/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on blah.pdf (1 page, 21427 bytes).
PDF statistics:
 14 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

更新:重新输入文档解决了问题,昨晚我太累了,没法重新输入整个文档(实际上,文档要长得多)。我仍然不知道是什么导致了这个问题。

相关内容