章節標題中的斷行

章節標題中的斷行

我在文件的章節標題中自動換行時遇到了問題,但僅當我在筆記型電腦上編譯時才遇到問題。這是我的文件

\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)

更新:重新輸入文件解決了問題,我昨晚太累了,無法重新輸入整個(實際的、更長的文件)。我仍然不知道是什麼導致了這個問題。

相關內容