<?xml version="1.0" encoding="UTF-8"?>
<text>
 <!--    <pagesize>
        <height>15cm</height>
        <width>15cm</width>
    </pagesize>
 -->
    <author>Thomas Zastrow</author>
    <affiliation>University Tübingen</affiliation>
    
    <adress>
        Wilhelmstr. 19<br/>
        72074 Tübingen<br/>
        post@thomas-zastrow.de<br/>
        www.thomas-zastrow.de<br/>
        01624228029<br/>
    </adress>
    
    
    
    <maintitle>The st-Manual - Version 0.23</maintitle>
    <!--<basefont>LinLibertineRE</basefont>-->
    <basefont>sans-serif</basefont>
    <headerfont>sans-serif</headerfont>
    <basefontsize>12pt</basefontsize>
    <titlepage/>
    <toc/>
    <pagenumber/>
    <highlightcolor>lightgrey</highlightcolor>
    <maketitle/>
    <bookmarks/>
    <!-- Not used in this document: -->
    <!--<highlightheaders/>-->
    <!-- <twocolumns/> -->
    
    
    
    
    
    
<content>
    <h1 style="grey">Introduction</h1>
    <p>
        The <b>st</b>-project is a simple XSL-stylesheet for converting some texts into PDF-files. 
        It  tooks a structured XML-file as input and produces with the help of a <i>Formatting Objects Processor</i> 
        a PDF-file. The <b>st</b>-stylesheet tries to support the most common used elements of modern text formatting.
        <br/>
        It was the first time that I got in touch with FO and I had a lot of fun developing <b>st</b>. 
        That it can be used for several arts of text is shown on the examples section on the webpage<fn>http://www.thomas-zastrow.de/st/</fn>.
         Certainly, there are still a lot things to do. 
        <br/>
        Please feel free to play around with the script. If you have more ideas, critics, suggestions or whatever, don't 
        hesitate to contact me. It would be glad if somebody else will help me with the further development.
    </p>
</content>

<content>
    <h1>Principles</h1>
    <p>
        The input for the <b>st</b>-stylesheet is a simple XML-format. Where it is possible, the syntax of this XML-dialect 
        is just HTML. For example, you can add a linebreak to your text with the XML-tag &lt;br /&gt;. It was 
        not always possible to use HTML-syntax: in some cases, the specific requirements of scientific texts can not be 
        represented with pure HTML-codes. In this cases, new tags are implemented.
        <br/>
        The script will support two modes:
        <np/>
        <ul>
        <li>A simple mode: this mode contains just XML-elements without any attributes. For example, if you want 
        to make something green, around it with the tag &lt;green&gt;</li>
        <li>
         An advanced mode: The tags in the XML-file can also contain attributes. With the use of them, it will be 
         possible to take more control over the layout. For example, a &lt;color&gt; - tag will have an attribute 
         <code>value</code> which can contain every RGB-value.            
        </li>            
        </ul>
        <np/>
       
       There is no strict separation between the simple and the advanced mode. In general, you can say that the tags in simple mode, 
       without attributes, are producing basic elements. The attributes are then used to specify more detailed properties like colors, 
       font sizes and so on.
    </p>
</content>
    
<content>
    <h1>Basics</h1>
    <p>
        From the text to the finishing PDF-file, it's a two-way process. At first, with the help of a XSL-processor 
        and the st.xsl-file, the XML-file is converted into a FO-file. Than the FO-file is transformed to a 
        PDF-file, using a FO-processor.
        <br/>
        
        <img caption="From the XML file to a PDF file" align="center">/home/tom/a-daten/st/doc/graphic1.svg</img>
         <br/>
        
        <np/>
        <exmark>
            Beginning with version 0.23, the developement of the st scripts concentrates completly on the Apache FOP as 
            FO processor. There are some functions which are only working with Apache FOP, for example the integration 
            of MathML formulars. You will need version 0.94 or above of the Apache FOP, former versions will not work!
            <np/>
            Most functions will still work with other processors - but I can't give a guarantee, also because I didn't test the 
            st scripts with other processors.
            
        </exmark>
        <np/>
        
        It is recommended that you use the <i>Xalan-XSL-processor</i><fn>http://xml.apache.org/xalan-j/</fn> and
        <i>FOP</i>, the FO-processor of the Apache-project<fn>http://xmlgraphics.apache.org/fop/</fn>. 
        <np/>
        If you use the Apache FOP - and this is highly recommended! - you don't need any separate software 
        because the Apache FOP has everything on board. Just make sure that Apache FOP works and then use the 
        fop - executable in the root-directory of FOP with this arguments:
        <np/>
        <code>
            fop -xml YourXMLFile.xml -xsl st.xsl -pdf YourPDF.pdf
        </code>
        <np/>
        This command produces directly a PDF-file. If you want to take a look at the FO-file, use:
        <np/>
        <code>
            fop -xml YourXMLFile.xml -xsl st.xsl -foout YourFOFile.fo            
        </code>
        
        </p>
