<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to CreateProgramDoc</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>Recent changes to CreateProgramDoc</description><atom:link href="https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 26 Jun 2017 05:47:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/feed" rel="self" type="application/rss+xml"/><item><title>CreateProgramDoc modified by bstanly</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -10,7 +10,7 @@
  
  
  
-&lt;center&gt;Printed on May 08, 2017&lt;/center&gt;
+&lt;center&gt;Printed on June 25, 2017&lt;/center&gt;

 &lt;center&gt;Copyright 2016 by Barry Stanly&lt;/center&gt;

@@ -81,12 +81,12 @@

 
-&lt;p&gt;&lt;table border="1" bordercolor="#000000" cellpadding="5" cellspacing="0"&gt;
 &lt;tbody&gt;&lt;tr valign="top"&gt;&lt;td&gt;&lt;p&gt;desc = "Test Report for Auto System\t\t\tWritten by:\t\t\tThe Auto Team"&lt;br/&gt;
+&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;desc = "Test Report for Auto System\t\t\tWritten by:\t\t\tThe Auto Team"&lt;br/&gt;
 self.doc.describeDocument(desc)&lt;/p&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;&lt;/table&gt;
 
-Note "\t" is the Python way to specify a &amp;lt;TAB&amp;gt; character and represents a blank line in a description.
+Note "\t" is the Python way to specify a &amp;lt;TAB&amp;gt; character and represents a blank line in a description.
 &lt;/p&gt;&lt;p&gt;&lt;/p&gt;
 &lt;a name="L4"&gt;&lt;/a&gt;
 # 4 Generate Results  
@@ -98,12 +98,12 @@
 &lt;p&gt;... Create table in external file&lt;br/&gt;
 self.doc.changeOutputFile("Table.sti")&lt;br/&gt;
 Caption = "Test Results"&lt;br/&gt;
-Header = "Test name\tResult"&lt;br/&gt;
+Header = "Test name\tResult"&lt;br/&gt;
 cspec = "|l|l|"&lt;br/&gt;
 self.doc.createTable(Caption, Header, cspec, Label="Tab")&lt;br/&gt;
  &lt;br/&gt;
 ... Add test data&lt;br/&gt;
-tab = "\t"&lt;br/&gt;
+tab = "\t"&lt;br/&gt;
 row = "Test 1" + tab + "Passed"&lt;br/&gt;
 self.doc.tableRow(row)&lt;br/&gt;
 row = "Test 2" + tab + "Passed"&lt;br/&gt;
@@ -129,8 +129,8 @@
 ## 5.1 Manual Formatting  
 This simple program (37 lines long) generates two files: TestReport.stf and the include file: Table.sti. To generate a PDF report, you can use a command file that is included with STF: makeDoc.bat. To use makeDoc, double click 0Dos.bat&lt;a href="#FN1"&gt;&lt;sup&gt;(1)&lt;/sup&gt;&lt;/a&gt; and enter the following in the report directory:

-&lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat TestReport&lt;/span&gt;
-and TestReport.pdf and TestReport.html will be produced. If directory &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds&lt;/span&gt; was added to the path, per the installation instructions, then it is only necessary to enter:
+&lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat TestReport&lt;/span&gt;
+and TestReport.pdf and TestReport.html will be produced. If directory &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds&lt;/span&gt; was added to the path, per the installation instructions, then it is only necessary to enter:
 &lt;span style="font-family: monospace;"&gt;makeDoc TestReport&lt;/span&gt;. The Wiki formatted version is generated by entering:
 &lt;span style="font-family: monospace;"&gt;makeWiki TestReport&lt;/span&gt;

@@ -146,7 +146,7 @@
 
 

-Where it is assumed that LaTeX and STFxlate have been added to the path so it is not necessary to fully qualify file names. STFxlate.bat is a command file that provides services to STFxlate.py. To see what STFxlate.bat does, edit or type &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat&lt;/span&gt; after installation.
+Where it is assumed that LaTeX and STFxlate have been added to the path so it is not necessary to fully qualify file names. STFxlate.bat is a command file that provides services to STFxlate.py. To see what STFxlate.bat does, edit or type &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat&lt;/span&gt; after installation.
 The resulting table looks like Table 1.

 &lt;a name="TAB"&gt; &lt;/a&gt; &lt;a name="Fig-0001"&gt; &lt;/a&gt; &lt;/p&gt;&lt;center&gt;![Figure 5.1-1 Table 1](https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/Results.jpg 180x120)&lt;/center&gt;  
