Node:chap 1, Next:, Previous:intro, Up:Top



General structure for a Sgmltexi source file

The typical Sgmltexi source start like this:

     <!DOCTYPE Sgmltexi PUBLIC "-//GNU//DTD Sgmltexi//EN">
     

It can be useful to define also some internal entities, like this:

     <!DOCTYPE Sgmltexi PUBLIC "-//GNU//DTD Sgmltexi//EN"
     [
     <!ENTITY EDITION   "2003.10.11" >
     ...
     ...
     ]>
     

All the document is enclosed inside the element sgmltexi. Inside, there must be an head element, there may be an intro element, there must be a body element, and there may be an appendix element. The space after the appendix element may be occupied by some indexes (will be shown later).

     <sgmltexi>
     <head>
     ...
     </head>
     <intro>
     ...
     </intro>
     <body>
     ...
     </body>
     <appendix>
     ...
     </appendix>
     </sgmltexi>
     

The element sgmltexi has three possible attribute: lang, charset and spacing.

lang Attribute
This is a two letter code defining the text language. The use of this attribute generates a @documentlanguage command.

charset Attribute
This is the input character set, like it can be done with the Texinfo @documentencoding command. It is obscured by the --input-encoding option, that take precedence and generate a pure ISO 646 Texinfo output.

spacing Attribute
This is a deprecated feature that help controlling the spacing after sentences. It is deprecated because this action should be controlled with the language specific configuration. This attribute is here only as a last resort. Valid values are: normal, french and uniform. Selecting french or uniform it is introduced the command @frenchspacing.

     <sgmltexi lang="it" charset="ISO-8859-1" spacing="uniform">