</content>
    
<content>
<h1>The XML-File</h1>
    <p>
        The XML-file is just well-formed: At the moment, it is lacking a DTD, XML-schema or something 
        for validating. While the development of the st-stylesheet is going on, it seems not to be helpful 
        to validate the XML-file. When the project reaches a definite status, it would be also useful to 
        validate it.
    </p>
</content>    
    
<content>
<h2>The XML-Frame</h2>
    <p>
        As every XML-file, it starts with the line:
        <np/>
        <code>
        &lt;?xml version="1.0" encoding="UTF-8"?&gt;
        </code>        
        <np/>        
        The root-element is named text:        
        <np/>
        <code>
        &lt;text&gt;
            <br/>
        <i>Your content</i>
            <br/>
        &lt;/text&gt;
        </code>
        <np/>
    </p>
</content>
    
        <content>
            <h2>The meta-tags</h2>
            <p>
                With the meta tags, you can specify some general settings of the document.  
                <np/>
                <exmark>At the moment, all of the meta tags are optional. Perhaps this will change in the future.</exmark>
            </p>
            <h3>Font Settings</h3>
            <p>
        
        <ul>
      
            <li>
                <b>&lt;basefont&gt;:</b> this contains the standard-font-family for the document. Possible values: serif, sans-serif, monospace. It depends
                     which fonts are avaulable in your FO-processor.
                 If no basfont is given, the most FO-processors uses a sans-serife font.
            </li>
            <li><b>&lt;color&gt;:</b> defines the standard-color of the document</li>
            <li><b>&lt;highlightcolor&gt;:</b> some elements in the text are highlighted, for example parts of tables, the exp-part 
            of a p-tag, blocks, and, optional, the headers. This defines the color of this highlighting. In this document, it was 
            set to lightgrey.</li>
            <li><b>&lt;highlightheaders&gt;:</b> if this tag is given, also the headers are highlighted in the highlightcolor-color.</li>            
            <li><b>&lt;basefontsize&gt;:</b> the size of the standard-font. Titles are also calculated with this size as basis</li>
            <li><b>&lt;headerfont&gt;:</b> this tag specifies a font which is used insetad of the standard font in headers</li>
            <li><b>&lt;bookmarks&gt;:</b> If this tag is set, the resulting PDF file will contain bookmarks for navigating through the document</li>
        </ul>
                <np/>
                <exmark>In this document, highlightheaders <b>not</b> is set! As <code>highlightcolor</code>, lightgrey is used. 
                    This color is used in tables, blocks, right-side explanations and so on. On the <i>st</i> homepage, there is an overview of all in the Apache FOP possible colors.</exmark>
        <np/>        
            </p>
        </content>
    
    <content>
    <h3>Page Settings</h3>
    <p>
    <ul>
        <li>
            <b>&lt;pagesize&gt;</b>: defines the size of the pages. Nested into pagesize, the tags height and width are taking the values. For example, 
            a page with the size 15 x 15 cm:
            <np/>
            <code>
            &lt;pagesize&gt;<br/>
            &lt;height&gt;15cm&lt;/height&gt;<br/>
            &lt;width&gt;15cm&lt;/width&gt;<br/>
            &lt;/pagesize&gt;<br/>
            </code>
            <np/>
            If no pagesize is defined, DIN-A-4 is used.
            <np/>
        </li>
        <li>
            <b>&lt;author&gt;:</b> contains the author of the text
        </li>            
        <li>
            <b>&lt;maintitle&gt;:</b> the title of your text
        </li>            
        <li><b>&lt;affiliation&gt;</b>: will be displayed on the title page below the autor's name</li>
        <li><b>&lt;adress&gt;</b>: will be displayed in the upper left corner of the title page. All text formattings are allowed</li>
    </ul>
        <np/>
        <exmark>
        Author, title, affiliation and adress are used to build the title-page and the headers on every page.
        </exmark>
        <np/>
        <ul>
            <li><b>&lt;pagenumber&gt;:</b> displays the page-number in the footer of the pages.</li>    
            <li><b>&lt;maketitle&gt;:</b> inserts the title and the author before the text. In contrast to &lt;titlepage&gt;, it is placed before the 
        first &lt;p&gt; - tag, but produces not an own page.</li>
            <li><b>&lt;twocolumns&gt;:</b> if set, the layout will have a two-column layout. Not used in this manual.</li>
        </ul>
        
        
        
        
        </p>
    </content>
    
    
    <content>
        <h3>The Starting Pages</h3>
        <p>
            <ul>
                <li><b>&lt;titlepage&gt;:</b> a page with the author's name and the title</li>
                <li><b>&lt;toc&gt;:</b> a table of content</li>
            </ul>
            
        </p>        
    </content>
    
    
