將標題放置在網格上頁面的頂部

將標題放置在網格上頁面的頂部

在以下範例中,第一個標題應放置在第二網格線,而「標題」和「副標題」之間的空間應保持原樣。有趣的是,grid選項highlow和產生與(中)box相同的結果。 「詳細資料」手冊中的所有其他選項都會根據需要將標題向下移動一行,none\setuphead[section]但也會影響標題之間的間距

\setuplayout[grid=yes]

\showgrid

\setupwhitespace[line]

\setuphead
    [section]
    [style=\bfc,
     before=,
     after=,
     grid=none]
\setuphead
    [subsection]
    [style=\bfb,
     before=,
     after=,
     grid=none]


\starttext

\startsection[title={Heading}]

\startsubsection[title={Subheading}]

\input ward

\input ward

\stopsubsection

\stopsection

\stoptext

我該如何解決這個問題?

相關內容