home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
ppwizard.zip
/
footnote.it
< prev
next >
Wrap
Text File
|
1999-11-06
|
5KB
|
147 lines
;----------------------------------------------------------------------------
; MODULE NAME: FOOTNOTE.IT
;
; $Author: Dennis_Bareis $
; $Revision: 1.0 $
; $Date: 06 Nov 1999 10:07:24 $
; $Logfile: E:/DB/PVCS.IT/OS2/PPWIZARD/FOOTNOTE.ITV $
;
; DESCRIPTION: Simple example page that makes use of footnotes.
; Some options are overridden by this source.
;----------------------------------------------------------------------------
;--- Start HTML -------------------------------------------------------------
<HTML><BODY>
<H1>FOOTNOTE EXAMPLE PAGE</H1>
;----------------------------------------------------------------------------
;--- A simple footer macro (which expands any footnotes found) --------------
;----------------------------------------------------------------------------
#evaluate ShortNameHtml "ToLowerCase(_filespec('name', '<?OutputFile>'))"
#evaluate DateTime @date('WeekDay') || ' ' || date('Month') || ' ' || substr(date('Sorted'), 7, 2) || ' ' || left(date('Sorted'), 4) || ' at ' || time('Civil')@
#define SimpleFooter \
#if [RxFootNoteCnt <> 0] -\
<HR> -\
<H1>FOOT NOTES</H1> -\
<$ExpandFootNotes> -\
#endif -\
<HR> -\
<CENTER><FONT Size="-1"> -\
<$ShortNameHtml><BR> -\
<$DateTime> -\
</FONT></CENTER>
;----------------------------------------------------------------------------
;--- Include footnote header (modify some options) --------------------------
;----------------------------------------------------------------------------
#define FOOTNOTE_NUMBER_IN_TEXT \
#if RxFootNoteCnt <= 3 -\
&sup<??RxFootNoteCnt>; -\
#elseif -\
<SUP><??RxFootNoteCnt></SUP> -\
#endif
#defineRexx FOOTNOTE_NUMBER_IN_LIST
;--- Complete list done the same way (prefer "&sup?;") ---
if RxFootNoteCnt <= 3 then
RxFmtFnNumb = '&sup' || RxIndex || ';';
else
RxFmtFnNumb = '<SUP>' || RxIndex || '</SUP>';
#defineRexx
#include "footnote.ih"
;--- Define some footnotes --------------------------------------------------
<P>Para 1<$FN Text="This is a trial footnote 1."> asadsafda
<P>Para 2<$FN Text="This is a trial footnote 2."> dsajdkasjkl
<P>A filler paragraph.
<P>A filler paragraph.
;--- Define some footnotes --------------------------------------------------
<P>This Para 3<$FN Text="This is a trial footnote 3."> has
a footnote imbedded in it as well.
<P>Para 4<$FN Text="This is a trial footnote 4.">
;--- Allow links to be tested -----------------------------------------------
<FONT COLOR=GRAY>
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
<P>A filler paragraph.
</FONT>
;--- Output footer ----------------------------------------------------------
<$SimpleFooter>
;--- This would normally not be here but allows testing of links ------------
<FONT COLOR=GRAY>
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
<P>A filler paragraph to make link testing easier.
</FONT>
;--- End of HTML ------------------------------------------------------------
</BODY>
</HTML>