<content>
<h2>The Content</h2>
    <p>
        <exmark>
            <b>Please notice:</b> from version 0.1 to 0.2, the biggest change was the turnaround from p- and content-tags. A p-tag in 
            version 0.1 is now a content-tag in 0.2, and a content tag in 0.1 is now a p tag!
        </exmark>
        <np/>
        The content &lt;content&gt; is the central element of the text. It is the main structure for your text. It has two child-elements: 
        &lt;h*&gt; and &lt;p&gt;. Their can be an arbitrary number of &lt;content&gt;-elements under the text-node.
        <br/>
        The &lt;h*&gt; - element has two functions. First, it's content is the title of the chapter. And second, the * 
        stands for a number between 1 and 4. This is the depth-level of the disposition.
        <br/>
        The p-tags takes the content of a paragraph. There are an arbitrary number of p-tags within the content-tag possible. Here all elements of text-formatting are possible. &lt;p&gt; and &lt;h*&gt; 
        tags are possible everywhere in the document. But just nesting them into the &lt;content&gt; - tag ensures that the structure of the 
        document is intact: so, better use them <i>only</i> within the &lt;content&gt; tag!
        <np/>
        This is an example of a chapter on the highest level (h1):
        <np/>
        <code>
            &lt;content&gt;<br/>
            &lt;h1&gt;Chapter one&lt;/h1&gt;
            <br/>
            &lt;p&gt;This is the text of chapter one.&lt;/p&gt;<br/>
            &lt;/content&gt;
        </code>
        <np/>
        As you can see, the &lt;p&gt;- and &lt;h*&gt;-tags are similiar to the p- and h-tags in HTML.
        <np/>
        There's a special kind of the p-tag. If you add an exp-attribute to it, the content of this attribute is used to add a small 
        column beside the original content with a background in the highlight color:
        <np/>
        <code>
        &lt;p exp="This is an explanation"&gt;<br/>
            The content of p [....]<br/>
            &lt;p&gt;
        </code>
        <np/>
        The result:
        <np/>
        <p exp="This is an explanation">
        The content of content. I'll add some more sensless text to this element so that you can see how the content of the content-tag 
        and the exp-attribute will aligned.
        </p>
        <np/>
        Please notice that it is no problem to nest a p-tag inside of another p-tag.
    </p>
</content>
    
