Include file: ChapterFormats.mml
The following include file contains a <!DefineTag> statement for each paragraph format in the Chapter template:
<MML> <Comment File: ChapterFormats.mml> <Comment Include file for Chapter template>Document content file: SampleChapter.mml
<Comment Define all paragraph tags in Report2> <!DefineTag 1Heading> <!DefineTag 2Heading> <!DefineTag Body> <!DefineTag Bullet> <!DefineTag CBullet> <!DefineTag Chapter> <!DefineTag CStep> <!DefineTag Equation> <!DefineTag ETable> <!DefineTag Extract> <!DefineTag Figure> <!DefineTag FirstBody> <!DefineTag Footnote> <!DefineTag HTable> <!DefineTag Step> <!DefineTag Table>
<MML> <Comment "File: SampleChapter.mml. Uses Chapter template">
<Comment "Include formats in ChapterFormats.mml"> <Include "ChapterFormats.mml">
<Comment "Report Body">
<Chapter> Report on the San Francisco Earthquake of 1906
<FirstBody> Ridebis, et licet rideas. Ego ille quem nosti apros et quidem pulcherrimos cepi. Ipse? inquis. Ipse; non tamen ut omnino ab inertia mea et quete discederem.
<Body> Ad retia sedebam: erat in proximo non venabulum aut lancea, sed stilus et pugilares. <1Heading>
The quake came Wednesday morning
<FirstBody> Mirum est ut animus agitatione motuque corporis excitetut. Iam undique silvae et solitudo ipsumque illud silentium quod venationi datur magna cogitationis incitamenta sunt. Proinde cum venabere, licebit, auctore me, ut panarium et lagunculam sic etiam pugillares feras. Experieris non Dianam magis montibus quam Minervam inerare. Vale.
<2Heading> The Flames Followed Soon After
<FirstBody> Ad retia sedebam: erat in proximo non venabulum aut lancea, sed stilus et pugilares: meditabar aliquid enotabamque, ut, si manus vacuas, plenas tamen ceras reportarem. Non est quod contemnas hoc studendi genus.
Include file: document format information
The following include file, tformats.mml, contains formatting information:
<MML 2.00 - Formats3.mml Sample standard font, paragraph, and document formats> <Comment Various includes...> <FontInclude font.mif> <PgfInclude pgf.mif> <RuleInclude rule.mif> <TblInclude tbl.mif> <VarInclude var.mif> <XRefInclude xref.mif> <Comment *** Define fonts for Title, Section, Body, Headers and Footers. Most of the defaults are good, so we just specify family, size, and style. ``ft'' stands for ``font for Titles'', ``fs'' is ``font for sections,'' etc.> <!DefineMacro ft ``<Family Times><pts 18><Bold>''> <!DefineMacro fs ``<Family Times><pts 14><Bold>''> <!DefineMacro fb ``<Family Times><pts 12><Plain>''> <!DefineMacro fhf ``<Family Times><pts 10><Plain>''> <!DefineFont embolden <Bold>> <!DefineFont plainify <Plain>> <!DefineFTag TestFont> <!DefineTag FootNote> <Comment *** Set appropriate font for a Title paragraph and define its format: > <!DefinePar Title <ft> <Alignment Center > <SpaceAfter 12pt> <ForceFont Yes> > <Comment *** set font and define other paragraph formats> <!DefinePar Section <fs> <Alignment Left > <LeftIndent 0.50''> <FirstIndent 0.00''> <RightIndent 0.00''> <Leading 0pt> <SpaceBefore 15pt> <Spac eAfter 9pt> <AutoNumber Yes> <NumberFormat ``S:<n+>.0\t''> <NumberFont ````> <NumAtEnd No > <TabStops <TabStop 0.50''> > > <!DefinePar Body <fb> <Alignment LeftRight > <LeftIndent 0.50''> <FirstIndent 0.50''> <RightIndent 0.00''> <Leading 2pt> <SpaceBefore 10pt> <SpaceAfter 10pt> <WithPrevious No> <WithNext No> <ForceFont Yes> <AutoNumber No > <TabStops> > <!DefinePar BulletItem <Alignment Left > <LeftIndent 0.75''> <FirstIndent 0.50''> <RightIndent 0.00''> <Leading 2pt> <SpaceBefore 0pt> <SpaceAfter 3pt> <ForceFont Yes> <LineSpacing Floating> <Language NoLanguage> <AutoNumber Yes> <NumberFormat ``\xA5 \t''> <NumberFont ````> <NumAtEnd No> <Comment *** \xA5 is the bullet character. \t is a tab character.> <TabStops <TabStop 0.75''> > > <!DefinePar TOCEntry <fb> <Alignment LeftRight > <LeftIndent 0.50'' > <FirstIndent 0.50'' > <RightIndent 0.00'' > <Leading 2 pt > <SpaceBefore 0 pt > <SpaceAfter 2 pt > <AutoNumber No > <TabStops <TabStop 0.825''> <TabStopLeader ``.''> <TabStopType R> <TabStop 4.75''> > > <!DefinePar Code <Family Courier > <pts 10> <Alignment Left > <LeftIndent 0.50''> <FirstIndent 0.50''> <RightIndent 0.00''> <Leading 2pt> <SpaceBefore 5pt> <SpaceAfter 5pt> <WithPrevious Yes> <WithNext Yes> <ForceFont Yes> <AutoNumber No > <TabStops> > <!DefinePar CellHeading <Family Times > <pts 9.5> <bold> <italic> <FirstIndent 0.00''> <LeftIndent 0.00''> <RightIndent 0.00''> <SpaceBefore 0pt> <SpaceAfter 0pt> <Leading 2pt> <LineSpacing Fixed> <BlockSize 1> <Alignment Center > <ColumnTop No> <WithNext No> <WithPrevious No> <Hyphenate No> <Tolerance 2> <Language USEnglish> <AutoNumber No> <NumberFormat ````> <NumberFont ````> <NumAtEnd No> <CellAlignment Middle> <CellMargins 0pt 0pt 0pt 0pt> <CellTMarginFixed No> <CellBMarginFixed No> <CellLMarginFixed No> <CellRMarginFixed No> <ForceFont Yes> <TabStops> > <!DefinePar CellNoDate <Family Times > <pts 10> <bold> <italic> <FirstIndent 0.111''> <LeftIndent 0.111''> <RightIndent 0.0''> <SpaceBefore 0pt> <SpaceAfter 0pt> <Leading 1pt> <LineSpacing Fixed> <BlockSize 1> <Alignment Left > <ColumnTop No> <WithNext No> <WithPrevious No> <Hyphenate No> <Tolerance 2> <Language USEnglish> <AutoNumber No> <NumberFormat ````> <NumberFont ````> <NumAtEnd No> <CellAlignment Middle> <CellMargins 8pt 4pt 0pt 0pt> <CellTMarginFixed No> <CellBMarginFixed No> <CellLMarginFixed No> <CellRMarginFixed No> <ForceFont Yes> <TabStops> > <!DefinePar CellDate <Family Helvetica > <pts 8> <bold> <noitalic> <FirstIndent 0.0''> <LeftIndent 0.0''> <RightIndent 0.0''> <SpaceBefore 0pt> <SpaceAfter 0pt> <Leading 2pt> <LineSpacing Fixed> <BlockSize 1> <Alignment Right> <ColumnTop No> <WithNext No> <WithPrevious No> <Hyphenate No> <Tolerance 2> <Language USEnglish> <AutoNumber Yes> <NumberFormat ``C:<n+>''> <NumberFont ````> <NumAtEnd No> <CellAlignment Top> <CellMargins 0pt 4pt 0pt 0pt> <CellTMarginFixed No> <CellBMarginFixed No> <CellLMarginFixed No> <CellRMarginFixed No> <ForceFont Yes> <TabStops> > <!DefinePar CalEntry <Family Helvetica > <pts 7> <italic> <nobold> <FirstIndent 0.0''> <LeftIndent 0.0''> <RightIndent 0.0''> <SpaceBefore 0pt> <SpaceAfter 0pt> <Leading 2pt> <LineSpacing Fixed> <BlockSize 1> <Alignment Center> <ColumnTop No> <WithNext No> <WithPrevious No> <Hyphenate No> <Tolerance 2> <Language USEnglish> <AutoNumber No> <NumberFormat ````> <NumberFont ````> <NumAtEnd No> <CellAlignment Middle> <CellMargins 4pt 4pt 0pt 0pt> <CellTMarginFixed No> <CellBMarginFixed No> <CellLMarginFixed No> <CellRMarginFixed No> <ForceFont Yes> <TabStops> > <!DefinePar TableTitle <Family Times > <pts 18> <italic> <nobold> <FirstIndent 0.50''> <LeftIndent 0.50''> <RightIndent 0.50''> <SpaceBefore 0pt> <SpaceAfter 0pt> <Leading 2pt> <LineSpacing Fixed> <BlockSize 1> <Alignment Left > <ColumnTop No> <WithNext No> <WithPrevious No> <Hyphenate Yes> <Tolerance 2> <Language USEnglish> <AutoNumber Yes> <NumberFormat ``< =0>''> <NumberFont ````> <NumAtEnd No> <CellAlignment Top> <CellMargins 0pt 0pt 0pt 0pt> <CellTMarginFixed No> <CellBMarginFixed No> <CellLMarginFixed No> <CellRMarginFixed No> <ForceFont Yes> <TabStops> > <!DefineTag TestPgf> <!DefineRTag Thin> <!DefineRTag Medium> <!DefineRTag Double> <!DefineRTag Thick> <!DefineRTag VeryThin> <!DefineRule TestRule <RulePenWidth 1.0 pt> <RuleGap 0.0 pt> <RuleSeparation 3> <RulePen 0> <RuleLines 1> > <!DefineTbl Calendar <TblWidth 4.5''> <TCellMargins 0.0 pt 0.0 pt 4.0 pt 5.0 pt> <TLeftIndent 0.0''> <TRightIndent 0.0''> <TAlignment Right> <TPlacement Anywhere> <TSpBefore 8.0 pt> <TSpAfter 0.0 pt> <TBlockSize 1> <THFFill 15> <THFSeparation 0> <TBodyFill 15> <TBodySeparation 0> <TShadeByColumn No> <TShadePeriod 4> <TXFill 15> <TXSeparation 0> <TAltShadePeriod 0> <TLRuling ``Thin''> <TBRuling ``Thin''> <TRRuling ``Thin''> <TTRuling ``Thin''> <TColumnRuling ``Thin''> <TXColumnRuling ``Thin''> <TBodyRowRuling ``Thin''> <TXRowRuling ``Thin''> <THFRowRuling ``Thin''> <TSeparatorRuling ``Thin''> <TXColumnNum 1> <TRulingPeriod 4> <TLastBRuling No> <TTitlePlacement InHeader> <TblTitle TableTitle <Bold> <AutoNumber No> <NumberFormat ````> <NumberFont ````> <NumAtEnd No> > <TTitleGap 8.0 pt> <TInitNumColumns 7> <TInitNumHRows 1> <TInitNumBodyRows 5> <TInitNumFRows 0> <TNumByColumn No> <!DefineCol 0 <ColumnWidthP 1> <ColumnH CellHeading <overline>> <ColumnBody CellDate> <ColumnF CellNoDate> > <!DefineCol 1 <ColumnWidthP 1> <ColumnH CellHeading> <ColumnBody CellDate> <ColumnF CellNoDate> > <!DefineCol 2 <ColumnWidthP 1> <ColumnH CellHeading> <ColumnBody CellDate> <ColumnF CellNoDate> > <!DefineCol 3 <ColumnWidthP 1> <ColumnH CellHeading> <ColumnBody CellDate> <ColumnF CellNoDate> > <!DefineCol 4 <ColumnWidthP 1> <ColumnH CellHeading> <ColumnBody CellDate> <ColumnF CellNoDate> > <!DefineCol 5 <ColumnWidthP 1> <ColumnH CellHeading> <ColumnBody CellDate> <ColumnF CellNoDate> > <!DefineCol 6 <ColumnWidthP 1> <ColumnH CellHeading> <ColumnBody CellDate> <ColumnF CellNoDate> > > <!DefineVar <VariableName \QTestVarII'> <VariableDef \Q<TestFont\\>Another test variable...<Default \\xa6 Font\\>'> > <!DefineXRef <XRefName \QTOCEntry'> <XRefDef \Q<$paranum\\>\\t<$paratext\\>\\t<$pagenum\\>'> > <Comment *** Document Layout descriptions. Most of the default settings are good. > <Pagewidth 7.00''> <PageHeight 10.00''> <TopMargin 0.75''> <BottomMargin 0.75''> <LeftMargin 0.50''> <RightMargin 0.50''> <HeaderTopMargin 0.40''> <HeaderBottomMargin 0.46''> <HeaderLeftMargin 1.00''> <HeaderRightMargin 1.00''>Include file: document information
<BeginTable 4> <TFormat Calendar> <TblWidth 4.5''> <TNumColumns 7> <TBeginTitle> <BeginFNotes> <FNoteDef 110> <FootNote> This is a Calendar for the Month of July. <EndFNotes> <TableTitle> <pts 18.0><Italic>July 1992<FNote 110> <TEndTitle> <TBeginHeader> <TBeginRow> <TRMaxHeight 14.0''> <TRHeight 0.26389''> <Cell> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <CellAffectsColumnWidth No> <BeginFNotes> <EndFNotes> <CellHeading>Sunday<Cell> <BeginFNotes> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <EndFNotes> <CellHeading>Monday<Cell> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <BeginFNotes> <EndFNotes> <CellHeading> Tuesday <Cell> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <BeginFNotes> <EndFNotes> <CellHeading> Wednesday <Cell> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <BeginFNotes> <EndFNotes> <CellHeading> Thursday <Cell> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <BeginFNotes> <EndFNotes> <CellHeading> Friday <Cell> <CellLRuling None> <CellRRuling None> <CellBRuling Thin> <CellTRuling Thin> <BeginFNotes> <EndFNotes> <CellHeading> Saturday <TBeginBody> <TBeginRow> <TRMinHeight 0.5''> <TRMaxHeight 5.0''> <TRHeight 0.5''> <Cell> <CellNoDate> <Cell> <CellNoDate> <Cell> <CellNoDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <TBeginRow> <TRMinHeight 0.5''> <TRMaxHeight 5.0''> <TRHeight 0.5''> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <TBeginRow> <TRMinHeight 0.5''> <TRMaxHeight 5.0''> <TRHeight 0.5''> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <TBeginRow> <TRMinHeight 0.5''> <TRMaxHeight 5.0''> <TRHeight 0.5''> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellAngle 180> <CellDate> <Tab> <CalEntry> Upside Down Day! <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <TBeginRow> <TRMinHeight 0.5''> <TRMaxHeight 5.0''> <TRHeight 0.5''> <Cell> <CellFill 5> <BeginFNotes> <FNoteDef 726> <FootNote> Cameron's Birthday <EndFNotes> <CellDate> <Tab> <CalEntry> birthday! <FNote 726> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellDate> <Cell> <CellNoDate> <EndTable>Document content file
<MML 2.00 -- Sample.mml A sample mml file>
<Comment *** Include the font, paragraph, a document definitions from another file. By
keeping the formats in different files than the document text, all documents
can be assigned a new format by just changing one file:
>
<Include ``tformats.mml''>
<Comment *** Define a few macros just to show how it is done. Would normally
put such standard macros in an include file:
>
<!DefineMacro if ``<Italic>''>
<!DefineMacro pf ``<Plain>'' >
<!DefineMacro bf ``<Bold>'' >
<Comment *** Set up Headers and Footers. The next line sets the font.>
<HeaderFont <fhf>>
<RightHeader ``Maker Markup Language Specification''>
<LeftFooter ``Third Draft''>
<RightFooter ``Page #''>
<Comment *** Start of Document Text ***>
<TextFlow 0>
<BeginFNotes>
<FNoteDef 100>
<FootNote>
This is the first test of footnotes.
<par>
This footnote (still #1 on the first page) is made up of more than one paragraph.
<FNoteDef 101>
<FootNote>
This footnote should appear at the bottom of the third page.
<EndFNotes>
<Title>
Maker Markup Language Specification
<Section>
<NumberFormat ``<n=0>.0\t''>
<Marker <MType 9> <MText \Q0'>>Table of Contents
<TOCEntry>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q0'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q1'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q2'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q3'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q4'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q5'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q6'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q7'> <XRefSrcFile \Q'>>
<XRef <XRefName \QTOCEntry'> <XRefSrcText \Q8'> <XRefSrcFile \Q'>>
<Section>
<Marker <MType 9> <MText \Q1'>>Introduction
<Body>
Maker Markup Language (MML) is used to create formatted FrameMaker documents from a
standard (nongraphical) text file. MML allows access to many, but not all, of the
features of FrameMaker.<FNote 100>
<Section>
<Marker <MType 9> <MText \Q2'>>MML font styles
<BulletItem>
<italic>This line is italic<noitalic>
<oblique>(or oblique)<nooblique>
<bold>This line is bold.<nobold>
<underline>This line is underlined.<nounderline>
<strike>This line is struck out.<nostrike>
<overline>This line is overlined.<nooverline>
<changebar>This line has a changebar.<nochangebar>
<Section>
<Marker <MType 9> <MText \Q3'>><TestFont>Cross References
<TestPgf>
<Marker <MType 9>
<MText \Qtest'>
><XRef <XRefName \QTestXRef'>
<XRefSrcText \Qtest'>
<XRefSrcFile \Q'>
>
<Section>
<Marker <MType 9> <MText \Q4'>>Frame Math now accessible in MML
<Body>
<AutoNumber On>
<NumberFormat ``M:(<n+>)''>
<NumberFont ````>
<NumAtEnd Yes>
<AFrame
<Pen 15>
<Fill 7>
<PenWidth 1.0 pt>
<Separation 0>
<BRect 0.6'' 4.09715'' 1.44363'' 0.38889''>
<FrameType Inline >
<NSOffset 0.0''>
<BLOffset -0.16319''>
<AnchorAlign Center >
<Cropped No >
<Math
<BRect 0.03686'' 0.04439'' 1.3699'' 0.30264''>
<MathFullForm \Qequal[int[times[char[u], function[optotal[char[x]],
char[v]],diff[char[x]]]], plus[times[char[u], char[v]], minus[int[times[char[v],
function[optotal[char[x]], char[u]], diff[char[x]]]]]]]'> # end of MathFullForm
<MathOrigin 0.72181'' 0.22569''>
<MathAlignment Center >
<MathSize MathMedium >
<Angle 0>
>
>
<Section>
<ColumnTop Yes>
<Marker <MType 9> <MText \Q5'>>Hard Spacing
<Code>
This is a test of hard spacing:
<HardSpaces On>local IntT scan_name_to_buffer() <HardReturn>
{ <HardReturn>
IntT len; <HardReturn>
<HardReturn>
len = perhaps_scan_name_to_buffer(); <HardReturn>
if (len \<= 1) <HardReturn>
{ <HardReturn>
PathT msg; <HardReturn>
<HardReturn>
start_error(); <HardReturn>
SrGet(MMLStrings, MMLNullName, msg); <HardReturn>
fprintf(errput, msg); <HardReturn>
end_error(); <HardReturn>
buffer[0] = 255; <HardReturn>
buffer[1] = 0; <HardReturn>
len = 2; /* Bogus id */ <HardReturn>
} <HardReturn>
return (len); <HardReturn>
} <HardReturn>
<HardSpaces Off>
<Comment *** The following Body paragraph contains an anchored frame. The
AFrame statement is equivalent to a MIF Frame statement (for a detailed
description,see the Maker Interchange Format (MIF) Reference Manual). Inside the
frame is a star. We just show this here so you can see how it is done.
>
<Section>
<Marker <MType 9> <MText \Q6'>>Anchored Frames and Graphics
<Body>
MML allows formatted documents to be created using both a <if>GENCODE <pf>style of
markup, in which document format and content are separate notions,<AFrame
<BRect 0 0 4 3.25>
<Polygon
<Pen 0>
<PenWidth 1.0 pt>
<Fill 6>
<Inverted No >
<NumPoints 10>
<Point 2.03'' 0.29''> <Point 2.19'' 0.83''> <Point 2.76'' 0.83''>
<Point 2.28'' 1.17''> <Point 2.49'' 1.71''> <Point 2.03'' 1.36''>
<Point 1.56'' 1.71''> <Point 1.76'' 1.15''> <Point 1.28'' 0.83''>
<Point 1.86'' 0.83''>
> # end of Polygon
<TextRect
<ID 30000>
<Pen 0>
<Fill 5>
<BRect .125 2.125 3.75 1.0>
>
> and a formatting style of markup, in which actual formatting specifications are intermingled
with the document text.
<Comment *** Change text flow *** >
<TextFlow 30000>
<TFTag ````>
<TFAutoConnect no>
<TFPostScript no>
<TFSynchronized no>
<TFLineSpacing 0.0pt>
<TFMinHangHeight 0.0pt>
<TFFeather no>
<BeginFNotes>
<FNoteDef 102>
<FootNote>
This footnote should be in the box as well.
<EndFNotes>
<Title>
<Leading 0.0pt>
<SpaceBefore 0.0pt>
<SpaceAfter 0.0pt>
<par>
<Comment <HardReturn>>
<if>This text should be in the box.<pf><FNote 102>
<Comment *** Back to main text flow *** >
<TextFlow 0>
This document contains the following sections:
<BulletItem>
Instructions for creating MML documents
Overview of MML file format and syntax
Description of each MML Statement
Sample MML file
A test footnote<FNote 101>
<Include ``calendar.mml''>
<Section>
<Marker <MType 9> <MText \Q7'>>FrameMaker Tables
<ATable 4>
<Section>
<Marker <MType 9> <MText \Q8'>>Creating and Using MML Documents
<Body>
An MML document is a standard ASCII text file containing MML statements,
text broken up into paragraphs, and having ``.mml'' as the filename suffix.
It can be created using any standard text editor, such as vi or emacs.
It can also be created using Frame Maker 1.0 as a simple text editor: when
saving the document, specify Text Only in the Save dialog box.
<Comment *** Would be followed by additional such lines>