以 \ref{} 開頭的「正確方法」(從編譯器的角度來看)是什麼?

以 \ref{} 開頭的「正確方法」(從編譯器的角度來看)是什麼?

我在 vim 中編寫 tex,並且有一個自動 linter。我在同一段落中將句子寫在不同的行上(為了清晰和版本控制),我經常想使用\ref{}類似的名稱來開始一行。像這樣:

\ref{Q5*} shows that the two problems (or two instances of the same problem) can come apart.
If the two problems are distinct, then~\ref{Q5} has at least one problem which most questions do not.
Even if the problem of self-answering is a special case of the problem of pedantry (which I do not think it is) this at least shows that~\ref{Q5} has two different instances of the problem.

\ref{}如果我在沒有不間斷空格的行中間使用 a,我的 linter 會給我一條警告訊息,因此我使用不間斷空格(區塊的第二行)。但如果我\ref{}在行首使用,它會給我同樣的警告。

我應該使用什麼來\ref{}正確開始行? (為什麼編譯器一開始會拋出這樣的警告?)在行首放置一個不間斷的空格似乎很奇怪!

謝謝!

相關內容