<content>
<h2>Text-Formatting</h2>
    <p>
        Within the p-tag, <b>st</b> supports some kinds of common used text-formatting. Just put these tags 
        around the text you would like to emphasize:
        <np/>
        <ul>
        <li>&lt;i&gt;: <i>italic text</i></li>    
        <li>&lt;b&gt;: <b>bold text</b></li>
         <li>&lt;code&gt;: <code>monospace-font</code></li>   
            <li>&lt;red&gt;, &lt;green&gt; or &lt;blue&gt;: a <red>red</red>, <green>green</green> 
                or <blue>blue</blue> text</li>   
        </ul>
        <np/>
If you need more than these three colors, please use the general color-schema as described in the next section.
<np/>
        With the &lt;quote&gt;-tag, you can ident a text-block:
        <np/>
        <code>
        &lt;quote&gt;
        This text is quoted!
        &lt;/quote&gt;
        </code>
        
            <np/>
            The result:
            <np/>
            <quote>
            This text is quoted!
            </quote>
        
    </p>    
</content>
    
    <content>
        <h2>Special characters</h2>
        <p>
    XML and all the technologies around it are ready to use unicode. This means that it isn't necessary to quote special charcters in 
    a comlicated way - just use an unicode-able texteditor and type as you like.
    <np/>
            Some examples:
            <np/>
            € @ Ää Üü Öö ß  © ¾  ¶ †
            <np/>
            <exmark>Please notice that it depends on the font you are using which special characters are available!</exmark>
        </p>
    </content>
    
    <content>
    <h2>The color-schema</h2>
        <p>
            Additional to the three simple colors defined as red, green and blue, you can define a generic RGB-color in the color-tag:
            <np/>
            
            &lt;color value="rgb(100,100,100)"&gt;Grey Text&lt;/color&gt;
            
            <np/>
            
            This will result in: 
            
            <np/>
            <color value="rgb(100,100,100)">Grey Text </color>
                        
        </p>        
    </content>
    
        <content>
            <h2>Breaks</h2>
            <p>
        If you need an explicit break, there are three possibilities:
        <np/>
        <ul>
            <li>&lt;br/&gt;: same as in HTML, one carriage-return</li>
            <li>&lt;np/&gt;: simulates two carriage-returns which results in a blank line</li>
            <li>&lt;pagebreak/&gt;: break to the next page</li>
        </ul>
        
         <np/>
                
        A line is done as in HTML with &lt;hr / &gt;. If you add an attribute style="dots", the line will be drawn with dots:
        
                <hr style="dots"/>
                <np/>
                Without a style:
                
                <hr/>

                    
            </p>
            
        </content>
    
<content>
    <h2>Lists</h2>
    <p>
        Bullet-lists are as simple as in HTML. &lt;li&gt;-elements are surrounded by &lt;ul&gt;-tags:
        <np/>
        <code>
            &lt;ul&gt;<br/>
            &lt;li&gt;Your item&lt;/li&gt;<br/>
            &lt;li&gt;Another item&lt;/li&gt;<br/>
            &lt;/ul&gt;<br/>
        </code>
        <np/>
        The result:
        <np/>
        <ul>
            <li>Your item</li>
            <li>Another item</li>
        </ul>
        
        <np/>
        Numbered lists are as simple as that. In contrast to HTML, they are also using the &lt;ul&gt;-tag for surrounding the list. 
        But the items are marked with &lt;nli&gt; and not &lt;li&gt;:
        <np/>
        <code>
            &lt;ul&gt;<br/>
            &lt;nli&gt;Item number one&lt;/nli&gt;<br/>
            &lt;nli&gt;The second item&lt;/nli&gt;<br/>
            &lt;/ul&gt;<br/>
        </code>
                
        <np/>
        This results in:
        <np/>
        <ul>
            <nli>Item number one</nli>
            <nli>The second item</nli>            
        </ul>
        
        <np/>
        This schema has the advantage to allow a "mixed mode" of bullet- and numbered-lists:
       <np/>
        <ul>        
            <li>A bullet-item, and within the same list ...</li>        
            <nli>... a numbered item...</nli>
            <li>... again, a bullet-item ....</li>
            <nli>... and a second numbered-item</nli>
        </ul>
        <np/>
        <ul>
            <li>It is also possible to embed a list into another one:
                <ul>
                <li>The first item of the embedded list</li>
                <li>And a second one, also embedded</li>
            </ul></li>
            <li>The second item of the first list</li>
        </ul>
        
    </p>    
