4 * This source code is part of
8 * GROningen MAchine for Chemical Simulations
12 * Copyright (c) 1991-2001
13 * BIOSON Research Institute, Dept. of Biophysical Chemistry
14 * University of Groningen, The Netherlands
16 * This program is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License
18 * as published by the Free Software Foundation; either version 2
19 * of the License, or (at your option) any later version.
21 * If you want to redistribute modifications, please consider that
22 * scientific software is very special. Version control is crucial -
23 * bugs must be traceable. We will be happy to consider code for
24 * inclusion in the official distribution, but derived work must not
25 * be called official GROMACS. Details are found in the README & COPYING
26 * files - if they are missing, get the official version at www.gromacs.org.
28 * To help us fund GROMACS development, we humbly ask that you cite
29 * the papers on the package - you can find them in the top README file.
31 * Do check out http://www.gromacs.org , or mail us at gromacs@gromacs.org .
34 * Gromacs Runs On Most of All Computer Systems
36 static char *SRCID_prfn_c = "$Id$";
41 void pr_texdefs(FILE *fp)
45 fprintf(fp,"\\begin{table}\n");
46 fprintf(fp,"\\begin{tabularx}{\\linewidth}{|r@{\\tt.}lccX|}\n");
47 fprintf(fp,"\\dline\n");
48 fprintf(fp,"\\mc{2}{|c}{%s} & %4s & %7s & %s \\\\[-0.1ex]\n",
49 "Default","","Default","");
50 fprintf(fp,"\\mc{1}{|c}{%s} & \\mc{1}{c}{%s} & %4s & %7s & %s "
52 "Name","Ext.","Type","Option","Description");
53 fprintf(fp,"\\hline\n");
54 for(i=0; (i<efNR); i++)
55 if ( (i!=efGCT) && (i!=efHAT) )
57 fprintf(fp,"\\dline\n");
58 fprintf(fp,"\\end{tabularx}\n");
59 fprintf(fp,"\\caption{The {\\gromacs} file types.}\n");
60 fprintf(fp,"\\label{tab:form}\n");
61 fprintf(fp,"\\end{table}\n");
64 void pr_htmldefs(FILE *fp)
68 fprintf(fp,"<title>GROMACS</title>\n");
69 fprintf(fp,"<h1>GROMACS Files</h1>\n");
70 fprintf(fp,"<b>GRO</b>ningen <b>MA</b>chine for <b>S</b>imulating <b>C</b>hemistry\n");
72 fprintf(fp,"The following %d filetypes are used by Gromacs:\n",efNR);
74 for(i=0; (i<efNR); i++) {
75 fprintf(fp,"<dt><a href=\"%s.html\">%s.%s</a> (%s)<dd>%s\n",
76 ftp2ext(i),ftp2defnm(i),ftp2ext(i),ftp2ftype(i),
77 check_html(ftp2desc(i),NULL));
79 fprintf(fp,"</dl>\n");
87 out=ffopen("files.tex","w");
91 out=ffopen("files.html","w");