home *** CD-ROM | disk | FTP | other *** search
/ Lighthouse Design Suite / LIGHTHOUSE.mdf / FrameMaker_3.2 / FrameDocs / Sample.framemml < prev    next >
Text File  |  1994-07-07  |  3KB  |  72 lines

  1. <MML 1.00 A sample mml file>
  2.  
  3. <Comment *** Include the font, paragraph, and document definitions from another
  4.              file.  By keeping the formats in different files than the
  5.              document text, all documents can be assigned a new format by
  6.              just changing one file:
  7. >
  8. <Comment Include formats in Formats.mml>
  9. <Comment On the NeXT computer, it's Formats.framemml
  10. >
  11. <Include "Formats.framemml">
  12.  
  13. <Comment *** Define a few macros just to show how it is done.  Would normally
  14.      put such standard macros in an include file:
  15. >
  16. <!DefineMacro         if "<Italic>">
  17. <!DefineMacro         pf "<Plain>" >
  18. <!DefineMacro         bf "<Bold>"  >
  19.  
  20. <Comment *** Set up Headers and Footers. The next line sets the font.>
  21. <HeaderFont <fhf>>
  22. <RightHeader         "Maker Markup Language Specification">
  23. <LeftFooter         "Second Draft">
  24. <RightFooter         "Page #">
  25.  
  26. <Comment *** Start of Document Text ***>
  27. <Title>
  28. Maker Markup Language Specification
  29. <Section>
  30. Introduction
  31. <Body>
  32. Maker Markup Language (MML) is used to create formatted FrameMaker 
  33. documents from a text file. MML allows access to many FrameMaker features.
  34.  
  35. <Comment *** The following Body paragraph contains an anchored frame.
  36.     The AFrame statement is equivalent to a MIF Frame
  37.     statement. (For a detailed description, see MIF Reference.)
  38.     Inside the frame is a star. We just show this here
  39.     so you can see how it is done.
  40.  >
  41. MML allows formatted documents to be created using both a <if>GENCODE 
  42. <pf>style of markup, in which document format and content are separate 
  43. notions,<AFrame <BRect 0 0 4 2> <FrameType Below>
  44.   <Polygon
  45.    <Pen 0> <PenWidth `1.0'> <Fill 6> <Inverted No >
  46.    <NumPoints 10>
  47.    <Point  2.03" 0.29"> <Point  2.19" 0.83"> <Point  2.76" 0.83">
  48.    <Point  2.28" 1.17"> <Point  2.49" 1.71"> <Point  2.03" 1.36">
  49.    <Point  1.56" 1.71"> <Point  1.76" 1.15"> <Point  1.28" 0.83">
  50.    <Point  1.86" 0.83">
  51.   > # end of Polygon
  52. > and a formatting style of markup, in which actual formatting 
  53. specifications are intermingled with the document text.
  54.  
  55. This document contains the following sections:
  56. <BulletItem>
  57. Instructions for creating MML documents
  58.  
  59. Overview of MML file format and syntax
  60.  
  61. Description of each MML Statement
  62.  
  63. Sample MML file
  64. <Section>
  65. Creating and Using MML Documents
  66. <Body>
  67. An MML document is a text file containing MML statements,  text broken up 
  68. into paragraphs. It can be created using any text editor. 
  69. It can also be created using Frame Maker: when 
  70. saving the document, specify Text Only in the Save dialog box.
  71. <Comment *** Would be followed by additional such lines>
  72.