</content>
    
<content>
    <h2>Footnotes</h2>
    <p>
     Footnotes are surrounded with a &lt;fn&gt; - tag. Just put them directly on the text where you 
        need a footnote&lt;fn&gt;This is a footnote&lt;/fn&gt;<fn>This is a footnote</fn>.
    </p>
</content>

<content>
    <h2>Images</h2>
    <p>        
     Images are included with the img-tag:
     <np/>
        <code>
            &lt;img&gt;images/logo.jpg&lt;/img&gt;
        </code>
       <np/>
        This includes the image <code>logo.jpg</code>  from the images-directory. It's also 
        possible to use images from other locations on your harddrive, just use the same conventions 
        as in HTML. Also, an image can be loaded over the internet from an URL.
        <np/>
        <img align="left" caption="The st-logo, align=left">/home/tom/a-daten/st/doc/images/logo.jpg</img>
       <np/>
        
        The caption-attribute takes a title for the page, the align-attribute aligns the image. If you specify an attribute scale with a %-value, 
        the image will be scaled proportional to that value. If an attribute width is specified, the image will be scaled proportional 
        to that width. For example, with the width-attribute set to the page width minus the left and right border, the image 
        will be scaled over the whole page width.
        <np/>
        <exmark>Be careful: Don't use the attributes scale and width together!</exmark>
        <np/>
             
        With the attribute align, the image can be aligned to left, center or right.
        <np/>
        <img align="center" scale="50%" caption="The st-logo, scaled to 50%, align=center">/home/tom/a-daten/st/doc/images/logo.jpg</img>
        <np/>
        
        When including images into <b>st</b>, there are some things to notice<fn>You can find more information about supported graphic-formats on <br/> http://xmlgraphics.apache.org/fop/0.20.5/graphics.html</fn>:
        <np/>
        <ul>
            <li>Images have to be always a resolution of 72 dpi</li>
            <li>PNGs are not supported without the help of an external library</li>
        </ul>
        
        <np/>
        It's also possible to include SVG-files with the same syntax. The Apache FOP has the Batik-library<fn>http://xmlgraphics.apache.org/batik/</fn> for 
        rendering SVGs included.
    </p>
</content>
    
    
    <content>
        <h2>Borders</h2>
        <p>
            
            A text can have a border with the &lt;border&gt; - Tag:
            
            <np/>
            <code>
            &lt;border&gt;<br/>
            This text-block has a border!<br/>
            &lt;/border&gt;<br/>
            </code>
            
            <np/>
             <border>
                This text-block has a border!
             </border>
                <np/>
            
            The border-tag has also a style tag:
            
            <border  style="solid">
            style="solid"
            </border>
            <np/>
            And a color-tag:
            
            <border  style="solid" color="red">
                style="solid", color="red"
            </border>
            
            <np/>
            There are some special rectangulars: an exclamation- and a question mark. If you use a &lt;exmark&gt; respective 
            a &lt;qumark&gt; - tag, the enclosed text will appear in a box with ! / ? - mark on the left side:
            <np/>
            <exmark>
                Here is something important ...!
            </exmark>
            <np/>
            <qumark color="red">
                And here something questionable ...?
            </qumark>
            
            
        </p>
    </content>
    
    <content>
        <h2>Blocks</h2>
        <p>
            A block can be used to highlight a part of your text, for example code-listings or something else. It has an 
            own title which will <i>not</i> appear in the TOC. The background is grey and it uses an other font.
            <br/>
            Surround a block with the tag &lt;block&gt;. The title is marked with &lt;bh&gt;:
            <np/>
            <code>
            &lt;block&gt;<br/>
                &lt;bh&gt;Block-Headline&lt;/bh&gt;<br/>
                This is a block. You can use everything else in a block, for example a list:<br/>
                &lt;ul&gt;<br/>
                &lt;li&gt;An item&lt;/li&gt;<br/>
                &lt;/ul&gt;<br/>                
                &lt;/block&gt;<br/>
            </code>
            
            <np/>
            This results in:
            <np/>
            
            <block> 
                <bh>Block-Headline</bh>
                This is a block. You can use everything else in a block, for example a list:
                <ul>
                <li>An item</li>
                </ul>
                </block>    
        </p>
    </content>
    
