我试着一步一步地准备我的文件,但每次我遇到佩布查克这阻碍了我。
我试图在标题上显示章节标记,但无奈的是,无论我如何尝试都无济于事。
以下是我的序言:
% language=en
%%% Anything that is not related with layout
% Enable fake text
\usemodule[visual]
\setupsystem[random=10]
% define language
\mainlanguage[en]
%%%
% Setup paper size
\setuppapersize[letter][letter]
\setuplayout[topspace=0.5in,
backspace=1in,
header=24pt,
footer=36pt,
height=middle,
width=middle]
% the following comment can show layout
%\showframe
% Numbering Pages
\setuppagenumbering[alternative=doublesided,
location={footer,inleft},
style=bold]
%%% Setup Head
\setuphead[chapter][
style=\bold,
number=no,
after=\pagebreak
]
\setuphead[section][
style=\italic,
number=no,
]
%%% Setup Sections
% Chapter
\chapter [
title={\WORDS{terminals \& connector}}
]
% Section
\section[
list={Copper Ring Terminal Lugs},
marking={Copper Ring Terminal Lugs}
]
% Subject
\define[2]\prodsub{
% \blank[2*line]
\startpacked[0.5mm]
\subject[title=\WORD{#1}]
{\tfx\bs\WORDS{#2}}
\stoppacked
}
%%% Header & Footer
% Headers
\setupheader[style=\bold]
\setupheadertexts[{\getmarking[section]}]
% Footers
\setupfooter[styleleft=\sl,styleright=\bold]
\setupfootertexts[\WORDS{WEBSITE.com}][][][\WORDS{terminals \& connectors}]
% Body font
\setupbodyfont[ivona,8pt]
最有趣的是,例如使用以下命令可以chapter
工作sectionnumber
:
%% Both way work but with everything but section
%%% Basic
\setupheadertexts[chapter]
%%%
\setupheadertexts[{\getmarking[chapter]}]
我不明白为什么chapter
有效而section
无效,而sectionnumber
有效。这是一个明确的佩布查克...
也许问题出在身体上:
\starttext
% Cover here
% TOC here
% Verso
% Copper Ring Terminal lugs
\startsection
\prodsub{item 001}{crimp type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 002}{crimp type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 003}{crimp type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 004}{crimp type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 005}{crimp type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 006}{solder type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 007}{solder type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 008}{solder type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 009}{solder type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 010}{solder type copper ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
% Ring Terminals
\prodsub{item 011}{solder type ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 012}{solder type ring terminal lug}
\startitemize[1]
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\item \fakewords{3}{10}
\stopitemize
\prodsub{item 013}{0 awg gold plated ring terminals}
\startitemize[1]
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\stopitemize
\prodsub{item 014}{4 awg gold plated ring terminals}
\startitemize[1]
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\stopitemize
\prodsub{item 015}{8 awg gold plated ring terminals}
\startitemize[1]
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\stopitemize
\prodsub{item 016}{10 awg gold plated ring terminals}
\startitemize[1]
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\item \fakewords{2}{8}
\stopitemize
\prodsub{item 017}{0 awg gold plated ring terminals}
\startitemize[1]
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\stopitemize
\prodsub{item 018}{0 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\item \fakewords{2}{5}
\stopitemize
\prodsub{item 019}{0 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 020}{0 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 021}{4 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 022}{4 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 023}{6 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 024}{6 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 025}{0 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 026}{0 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 027}{10 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 028}{10 awg ring terminal - bulk pack}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 029}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{item 030}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-1210-3/8}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-1210-1/4}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-1614-10}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-1614-5/16}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-1614-3/8}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-1614-1/4}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-2218-10}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{is-rt-2218-1/4}{vinyl insulated ring terminal}
\startitemize[1]
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\item \fakewords{2}{3}
\stopitemize
\prodsub{mrt-1210-8hs}{marine heat shrink ring terminal}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mrt-1614-6hs}{marine heat shrink ring terminal}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mrt-2218-4hs}{marine heat shrink ring terminal}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
% Butt Connectors
\prodsub{mbt-1210-hs}{marine heat shrink butt connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mbt-1614-hs}{marine heat shrink butt connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mbt-2218-hs}{marine heat shrink butt connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mqd-1210-250hs}{marine heat shrink butt disconnect connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mqd-1614-250hs}{marine heat shrink butt disconnect connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{mqd-2218-250hs}{marine heat shrink butt disconnect connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{is-bt-1210}{vinyl but connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{is-bt-1614}{vinyl but connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{is-bt-2218}{vinyl but connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{is-bt-1210nl}{nylon but connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{is-bt-1614nl}{nylon but connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\prodsub{is-bt-2218nl}{nylon but connector}
\startitemize[1]
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\item \fakewords{1}{3}
\stopitemize
\stopsection
% ends of the document
\stoptext
希望能够解决这个问题,以便进入下一个佩布查克, 谢谢!
答案1
我自己解决了……