'
/ '[an error occurred while processing this directive]'
* Either we do the < > replacement or we use plaintext
* / ''
* / ''
* / ''
);
*
* include htm files
*
loop(inc$(not bininc(inc)),
put_utilities 'ren'/ '%gamslib%' inc.tl:0 '.htm';
put ' ' inc.tl:0 ''
/ '
'
/ ''inc.tl:0 ' : ' inc.te(inc) '
'
/ '
Used by:';
loop((incmap(inc,s),sm(s,m)),
put ' ' m.tl:0 '.gms');
put / '
'
/ ''
/ '[an error occurred while processing this directive]'
/ ''
/ ''
/ '' );
*
* seqindx
*
seqindx.lcase=1;
put seqindx
' GAMS Model Library Chronological Index'
/ '
'
/'Model Library Chronological Index
'
/'This is a listing of the model library in order of'
/'submission date. The newest ones are at the top.'
/''
/'There is also an author index,'
/'a subject index,'
/'and an alphabetical index.'
/'
'
/ '
'
/ ''
/ ' | No | '
/ ' Model | '
/ ' Description | '
/ ' Type | '
/ ' Author | '
/ '
'
loop((srev(ss,s),sm(s,m),sath(s,ath)),
put / ''
/ ' | ',s.tl:0,' | '
/ ' ',m.tl:0,' | '
/ ' ',m.te(m):0,' | '
/ ' ';
seqindx.lcase=2;
loop(tss(t,s),
put t.tl:0 );
seqindx.lcase=0;
put ' | '
/ ' ',ath.tl:0,' | '
/ '
';
seqindx.lcase=1; );
put / '
'
/ ''
/ '';
*
* subindx
*
subindx.lcase=1;
put subindx
' GAMS Model Library Subject Index'
/ '
'
/'Model Library Subject Index
'
/'The following subject areas are covered:'
/''
/''
/''
/'There is also an alphabetical index'
/'an author index,'
/'and a chronological index.'
loop(a,
put
/'
'
/''
/''
/' | Model'
/' | Description'
/' | Type'
/' | Author'
/' |
'
loop((m,as(a,s),sm(s,m),sath(s,ath)),
put / ''
/ ' | ',m.tl:0,' | '
/ ' ',m.te(m):0,' | '
/ ' ';
subindx.lcase=2;
loop(tss(t,s),
put t.tl:0 );
subindx.lcase=0;
put ' | '
/ ' ',ath.tl:0,' | '
/ '
';
subindx.lcase=1)
put / '
')
put / ''
/ '';
*
* modlist
*
modlist.lcase=1;
put modlist
'% Model library listed by application area' /
loop(a,
put /
/'\subsubsection*{' a.te(a):0 '}' /
/'\begin{modellist}'
/'\Mname{\normalfont\textbf{Name}}'
'\Mdesc{\textbf{Description}}'
'\Mtype{\textbf{Type}}'
'\Mnumber{\textbf{No.}}'
'\Mauthor{\textbf{Author}}'
loop((m,as(a,s),sm(s,m),sath(s,ath)),
put / '\Mname{\textbf{' m.tl:0 '}}'
'\Mdesc{' m.te(m):0 '}';
modlist.lcase=2;
loop(tss(t,s),
put '\Mtype{' t.tl:0 '}' );
modlist.lcase=0;
put '\Mnumber{' s.tl:0 '}'
'\Mauthor{',ath.tl:0,'}' /;
modlist.lcase=1
);
put / '\end{modellist}'
);
*
* alfindx
*
alfindx.lcase=1;
put alfindx
' GAMS Model Library Alphabetical Index'
/ '
'
/'Model Library Alphabetical Index
'
/'This is an alphabetical listing of the models available'
/'in the on-line model library.'
/'There is also an author index,'
/'a subject index, and'
/'a chronological index.'
/'Shortcuts: ';
alfindx.lcase=2;
loop (letters,
put alfindx ' ' letters.tl:0 '' /
);
alfindx.lcase=1;
put alfindx
/'
'
/''
/' | '
/' Model | '
/' Description | '
/' Type | '
/' Author | '
/ '
'
loop(m,
if(letters(m),
alfindx.lcase=2;
put /''
/' | '
/'',m.tl:0,' | '
/'
';
alfindx.lcase=1;
else
put / ''
*  |
/ ' | '
/ ' ',m.tl:0,' | '
/ ' ',m.te(m):0,' | '
/ ' ';
alfindx.lcase=2;
loop((sm(s,m),sath(s,ath)),
loop(tss(t,s),
put t.tl:0 );
alfindx.lcase=0;
put ' | '
/ ' ',ath.tl:0,' | '
/ '
';
alfindx.lcase=1) ));
put / '
'
/ ''
/ '';
*
* athindx
*
athindx.lcase=1; athindx.pw=4096;
put athindx
' GAMS Model Library Author Index'
/ '
'
/'Model Library Author Index
'
/'This is an listing of authors of the models available'
/'in the on-line model library.'
/'There is also an alphabetical index, '
/'a subject index, and'
/'a chronological index .'
/'
'
/'';
scalar acnter /0/;
set seqath(s) models of an author;
athindx.lcase=0;
loop(ath$(not cath(ath)),
if (mod(acnter,5)=0, put / '');
acnter = acnter+1;
put / '| 'ath.tl:0' | '
);
put / '
'
/ '
';
set printr(r) references to print for an author;
loop(ath$(not cath(ath) and sum((sr(s,r),athr(ath,r)), 1)),
athindx.lcase=0;
put / ''
/ '' ath.tl:0 '
'
/ '';
printr(r) = athr(ath,r);
printr(printr) = not sum(cr(r,printr)$athr(ath,r),yes)
loop(printr(r), put / '- ' r.te(r); put$ro(r) ro.te(r));
seqath(s) = sum((sr(s,r),athr(ath,r)), 1);
if (card(seqath),
put / '
- Models:'
/ '
'
loop((seqath(s),sm(s,m)),
athindx.lcase=1;
put / ''
/ '| ' m.tl:0 ' | '
/ '' m.te(m) ' | '
)
put / '
';
)
put / '
';
)
put / ''
/ '';
$exit