<content>
    <h2>Tables</h2>
    <p>
        
        <exmark>Especially tables are under a permanent developement.  So, it could be that the design of tables can change from 
            day to day!</exmark>
        <np/>
        Tables are working nearly the same as in HTML:
       
        <np/>
        
        The table-tag sorrounds the complete table. Every row has a tr-tag and within the row-tags a td-tag defines a 
        cell. 
        <br/>
            Here are some kinds of attributs are used:
            <np/>
            <ul>
                <li>width="<i>value</i>": The attribute width of the table-tag defines the width of the table.</li>
                <li>style="header": a &lt;tr&gt; - tag can marked as a header with this attribute. The resulting row is formatted as a table-header</li>
                <li>align="left, center or align": within a &lt;td&gt; - tag, this defines the alingment of that cell</li>
                <li>color="<i>value</i>": a table-cell can get an explicit color within the color-tag</li>
                <li>font-size="<i>value</i>": here you can specify a font-size for the table</li>
            </ul>
        <np/>
        In the following example, please notice the style="simple" attribute:
        <np/>
        <code>
            &lt;table width="80%" style="simple" &gt; <br/>
            &lt;tr style="header"&gt;<br/>
            &lt;td align="left"&gt;First&lt;/td&gt;&lt;td align="center"&gt;Second&lt;/td&gt;&lt;td align="right"&gt;Third&lt;/td&gt;<br/>
            &lt;/tr&gt;<br/>
            &lt;tr&gt;<br/>
            &lt;td align="left" &gt;left&lt;/td&gt;&lt;td align="center"&gt;center&lt;/td&gt;&lt;td align="right"&gt;right&lt;/td&gt;<br/>
            &lt;/tr&gt;<br/>
            &lt;tr&gt;<br/>
            &lt;td align="left"&gt;left&lt;/td&gt;&lt;td align="center"&gt;center&lt;/td&gt;&lt;td align="right"&gt;right&lt;/td&gt;<br/>
            &lt;/tr&gt;<br/>
            &lt;tr&gt;<br/>
            &lt;td align="left"&gt;left&lt;/td&gt;&lt;td align="center"&gt;center&lt;/td&gt;&lt;td align="right"&gt;right&lt;/td&gt;<br/>
            &lt;/tr&gt;        <br/>
            &lt;/table&gt;<br/>
        </code>
        <np/>        
        The code above produces such a table:
       
        <np/>
        
        <table width="80%" style="simple" >
            <tr style="header">
                <td align="left">First</td><td align="center">Second</td><td align="right">Third</td>
            </tr>
            <tr>
                <td align="left" >left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>        
        </table>
        
        <np/>
        The table-tag supports some more styles. A table with the style "grit" looks likt that: 
        <np/>
        
        <table width="80%" style="grit"  >
            <tr style="header">
                <td align="left">First</td><td align="center">Second</td><td align="right">Third</td>
            </tr>
            <tr>
                <td align="left" >left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>        
        </table>
        <np/>
        A special property is the alter attribute. When it is set to "true" in the table tag, every second row in the table uses for a better 
        readability another background color:
        <np/>
        <table width="80%" style="grit"  alter="true">
            <tr style="header">
                <td align="left">First</td><td align="center">Second</td><td align="right">Third</td>
            </tr>
            <tr>
                <td align="left" >left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>        
        </table>
        
        <np/>
        Its also possible to embed tables into another table:
        <np/>
        
        <table width="80%" style="grit">
            <tr style="header">
                <td align="left">
                    <table width="80%" style="simple" >
                    <tr style="header">
                        <td align="left">Foo</td>
                    </tr>
                    <tr>
                        <td align="left" >Bar</td>
                    </tr>
    
                    </table>
                </td><td align="center">Second</td><td align="right">Third</td>
            </tr>
            <tr>
                <td align="left" >left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>
            <tr>
                <td align="left">left</td><td align="center">center</td><td align="right">right</td>
            </tr>        
        </table>
                              
               <np/>        
    </p>    