@@ -156,7 +156,7 @@
 &lt;p&gt;&lt;/p&gt;
 &lt;a name="L5.2"&gt;&lt;/a&gt;
 ## 5.2 GUI Formatting  
-To generate the documents the easy way, double click on TestReport.stf in the report directory and a menu will display (assuming Executor was installed per the installation instructions.) The default menu is shown in Figure &lt;a href="#MNU"&gt;5.2-2&lt;/a&gt;. The defaults for Executor are stored in &lt;span style="font-family: monospace;"&gt;C:\Users\'you'\.nic\Executor&lt;/span&gt; and may be customized after the first execution. Since there is no contents for this document, use makeDoc; otherwise use makeDocWithIndex, etc.
+To generate the documents the easy way, double click on TestReport.stf in the report directory and a menu will display (assuming Executor was installed per the installation instructions.) The default menu is shown in Figure &lt;a href="#MNU"&gt;5.2-2&lt;/a&gt;. The defaults for Executor are stored in &lt;span style="font-family: monospace;"&gt;C:\Users\'you'\.nic\Executor&lt;/span&gt; and may be customized after the first execution. Since there is no contents for this document, use makeDoc; otherwise use makeDocWithIndex, etc.

 &lt;a name="MNU"&gt; &lt;/a&gt; &lt;a name="Fig-0002"&gt; &lt;/a&gt; &lt;center&gt;![Figure 5.2-2 GUI Menu](https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/STF_Menu.jpg 280x239)&lt;/center&gt;  
 &lt;center&gt;Figure 5.2-2 GUI Menu&lt;/center&gt;&lt;br/&gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bstanly</dc:creator><pubDate>Mon, 26 Jun 2017 05:47:24 -0000</pubDate><guid>https://sourceforge.net9ea835586ca188296609cbe36883c318a3db727d</guid></item><item><title>CreateProgramDoc modified by bstanly</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -10,7 +10,7 @@
  
  
  
-&lt;center&gt;Printed on April 20, 2017&lt;/center&gt;
+&lt;center&gt;Printed on May 08, 2017&lt;/center&gt;

 &lt;center&gt;Copyright 2016 by Barry Stanly&lt;/center&gt;

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bstanly</dc:creator><pubDate>Mon, 08 May 2017 21:28:47 -0000</pubDate><guid>https://sourceforge.netb25abca571e8ef63e7b4e873070ee2fe9345fc89</guid></item><item><title>CreateProgramDoc modified by bstanly</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -10,7 +10,7 @@
  
  
  
-&lt;center&gt;Printed on April 06, 2017&lt;/center&gt;
+&lt;center&gt;Printed on April 20, 2017&lt;/center&gt;

 &lt;center&gt;Copyright 2016 by Barry Stanly&lt;/center&gt;

@@ -44,7 +44,7 @@
 ---
 &lt;a name="L1"&gt;&lt;/a&gt;
 # 1 Introduction  
