basix_doc 0.1
/Users/mourrain/Devel/mmx/basix/include/basix/math_syntax.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : math_syntax.hpp
00004 * DESCRIPTION: Mathematics printing for TeXmacs
00005 * COPYRIGHT  : (C) 2007  Gregoire Lecerf
00006 *******************************************************************************
00007 * This software falls under the GNU general public license and comes WITHOUT
00008 * ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
00009 * If you don't have this file, write to the Free Software Foundation, Inc.,
00010 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00011 ******************************************************************************/
00012 
00013 #ifndef __MATH_SYNTAX_HPP
00014 #define __MATH_SYNTAX_HPP
00015 #include <basix/syntactic.hpp>
00016 
00018 
00019 namespace mmx {
00020 
00021 /******************************************************************************
00022 * Math output
00023 ******************************************************************************/
00024 
00025 string as_math (const generic& g);
00026 
00027 template<typename C> inline string
00028 flatten_as_math (const C& x) {
00029   return as_math (as_generic (flatten (x)));
00030 }
00031 
00032 void texmacs_command (const string& cmd);
00033 string texmacs_flush_commands ();
00034 void texmacs_dynamic_event (const string& id, const generic& val);
00035 string as_texmacs_scheme (const generic& g);
00036 string flatten_as_tm (const generic& g);
00037 string flatten_as_tm (const generic& g, const string& style);
00038 
00039 template<typename C> inline string
00040 flatten_as_texmacs_scheme (const C& x) {
00041   return as_texmacs_scheme (as_generic (flatten (x)));
00042 }
00043 
00044 } // namespace mmx
00045 #endif // __MATH_SYNTAX_HPP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines