In this section you'll find what you'll need for a minimalistic linuxdoc dtd conform document. It's intended to give a first touch. Skip this section, if you already now the principles.
The steps you have to do to create a nice linuxdoc document and map it to the form you need are:
start.sgml
.sgmlcheck start.sgml
.
The error messages of sgmlcheck
will give you a hint about the type of error and also line and column where it occurred.
. Run the checker again until no more errors occur.
type |
to produce |
sgml2html start.sgml |
Hypertext markup language for web browsers |
sgml2lyx start.sgml |
Lyx or KLyx wysiwym textformat |
sgml2info start.sgml |
Info page for UN*X info |
sgml2latex start.sgml |
DVI output |
sgml2latex --output=tex start.sgml |
pure tex output |
sgml2latex --output=ps start.sgml |
postscript output |
sgml2rtf start.sgml |
rich text format |
sgml2txt start.sgml |
pure text |
We start with a simple document (the numbers and colon in the beginning of the line are for explanation, don't type it!):
1: <!doctype linuxdoc system> 2: <notes> 3: <title>A Small Linuxdoc Example</title> 4: <p>Hello <em>world</em>.</p> 5: <p><bf>Here</bf> we are.</p> 6: </notes>
Now we take a look at the single lines:
<notes>
tag forming a note, wich is indicating a simple unstructured document.<title>
tag.<p>
tag, containing the word world
wich is inline emphasized by the <em>
tag.<bf>
tag.The same example may be written a little bit shorter, by leaving out tags which are placed automatically by the parser, and by using shortened tags:
1: <!doctype linuxdoc system> 2: <notes> 3: <title>A Small Linuxdoc Example 4: <p>Hello <em/world/. 5: 6: <bf/Here/ we are. 7: </notes>
Now we look at the single lines again:
p
tag in the next line is implicitely closing it./
. The paragraph is not explicitly closed in this line.Maybe now it's a little bit more clear, who you have to work with tags.