Rev 12963 | Rev 13325 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12963 | Rev 13121 | ||
---|---|---|---|
Line 880... | Line 880... | ||
880 | } |
880 | } |
881 | return (std::string) s; |
881 | return (std::string) s; |
882 | } |
882 | } |
883 | 883 | ||
884 | std::ostream & operator << (std::ostream & o, const Chemeq & c){ |
884 | std::ostream & operator << (std::ostream & o, const Chemeq & c){ |
- | 885 | if (c.is_equilibrium()){ /* equilibria must be rendered with two arrows */ |
|
- | 886 | o << *c.membregauche() << "\\,\\leftrightharpoons\\," << *c.membredroit(); |
|
- | 887 | } else { |
|
885 | o << *c.membregauche() << "\\,\\longrightarrow\\," << *c.membredroit(); |
888 | o << *c.membregauche() << "\\,\\longrightarrow\\," << *c.membredroit(); |
- | 889 | } |
|
886 | if (c.valeur() > MINVAL) { |
890 | if (c.valeur() > MINVAL) { |
887 | o << "\\,("; |
891 | o << "\\,("; |
888 | if (c.constante()!=std::string("")) o << c.constante() << "\\,=\\,"; |
892 | if (c.constante()!=std::string("")) o << c.constante() << "\\,=\\,"; |
889 | o << c.valeur_latex(); |
893 | o << c.valeur_latex(); |
890 | if (c.redox()) o << " V"; |
894 | if (c.redox()) o << " V"; |