// -*- mode:C++ ; compile-command: "g++ cas2html.cc -o cas2html -lgiac -lgmp" -*-
// g++ --static cas2html.cc -o cas2html -lgiac -lgsl -lgslcblas -lmpfr -lgmp -ldl
// Pour installer sur BSD brandelf -t Linux cas2html
#ifndef IN_GIAC
#include
#include
#include
#else
#include "giac.h"
#include "mathml.h"
#include "tex.h"
#endif
#include
#include
using namespace std;
using namespace giac;
void elimine_inf_sup(string &s){
string t="";
while (t!=s){
t=s;
int i=s.find("<"), j=s.find(">");
if (i!=-1)
s.replace(s.find("<"),1,"<");
if (j!=-1)
s.replace(s.find(">"),1,">");
}
}
int main(int ARGC, char *ARGV[])
{
giac::child_id=1;
bool b_mathml=0, b_text=0, b_latex=0;
string s, t;
gen *g, e;
// recherche des paramètres passés au programme
for (int i=1 ; iprint();
}
if (b_text){
elimine_inf_sup(t);
elimine_inf_sup(s);
}
cout<