</content>
    
<content>
    <h1>Mathematic Formulars</h1>
    <p>
        
        <exmark>
        The integration of MathML formulars is a special function of the Apache FOP version 0.94, together with the JEuclid library. 
        It will <i>not</i> work with former versions of the FOP! Additionally to the FOP 0.94, you need the JEuclid library installed as 
            Plugin in the FOP.
            <np/>
            Please find more information on JEuclid and how to integrate it into the Apache FOP on the JEuclid Homepage under 
            <a href="http://jeuclid.sourceforge.net/">http://jeuclid.sourceforge.net/</a>
            <np/>
            Here is a very short guide to install JEuclid as FOP plugin:
            <np/>
            <ul>
            <li>Download JEuclid.</li>
                <li>Unzip it.</li>
                <li>Copy jeuclid-core-x.x.x.jar and jeuclid-fop-x.x.x.jar into the lib directory of the FOP.
                    </li>
            </ul>
            
            
        </exmark>
        
        <np/>
        Mathematic formulars in the <a href="http://www.w3.org/Math/">MathML</a> format can be used within the st scripts. 
        Because MathML formulars are sometimes very complex, it is possible to integrate them in two ways:
        <np/>
        
        <ul>
            <nli>
                Directly in the document. Just surround the MathML code with the tag mathml:
                <np/>
                <code>
                &lt;mathml&gt;
                &lt;/mathml&gt;
                </code>
                <np/>
            </nli>
            <nli>
                The MathML code can resist in an external file. Just add the file in a src attribute to the mathml tag:
                <np/>
                <code>
                &lt;mathml src="mathml.mml" /&gt;
                </code>
                <np/>
                Here are different file formats possible: the MathML format, but also the OpenOffice formular format odf! So it is possible 
                to edit the formulars in OpenOffice graphicaly, export them to odf and insert into your XML file.
            </nli>
            
        </ul>
        <np/>
        Here is an example. The formular is integrated as an OpenOffice formular in the file <code>entropy.odf</code>:
        <np/>
        <mathml src="entropy.odf"/>
        
        
        
        
    </p>    
</content>
    
  
<content>
    <h1>Interactive PDF features - Links</h1>
    <p>
        Links are an interactive feature of PDF files. They will just work in PDF files. 
        <np/>
        In the st-files, links are implemented in a HTML-like way: an a-tag  with a href-attribute will expand to an 
        interactive link in the PDF file.
        <np/>
        For example,
        <np/>
        <code>
            &lt;a href="http://www.thomas-zastrow.de"&gt; <br/>Homepage of Thomas Zastrow<br/>&lt;/a&gt;            
        </code>
        <np/>
        will expand to:
        
        <a href="http://www.thomas-zastrow.de">Homepage of Thomas Zastrow</a>
    </p>
</content>  
    
<content>
    <h1>Links</h1>
    <p>
        You have downloaded the <i>st scripts</i> from:
    <np/>
        <a href="http://www.thomas-zastrow.de/st">www.thomas-zastrow.de/st</a>
        <np/>
    </p>
    
    <p>
        The Apache FOP can be found:
        <np/>
        <a href="http://xmlgraphics.apache.org/fop/">http://xmlgraphics.apache.org/fop/</a>
        <np/>
    </p>
    
    <p>
        Extensible Stylesheet Language (XSL):
        <np/>
        <a href="http://www.w3.org/TR/xsl11/">http://www.w3.org/TR/xsl11/</a>
        <np/>
        
    </p>
    
</content>    
    
    
    
          
<content>
    <pagebreak/>
    <h1>ToDo</h1>
    <p>
        I'm developing constantly on the st-stylsheets. There are always a lot things to do. If you have an idea, a suggestion, or 
        perhaps critic, please feel free to contact me. 
        <np/>
        Certainly, it would be glad if you would like to help me in the further development ...
    </p>
</content>
    
    <content>
        <h1>Contact</h1>
        <p>
            Please use my homepage to contact me: http://www.thomas-zastrow.de/st
        </p>
    </content>
    
   
</text>

