在以下最小工作示例中,我能够将bodyfont
in配置\setuptyping
为 9.5pt。然而,ConTeXt\setuptype
文档没有详细地向我解释如何实现对命令的字体大小进行同样细粒度的控制\type{}
。
目前,我已经自己解决了\setuptype[style=small]
。我更愿意以 pt 为单位指定电传打字机(逐字)字体大小,或者更好的是,相对于正文字体大小。如何做到这一点?
以下是以下 MWE 代码的当前输出:
\startmode[*mkii]
\enableregime[utf-8]
\setupcolors[state=start]
\stopmode
\mainlanguage[en]
\setuptolerance[horizontal, tolerant, stretch]
% Enable hyperlinks
\setupinteraction[
state=start,
style=normal,
color=darkred,
contrastcolor=darkred
]
\setuppapersize [A4][A4]
\setuplayout [width=middle, backspace=1.5in, cutspace=1.5in,
height=middle, topspace=0.75in, bottomspace=0.75in]
\setuppagenumbering[location={footer,center}]
\usetypescript[pagella]
\setupbodyfont[pagella,12pt]
\setupbodyfontenvironment[12pt][
d=28pt, % For title
a=12pt, % For author & date
]
\setuptype[style=small]
\setuptyping[typing][bodyfont=9.5pt]
% Inter-paragraph spacing
\setupwhitespace[medium]
% Break at hyphens
\setbreakpoints[compound]
\setuphead[chapter] [style=\bfd]
\setuphead[section] [style=\bfc]
\setuphead[subsection] [style=\bfb]
\setuphead[subsubsection][style=\bf]
\setupitemize[autointro] % prevent orphan list intro
\setupitemize[indentnext=no]
\starttext
\section[adding-unstable-repositories]{Adding Unstable repositories}
Once \type{/etc/apt/preferences} is properly configured, it is safe to add the
Debian Unstable repositories. This can either be done by directly
editing the file \type{/etc/apt/sources.list} or, more conveniently, by
adding the repositories via
\type{Settings > Repositories > Other Software} in the Synaptic Package
Manager.
\quotation{Repositories} is written in plural, simply because {\em the
source repository also needs to be included.} This is because a small
minority of Debian packages are not pre-compiled and
require their source code in order to compile on your system.
{\em To optimise download speed, choose a nearby Unstable repository}
with the help of \useURL[url9][http://debgen.simplylinux.ch/][][the
Debian Sources List Generator]\from[url9]. In my case, being located in
Belgium, I added:
\starttyping
deb http://ftp.be.debian.org/debian unstable main contrib non-free
deb-src http://ftp.be.debian.org/debian unstable main contrib non-free
\stoptyping
\stoptext