home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / footnote.zip / footnote.it < prev   
Text File  |  1999-11-06  |  5KB  |  147 lines

  1. ;----------------------------------------------------------------------------
  2. ;     MODULE NAME:   FOOTNOTE.IT
  3. ;
  4. ;         $Author:   Dennis_Bareis  $
  5. ;       $Revision:   1.0  $
  6. ;           $Date:   06 Nov 1999 10:07:24  $
  7. ;        $Logfile:   E:/DB/PVCS.IT/OS2/PPWIZARD/FOOTNOTE.ITV  $
  8. ;
  9. ;     DESCRIPTION:   Simple example page that makes use of footnotes.
  10. ;                    Some options are overridden by this source.
  11. ;----------------------------------------------------------------------------
  12.  
  13. ;--- Start HTML -------------------------------------------------------------
  14. <HTML><BODY>
  15. <H1>FOOTNOTE EXAMPLE PAGE</H1>
  16.  
  17. ;----------------------------------------------------------------------------
  18. ;--- A simple footer macro (which expands any footnotes found) --------------
  19. ;----------------------------------------------------------------------------
  20. #evaluate ShortNameHtml            "ToLowerCase(_filespec('name', '<?OutputFile>'))"
  21. #evaluate DateTime @date('WeekDay') || ' ' || date('Month') || ' ' || substr(date('Sorted'), 7, 2) || ' ' || left(date('Sorted'), 4) || ' at ' || time('Civil')@
  22. #define SimpleFooter                  \
  23.         #if [RxFootNoteCnt <> 0]     -\
  24.             <HR>                     -\
  25.             <H1>FOOT NOTES</H1>      -\
  26.             <$ExpandFootNotes>       -\
  27.         #endif                       -\
  28.         <HR>                         -\
  29.         <CENTER><FONT Size="-1">     -\
  30.            <$ShortNameHtml><BR>      -\
  31.            <$DateTime>               -\
  32.         </FONT></CENTER>
  33.  
  34.  
  35.  
  36. ;----------------------------------------------------------------------------
  37. ;--- Include footnote header (modify some options) --------------------------
  38. ;----------------------------------------------------------------------------
  39. #define     FOOTNOTE_NUMBER_IN_TEXT             \
  40.             #if RxFootNoteCnt <= 3             -\
  41.                 &sup<??RxFootNoteCnt>;         -\
  42.             #elseif                            -\
  43.                 <SUP><??RxFootNoteCnt></SUP>   -\
  44.             #endif
  45. #defineRexx FOOTNOTE_NUMBER_IN_LIST
  46.             ;--- Complete list done the same way (prefer "&sup?;") ---
  47.             if RxFootNoteCnt <= 3 then
  48.                RxFmtFnNumb = '&sup' || RxIndex || ';';
  49.             else
  50.                RxFmtFnNumb = '<SUP>' || RxIndex || '</SUP>';
  51. #defineRexx
  52. #include   "footnote.ih"
  53.  
  54.  
  55.  
  56. ;--- Define some footnotes --------------------------------------------------
  57. <P>Para 1<$FN Text="This is a trial footnote 1."> asadsafda
  58. <P>Para 2<$FN Text="This is a trial footnote 2."> dsajdkasjkl
  59.  
  60.  
  61. <P>A filler paragraph.
  62. <P>A filler paragraph.
  63.  
  64. ;--- Define some footnotes --------------------------------------------------
  65. <P>This Para 3<$FN Text="This is a trial footnote 3."> has
  66. a footnote imbedded in it as well.
  67.  
  68. <P>Para 4<$FN Text="This is a trial footnote 4.">
  69.  
  70. ;--- Allow links to be tested -----------------------------------------------
  71. <FONT COLOR=GRAY>
  72. <P>A filler paragraph.
  73. <P>A filler paragraph.
  74. <P>A filler paragraph.
  75. <P>A filler paragraph.
  76. <P>A filler paragraph.
  77. <P>A filler paragraph.
  78. <P>A filler paragraph.
  79. <P>A filler paragraph.
  80. <P>A filler paragraph.
  81. <P>A filler paragraph.
  82. <P>A filler paragraph.
  83. <P>A filler paragraph.
  84. <P>A filler paragraph.
  85. <P>A filler paragraph.
  86. <P>A filler paragraph.
  87. <P>A filler paragraph.
  88. <P>A filler paragraph.
  89. <P>A filler paragraph.
  90. <P>A filler paragraph.
  91. <P>A filler paragraph.
  92. <P>A filler paragraph.
  93. <P>A filler paragraph.
  94. <P>A filler paragraph.
  95. <P>A filler paragraph.
  96. <P>A filler paragraph.
  97. <P>A filler paragraph.
  98. <P>A filler paragraph.
  99. <P>A filler paragraph.
  100. <P>A filler paragraph.
  101. <P>A filler paragraph.
  102. <P>A filler paragraph.
  103. <P>A filler paragraph.
  104. <P>A filler paragraph.
  105. <P>A filler paragraph.
  106. <P>A filler paragraph.
  107. <P>A filler paragraph.
  108. <P>A filler paragraph.
  109. <P>A filler paragraph.
  110. </FONT>
  111.  
  112. ;--- Output footer ----------------------------------------------------------
  113. <$SimpleFooter>
  114.  
  115.  
  116. ;--- This would normally not be here but allows testing of links ------------
  117. <FONT COLOR=GRAY>
  118. <P>A filler paragraph to make link testing easier.
  119. <P>A filler paragraph to make link testing easier.
  120. <P>A filler paragraph to make link testing easier.
  121. <P>A filler paragraph to make link testing easier.
  122. <P>A filler paragraph to make link testing easier.
  123. <P>A filler paragraph to make link testing easier.
  124. <P>A filler paragraph to make link testing easier.
  125. <P>A filler paragraph to make link testing easier.
  126. <P>A filler paragraph to make link testing easier.
  127. <P>A filler paragraph to make link testing easier.
  128. <P>A filler paragraph to make link testing easier.
  129. <P>A filler paragraph to make link testing easier.
  130. <P>A filler paragraph to make link testing easier.
  131. <P>A filler paragraph to make link testing easier.
  132. <P>A filler paragraph to make link testing easier.
  133. <P>A filler paragraph to make link testing easier.
  134. <P>A filler paragraph to make link testing easier.
  135. <P>A filler paragraph to make link testing easier.
  136. <P>A filler paragraph to make link testing easier.
  137. <P>A filler paragraph to make link testing easier.
  138. <P>A filler paragraph to make link testing easier.
  139. <P>A filler paragraph to make link testing easier.
  140. <P>A filler paragraph to make link testing easier.
  141. <P>A filler paragraph to make link testing easier.
  142. </FONT>
  143.  
  144. ;--- End of HTML ------------------------------------------------------------
  145. </BODY>
  146. </HTML>
  147.