-In reading this document, Familiarity with the [STF Syntax Summary](https://sourceforge.net/p/simpletextformatter/wiki/STFXLateSummary) is assumed.
+In reading this document, Familiarity with the [STF Syntax Summary](https://sourceforge.net/p/simpletextformatter/wiki/STFXLateSummary) is assumed. ([Download document PDF](https://sourceforge.net/projects/simpletextformatter/files/CreateProgramDoc.pdf))

 This document shows how to create a document using the STF Python API. A simple test report was chosen for the example:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bstanly</dc:creator><pubDate>Fri, 21 Apr 2017 01:13:27 -0000</pubDate><guid>https://sourceforge.net84c41eb1bff5aff8e347c5a1e9a89b747c82e4ef</guid></item><item><title>CreateProgramDoc modified by bstanly</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -10,7 +10,7 @@
  
  
  
-&lt;center&gt;Printed on December 05, 2016&lt;/center&gt;
+&lt;center&gt;Printed on April 06, 2017&lt;/center&gt;

 &lt;center&gt;Copyright 2016 by Barry Stanly&lt;/center&gt;

@@ -44,7 +44,7 @@
 ---
 &lt;a name="L1"&gt;&lt;/a&gt;
 # 1 Introduction  
-In reading this document, Familiarity with the [STF Syntax Summary](https://sourceforge.net/p/simpletextformatter/wiki/STFXlate) is assumed.
+In reading this document, Familiarity with the [STF Syntax Summary](https://sourceforge.net/p/simpletextformatter/wiki/STFXLateSummary) is assumed.

 This document shows how to create a document using the STF Python API. A simple test report was chosen for the example:

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bstanly</dc:creator><pubDate>Sun, 09 Apr 2017 09:23:42 -0000</pubDate><guid>https://sourceforge.netfb1b5b2fffc10d0e5b91c645e110b05501be1c5a</guid></item><item><title>CreateProgramDoc modified by bstanly</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -10,7 +10,7 @@
  
  
  
-&lt;center&gt;Printed on November 26, 2016&lt;/center&gt;
+&lt;center&gt;Printed on December 05, 2016&lt;/center&gt;

 &lt;center&gt;Copyright 2016 by Barry Stanly&lt;/center&gt;

@@ -44,7 +44,7 @@
 ---
 &lt;a name="L1"&gt;&lt;/a&gt;
 # 1 Introduction  
-In reading this document, Familiarity with the [https://sourceforge.net/p/simpletextformatter/wiki/STFXlate](STF Syntax Summary) is assumed.
+In reading this document, Familiarity with the [STF Syntax Summary](https://sourceforge.net/p/simpletextformatter/wiki/STFXlate) is assumed.

 This document shows how to create a document using the STF Python API. A simple test report was chosen for the example:

@@ -149,9 +149,8 @@
 Where it is assumed that LaTeX and STFxlate have been added to the path so it is not necessary to fully qualify file names. STFxlate.bat is a command file that provides services to STFxlate.py. To see what STFxlate.bat does, edit or type &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat&lt;/span&gt; after installation.
 The resulting table looks like Table 1.

-&lt;a name="TAB"&gt; &lt;/a&gt; &lt;a name="Fig-0001"&gt; &lt;/a&gt; &lt;img rel="nofollow" src="https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/Results.jpg"/&gt;  
+&lt;a name="TAB"&gt; &lt;/a&gt; &lt;a name="Fig-0001"&gt; &lt;/a&gt; &lt;center&gt;![Figure 5.1-1 Table 1](https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/Results.jpg 180x120)&lt;/center&gt;  
 &lt;center&gt;Figure 5.1-1 Table 1&lt;/center&gt;&lt;br/&gt;
-Figure 5.1-1

 ----
 &lt;p&gt;&lt;/p&gt;
@@ -159,13 +158,14 @@
 ## 5.2 GUI Formatting  
 To generate the documents the easy way, double click on TestReport.stf in the report directory and a menu will display (assuming Executor was installed per the installation instructions.) The default menu is shown in Figure &lt;a href="#MNU"&gt;5.2-2&lt;/a&gt;. The defaults for Executor are stored in &lt;span style="font-family: monospace;"&gt;C:\Users\'you'\.nic\Executor&lt;/span&gt; and may be customized after the first execution. Since there is no contents for this document, use makeDoc; otherwise use makeDocWithIndex, etc.

-&lt;a name="MNU"&gt; &lt;/a&gt; &lt;a name="Fig-0002"&gt; &lt;/a&gt; &lt;img rel="nofollow" src="https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/STF_Menu.jpg"/&gt;  
+&lt;a name="MNU"&gt; &lt;/a&gt; &lt;a name="Fig-0002"&gt; &lt;/a&gt; &lt;center&gt;![Figure 5.2-2 GUI Menu](https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/STF_Menu.jpg 280x239)&lt;/center&gt;  
 &lt;center&gt;Figure 5.2-2 GUI Menu&lt;/center&gt;&lt;br/&gt;
-Figure 5.2-2
+
+
+#&lt;center&gt;F O O T N O T E S&lt;/center&gt;

 &lt;p style="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0in; padding-bottom: 0.03in; padding-left: 0in; padding-right: 0in;"&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;
-&lt;a name="FN1"&gt;(1) 
-0Dos.bat is a command file that opens a command window
+&lt;/a&gt;&lt;a name="FN1"&gt;&lt;/a&gt;(1) 0Dos.bat is a command file that opens a command window

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bstanly</dc:creator><pubDate>Mon, 05 Dec 2016 20:52:15 -0000</pubDate><guid>https://sourceforge.net960bc98f847e9fb5161d785fbfc1895f4f0eca55</guid></item><item><title>CreateProgramDoc modified by bstanly</title><link>https://sourceforge.net/p/simpletextformatter/wiki/CreateProgramDoc/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;/p&gt;&lt;center&gt;&lt;font size="+3"&gt;Create Document Under Program Control&lt;/font&gt;&lt;/center&gt;&lt;br/&gt;
 &lt;br/&gt;
 &lt;br/&gt;
 &lt;br/&gt;
&lt;center&gt;by&lt;/center&gt;&lt;br/&gt;
 &lt;br/&gt;
 &lt;br/&gt;
 &lt;br/&gt;
&lt;center&gt;Barry Stanly&lt;/center&gt;&lt;br/&gt;
 &lt;br/&gt;
 &lt;br/&gt;
 &lt;br/&gt;
&lt;center&gt;Printed on November 26, 2016&lt;/center&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;center&gt;Copyright 2016 by Barry Stanly&lt;/center&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Permission is granted to copy, distribute and/or modify this document&lt;br/&gt;
under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available at: &lt;a class="" href="https://www.gnu.org/copyleft/fdl.html" rel="nofollow"&gt;https://www.gnu.org/copyleft/fdl.html&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;center&gt;For more information, see &lt;i&gt;Nuances In Computing&lt;/i&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hosted at &lt;a class="" href="https://sourceforge.net/p/simpletextformatter"&gt;https://sourceforge.net/p/simpletextformatter&lt;/a&gt;&lt;/p&gt;&lt;/center&gt;&lt;p&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;h1 id="wzxhzdk30c-o-n-t-e-n-t-swzxhzdk31"&gt;&lt;center&gt;C O N T E N T S&lt;/center&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a class="" href="#L1"&gt;1 Introduction&lt;/a&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="#L2"&gt;2 Create the Document&lt;/a&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="#L3"&gt;3 Define Document Structure&lt;/a&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="#L4"&gt;4 Generate Results&lt;/a&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="#L5"&gt;5 Formatting&lt;/a&gt;&lt;br/&gt;
&lt;a class="" href="#L5.1"&gt;5.1 Manual Formatting&lt;/a&gt;&lt;br/&gt;
&lt;a class="" href="#L5.2"&gt;5.2 GUI Formatting&lt;/a&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;h1 id="wzxhzdk39f-i-g-u-r-e-swzxhzdk40"&gt;&lt;center&gt;F I G U R E S&lt;/center&gt;&lt;/h1&gt;
&lt;p&gt;&lt;a class="" href="#Fig-0001"&gt;Figure 5.1-1 Table 1&lt;/a&gt;&lt;br/&gt;
&lt;a class="" href="#Fig-0002"&gt;Figure 5.2-2 GUI Menu&lt;/a&gt;&lt;br/&gt;
&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;a name="L1"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1 id="1wzxhzdk47introduction"&gt;1 Introduction&lt;/h1&gt;
&lt;p&gt;In reading this document, Familiarity with the &lt;a class="" href="../STF%20Syntax%20Summary"&gt;https://sourceforge.net/p/simpletextformatter/wiki/STFXlate&lt;/a&gt; is assumed.&lt;/p&gt;
&lt;p&gt;This document shows how to create a document using the STF Python API. A simple test report was chosen for the example:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The document is created&lt;br/&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The document structure is defined&lt;br/&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A table of results is generated&lt;br/&gt;
&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The resulting document is then processed by some of the command files that come with STF to produce an HTML representation of the document, a PDF representation, and a Wiki representation.It is assumed that Python has been installed, the STF Python API has been installed and STF has been installed. See the installation section of the &lt;i&gt;STF Syntax Summary&lt;/i&gt; for details.&lt;br/&gt;
&lt;/p&gt;&lt;br/&gt;
&lt;a name="L2"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h1 id="2wzxhzdk48create-the-document"&gt;2 Create the Document&lt;/h1&gt;
&lt;p&gt;&lt;span style="font-family: monospace;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;table border="1" bordercolor="#000000" cellpadding="5" cellspacing="0"&gt;
&lt;tbody&gt;&lt;tr valign="top"&gt;
&lt;td&gt;&lt;p&gt;from stflib import StfDoc&lt;br/&gt;
self.doc = StfDoc("TestReport.stf")&lt;br/&gt;
self.doc.createDocument("TrialReport","Test Report for Auto System")&lt;br/&gt;
self.doc.setStructure(HTML_Local=True, FrontMatter=False)&lt;br/&gt;
self.doc.setContents(Index=False)&lt;br/&gt;
self.doc.beginDocument()&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This creates a file &lt;span style="font-family: monospace;"&gt;TestReport.stf&lt;/span&gt; in the current folder and creates a basic header for it. The top of page title is &lt;span style="font-family: monospace;"&gt;Test Report for Auto System&lt;/span&gt;&lt;br/&gt;
&lt;/p&gt;&lt;br/&gt;
&lt;a name="L3"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;
&lt;h1 id="3wzxhzdk58define-document-structure"&gt;3 Define Document Structure&lt;/h1&gt;
&lt;p&gt;&lt;span style="font-family: monospace;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;table border="1" bordercolor="#000000" cellpadding="5" cellspacing="0"&gt;
&lt;tbody&gt;&lt;tr valign="top"&gt;
&lt;td&gt;&lt;p&gt;desc = "Test Report for Auto System\t\t\tWritten by:\t\t\tThe Auto Team"&lt;br/&gt;
self.doc.describeDocument(desc)&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;/p&gt;&lt;p&gt;&lt;br/&gt;
Note "\t" is the Python way to specify a &amp;lt;TAB&amp;gt; character and represents a blank line in a description.&lt;br/&gt;
&lt;/p&gt;&lt;br/&gt;
&lt;a name="L4"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;
&lt;h1 id="4wzxhzdk66generate-results"&gt;4 Generate Results&lt;/h1&gt;
&lt;p&gt;The results are saved in a table stored in its own file. This external file is then included into the test report document. The reason for doing it this way is to allow the table to be included in other documents, such as a more formal test report.&lt;br/&gt;
&lt;span style="font-family: monospace;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;table border="1" bordercolor="#000000" cellpadding="5" cellspacing="0"&gt;
&lt;tbody&gt;&lt;tr valign="top"&gt;
&lt;td&gt;&lt;p&gt;... Create table in external file&lt;br/&gt;
self.doc.changeOutputFile("Table.sti")&lt;br/&gt;
Caption = "Test Results"&lt;br/&gt;
Header = "Test name\tResult"&lt;br/&gt;
cspec = "|l|l|"&lt;br/&gt;
self.doc.createTable(Caption, Header, cspec, Label="Tab")&lt;br/&gt;
 &lt;br/&gt;
... Add test data&lt;br/&gt;
tab = "\t"&lt;br/&gt;
row = "Test 1" + tab + "Passed"&lt;br/&gt;
self.doc.tableRow(row)&lt;br/&gt;
row = "Test 2" + tab + "Passed"&lt;br/&gt;
self.doc.tableRow(row)&lt;br/&gt;
row = "Test 3" + tab + "Passed"&lt;br/&gt;
self.doc.tableRow(row)&lt;br/&gt;
 &lt;br/&gt;
... End table and change output file back to default&lt;br/&gt;
self.doc.endTable()&lt;br/&gt;
self.doc.changeOutputFile("")&lt;br/&gt;
 &lt;br/&gt;
Include the table back into main document&lt;br/&gt;
self.doc.putVerbatim(".Include Table.sti")&lt;br/&gt;
self.doc.endDocument()&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;/p&gt;&lt;p&gt;&lt;br/&gt;
&lt;/p&gt;&lt;br/&gt;
&lt;a name="L5"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;
&lt;h1 id="5wzxhzdk72formatting"&gt;5 Formatting&lt;/h1&gt;
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;
&lt;a name="L5.1"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;
&lt;h2 id="51wzxhzdk76manual-formatting"&gt;5.1 Manual Formatting&lt;/h2&gt;
&lt;p&gt;This simple program (37 lines long) generates two files: TestReport.stf and the include file: Table.sti. To generate a PDF report, you can use a command file that is included with STF: makeDoc.bat. To use makeDoc, double click 0Dos.bat&lt;a href="#FN1"&gt;&lt;sup&gt;(1)&lt;/sup&gt;&lt;/a&gt; and enter the following in the report directory:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat TestReport&lt;/span&gt;&lt;br/&gt;
and TestReport.pdf and TestReport.html will be produced. If directory &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds&lt;/span&gt; was added to the path, per the installation instructions, then it is only necessary to enter:&lt;br/&gt;
&lt;span style="font-family: monospace;"&gt;makeDoc TestReport&lt;/span&gt;. The Wiki formatted version is generated by entering:&lt;br/&gt;
&lt;span style="font-family: monospace;"&gt;makeWiki TestReport&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Alternately the commands may be entered by hand. First open a Dos window by double clicking 0Dos.bat, then enter the following:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: monospace;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;table border="1" bordercolor="#000000" cellpadding="5" cellspacing="0"&gt;
&lt;tbody&gt;&lt;tr valign="top"&gt;
&lt;td&gt;&lt;p&gt;STFxlate --latex -i TestReport&lt;br/&gt;
pdflatex -interaction=nonstopmode TestReport.tex&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;

&lt;/p&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Where it is assumed that LaTeX and STFxlate have been added to the path so it is not necessary to fully qualify file names. STFxlate.bat is a command file that provides services to STFxlate.py. To see what STFxlate.bat does, edit or type &lt;span style="font-family: monospace;"&gt;C:\Users\Public\Cmds\makeDoc.bat&lt;/span&gt; after installation.&lt;br/&gt;
The resulting table looks like Table 1.&lt;/p&gt;
&lt;p&gt;&lt;a name="TAB"&gt; &lt;/a&gt; &lt;a name="Fig-0001"&gt; &lt;/a&gt; &lt;img rel="nofollow" src="https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/Results.jpg"/&gt;&lt;br/&gt;
&lt;/p&gt;&lt;center&gt;Figure 5.1-1 Table 1&lt;/center&gt;&lt;br/&gt;&lt;br/&gt;
Figure 5.1-1&lt;p&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;&lt;/p&gt;&lt;br/&gt;
&lt;a name="L5.2"&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;
&lt;h2 id="52wzxhzdk106gui-formatting"&gt;5.2 GUI Formatting&lt;/h2&gt;
&lt;p&gt;To generate the documents the easy way, double click on TestReport.stf in the report directory and a menu will display (assuming Executor was installed per the installation instructions.) The default menu is shown in Figure &lt;a href="#MNU"&gt;5.2-2&lt;/a&gt;. The defaults for Executor are stored in &lt;span style="font-family: monospace;"&gt;C:\Users\'you'.nic\Executor&lt;/span&gt; and may be customized after the first execution. Since there is no contents for this document, use makeDoc; otherwise use makeDocWithIndex, etc.&lt;/p&gt;
&lt;p&gt;&lt;a name="MNU"&gt; &lt;/a&gt; &lt;a name="Fig-0002"&gt; &lt;/a&gt; &lt;img rel="nofollow" src="https://a.fsdn.com/con/app/proj/simpletextformatter/screenshots/STF_Menu.jpg"/&gt;&lt;br/&gt;
&lt;/p&gt;&lt;center&gt;Figure 5.2-2 GUI Menu&lt;/center&gt;&lt;br/&gt;&lt;br/&gt;
Figure 5.2-2&lt;p&gt;&lt;/p&gt;
&lt;p style="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0in; padding-bottom: 0.03in; padding-left: 0in; padding-right: 0in;"&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a name="FN1"&gt;(1) &lt;br/&gt;
0Dos.bat is a command file that opens a command window&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bstanly</dc:creator><pubDate>Sat, 26 Nov 2016 10:26:36 -0000</pubDate><guid>https://sourceforge.net725ee9ab2a74322ab1074d0fff6d4437dbcd09dc</guid></item></channel></rss>