A named group of optional parameters, declared once and used by several
klammers, so a writer learns one vocabulary instead of a spelling per
klammer. The "o" target is a pseudo-target beside "k": "k" declares a
klammer's interface and documents it, "o" declares an option interface and
documents it, and neither produces output for any target.
@@caption_args.o :caption :number.bool true :caption_side.side
: Arguments that define a caption for a block element @@
@@code.k :filename @hpos_args :hpos left @ @caption_args :caption_side top @
| text.literal : A source file displayed verbatim @@
A set is used only in the parameter list of a ".k" declaration -- the one
place a klammer's interface is declared once for all of its targets -- and
is resolved as that list is read. Names and types come from the set; a
default may be overridden where it is used. A klammer application in a
parameter list is now a definition-time error.
The SKS gains the sets caption_args and hpos_args (:hpos and :offset), and
@table, @image, @image_grid, @reference and @show gain .k declarations. A
distance is no longer written as a position: :hpos 4em is rejected, and the
same layout is :hpos left :offset 4em. Code listings are numbered by
default, like tables and figures.
New engine sources mac/option_set{,_registry}.{h,cpp}; tst/ ships two more
suites, option_set_test.sh and signature_test.sh (twelve in all).
(from dev 34e536cb0329)
182 lines
2.9 KiB
CSS
182 lines
2.9 KiB
CSS
|
|
.unpad {
|
|
padding: 0px;
|
|
margin: 0px;
|
|
}
|
|
|
|
.rborder {
|
|
border-right: 1px;
|
|
border-color: black;
|
|
}
|
|
|
|
.outline {
|
|
border: solid black 1px;
|
|
padding: .5em 1em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.center {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* -------------------------------------------------------------------------------- */
|
|
|
|
.bgap {
|
|
margin-bottom: .5rem;
|
|
}
|
|
|
|
.tgap {
|
|
margin-top: .5rem;
|
|
}
|
|
|
|
.lgap {
|
|
margin-left: .5rem;
|
|
margin-right: 1rem;
|
|
/* font-style: normal;*/
|
|
text-align: left;
|
|
}
|
|
|
|
.rgap {
|
|
margin-left: 1rem;
|
|
margin-right: .5rem;
|
|
/*font-style: normal;*/
|
|
text-align: left;
|
|
}
|
|
|
|
/*
|
|
.mno {
|
|
margin-top: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
padding-top: .5rem;
|
|
}
|
|
*/
|
|
|
|
.mbot {
|
|
margin-top: .75rem;
|
|
margin-bottom: .5rem;
|
|
padding-top: .5rem;
|
|
|
|
}
|
|
|
|
.mtop {
|
|
margin-top: .5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/*
|
|
.ebot {
|
|
margin-bottom: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
*/
|
|
|
|
.caption {
|
|
line-height: 1.3;
|
|
/* text-align: center; */
|
|
}
|
|
|
|
.caption_text {
|
|
text-align: center;
|
|
/* padding-left: 15px;
|
|
padding-right: 15px;
|
|
*/
|
|
line-height: 1.2;
|
|
margin-top: .5rem;
|
|
}
|
|
|
|
.caption_bottom {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.caption_bottom .caption {
|
|
font-style: italic;
|
|
text-align: center;
|
|
}
|
|
|
|
.caption_top {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.caption_top .caption {
|
|
font-style: italic;
|
|
}
|
|
|
|
.caption_left {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
margin: .75rem 0 .75rem 0;
|
|
}
|
|
|
|
.caption_right {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
margin: .75rem 0 .75rem 0;
|
|
}
|
|
|
|
.element_container {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.element_left {
|
|
display: inline-block;
|
|
}
|
|
|
|
.wraparound {
|
|
display: inline;
|
|
}
|
|
|
|
.hpos_left {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: left;
|
|
}
|
|
|
|
.hpos_center {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hpos_right {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: right;
|
|
}
|
|
|
|
.hpos_none {
|
|
display: inline-flex;
|
|
}
|
|
|
|
/* A length :hpos; the margin-left comes as an inline style. */
|
|
.hpos_indent {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: left;
|
|
}
|
|
|
|
/* Retired 2026-08-03: this fixed 1em on every left- and right-placed
|
|
element was the :offset argument, hard coded and only in html -- the tex
|
|
side had no counterpart, so the two targets disagreed. It is now the
|
|
offset_length argtype (sks/kutil/kutil.k), applied by
|
|
html_util.hpos_container and latex_util.caption_wrapper. A document
|
|
that wants the old inset writes ":offset", whose alone value is the
|
|
standard indentation.
|
|
.hpos_margin {
|
|
margin: 0 1em 0 1em;
|
|
}
|
|
*/
|