
自從關注ConTeXt之後就沒有寫過文章了。現在是一個這樣做的機會。我嘗試過設定標題,但失敗了。
這篇文章的架構是這樣的:
... title ...(Line-Breaking Algorithm)
\section{...}
...
\section{...}
...
\section{...}
...
我的問題是,如何停用第 1 頁的標題,但啟用第 1 頁以外的標題,並且標題文字始終為Line-Breaking Algorithm
?
答案1
你可以使用指令 設定頭暫時掛起標頭。這是一個例子:
\setupheadertexts [Line-Breaking Algorithm]
\starttext
Header present \page
\setupheader [state=stop]
No header \page
\setupheader [state=start]
And the header is back
\stoptext
如果您使用章節,這些命令可能會變更您手動進行的設定。您可以使用設定控制切片指令的標頭行為\setuphead[header=…]
。
如果要停用標題頁上的標題,請使用以下命令開始化妝可能有用。它預設為禁用標頭,並具有headerstate
進一步微調的設定。
編輯:這是使用條件的另一種解決方案:
\setupheadertexts [\doifnot\pagenumber1{Line-Breaking Algorithm}]
\starttext
No header \page
Header present
\stoptext