BeginStyle
(Cedar) AttachStyle
Basic StyleParam Declarations
(
device) "xc" StyleParam
controls font selection; known options are:
press, anacapa, xc
(
basicSize) 9.5 bp StyleParam
normal font size. Also modified in the root format
(
captionSize) 9.5 bp StyleParam
(captionSize) 8.8 bp StyleParam
because cg-cstriumvirate is a larger font than cg-cstimes
(authorSize) 12.0 bp StyleParam
(
codeSize) 9.5 bp StyleParam
normal font size for code. Also modified in the root format
(sectionSize) 9.0 bp StyleParam
(
extraLead) 1.0 bp StyleParam
normal between-lines leading
(
basicIncrement) 2 bp StyleParam
normal font size change
(
columnGap) 0.34 in StyleParam
for some reason, this value has to be global, not in the root format
(BasicSize) {the basicSize Magnified} .cvx .def
(CaptionSize) {the captionSize Magnified} .cvx .def
(CaptionSize) {the captionSize Magnified} .cvx .def
(AuthorSize) {the authorSize Magnified} .cvx .def
(SectionSize) {the sectionSize Magnified} .cvx .def
(CodeSize) {the codeSize Magnified} .cvx .def
General declarations
(
FontPrefix) "default font prefix" {
"Xerox/TiogaFonts/" fontPrefix
} ScreenRule
(
FontPrefix) "default font prefix" {
IF the device (press) .eq
THEN {"Xerox/PressFonts/" fontPrefix}
ELSE {"Xerox/XC1-2-2/" fontPrefix} FI
} PrintRule
(
FontFamily) "main font" {
"TimesRoman" family
} ScreenRule
(
FontFamily) "main font" {
"Classic" family
} PrintRule
(
AlternateFontFamily) "other font" {
"Helvetica" family
} ScreenRule
(
AlternateFontFamily) "other font" {
"Modern" family
} PrintRule
(
CodeFont) "code font" {
IF the device (press) .eq THEN {"Tioga" family} ELSE {FontFamily} FI
CodeSize size
} ScreenRule
(
CodeFont) "code font" {
FontFamily
CodeSize size
} PrintRule
(
look.o) "
other font" {
AlternateFontFamily
CaptionSize size
} StyleRule
(
look.p) "
plain font" {
FontFamily
regular face
BasicSize size
} StyleRule
Formats
(
look.m) "math looks for the display" {
"Math" family
10 bp size % only 8 and 10 point screen fonts
} ScreenRule
(
abstract) "for abstract on title page" {
block
the leading topLeading
the leading bottomLeading
} StyleRule
(
abstractbody) "for abstract on title page" {
body
the leading topLeading
the leading bottomLeading
} StyleRule
(
artworkCaption) "applied to inserted artwork captions" {
tight
look.b
look.o
CaptionSize size
} StyleRule
(
authors) "for authors on title page" {
center
singleColumn
% 48.75 pt bottomLeading 65 pt at 25% reduction
% 48.75 pt bottomIndent
0.0 in bottomLeading
0.5 in bottomIndent
AuthorSize size
AuthorSize ExtraLead .add leading
} StyleRule
(
block) "for block paragraphs, no initial indentation" {
docStandard
regular face
% BasicLeading MoreLead 0 topLeadingGlue
BreakSize MoreLead 0 topLeadingGlue
(English) hyphenation
justified lineFormatting
flushLeft lastLineFormatting
} StyleRule
(
caption) "for figure captions" {
block
bold face
BasicIncrement smaller size
BasicIncrement smaller leading
the leading 6 pt .add topLeading
the leading bottomLeading
} StyleRule
(
copyrightBlock) "for supplied copyright hole" {
docStandard
% 96 pt topLeading
% 96 pt topIndent
% copyright box is 96 pt high = 128 pt at 25% reduction
1.15 in topLeading
1.15 in topIndent
} StyleRule
(
display2) "like display but no indentation" {
block
(No) hyphenation
MoreLead bigger topLeading
MoreLead bigger bottomLeading
% ParaIndent bigger leftIndent
} StyleRule
(
head1) "for chapter headings" {
docStandard
AlternateFontFamily
bold face
% LargeSize size
% LargeSize BasicIncrement .add leading
% TripleBreak BasicSize MoreLead topLeadingGlue
% BreakSize BasicSize MoreLead bottomLeadingGlue
SectionSize size
BasicSize MoreLead .add leading
BreakPlus BasicSize MoreLead topLeadingGlue
1.25 in keep
2 column
} StyleRule
(
head2) "for major section headings" {
docStandard
AlternateFontFamily
bold face
SectionSize size
BasicSize MoreLead .add leading
BreakPlus BasicSize MoreLead topLeadingGlue
% BreakSize BasicSize MoreLead bottomLeadingGlue
50 pageBreakAfterLastLinePenalty
0.0 in bottomLeading
% the bottomLeading keep
% BasicSize bigger keep BasicSize bigger keep
0.75 in keep
} StyleRule
(
head3) "for minor section headings" {
docStandard
AlternateFontFamily
italic face
BasicSize MoreLead .add leading
BreakPlus BasicSize MoreLead topLeadingGlue
BreakSize BasicSize MoreLead bottomLeadingGlue
25 pageBreakAfterLastLinePenalty
the bottomLeading keep
BasicSize bigger keep BasicSize bigger keep
} StyleRule
(
head4) "for run-in section headings" {
block
AlternateFontFamily
BreakPlus BasicSize MoreLead topLeadingGlue
the bottomLeading keep
BasicSize bigger keep
} StyleRule
(
horizontalrule) "for rules (solid lines) used to separate things" {
docStandard
6 pt leading
6 pt topLeading
9 pt topIndent
6 pt bottomLeading
0 em firstIndent
0 em restIndent
justified lastLineFormatting
all underlining
} StyleRule
(
hungOverItem) "for definitions, etc." {
body
0 leftIndent
2 in restIndent
LooseLeading ExtraLead 0 topLeadingGlue
flushLeft lineFormatting
flushLeft lastLineFormatting
} StyleRule
(
keywords) "for the keywords after the abstract" {
block
} StyleRule
(
reference) "an item in a reference list" {
block
(No) hyphenation
flushLeft lineFormatting
flushLeft lastLineFormatting
% BasicIncrement smaller size
the size BasicIncrement .add topLeading
the size BasicIncrement .add bottomLeading
the size BasicIncrement .add leading
5 en restIndent
the restIndent tabStops
} StyleRule
(
item) "for lists of items." {
block
BasicSize 3 .mul bigger restIndent
the restIndent tabStops
% LooseLeading ExtraLead 0 topLeadingGlue
} StyleRule
(
root) "default format for root nodes" {
cedar.root
} ScreenRule
(
root) "default format for root nodes" {
9.5 bp basicSize
9.5 bp codeSize
cedar.root
8.5 in pageWidth
11.0 in pageLength
0.7 in topMargin % a little less than 0.75 because the DocuTech shifts down
0.3 in bottomMargin % a little more than 0.75 because the DocuTech shifts down
% 27 pt headerMargin
0.5 in footerMargin
% 6 pt footerMargin
0 pt headerMargin
3.33 in lineLength
% 0.34 in columnGap -- must be defined above as a global variable
0.825 in leftMargin % a little more than 0.75 because the DocuTech shifts left
0.675 in rightMargin % a little less than 0.75 because the DocuTech shifts left
0 leftIndent
0 rightIndent
%% 999999 firstHeaders % need headers now
1 firstFolio
999 firstVisibleFolio
2 column
} PrintRule
(
singleColumn) "for single full-page-width nodes" {
7.0 in lineLength
1 column
} StyleRule
(
subtitle) "for subtitle nodes" {
title
BasicIncrement smaller size
} StyleRule
(
title) "for title nodes" {
titleFormat
18 bp size % to avoid font substitution on screen
} ScreenRule
(
title) "for title nodes" {
titleFormat
} PrintRule
(
titleFormat) "for title nodes" {
head
AlternateFontFamily
bold face
DoubleIncrement bigger size
DoubleBreak leading
% 54 pt topLeading 72 pt at 25% reduction
% 54 pt topIndent
0.375 in topLeading
0.375 in topIndent
% QuadBreak bottomLeading
0.45 in bottomLeading
singleColumn
0 firstIndent
0 restIndent
centered lineFormatting
centered lastLineFormatting
144 pt keep
} StyleRule
(
standard) "xxxx" {
cedar.standard
2 column
} StyleRule
EndStyle