/* latex_menu.c generated by valac 0.36.3, the Vala compiler
 * generated from latex_menu.vala, do not modify */

/*
 * This file is part of LaTeXila.
 *
 * Copyright © 2010-2011 Sébastien Wilmet
 *
 * LaTeXila is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * LaTeXila is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with LaTeXila.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <tepl/tepl.h>


#define TYPE_LATEX_MENU (latex_menu_get_type ())
#define LATEX_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LATEX_MENU, LatexMenu))
#define LATEX_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LATEX_MENU, LatexMenuClass))
#define IS_LATEX_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LATEX_MENU))
#define IS_LATEX_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LATEX_MENU))
#define LATEX_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LATEX_MENU, LatexMenuClass))

typedef struct _LatexMenu LatexMenu;
typedef struct _LatexMenuClass LatexMenuClass;
typedef struct _LatexMenuPrivate LatexMenuPrivate;

#define TYPE_MAIN_WINDOW (main_window_get_type ())
#define MAIN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MAIN_WINDOW, MainWindow))
#define MAIN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MAIN_WINDOW, MainWindowClass))
#define IS_MAIN_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MAIN_WINDOW))
#define IS_MAIN_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MAIN_WINDOW))
#define MAIN_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MAIN_WINDOW, MainWindowClass))

typedef struct _MainWindow MainWindow;
typedef struct _MainWindowClass MainWindowClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TYPE_MENU_TOOL_ACTION (menu_tool_action_get_type ())
#define MENU_TOOL_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MENU_TOOL_ACTION, MenuToolAction))
#define MENU_TOOL_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MENU_TOOL_ACTION, MenuToolActionClass))
#define IS_MENU_TOOL_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MENU_TOOL_ACTION))
#define IS_MENU_TOOL_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MENU_TOOL_ACTION))
#define MENU_TOOL_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MENU_TOOL_ACTION, MenuToolActionClass))

typedef struct _MenuToolAction MenuToolAction;
typedef struct _MenuToolActionClass MenuToolActionClass;

#define TYPE_DOCUMENT_TAB (document_tab_get_type ())
#define DOCUMENT_TAB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DOCUMENT_TAB, DocumentTab))
#define DOCUMENT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DOCUMENT_TAB, DocumentTabClass))
#define IS_DOCUMENT_TAB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DOCUMENT_TAB))
#define IS_DOCUMENT_TAB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DOCUMENT_TAB))
#define DOCUMENT_TAB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DOCUMENT_TAB, DocumentTabClass))

typedef struct _DocumentTab DocumentTab;
typedef struct _DocumentTabClass DocumentTabClass;

#define TYPE_DOCUMENT (document_get_type ())
#define DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DOCUMENT, Document))
#define DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DOCUMENT, DocumentClass))
#define IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DOCUMENT))
#define IS_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DOCUMENT))
#define DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DOCUMENT, DocumentClass))

typedef struct _Document Document;
typedef struct _DocumentClass DocumentClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define TYPE_DOCUMENT_VIEW (document_view_get_type ())
#define DOCUMENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DOCUMENT_VIEW, DocumentView))
#define DOCUMENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DOCUMENT_VIEW, DocumentViewClass))
#define IS_DOCUMENT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DOCUMENT_VIEW))
#define IS_DOCUMENT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DOCUMENT_VIEW))
#define DOCUMENT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DOCUMENT_VIEW, DocumentViewClass))

typedef struct _DocumentView DocumentView;
typedef struct _DocumentViewClass DocumentViewClass;

struct _LatexMenu {
	GtkActionGroup parent_instance;
	LatexMenuPrivate * priv;
};

struct _LatexMenuClass {
	GtkActionGroupClass parent_class;
};

struct _LatexMenuPrivate {
	MainWindow* main_window;
};


static gpointer latex_menu_parent_class = NULL;

GType latex_menu_get_type (void) G_GNUC_CONST;
GType main_window_get_type (void) G_GNUC_CONST;
#define LATEX_MENU_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LATEX_MENU, LatexMenuPrivate))
enum  {
	LATEX_MENU_DUMMY_PROPERTY
};
void latex_menu_on_sectioning_part (LatexMenu* self);
static void _latex_menu_on_sectioning_part_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_sectioning_chapter (LatexMenu* self);
static void _latex_menu_on_sectioning_chapter_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_sectioning_section (LatexMenu* self);
static void _latex_menu_on_sectioning_section_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_sectioning_subsection (LatexMenu* self);
static void _latex_menu_on_sectioning_subsection_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_sectioning_subsubsection (LatexMenu* self);
static void _latex_menu_on_sectioning_subsubsection_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_sectioning_paragraph (LatexMenu* self);
static void _latex_menu_on_sectioning_paragraph_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_sectioning_subparagraph (LatexMenu* self);
static void _latex_menu_on_sectioning_subparagraph_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ref_label (LatexMenu* self);
static void _latex_menu_on_ref_label_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ref_ref (LatexMenu* self);
static void _latex_menu_on_ref_ref_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ref_pageref (LatexMenu* self);
static void _latex_menu_on_ref_pageref_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ref_index (LatexMenu* self);
static void _latex_menu_on_ref_index_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ref_footnote (LatexMenu* self);
static void _latex_menu_on_ref_footnote_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ref_cite (LatexMenu* self);
static void _latex_menu_on_ref_cite_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_center (LatexMenu* self);
static void _latex_menu_on_env_center_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_left (LatexMenu* self);
static void _latex_menu_on_env_left_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_right (LatexMenu* self);
static void _latex_menu_on_env_right_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_figure (LatexMenu* self);
static void _latex_menu_on_env_figure_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_table (LatexMenu* self);
static void _latex_menu_on_env_table_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_quote (LatexMenu* self);
static void _latex_menu_on_env_quote_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_quotation (LatexMenu* self);
static void _latex_menu_on_env_quotation_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_verse (LatexMenu* self);
static void _latex_menu_on_env_verse_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_verbatim (LatexMenu* self);
static void _latex_menu_on_env_verbatim_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_minipage (LatexMenu* self);
static void _latex_menu_on_env_minipage_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_env_titlepage (LatexMenu* self);
static void _latex_menu_on_env_titlepage_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_list_env_itemize (LatexMenu* self);
static void _latex_menu_on_list_env_itemize_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_list_env_enumerate (LatexMenu* self);
static void _latex_menu_on_list_env_enumerate_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_list_env_description (LatexMenu* self);
static void _latex_menu_on_list_env_description_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_list_env_list (LatexMenu* self);
static void _latex_menu_on_list_env_list_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_list_env_item (LatexMenu* self);
static void _latex_menu_on_list_env_item_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_tiny (LatexMenu* self);
static void _latex_menu_on_size_tiny_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_scriptsize (LatexMenu* self);
static void _latex_menu_on_size_scriptsize_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_footnotesize (LatexMenu* self);
static void _latex_menu_on_size_footnotesize_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_small (LatexMenu* self);
static void _latex_menu_on_size_small_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_normalsize (LatexMenu* self);
static void _latex_menu_on_size_normalsize_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_large (LatexMenu* self);
static void _latex_menu_on_size_large_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_Large (LatexMenu* self);
static void _latex_menu_on_size_Large_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_LARGE (LatexMenu* self);
static void _latex_menu_on_size_LARGE_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_huge (LatexMenu* self);
static void _latex_menu_on_size_huge_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_size_Huge (LatexMenu* self);
static void _latex_menu_on_size_Huge_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_bold (LatexMenu* self);
static void _latex_menu_on_text_bold_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_italic (LatexMenu* self);
static void _latex_menu_on_text_italic_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_typewriter (LatexMenu* self);
static void _latex_menu_on_text_typewriter_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_slanted (LatexMenu* self);
static void _latex_menu_on_text_slanted_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_small_caps (LatexMenu* self);
static void _latex_menu_on_text_small_caps_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_sans_serif (LatexMenu* self);
static void _latex_menu_on_text_sans_serif_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_emph (LatexMenu* self);
static void _latex_menu_on_text_emph_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_underline (LatexMenu* self);
static void _latex_menu_on_text_underline_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_family_roman (LatexMenu* self);
static void _latex_menu_on_text_font_family_roman_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_family_sans_serif (LatexMenu* self);
static void _latex_menu_on_text_font_family_sans_serif_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_family_monospace (LatexMenu* self);
static void _latex_menu_on_text_font_family_monospace_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_series_medium (LatexMenu* self);
static void _latex_menu_on_text_font_series_medium_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_series_bold (LatexMenu* self);
static void _latex_menu_on_text_font_series_bold_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_shape_upright (LatexMenu* self);
static void _latex_menu_on_text_font_shape_upright_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_shape_italic (LatexMenu* self);
static void _latex_menu_on_text_font_shape_italic_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_shape_slanted (LatexMenu* self);
static void _latex_menu_on_text_font_shape_slanted_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_text_font_shape_small_caps (LatexMenu* self);
static void _latex_menu_on_text_font_shape_small_caps_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tabular_tabbing (LatexMenu* self);
static void _latex_menu_on_tabular_tabbing_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tabular_tabular (LatexMenu* self);
static void _latex_menu_on_tabular_tabular_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tabular_multicolumn (LatexMenu* self);
static void _latex_menu_on_tabular_multicolumn_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tabular_hline (LatexMenu* self);
static void _latex_menu_on_tabular_hline_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tabular_vline (LatexMenu* self);
static void _latex_menu_on_tabular_vline_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tabular_cline (LatexMenu* self);
static void _latex_menu_on_tabular_cline_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_present_frame (LatexMenu* self);
static void _latex_menu_on_present_frame_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_present_block (LatexMenu* self);
static void _latex_menu_on_present_block_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_present_columns (LatexMenu* self);
static void _latex_menu_on_present_columns_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_new_line (LatexMenu* self);
static void _latex_menu_on_spacing_new_line_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_new_page (LatexMenu* self);
static void _latex_menu_on_spacing_new_page_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_line_break (LatexMenu* self);
static void _latex_menu_on_spacing_line_break_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_page_break (LatexMenu* self);
static void _latex_menu_on_spacing_page_break_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_bigskip (LatexMenu* self);
static void _latex_menu_on_spacing_bigskip_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_medskip (LatexMenu* self);
static void _latex_menu_on_spacing_medskip_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_hspace (LatexMenu* self);
static void _latex_menu_on_spacing_hspace_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_vspace (LatexMenu* self);
static void _latex_menu_on_spacing_vspace_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_spacing_noindent (LatexMenu* self);
static void _latex_menu_on_spacing_noindent_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent0 (LatexMenu* self);
static void _latex_menu_on_accent0_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent1 (LatexMenu* self);
static void _latex_menu_on_accent1_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent2 (LatexMenu* self);
static void _latex_menu_on_accent2_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent3 (LatexMenu* self);
static void _latex_menu_on_accent3_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent4 (LatexMenu* self);
static void _latex_menu_on_accent4_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent5 (LatexMenu* self);
static void _latex_menu_on_accent5_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent6 (LatexMenu* self);
static void _latex_menu_on_accent6_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent7 (LatexMenu* self);
static void _latex_menu_on_accent7_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent8 (LatexMenu* self);
static void _latex_menu_on_accent8_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent9 (LatexMenu* self);
static void _latex_menu_on_accent9_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent10 (LatexMenu* self);
static void _latex_menu_on_accent10_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent11 (LatexMenu* self);
static void _latex_menu_on_accent11_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent12 (LatexMenu* self);
static void _latex_menu_on_accent12_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent13 (LatexMenu* self);
static void _latex_menu_on_accent13_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent14 (LatexMenu* self);
static void _latex_menu_on_accent14_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_accent15 (LatexMenu* self);
static void _latex_menu_on_accent15_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_documentclass (LatexMenu* self);
static void _latex_menu_on_documentclass_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_usepackage (LatexMenu* self);
static void _latex_menu_on_usepackage_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_ams_packages (LatexMenu* self);
static void _latex_menu_on_ams_packages_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_author (LatexMenu* self);
static void _latex_menu_on_author_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_title (LatexMenu* self);
static void _latex_menu_on_title_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_begin_document (LatexMenu* self);
static void _latex_menu_on_begin_document_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_maketitle (LatexMenu* self);
static void _latex_menu_on_maketitle_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_tableofcontents (LatexMenu* self);
static void _latex_menu_on_tableofcontents_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_abstract (LatexMenu* self);
static void _latex_menu_on_abstract_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_include_graphics (LatexMenu* self);
static void _latex_menu_on_include_graphics_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_input (LatexMenu* self);
static void _latex_menu_on_input_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_env_normal (LatexMenu* self);
static void _latex_menu_on_math_env_normal_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_env_centered (LatexMenu* self);
static void _latex_menu_on_math_env_centered_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_env_numbered (LatexMenu* self);
static void _latex_menu_on_math_env_numbered_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_env_array (LatexMenu* self);
static void _latex_menu_on_math_env_array_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_env_numbered_array (LatexMenu* self);
static void _latex_menu_on_math_env_numbered_array_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_superscript (LatexMenu* self);
static void _latex_menu_on_math_superscript_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_subscript (LatexMenu* self);
static void _latex_menu_on_math_subscript_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_frac (LatexMenu* self);
static void _latex_menu_on_math_frac_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_square_root (LatexMenu* self);
static void _latex_menu_on_math_square_root_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_nth_root (LatexMenu* self);
static void _latex_menu_on_math_nth_root_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_arccos (LatexMenu* self);
static void _latex_menu_on_math_func_arccos_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_arcsin (LatexMenu* self);
static void _latex_menu_on_math_func_arcsin_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_arctan (LatexMenu* self);
static void _latex_menu_on_math_func_arctan_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_cos (LatexMenu* self);
static void _latex_menu_on_math_func_cos_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_cosh (LatexMenu* self);
static void _latex_menu_on_math_func_cosh_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_cot (LatexMenu* self);
static void _latex_menu_on_math_func_cot_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_coth (LatexMenu* self);
static void _latex_menu_on_math_func_coth_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_csc (LatexMenu* self);
static void _latex_menu_on_math_func_csc_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_deg (LatexMenu* self);
static void _latex_menu_on_math_func_deg_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_det (LatexMenu* self);
static void _latex_menu_on_math_func_det_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_dim (LatexMenu* self);
static void _latex_menu_on_math_func_dim_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_exp (LatexMenu* self);
static void _latex_menu_on_math_func_exp_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_gcd (LatexMenu* self);
static void _latex_menu_on_math_func_gcd_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_hom (LatexMenu* self);
static void _latex_menu_on_math_func_hom_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_inf (LatexMenu* self);
static void _latex_menu_on_math_func_inf_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_ker (LatexMenu* self);
static void _latex_menu_on_math_func_ker_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_lg (LatexMenu* self);
static void _latex_menu_on_math_func_lg_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_lim (LatexMenu* self);
static void _latex_menu_on_math_func_lim_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_liminf (LatexMenu* self);
static void _latex_menu_on_math_func_liminf_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_limsup (LatexMenu* self);
static void _latex_menu_on_math_func_limsup_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_ln (LatexMenu* self);
static void _latex_menu_on_math_func_ln_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_log (LatexMenu* self);
static void _latex_menu_on_math_func_log_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_max (LatexMenu* self);
static void _latex_menu_on_math_func_max_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_min (LatexMenu* self);
static void _latex_menu_on_math_func_min_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_sec (LatexMenu* self);
static void _latex_menu_on_math_func_sec_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_sin (LatexMenu* self);
static void _latex_menu_on_math_func_sin_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_sinh (LatexMenu* self);
static void _latex_menu_on_math_func_sinh_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_sup (LatexMenu* self);
static void _latex_menu_on_math_func_sup_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_tan (LatexMenu* self);
static void _latex_menu_on_math_func_tan_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_func_tanh (LatexMenu* self);
static void _latex_menu_on_math_func_tanh_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_rm (LatexMenu* self);
static void _latex_menu_on_math_font_style_rm_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_it (LatexMenu* self);
static void _latex_menu_on_math_font_style_it_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_bf (LatexMenu* self);
static void _latex_menu_on_math_font_style_bf_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_sf (LatexMenu* self);
static void _latex_menu_on_math_font_style_sf_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_tt (LatexMenu* self);
static void _latex_menu_on_math_font_style_tt_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_cal (LatexMenu* self);
static void _latex_menu_on_math_font_style_cal_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_bb (LatexMenu* self);
static void _latex_menu_on_math_font_style_bb_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_font_style_frak (LatexMenu* self);
static void _latex_menu_on_math_font_style_frak_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_acute (LatexMenu* self);
static void _latex_menu_on_math_accent_acute_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_grave (LatexMenu* self);
static void _latex_menu_on_math_accent_grave_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_tilde (LatexMenu* self);
static void _latex_menu_on_math_accent_tilde_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_bar (LatexMenu* self);
static void _latex_menu_on_math_accent_bar_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_vec (LatexMenu* self);
static void _latex_menu_on_math_accent_vec_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_hat (LatexMenu* self);
static void _latex_menu_on_math_accent_hat_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_check (LatexMenu* self);
static void _latex_menu_on_math_accent_check_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_breve (LatexMenu* self);
static void _latex_menu_on_math_accent_breve_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_dot (LatexMenu* self);
static void _latex_menu_on_math_accent_dot_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_ddot (LatexMenu* self);
static void _latex_menu_on_math_accent_ddot_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_accent_ring (LatexMenu* self);
static void _latex_menu_on_math_accent_ring_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_space_small (LatexMenu* self);
static void _latex_menu_on_math_space_small_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_space_medium (LatexMenu* self);
static void _latex_menu_on_math_space_medium_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_space_large (LatexMenu* self);
static void _latex_menu_on_math_space_large_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_space_quad (LatexMenu* self);
static void _latex_menu_on_math_space_quad_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_space_qquad (LatexMenu* self);
static void _latex_menu_on_math_space_qquad_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_1 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_1_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_2 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_2_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_3 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_3_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_4 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_4_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_5 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_5_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_6 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_6_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_7 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_7_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_8 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_8_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_left_delimiter_9 (LatexMenu* self);
static void _latex_menu_on_math_left_delimiter_9_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_1 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_1_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_2 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_2_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_3 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_3_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_4 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_4_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_5 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_5_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_6 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_6_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_7 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_7_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_8 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_8_gtk_action_callback (GtkAction* action, gpointer self);
void latex_menu_on_math_right_delimiter_9 (LatexMenu* self);
static void _latex_menu_on_math_right_delimiter_9_gtk_action_callback (GtkAction* action, gpointer self);
LatexMenu* latex_menu_new (MainWindow* main_window);
LatexMenu* latex_menu_construct (GType object_type, MainWindow* main_window);
static GtkAction* latex_menu_get_menu_tool_action (LatexMenu* self, const gchar* name, const gchar* label, const gchar* icon_name);
MenuToolAction* menu_tool_action_new (const gchar* name, const gchar* label, const gchar* tooltip, const gchar* icon_name);
MenuToolAction* menu_tool_action_construct (GType object_type, const gchar* name, const gchar* label, const gchar* tooltip, const gchar* icon_name);
GType menu_tool_action_get_type (void) G_GNUC_CONST;
static void latex_menu_text_buffer_insert (LatexMenu* self, const gchar* text_before, const gchar* text_after, const gchar* text_if_no_selection);
GType document_tab_get_type (void) G_GNUC_CONST;
DocumentTab* main_window_get_active_tab (MainWindow* self);
GType document_get_type (void) G_GNUC_CONST;
Document* main_window_get_active_document (MainWindow* self);
void document_insert (Document* self, GtkTextIter* iter, const gchar* text, gint len);
static gchar* latex_menu_get_indentation (LatexMenu* self);
GType document_view_get_type (void) G_GNUC_CONST;
DocumentView* main_window_get_active_view (MainWindow* self);
gchar* document_view_get_indentation_style (DocumentView* self);
static void latex_menu_insert_character_style (LatexMenu* self, const gchar* style);
static void latex_menu_finalize (GObject * obj);

static const GtkActionEntry LATEX_MENU_latex_action_entries[206] = {{"Latex", NULL, "_LaTeX"}, {"Sectioning", "sectioning", N_ ("_Sectioning")}, {"SectioningPart", NULL, "\\_part", NULL, N_ ("Part"), (GCallback) _latex_menu_on_sectioning_part_gtk_action_callback}, {"SectioningChapter", NULL, "\\_chapter", NULL, N_ ("Chapter"), (GCallback) _latex_menu_on_sectioning_chapter_gtk_action_callback}, {"SectioningSection", NULL, "\\_section", NULL, N_ ("Section"), (GCallback) _latex_menu_on_sectioning_section_gtk_action_callback}, {"SectioningSubsection", NULL, "\\s_ubsection", NULL, N_ ("Sub-section"), (GCallback) _latex_menu_on_sectioning_subsection_gtk_action_callback}, {"SectioningSubsubsection", NULL, "\\su_bsubsection", NULL, N_ ("Sub-sub-section"), (GCallback) _latex_menu_on_sectioning_subsubsection_gtk_action_callback}, {"SectioningParagraph", NULL, "\\p_aragraph", NULL, N_ ("Paragraph"), (GCallback) _latex_menu_on_sectioning_paragraph_gtk_action_callback}, {"SectioningSubparagraph", NULL, "\\subpa_ragraph", NULL, N_ ("Sub-paragraph"), (GCallback) _latex_menu_on_sectioning_subparagraph_gtk_action_callback}, {"References", "references", N_ ("_References")}, {"ReferencesLabel", NULL, "\\_label", NULL, N_ ("Label"), (GCallback) _latex_menu_on_ref_label_gtk_action_callback}, {"ReferencesRef", NULL, "\\_ref", NULL, N_ ("Reference to a label"), (GCallback) _latex_menu_on_ref_ref_gtk_action_callback}, {"ReferencesPageref", NULL, "\\_pageref", NULL, N_ ("Page reference to a label"), (GCallback) _latex_menu_on_ref_pageref_gtk_action_callback}, {"ReferencesIndex", NULL, "\\_index", NULL, N_ ("Add a word to the index"), (GCallback) _latex_menu_on_ref_index_gtk_action_callback}, {"ReferencesFootnote", NULL, "\\_footnote", NULL, N_ ("Footnote"), (GCallback) _latex_menu_on_ref_footnote_gtk_action_callback}, {"ReferencesCite", NULL, "\\_cite", NULL, N_ ("Reference to a bibliography item"), (GCallback) _latex_menu_on_ref_cite_gtk_action_callback}, {"Environments", "format-justify-center", "_Environments"}, {"EnvCenter", "format-justify-center", "\\begin{_center}", NULL, N_ ("Center - \\begin{center}"), (GCallback) _latex_menu_on_env_center_gtk_action_callback}, {"EnvLeft", "format-justify-left", "\\begin{flush_left}", NULL, N_ ("Align Left - \\begin{flushleft}"), (GCallback) _latex_menu_on_env_left_gtk_action_callback}, {"EnvRight", "format-justify-right", "\\begin{flush_right}", NULL, N_ ("Align Right - \\begin{flushright}"), (GCallback) _latex_menu_on_env_right_gtk_action_callback}, {"EnvFigure", "image-x-generic", "\\begin{_figure}", NULL, N_ ("Figure - \\begin{figure}"), (GCallback) _latex_menu_on_env_figure_gtk_action_callback}, {"EnvTable", "table", "\\begin{_table}", NULL, N_ ("Table - \\begin{table}"), (GCallback) _latex_menu_on_env_table_gtk_action_callback}, {"EnvQuote", NULL, "\\begin{_quote}", NULL, N_ ("Quote - \\begin{quote}"), (GCallback) _latex_menu_on_env_quote_gtk_action_callback}, {"EnvQuotation", NULL, "\\begin{qu_otation}", NULL, N_ ("Quotation - \\begin{quotation}"), (GCallback) _latex_menu_on_env_quotation_gtk_action_callback}, {"EnvVerse", NULL, "\\begin{_verse}", NULL, N_ ("Verse - \\begin{verse}"), (GCallback) _latex_menu_on_env_verse_gtk_action_callback}, {"EnvVerbatim", NULL, "\\begin{ver_batim}", NULL, N_ ("Verbatim - \\begin{verbatim}"), (GCallback) _latex_menu_on_env_verbatim_gtk_action_callback}, {"EnvMinipage", NULL, "\\begin{_minipage}", NULL, N_ ("Minipage - \\begin{minipage}"), (GCallback) _latex_menu_on_env_minipage_gtk_action_callback}, {"EnvTitlepage", NULL, "\\begin{titlepage}", NULL, N_ ("Title page - \\begin{titlepage}"), (GCallback) _latex_menu_on_env_titlepage_gtk_action_callback}, {"ListEnvironments", "list-itemize", N_ ("_List Environments")}, {"ListEnvItemize", "list-itemize", "\\begin{_itemize}", NULL, N_ ("Bulleted List - \\begin{itemize}"), (GCallback) _latex_menu_on_list_env_itemize_gtk_action_callback}, {"ListEnvEnumerate", "list-enumerate", "\\begin{_enumerate}", NULL, N_ ("Enumeration - \\begin{enumerate}"), (GCallback) _latex_menu_on_list_env_enumerate_gtk_action_callback}, {"ListEnvDescription", "list-description", "\\begin{_description}", NULL, N_ ("Description - \\begin{description}"), (GCallback) _latex_menu_on_list_env_description_gtk_action_callback}, {"ListEnvList", NULL, "\\begin{_list}", NULL, N_ ("Custom list - \\begin{list}"), (GCallback) _latex_menu_on_list_env_list_gtk_action_callback}, {"ListEnvItem", "list-item", "\\i_tem", "<Alt><Shift>H", N_ ("List item - \\item"), (GCallback) _latex_menu_on_list_env_item_gtk_action_callback}, {"CharacterSize", "character-size", N_ ("_Characters Sizes")}, {"CharacterSizeTiny", NULL, "_tiny", NULL, "tiny", (GCallback) _latex_menu_on_size_tiny_gtk_action_callback}, {"CharacterSizeScriptsize", NULL, "_scriptsize", NULL, "scriptsize", (GCallback) _latex_menu_on_size_scriptsize_gtk_action_callback}, {"CharacterSizeFootnotesize", NULL, "_footnotesize", NULL, "footnotesize", (GCallback) _latex_menu_on_size_footnotesize_gtk_action_callback}, {"CharacterSizeSmall", NULL, "s_mall", NULL, "small", (GCallback) _latex_menu_on_size_small_gtk_action_callback}, {"CharacterSizeNormalsize", NULL, "_normalsize", NULL, "normalsize", (GCallback) _latex_menu_on_size_normalsize_gtk_action_callback}, {"CharacterSizelarge", NULL, "_large", NULL, "large", (GCallback) _latex_menu_on_size_large_gtk_action_callback}, {"CharacterSizeLarge", NULL, "L_arge", NULL, "Large", (GCallback) _latex_menu_on_size_Large_gtk_action_callback}, {"CharacterSizeLARGE", NULL, "LA_RGE", NULL, "LARGE", (GCallback) _latex_menu_on_size_LARGE_gtk_action_callback}, {"CharacterSizehuge", NULL, "_huge", NULL, "huge", (GCallback) _latex_menu_on_size_huge_gtk_action_callback}, {"CharacterSizeHuge", NULL, "H_uge", NULL, "Huge", (GCallback) _latex_menu_on_size_Huge_gtk_action_callback}, {"FontStyles", "bold", N_ ("_Font Styles")}, {"Bold", "bold", "\\text_bf", "<Control>B", N_ ("Bold - \\textbf"), (GCallback) _latex_menu_on_text_bold_gtk_action_callback}, {"Italic", "italic", "\\text_it", "<Control>I", N_ ("Italic - \\textit"), (GCallback) _latex_menu_on_text_italic_gtk_action_callback}, {"Typewriter", "typewriter", "\\text_tt", "<Alt><Shift>T", N_ ("Typewriter - \\texttt"), (GCallback) _latex_menu_on_text_typewriter_gtk_action_callback}, {"Slanted", "slanted", "\\text_sl", "<Alt><Shift>S", N_ ("Slanted - \\textsl"), (GCallback) _latex_menu_on_text_slanted_gtk_action_callback}, {"SmallCaps", "small_caps", "\\texts_c", "<Alt><Shift>C", N_ ("Small Capitals - \\textsc"), (GCallback) _latex_menu_on_text_small_caps_gtk_action_callback}, {"SansSerif", "sans_serif", "\\texts_f", NULL, N_ ("Sans Serif - \\textsf"), (GCallback) _latex_menu_on_text_sans_serif_gtk_action_callback}, {"Emph", NULL, "\\_emph", "<Control>E", N_ ("Emphasized - \\emph"), (GCallback) _latex_menu_on_text_emph_gtk_action_callback}, {"Underline", "underline", "\\_underline", "<Control>U", N_ ("Underline - \\underline"), (GCallback) _latex_menu_on_text_underline_gtk_action_callback}, {"FontFamily", NULL, N_ ("_Font Family")}, {"FontFamilyRoman", "roman", "\\_rmfamily", NULL, N_ ("Roman - \\rmfamily"), (GCallback) _latex_menu_on_text_font_family_roman_gtk_action_callback}, {"FontFamilySansSerif", "sans_serif", "\\_sffamily", NULL, N_ ("Sans Serif - \\sffamily"), (GCallback) _latex_menu_on_text_font_family_sans_serif_gtk_action_callback}, {"FontFamilyMonospace", "typewriter", "\\_ttfamily", NULL, N_ ("Monospace - \\ttfamily"), (GCallback) _latex_menu_on_text_font_family_monospace_gtk_action_callback}, {"FontSeries", NULL, N_ ("F_ont Series")}, {"FontSeriesMedium", "roman", "\\_mdseries", NULL, N_ ("Medium - \\mdseries"), (GCallback) _latex_menu_on_text_font_series_medium_gtk_action_callback}, {"FontSeriesBold", "bold", "\\_bfseries", NULL, N_ ("Bold - \\bfseries"), (GCallback) _latex_menu_on_text_font_series_bold_gtk_action_callback}, {"FontShape", NULL, N_ ("Fo_nt Shape")}, {"FontShapeUpright", "roman", "\\_upshape", NULL, N_ ("Upright - \\upshape"), (GCallback) _latex_menu_on_text_font_shape_upright_gtk_action_callback}, {"FontShapeItalic", "italic", "\\_itshape", NULL, N_ ("Italic - \\itshape"), (GCallback) _latex_menu_on_text_font_shape_italic_gtk_action_callback}, {"FontShapeSlanted", "slanted", "\\_slshape", NULL, N_ ("Slanted - \\slshape"), (GCallback) _latex_menu_on_text_font_shape_slanted_gtk_action_callback}, {"FontShapeSmallCaps", "small_caps", "\\s_cshape", NULL, N_ ("Small Capitals - \\scshape"), (GCallback) _latex_menu_on_text_font_shape_small_caps_gtk_action_callback}, {"Tabular", "table", N_ ("_Tabular")}, {"TabularTabbing", NULL, "\\begin{ta_bbing}", NULL, N_ ("Tabbing - \\begin{tabbing}"), (GCallback) _latex_menu_on_tabular_tabbing_gtk_action_callback}, {"TabularTabular", NULL, "\\begin{_tabular}", NULL, N_ ("Tabular - \\begin{tabular}"), (GCallback) _latex_menu_on_tabular_tabular_gtk_action_callback}, {"TabularMulticolumn", NULL, "\\_multicolumn", NULL, N_ ("Multicolumn - \\multicolumn"), (GCallback) _latex_menu_on_tabular_multicolumn_gtk_action_callback}, {"TabularHline", NULL, "\\_hline", NULL, N_ ("Horizontal line - \\hline"), (GCallback) _latex_menu_on_tabular_hline_gtk_action_callback}, {"TabularVline", NULL, "\\_vline", NULL, N_ ("Vertical line - \\vline"), (GCallback) _latex_menu_on_tabular_vline_gtk_action_callback}, {"TabularCline", NULL, "\\_cline", NULL, N_ ("Horizontal line (columns specified) - \\cline"), (GCallback) _latex_menu_on_tabular_cline_gtk_action_callback}, {"Presentation", "x-office-presentation", "_Presentation"}, {"PresentationFrame", NULL, "\\begin{frame}", NULL, N_ ("Frame - \\begin{frame}"), (GCallback) _latex_menu_on_present_frame_gtk_action_callback}, {"PresentationBlock", NULL, "\\begin{block}", NULL, N_ ("Block - \\begin{block}"), (GCallback) _latex_menu_on_present_block_gtk_action_callback}, {"PresentationColumns", NULL, "\\begin{columns}", NULL, N_ ("Two columns - \\begin{columns}"), (GCallback) _latex_menu_on_present_columns_gtk_action_callback}, {"Spacing", NULL, N_ ("_Spacing")}, {"SpacingNewLine", NULL, N_ ("New _Line"), NULL, N_ ("New Line - \\\\"), (GCallback) _latex_menu_on_spacing_new_line_gtk_action_callback}, {"SpacingNewPage", NULL, "\\new_page", NULL, N_ ("New page - \\newpage"), (GCallback) _latex_menu_on_spacing_new_page_gtk_action_callback}, {"SpacingLineBreak", NULL, "\\l_inebreak", NULL, N_ ("Line break - \\linebreak"), (GCallback) _latex_menu_on_spacing_line_break_gtk_action_callback}, {"SpacingPageBreak", NULL, "\\p_agebreak", NULL, N_ ("Page break - \\pagebreak"), (GCallback) _latex_menu_on_spacing_page_break_gtk_action_callback}, {"SpacingBigSkip", NULL, "\\_bigskip", NULL, N_ ("Big skip - \\bigskip"), (GCallback) _latex_menu_on_spacing_bigskip_gtk_action_callback}, {"SpacingMedSkip", NULL, "\\_medskip", NULL, N_ ("Medium skip - \\medskip"), (GCallback) _latex_menu_on_spacing_medskip_gtk_action_callback}, {"SpacingHSpace", NULL, "\\_hspace", NULL, N_ ("Horizontal space - \\hspace"), (GCallback) _latex_menu_on_spacing_hspace_gtk_action_callback}, {"SpacingVSpace", NULL, "\\_vspace", NULL, N_ ("Vertical space - \\vspace"), (GCallback) _latex_menu_on_spacing_vspace_gtk_action_callback}, {"SpacingNoIndent", NULL, "\\_noindent", NULL, N_ ("No paragraph indentation - \\noindent"), (GCallback) _latex_menu_on_spacing_noindent_gtk_action_callback}, {"Accents", NULL, N_ ("International _Accents")}, {"Accent0", "accent0", "\\'", NULL, N_ ("Acute accent - \\'"), (GCallback) _latex_menu_on_accent0_gtk_action_callback}, {"Accent1", "accent1", "\\`", NULL, N_ ("Grave accent - \\`"), (GCallback) _latex_menu_on_accent1_gtk_action_callback}, {"Accent2", "accent2", "\\^", NULL, N_ ("Circumflex accent - \\^"), (GCallback) _latex_menu_on_accent2_gtk_action_callback}, {"Accent3", "accent3", "\\\"", NULL, N_ ("Trema - \\\""), (GCallback) _latex_menu_on_accent3_gtk_action_callback}, {"Accent4", "accent4", "\\~", NULL, N_ ("Tilde - \\~"), (GCallback) _latex_menu_on_accent4_gtk_action_callback}, {"Accent5", "accent5", "\\=", NULL, N_ ("Macron - \\="), (GCallback) _latex_menu_on_accent5_gtk_action_callback}, {"Accent6", "accent6", "\\.", NULL, N_ ("Dot above - \\."), (GCallback) _latex_menu_on_accent6_gtk_action_callback}, {"Accent7", "accent7", "\\v", NULL, N_ ("Caron - \\v"), (GCallback) _latex_menu_on_accent7_gtk_action_callback}, {"Accent8", "accent8", "\\u", NULL, N_ ("Breve - \\u"), (GCallback) _latex_menu_on_accent8_gtk_action_callback}, {"Accent9", "accent9", "\\H", NULL, N_ ("Double acute accent - \\H"), (GCallback) _latex_menu_on_accent9_gtk_action_callback}, {"Accent10", "accent10", "\\c", NULL, N_ ("Cedilla - \\c"), (GCallback) _latex_menu_on_accent10_gtk_action_callback}, {"Accent11", "accent11", "\\k", NULL, N_ ("Ogonek - \\k"), (GCallback) _latex_menu_on_accent11_gtk_action_callback}, {"Accent12", "accent12", "\\d", NULL, N_ ("Dot below - \\d"), (GCallback) _latex_menu_on_accent12_gtk_action_callback}, {"Accent13", "accent13", "\\b", NULL, N_ ("Macron below - \\b"), (GCallback) _latex_menu_on_accent13_gtk_action_callback}, {"Accent14", "accent14", "\\r", NULL, N_ ("Ring - \\r"), (GCallback) _latex_menu_on_accent14_gtk_action_callback}, {"Accent15", "accent15", "\\t", NULL, N_ ("Tie - \\t"), (GCallback) _latex_menu_on_accent15_gtk_action_callback}, {"LatexMisc", NULL, N_ ("_Misc")}, {"LatexDocumentClass", NULL, "\\_documentclass", NULL, N_ ("Document class - \\documentclass"), (GCallback) _latex_menu_on_documentclass_gtk_action_callback}, {"LatexUsepackage", NULL, "\\_usepackage", NULL, N_ ("Use package - \\usepackage"), (GCallback) _latex_menu_on_usepackage_gtk_action_callback}, {"LatexAMS", NULL, N_ ("_AMS packages"), NULL, N_ ("AMS packages"), (GCallback) _latex_menu_on_ams_packages_gtk_action_callback}, {"LatexAuthor", NULL, "\\au_thor", NULL, N_ ("Author - \\author"), (GCallback) _latex_menu_on_author_gtk_action_callback}, {"LatexTitle", NULL, "\\t_itle", NULL, N_ ("Title - \\title"), (GCallback) _latex_menu_on_title_gtk_action_callback}, {"LatexBeginDocument", NULL, "\\begin{d_ocument}", NULL, N_ ("Content of the document - \\begin{document}"), (GCallback) _latex_menu_on_begin_document_gtk_action_callback}, {"LatexMakeTitle", NULL, "\\_maketitle", NULL, N_ ("Make title - \\maketitle"), (GCallback) _latex_menu_on_maketitle_gtk_action_callback}, {"LatexTableOfContents", NULL, "\\tableof_contents", NULL, N_ ("Table of contents - \\tableofcontents"), (GCallback) _latex_menu_on_tableofcontents_gtk_action_callback}, {"LatexAbstract", NULL, "\\begin{abst_ract}", NULL, N_ ("Abstract - \\begin{abstract}"), (GCallback) _latex_menu_on_abstract_gtk_action_callback}, {"LatexIncludeGraphics", NULL, "\\include_graphics", NULL, N_ ("Include an image (graphicx package) - \\includegraphics"), (GCallback) _latex_menu_on_include_graphics_gtk_action_callback}, {"LatexInput", NULL, "\\_input", NULL, N_ ("Include a file - \\input"), (GCallback) _latex_menu_on_input_gtk_action_callback}, {"Math", NULL, N_ ("_Math")}, {"MathEnvironments", NULL, N_ ("_Math Environments")}, {"MathEnvNormal", NULL, N_ ("_Mathematical Environment - $...$"), "<Alt><Shift>M", N_ ("Mathematical Environment - $...$"), (GCallback) _latex_menu_on_math_env_normal_gtk_action_callback}, {"MathEnvCentered", NULL, N_ ("_Centered Formula - \\[...\\]"), "<Alt><Shift>E", N_ ("Centered Formula - \\[...\\]"), (GCallback) _latex_menu_on_math_env_centered_gtk_action_callback}, {"MathEnvNumbered", NULL, N_ ("_Numbered Equation - \\begin{equation}"), NULL, N_ ("Numbered Equation - \\begin{equation}"), (GCallback) _latex_menu_on_math_env_numbered_gtk_action_callback}, {"MathEnvArray", NULL, N_ ("_Array of Equations - \\begin{align*}"), NULL, N_ ("Array of Equations - \\begin{align*}"), (GCallback) _latex_menu_on_math_env_array_gtk_action_callback}, {"MathEnvNumberedArray", NULL, N_ ("Numbered Array of _Equations - \\begin{align}"), NULL, N_ ("Numbered Array of Equations - \\begin{align}"), (GCallback) _latex_menu_on_math_env_numbered_array_gtk_action_callback}, {"MathSuperscript", "math-superscript", N_ ("_Superscript - ^{}"), NULL, N_ ("Superscript - ^{}"), (GCallback) _latex_menu_on_math_superscript_gtk_action_callback}, {"MathSubscript", "math-subscript", N_ ("Su_bscript - __{}"), NULL, N_ ("Subscript - _{}"), (GCallback) _latex_menu_on_math_subscript_gtk_action_callback}, {"MathFrac", "math-frac", N_ ("_Fraction - \\frac{}{}"), "<Alt><Shift>F", N_ ("Fraction - \\frac{}{}"), (GCallback) _latex_menu_on_math_frac_gtk_action_callback}, {"MathSquareRoot", "math-square-root", N_ ("Square _Root - \\sqrt{}"), NULL, N_ ("Square Root - \\sqrt{}"), (GCallback) _latex_menu_on_math_square_root_gtk_action_callback}, {"MathNthRoot", "math-nth-root", N_ ("_N-th Root - \\sqrt[]{}"), NULL, N_ ("N-th Root - \\sqrt[]{}"), (GCallback) _latex_menu_on_math_nth_root_gtk_action_callback}, {"MathFunctions", NULL, N_ ("Math _Functions")}, {"MathFuncArccos", NULL, "\\arccos", NULL, NULL, (GCallback) _latex_menu_on_math_func_arccos_gtk_action_callback}, {"MathFuncArcsin", NULL, "\\arcsin", NULL, NULL, (GCallback) _latex_menu_on_math_func_arcsin_gtk_action_callback}, {"MathFuncArctan", NULL, "\\arctan", NULL, NULL, (GCallback) _latex_menu_on_math_func_arctan_gtk_action_callback}, {"MathFuncCos", NULL, "\\cos", NULL, NULL, (GCallback) _latex_menu_on_math_func_cos_gtk_action_callback}, {"MathFuncCosh", NULL, "\\cosh", NULL, NULL, (GCallback) _latex_menu_on_math_func_cosh_gtk_action_callback}, {"MathFuncCot", NULL, "\\cot", NULL, NULL, (GCallback) _latex_menu_on_math_func_cot_gtk_action_callback}, {"MathFuncCoth", NULL, "\\coth", NULL, NULL, (GCallback) _latex_menu_on_math_func_coth_gtk_action_callback}, {"MathFuncCsc", NULL, "\\csc", NULL, NULL, (GCallback) _latex_menu_on_math_func_csc_gtk_action_callback}, {"MathFuncDeg", NULL, "\\deg", NULL, NULL, (GCallback) _latex_menu_on_math_func_deg_gtk_action_callback}, {"MathFuncDet", NULL, "\\det", NULL, NULL, (GCallback) _latex_menu_on_math_func_det_gtk_action_callback}, {"MathFuncDim", NULL, "\\dim", NULL, NULL, (GCallback) _latex_menu_on_math_func_dim_gtk_action_callback}, {"MathFuncExp", NULL, "\\exp", NULL, NULL, (GCallback) _latex_menu_on_math_func_exp_gtk_action_callback}, {"MathFuncGcd", NULL, "\\gcd", NULL, NULL, (GCallback) _latex_menu_on_math_func_gcd_gtk_action_callback}, {"MathFuncHom", NULL, "\\hom", NULL, NULL, (GCallback) _latex_menu_on_math_func_hom_gtk_action_callback}, {"MathFuncInf", NULL, "\\inf", NULL, NULL, (GCallback) _latex_menu_on_math_func_inf_gtk_action_callback}, {"MathFuncKer", NULL, "\\ker", NULL, NULL, (GCallback) _latex_menu_on_math_func_ker_gtk_action_callback}, {"MathFuncLg", NULL, "\\lg", NULL, NULL, (GCallback) _latex_menu_on_math_func_lg_gtk_action_callback}, {"MathFuncLim", NULL, "\\lim", NULL, NULL, (GCallback) _latex_menu_on_math_func_lim_gtk_action_callback}, {"MathFuncLiminf", NULL, "\\liminf", NULL, NULL, (GCallback) _latex_menu_on_math_func_liminf_gtk_action_callback}, {"MathFuncLimsup", NULL, "\\limsup", NULL, NULL, (GCallback) _latex_menu_on_math_func_limsup_gtk_action_callback}, {"MathFuncLn", NULL, "\\ln", NULL, NULL, (GCallback) _latex_menu_on_math_func_ln_gtk_action_callback}, {"MathFuncLog", NULL, "\\log", NULL, NULL, (GCallback) _latex_menu_on_math_func_log_gtk_action_callback}, {"MathFuncMax", NULL, "\\max", NULL, NULL, (GCallback) _latex_menu_on_math_func_max_gtk_action_callback}, {"MathFuncMin", NULL, "\\min", NULL, NULL, (GCallback) _latex_menu_on_math_func_min_gtk_action_callback}, {"MathFuncSec", NULL, "\\sec", NULL, NULL, (GCallback) _latex_menu_on_math_func_sec_gtk_action_callback}, {"MathFuncSin", NULL, "\\sin", NULL, NULL, (GCallback) _latex_menu_on_math_func_sin_gtk_action_callback}, {"MathFuncSinh", NULL, "\\sinh", NULL, NULL, (GCallback) _latex_menu_on_math_func_sinh_gtk_action_callback}, {"MathFuncSup", NULL, "\\sup", NULL, NULL, (GCallback) _latex_menu_on_math_func_sup_gtk_action_callback}, {"MathFuncTan", NULL, "\\tan", NULL, NULL, (GCallback) _latex_menu_on_math_func_tan_gtk_action_callback}, {"MathFuncTanh", NULL, "\\tanh", NULL, NULL, (GCallback) _latex_menu_on_math_func_tanh_gtk_action_callback}, {"MathFontStyles", NULL, N_ ("Math Font _Styles")}, {"MathFSrm", "roman", "\\math_rm", NULL, N_ ("Roman - \\mathrm"), (GCallback) _latex_menu_on_math_font_style_rm_gtk_action_callback}, {"MathFSit", "italic", "\\math_it", NULL, N_ ("Italic - \\mathit"), (GCallback) _latex_menu_on_math_font_style_it_gtk_action_callback}, {"MathFSbf", "bold", "\\math_bf", NULL, N_ ("Bold - \\mathbf"), (GCallback) _latex_menu_on_math_font_style_bf_gtk_action_callback}, {"MathFSsf", "sans_serif", "\\math_sf", NULL, N_ ("Sans Serif - \\mathsf"), (GCallback) _latex_menu_on_math_font_style_sf_gtk_action_callback}, {"MathFStt", "typewriter", "\\math_tt", NULL, N_ ("Typewriter - \\mathtt"), (GCallback) _latex_menu_on_math_font_style_tt_gtk_action_callback}, {"MathFScal", "mathcal", "\\math_cal", NULL, N_ ("Calligraphic - \\mathcal"), (GCallback) _latex_menu_on_math_font_style_cal_gtk_action_callback}, {"MathFSbb", "blackboard", "\\_mathbb", NULL, N_ ("Blackboard (uppercase only)  - \\mathbb (amsfonts package)"), (GCallback) _latex_menu_on_math_font_style_bb_gtk_action_callback}, {"MathFSfrak", "mathfrak", "\\math_frak", NULL, N_ ("Euler Fraktur - \\mathfrak (amsfonts package)"), (GCallback) _latex_menu_on_math_font_style_frak_gtk_action_callback}, {"MathAccents", NULL, N_ ("Math _Accents")}, {"MathAccentAcute", "mathaccent0", "\\_acute", NULL, NULL, (GCallback) _latex_menu_on_math_accent_acute_gtk_action_callback}, {"MathAccentGrave", "mathaccent1", "\\_grave", NULL, NULL, (GCallback) _latex_menu_on_math_accent_grave_gtk_action_callback}, {"MathAccentTilde", "mathaccent2", "\\_tilde", NULL, NULL, (GCallback) _latex_menu_on_math_accent_tilde_gtk_action_callback}, {"MathAccentBar", "mathaccent3", "\\_bar", NULL, NULL, (GCallback) _latex_menu_on_math_accent_bar_gtk_action_callback}, {"MathAccentVec", "mathaccent4", "\\_vec", NULL, NULL, (GCallback) _latex_menu_on_math_accent_vec_gtk_action_callback}, {"MathAccentHat", "mathaccent5", "\\_hat", NULL, NULL, (GCallback) _latex_menu_on_math_accent_hat_gtk_action_callback}, {"MathAccentCheck", "mathaccent6", "\\_check", NULL, NULL, (GCallback) _latex_menu_on_math_accent_check_gtk_action_callback}, {"MathAccentBreve", "mathaccent7", "\\b_reve", NULL, NULL, (GCallback) _latex_menu_on_math_accent_breve_gtk_action_callback}, {"MathAccentDot", "mathaccent8", "\\_dot", NULL, NULL, (GCallback) _latex_menu_on_math_accent_dot_gtk_action_callback}, {"MathAccentDdot", "mathaccent9", "\\dd_ot", NULL, NULL, (GCallback) _latex_menu_on_math_accent_ddot_gtk_action_callback}, {"MathAccentRing", "mathaccent10", "\\_mathring", NULL, NULL, (GCallback) _latex_menu_on_math_accent_ring_gtk_action_callback}, {"MathSpaces", NULL, N_ ("Math _Spaces")}, {"MathSpaceSmall", NULL, N_ ("_Small"), NULL, N_ ("Small - \\,"), (GCallback) _latex_menu_on_math_space_small_gtk_action_callback}, {"MathSpaceMedium", NULL, N_ ("_Medium"), NULL, N_ ("Medium - \\:"), (GCallback) _latex_menu_on_math_space_medium_gtk_action_callback}, {"MathSpaceLarge", NULL, N_ ("_Large"), NULL, N_ ("Large - \\;"), (GCallback) _latex_menu_on_math_space_large_gtk_action_callback}, {"MathSpaceQuad", NULL, "\\_quad", NULL, NULL, (GCallback) _latex_menu_on_math_space_quad_gtk_action_callback}, {"MathSpaceQquad", NULL, "\\qqu_ad", NULL, NULL, (GCallback) _latex_menu_on_math_space_qquad_gtk_action_callback}, {"MathLeftDelimiters", "delimiters-left", N_ ("_Left Delimiters")}, {"MathLeftDelimiter1", NULL, N_ ("left ("), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_1_gtk_action_callback}, {"MathLeftDelimiter2", NULL, N_ ("left ["), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_2_gtk_action_callback}, {"MathLeftDelimiter3", NULL, N_ ("left { "), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_3_gtk_action_callback}, {"MathLeftDelimiter4", NULL, N_ ("left <"), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_4_gtk_action_callback}, {"MathLeftDelimiter5", NULL, N_ ("left )"), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_5_gtk_action_callback}, {"MathLeftDelimiter6", NULL, N_ ("left ]"), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_6_gtk_action_callback}, {"MathLeftDelimiter7", NULL, N_ ("left  }"), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_7_gtk_action_callback}, {"MathLeftDelimiter8", NULL, N_ ("left >"), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_8_gtk_action_callback}, {"MathLeftDelimiter9", NULL, N_ ("left ."), NULL, NULL, (GCallback) _latex_menu_on_math_left_delimiter_9_gtk_action_callback}, {"MathRightDelimiters", "delimiters-right", N_ ("Right _Delimiters")}, {"MathRightDelimiter1", NULL, N_ ("right )"), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_1_gtk_action_callback}, {"MathRightDelimiter2", NULL, N_ ("right ]"), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_2_gtk_action_callback}, {"MathRightDelimiter3", NULL, N_ ("right  }"), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_3_gtk_action_callback}, {"MathRightDelimiter4", NULL, N_ ("right >"), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_4_gtk_action_callback}, {"MathRightDelimiter5", NULL, N_ ("right ("), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_5_gtk_action_callback}, {"MathRightDelimiter6", NULL, N_ ("right ["), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_6_gtk_action_callback}, {"MathRightDelimiter7", NULL, N_ ("right { "), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_7_gtk_action_callback}, {"MathRightDelimiter8", NULL, N_ ("right <"), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_8_gtk_action_callback}, {"MathRightDelimiter9", NULL, N_ ("right ."), NULL, NULL, (GCallback) _latex_menu_on_math_right_delimiter_9_gtk_action_callback}};

static void _latex_menu_on_sectioning_part_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_part ((LatexMenu*) self);
}


static void _latex_menu_on_sectioning_chapter_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_chapter ((LatexMenu*) self);
}


static void _latex_menu_on_sectioning_section_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_section ((LatexMenu*) self);
}


static void _latex_menu_on_sectioning_subsection_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_subsection ((LatexMenu*) self);
}


static void _latex_menu_on_sectioning_subsubsection_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_subsubsection ((LatexMenu*) self);
}


static void _latex_menu_on_sectioning_paragraph_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_paragraph ((LatexMenu*) self);
}


static void _latex_menu_on_sectioning_subparagraph_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_sectioning_subparagraph ((LatexMenu*) self);
}


static void _latex_menu_on_ref_label_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ref_label ((LatexMenu*) self);
}


static void _latex_menu_on_ref_ref_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ref_ref ((LatexMenu*) self);
}


static void _latex_menu_on_ref_pageref_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ref_pageref ((LatexMenu*) self);
}


static void _latex_menu_on_ref_index_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ref_index ((LatexMenu*) self);
}


static void _latex_menu_on_ref_footnote_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ref_footnote ((LatexMenu*) self);
}


static void _latex_menu_on_ref_cite_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ref_cite ((LatexMenu*) self);
}


static void _latex_menu_on_env_center_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_center ((LatexMenu*) self);
}


static void _latex_menu_on_env_left_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_left ((LatexMenu*) self);
}


static void _latex_menu_on_env_right_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_right ((LatexMenu*) self);
}


static void _latex_menu_on_env_figure_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_figure ((LatexMenu*) self);
}


static void _latex_menu_on_env_table_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_table ((LatexMenu*) self);
}


static void _latex_menu_on_env_quote_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_quote ((LatexMenu*) self);
}


static void _latex_menu_on_env_quotation_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_quotation ((LatexMenu*) self);
}


static void _latex_menu_on_env_verse_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_verse ((LatexMenu*) self);
}


static void _latex_menu_on_env_verbatim_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_verbatim ((LatexMenu*) self);
}


static void _latex_menu_on_env_minipage_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_minipage ((LatexMenu*) self);
}


static void _latex_menu_on_env_titlepage_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_env_titlepage ((LatexMenu*) self);
}


static void _latex_menu_on_list_env_itemize_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_list_env_itemize ((LatexMenu*) self);
}


static void _latex_menu_on_list_env_enumerate_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_list_env_enumerate ((LatexMenu*) self);
}


static void _latex_menu_on_list_env_description_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_list_env_description ((LatexMenu*) self);
}


static void _latex_menu_on_list_env_list_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_list_env_list ((LatexMenu*) self);
}


static void _latex_menu_on_list_env_item_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_list_env_item ((LatexMenu*) self);
}


static void _latex_menu_on_size_tiny_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_tiny ((LatexMenu*) self);
}


static void _latex_menu_on_size_scriptsize_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_scriptsize ((LatexMenu*) self);
}


static void _latex_menu_on_size_footnotesize_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_footnotesize ((LatexMenu*) self);
}


static void _latex_menu_on_size_small_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_small ((LatexMenu*) self);
}


static void _latex_menu_on_size_normalsize_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_normalsize ((LatexMenu*) self);
}


static void _latex_menu_on_size_large_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_large ((LatexMenu*) self);
}


static void _latex_menu_on_size_Large_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_Large ((LatexMenu*) self);
}


static void _latex_menu_on_size_LARGE_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_LARGE ((LatexMenu*) self);
}


static void _latex_menu_on_size_huge_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_huge ((LatexMenu*) self);
}


static void _latex_menu_on_size_Huge_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_size_Huge ((LatexMenu*) self);
}


static void _latex_menu_on_text_bold_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_bold ((LatexMenu*) self);
}


static void _latex_menu_on_text_italic_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_italic ((LatexMenu*) self);
}


static void _latex_menu_on_text_typewriter_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_typewriter ((LatexMenu*) self);
}


static void _latex_menu_on_text_slanted_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_slanted ((LatexMenu*) self);
}


static void _latex_menu_on_text_small_caps_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_small_caps ((LatexMenu*) self);
}


static void _latex_menu_on_text_sans_serif_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_sans_serif ((LatexMenu*) self);
}


static void _latex_menu_on_text_emph_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_emph ((LatexMenu*) self);
}


static void _latex_menu_on_text_underline_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_underline ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_family_roman_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_family_roman ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_family_sans_serif_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_family_sans_serif ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_family_monospace_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_family_monospace ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_series_medium_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_series_medium ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_series_bold_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_series_bold ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_shape_upright_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_shape_upright ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_shape_italic_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_shape_italic ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_shape_slanted_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_shape_slanted ((LatexMenu*) self);
}


static void _latex_menu_on_text_font_shape_small_caps_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_text_font_shape_small_caps ((LatexMenu*) self);
}


static void _latex_menu_on_tabular_tabbing_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tabular_tabbing ((LatexMenu*) self);
}


static void _latex_menu_on_tabular_tabular_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tabular_tabular ((LatexMenu*) self);
}


static void _latex_menu_on_tabular_multicolumn_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tabular_multicolumn ((LatexMenu*) self);
}


static void _latex_menu_on_tabular_hline_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tabular_hline ((LatexMenu*) self);
}


static void _latex_menu_on_tabular_vline_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tabular_vline ((LatexMenu*) self);
}


static void _latex_menu_on_tabular_cline_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tabular_cline ((LatexMenu*) self);
}


static void _latex_menu_on_present_frame_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_present_frame ((LatexMenu*) self);
}


static void _latex_menu_on_present_block_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_present_block ((LatexMenu*) self);
}


static void _latex_menu_on_present_columns_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_present_columns ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_new_line_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_new_line ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_new_page_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_new_page ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_line_break_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_line_break ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_page_break_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_page_break ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_bigskip_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_bigskip ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_medskip_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_medskip ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_hspace_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_hspace ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_vspace_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_vspace ((LatexMenu*) self);
}


static void _latex_menu_on_spacing_noindent_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_spacing_noindent ((LatexMenu*) self);
}


static void _latex_menu_on_accent0_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent0 ((LatexMenu*) self);
}


static void _latex_menu_on_accent1_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent1 ((LatexMenu*) self);
}


static void _latex_menu_on_accent2_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent2 ((LatexMenu*) self);
}


static void _latex_menu_on_accent3_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent3 ((LatexMenu*) self);
}


static void _latex_menu_on_accent4_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent4 ((LatexMenu*) self);
}


static void _latex_menu_on_accent5_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent5 ((LatexMenu*) self);
}


static void _latex_menu_on_accent6_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent6 ((LatexMenu*) self);
}


static void _latex_menu_on_accent7_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent7 ((LatexMenu*) self);
}


static void _latex_menu_on_accent8_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent8 ((LatexMenu*) self);
}


static void _latex_menu_on_accent9_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent9 ((LatexMenu*) self);
}


static void _latex_menu_on_accent10_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent10 ((LatexMenu*) self);
}


static void _latex_menu_on_accent11_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent11 ((LatexMenu*) self);
}


static void _latex_menu_on_accent12_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent12 ((LatexMenu*) self);
}


static void _latex_menu_on_accent13_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent13 ((LatexMenu*) self);
}


static void _latex_menu_on_accent14_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent14 ((LatexMenu*) self);
}


static void _latex_menu_on_accent15_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_accent15 ((LatexMenu*) self);
}


static void _latex_menu_on_documentclass_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_documentclass ((LatexMenu*) self);
}


static void _latex_menu_on_usepackage_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_usepackage ((LatexMenu*) self);
}


static void _latex_menu_on_ams_packages_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_ams_packages ((LatexMenu*) self);
}


static void _latex_menu_on_author_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_author ((LatexMenu*) self);
}


static void _latex_menu_on_title_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_title ((LatexMenu*) self);
}


static void _latex_menu_on_begin_document_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_begin_document ((LatexMenu*) self);
}


static void _latex_menu_on_maketitle_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_maketitle ((LatexMenu*) self);
}


static void _latex_menu_on_tableofcontents_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_tableofcontents ((LatexMenu*) self);
}


static void _latex_menu_on_abstract_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_abstract ((LatexMenu*) self);
}


static void _latex_menu_on_include_graphics_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_include_graphics ((LatexMenu*) self);
}


static void _latex_menu_on_input_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_input ((LatexMenu*) self);
}


static void _latex_menu_on_math_env_normal_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_env_normal ((LatexMenu*) self);
}


static void _latex_menu_on_math_env_centered_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_env_centered ((LatexMenu*) self);
}


static void _latex_menu_on_math_env_numbered_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_env_numbered ((LatexMenu*) self);
}


static void _latex_menu_on_math_env_array_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_env_array ((LatexMenu*) self);
}


static void _latex_menu_on_math_env_numbered_array_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_env_numbered_array ((LatexMenu*) self);
}


static void _latex_menu_on_math_superscript_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_superscript ((LatexMenu*) self);
}


static void _latex_menu_on_math_subscript_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_subscript ((LatexMenu*) self);
}


static void _latex_menu_on_math_frac_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_frac ((LatexMenu*) self);
}


static void _latex_menu_on_math_square_root_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_square_root ((LatexMenu*) self);
}


static void _latex_menu_on_math_nth_root_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_nth_root ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_arccos_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_arccos ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_arcsin_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_arcsin ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_arctan_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_arctan ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_cos_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_cos ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_cosh_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_cosh ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_cot_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_cot ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_coth_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_coth ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_csc_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_csc ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_deg_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_deg ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_det_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_det ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_dim_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_dim ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_exp_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_exp ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_gcd_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_gcd ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_hom_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_hom ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_inf_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_inf ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_ker_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_ker ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_lg_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_lg ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_lim_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_lim ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_liminf_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_liminf ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_limsup_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_limsup ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_ln_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_ln ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_log_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_log ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_max_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_max ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_min_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_min ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_sec_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_sec ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_sin_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_sin ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_sinh_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_sinh ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_sup_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_sup ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_tan_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_tan ((LatexMenu*) self);
}


static void _latex_menu_on_math_func_tanh_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_func_tanh ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_rm_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_rm ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_it_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_it ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_bf_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_bf ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_sf_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_sf ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_tt_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_tt ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_cal_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_cal ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_bb_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_bb ((LatexMenu*) self);
}


static void _latex_menu_on_math_font_style_frak_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_font_style_frak ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_acute_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_acute ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_grave_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_grave ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_tilde_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_tilde ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_bar_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_bar ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_vec_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_vec ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_hat_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_hat ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_check_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_check ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_breve_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_breve ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_dot_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_dot ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_ddot_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_ddot ((LatexMenu*) self);
}


static void _latex_menu_on_math_accent_ring_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_accent_ring ((LatexMenu*) self);
}


static void _latex_menu_on_math_space_small_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_space_small ((LatexMenu*) self);
}


static void _latex_menu_on_math_space_medium_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_space_medium ((LatexMenu*) self);
}


static void _latex_menu_on_math_space_large_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_space_large ((LatexMenu*) self);
}


static void _latex_menu_on_math_space_quad_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_space_quad ((LatexMenu*) self);
}


static void _latex_menu_on_math_space_qquad_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_space_qquad ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_1_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_1 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_2_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_2 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_3_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_3 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_4_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_4 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_5_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_5 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_6_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_6 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_7_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_7 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_8_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_8 ((LatexMenu*) self);
}


static void _latex_menu_on_math_left_delimiter_9_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_left_delimiter_9 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_1_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_1 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_2_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_2 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_3_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_3 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_4_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_4 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_5_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_5 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_6_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_6 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_7_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_7 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_8_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_8 ((LatexMenu*) self);
}


static void _latex_menu_on_math_right_delimiter_9_gtk_action_callback (GtkAction* action, gpointer self) {
	latex_menu_on_math_right_delimiter_9 ((LatexMenu*) self);
}


LatexMenu* latex_menu_construct (GType object_type, MainWindow* main_window) {
	LatexMenu * self = NULL;
	MainWindow* _tmp0_;
	GtkAction* sectioning = NULL;
	GtkAction* _tmp1_;
	GtkAction* sizes = NULL;
	GtkAction* _tmp2_;
	GtkAction* references = NULL;
	GtkAction* _tmp3_;
	GtkAction* presentation_env = NULL;
	GtkAction* _tmp4_;
	GtkAction* math_env = NULL;
	GtkAction* _tmp5_;
	g_return_val_if_fail (main_window != NULL, NULL);
	self = (LatexMenu*) g_object_new (object_type, "name", "LatexActionGroup", NULL);
	gtk_action_group_set_translation_domain ((GtkActionGroup*) self, GETTEXT_PACKAGE);
	_tmp0_ = main_window;
	self->priv->main_window = _tmp0_;
	_tmp1_ = latex_menu_get_menu_tool_action (self, "SectioningToolItem", _ ("Sectioning"), "sectioning");
	sectioning = _tmp1_;
	_tmp2_ = latex_menu_get_menu_tool_action (self, "CharacterSizeToolItem", _ ("Characters Sizes"), "character-size");
	sizes = _tmp2_;
	_tmp3_ = latex_menu_get_menu_tool_action (self, "ReferencesToolItem", _ ("References"), "references");
	references = _tmp3_;
	_tmp4_ = latex_menu_get_menu_tool_action (self, "PresentationToolItem", _ ("Presentation Environments"), "x-office-presentation");
	presentation_env = _tmp4_;
	_tmp5_ = latex_menu_get_menu_tool_action (self, "MathEnvironmentsToolItem", _ ("Math Environments"), "math");
	math_env = _tmp5_;
	gtk_action_group_add_actions ((GtkActionGroup*) self, LATEX_MENU_latex_action_entries, G_N_ELEMENTS (LATEX_MENU_latex_action_entries), self);
	gtk_action_group_add_action ((GtkActionGroup*) self, sectioning);
	gtk_action_group_add_action ((GtkActionGroup*) self, sizes);
	gtk_action_group_add_action ((GtkActionGroup*) self, references);
	gtk_action_group_add_action ((GtkActionGroup*) self, presentation_env);
	gtk_action_group_add_action ((GtkActionGroup*) self, math_env);
	_g_object_unref0 (math_env);
	_g_object_unref0 (presentation_env);
	_g_object_unref0 (references);
	_g_object_unref0 (sizes);
	_g_object_unref0 (sectioning);
	return self;
}


LatexMenu* latex_menu_new (MainWindow* main_window) {
	return latex_menu_construct (TYPE_LATEX_MENU, main_window);
}


static GtkAction* latex_menu_get_menu_tool_action (LatexMenu* self, const gchar* name, const gchar* label, const gchar* icon_name) {
	GtkAction* result = NULL;
	GtkAction* action = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	MenuToolAction* _tmp4_;
	GtkActivatable* menu_tool_button = NULL;
	GtkMenuToolButton* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = name;
	_tmp1_ = label;
	_tmp2_ = label;
	_tmp3_ = icon_name;
	_tmp4_ = menu_tool_action_new (_tmp0_, _tmp1_, _tmp2_, _tmp3_);
	action = (GtkAction*) _tmp4_;
	_tmp5_ = (GtkMenuToolButton*) gtk_menu_tool_button_new (NULL, NULL);
	g_object_ref_sink (_tmp5_);
	menu_tool_button = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, GTK_TYPE_ACTIVATABLE, GtkActivatable);
	gtk_activatable_set_related_action (menu_tool_button, action);
	result = action;
	_g_object_unref0 (menu_tool_button);
	return result;
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = needle;
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
	result = _tmp1_ != NULL;
	return result;
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (old != NULL, NULL);
	g_return_val_if_fail (replacement != NULL, NULL);
	if ((*((gchar*) self)) == '\0') {
		_tmp1_ = TRUE;
	} else {
		const gchar* _tmp2_;
		_tmp2_ = old;
		_tmp1_ = (*((gchar*) _tmp2_)) == '\0';
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		const gchar* _tmp3_;
		const gchar* _tmp4_;
		_tmp3_ = old;
		_tmp4_ = replacement;
		_tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0;
	}
	if (_tmp0_) {
		gchar* _tmp5_;
		_tmp5_ = g_strdup (self);
		result = _tmp5_;
		return result;
	}
	{
		GRegex* regex = NULL;
		const gchar* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
		GRegex* _tmp9_;
		GRegex* _tmp10_;
		gchar* _tmp11_ = NULL;
		GRegex* _tmp12_;
		const gchar* _tmp13_;
		gchar* _tmp14_;
		gchar* _tmp15_;
		_tmp6_ = old;
		_tmp7_ = g_regex_escape_string (_tmp6_, -1);
		_tmp8_ = _tmp7_;
		_tmp9_ = g_regex_new (_tmp8_, 0, 0, &_inner_error_);
		_tmp10_ = _tmp9_;
		_g_free0 (_tmp8_);
		regex = _tmp10_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == G_REGEX_ERROR) {
				goto __catch32_g_regex_error;
			}
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp12_ = regex;
		_tmp13_ = replacement;
		_tmp14_ = g_regex_replace_literal (_tmp12_, self, (gssize) -1, 0, _tmp13_, 0, &_inner_error_);
		_tmp11_ = _tmp14_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			_g_regex_unref0 (regex);
			if (_inner_error_->domain == G_REGEX_ERROR) {
				goto __catch32_g_regex_error;
			}
			_g_regex_unref0 (regex);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return NULL;
		}
		_tmp15_ = _tmp11_;
		_tmp11_ = NULL;
		result = _tmp15_;
		_g_free0 (_tmp11_);
		_g_regex_unref0 (regex);
		return result;
	}
	goto __finally32;
	__catch32_g_regex_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (e);
	}
	__finally32:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return NULL;
	}
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}


static void latex_menu_text_buffer_insert (LatexMenu* self, const gchar* text_before, const gchar* text_after, const gchar* text_if_no_selection) {
	MainWindow* _tmp0_;
	DocumentTab* _tmp1_;
	DocumentTab* _tmp2_;
	Document* active_document = NULL;
	MainWindow* _tmp3_;
	Document* _tmp4_;
	Document* _tmp5_;
	Document* _tmp6_;
	GtkTextIter start = {0};
	GtkTextIter end = {0};
	gboolean text_selected = FALSE;
	Document* _tmp7_;
	GtkTextIter _tmp8_ = {0};
	GtkTextIter _tmp9_ = {0};
	gboolean _tmp10_;
	gchar* text_before2 = NULL;
	gchar* text_after2 = NULL;
	gboolean _tmp11_ = FALSE;
	const gchar* _tmp12_;
	gboolean _tmp13_;
	Document* _tmp31_;
	gboolean _tmp32_;
	Document* _tmp81_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (text_before != NULL);
	g_return_if_fail (text_after != NULL);
	_tmp0_ = self->priv->main_window;
	_tmp1_ = main_window_get_active_tab (_tmp0_);
	_tmp2_ = _tmp1_;
	g_return_if_fail (_tmp2_ != NULL);
	_tmp3_ = self->priv->main_window;
	_tmp4_ = main_window_get_active_document (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = _g_object_ref0 (_tmp5_);
	active_document = _tmp6_;
	_tmp7_ = active_document;
	_tmp10_ = gtk_text_buffer_get_selection_bounds ((GtkTextBuffer*) _tmp7_, &_tmp8_, &_tmp9_);
	start = _tmp8_;
	end = _tmp9_;
	text_selected = _tmp10_;
	text_before2 = NULL;
	text_after2 = NULL;
	_tmp12_ = text_before;
	_tmp13_ = string_contains (_tmp12_, "\n");
	if (_tmp13_) {
		_tmp11_ = TRUE;
	} else {
		const gchar* _tmp14_;
		gboolean _tmp15_;
		_tmp14_ = text_after;
		_tmp15_ = string_contains (_tmp14_, "\n");
		_tmp11_ = _tmp15_;
	}
	if (_tmp11_) {
		gchar* current_indent = NULL;
		GtkTextIter _tmp16_;
		gchar* _tmp17_;
		const gchar* _tmp18_;
		_tmp16_ = start;
		_tmp17_ = tepl_iter_get_line_indentation (&_tmp16_);
		current_indent = _tmp17_;
		_tmp18_ = current_indent;
		if (g_strcmp0 (_tmp18_, "") != 0) {
			const gchar* _tmp19_;
			const gchar* _tmp20_;
			const gchar* _tmp21_;
			gchar* _tmp22_;
			gchar* _tmp23_;
			gchar* _tmp24_;
			const gchar* _tmp25_;
			const gchar* _tmp26_;
			const gchar* _tmp27_;
			gchar* _tmp28_;
			gchar* _tmp29_;
			gchar* _tmp30_;
			_tmp19_ = text_before;
			_tmp20_ = current_indent;
			_tmp21_ = string_to_string (_tmp20_);
			_tmp22_ = g_strconcat ("\n", _tmp21_, NULL);
			_tmp23_ = _tmp22_;
			_tmp24_ = string_replace (_tmp19_, "\n", _tmp23_);
			_g_free0 (text_before2);
			text_before2 = _tmp24_;
			_g_free0 (_tmp23_);
			_tmp25_ = text_after;
			_tmp26_ = current_indent;
			_tmp27_ = string_to_string (_tmp26_);
			_tmp28_ = g_strconcat ("\n", _tmp27_, NULL);
			_tmp29_ = _tmp28_;
			_tmp30_ = string_replace (_tmp25_, "\n", _tmp29_);
			_g_free0 (text_after2);
			text_after2 = _tmp30_;
			_g_free0 (_tmp29_);
		}
		_g_free0 (current_indent);
	}
	_tmp31_ = active_document;
	gtk_text_buffer_begin_user_action ((GtkTextBuffer*) _tmp31_);
	_tmp32_ = text_selected;
	if (_tmp32_) {
		GtkTextMark* mark_end = NULL;
		Document* _tmp33_;
		GtkTextIter _tmp34_;
		GtkTextMark* _tmp35_;
		GtkTextMark* _tmp36_;
		const gchar* _tmp37_ = NULL;
		const gchar* _tmp38_;
		Document* _tmp40_;
		Document* _tmp41_;
		GtkTextMark* _tmp42_;
		GtkTextIter _tmp43_ = {0};
		const gchar* _tmp44_ = NULL;
		const gchar* _tmp45_;
		Document* _tmp47_;
		Document* _tmp48_;
		GtkTextMark* _tmp49_;
		GtkTextIter _tmp50_ = {0};
		Document* _tmp51_;
		GtkTextMark* _tmp52_;
		Document* _tmp53_;
		GtkTextIter _tmp54_;
		_tmp33_ = active_document;
		_tmp34_ = end;
		_tmp35_ = gtk_text_buffer_create_mark ((GtkTextBuffer*) _tmp33_, NULL, &_tmp34_, FALSE);
		_tmp36_ = _g_object_ref0 (_tmp35_);
		mark_end = _tmp36_;
		_tmp38_ = text_before2;
		_tmp37_ = _tmp38_;
		if (_tmp37_ == NULL) {
			const gchar* _tmp39_;
			_tmp39_ = text_before;
			_tmp37_ = _tmp39_;
		}
		_tmp40_ = active_document;
		document_insert (_tmp40_, &start, _tmp37_, -1);
		_tmp41_ = active_document;
		_tmp42_ = mark_end;
		gtk_text_buffer_get_iter_at_mark ((GtkTextBuffer*) _tmp41_, &_tmp43_, _tmp42_);
		end = _tmp43_;
		_tmp45_ = text_after2;
		_tmp44_ = _tmp45_;
		if (_tmp44_ == NULL) {
			const gchar* _tmp46_;
			_tmp46_ = text_after;
			_tmp44_ = _tmp46_;
		}
		_tmp47_ = active_document;
		document_insert (_tmp47_, &end, _tmp44_, -1);
		_tmp48_ = active_document;
		_tmp49_ = mark_end;
		gtk_text_buffer_get_iter_at_mark ((GtkTextBuffer*) _tmp48_, &_tmp50_, _tmp49_);
		end = _tmp50_;
		_tmp51_ = active_document;
		_tmp52_ = mark_end;
		gtk_text_buffer_delete_mark ((GtkTextBuffer*) _tmp51_, _tmp52_);
		_tmp53_ = active_document;
		_tmp54_ = end;
		gtk_text_buffer_place_cursor ((GtkTextBuffer*) _tmp53_, &_tmp54_);
		_g_object_unref0 (mark_end);
	} else {
		const gchar* _tmp55_;
		_tmp55_ = text_if_no_selection;
		if (_tmp55_ != NULL) {
			Document* _tmp56_;
			const gchar* _tmp57_;
			_tmp56_ = active_document;
			_tmp57_ = text_if_no_selection;
			gtk_text_buffer_insert_at_cursor ((GtkTextBuffer*) _tmp56_, _tmp57_, -1);
		} else {
			const gchar* _tmp58_ = NULL;
			const gchar* _tmp59_;
			Document* _tmp61_;
			GtkTextIter between = {0};
			Document* _tmp62_;
			Document* _tmp63_;
			GtkTextMark* _tmp64_;
			GtkTextIter _tmp65_ = {0};
			GtkTextMark* mark = NULL;
			Document* _tmp66_;
			GtkTextIter _tmp67_;
			GtkTextMark* _tmp68_;
			GtkTextMark* _tmp69_;
			const gchar* _tmp70_ = NULL;
			const gchar* _tmp71_;
			Document* _tmp73_;
			Document* _tmp74_;
			GtkTextMark* _tmp75_;
			GtkTextIter _tmp76_ = {0};
			Document* _tmp77_;
			GtkTextMark* _tmp78_;
			Document* _tmp79_;
			GtkTextIter _tmp80_;
			_tmp59_ = text_before2;
			_tmp58_ = _tmp59_;
			if (_tmp58_ == NULL) {
				const gchar* _tmp60_;
				_tmp60_ = text_before;
				_tmp58_ = _tmp60_;
			}
			_tmp61_ = active_document;
			gtk_text_buffer_insert_at_cursor ((GtkTextBuffer*) _tmp61_, _tmp58_, -1);
			_tmp62_ = active_document;
			_tmp63_ = active_document;
			_tmp64_ = gtk_text_buffer_get_insert ((GtkTextBuffer*) _tmp63_);
			gtk_text_buffer_get_iter_at_mark ((GtkTextBuffer*) _tmp62_, &_tmp65_, _tmp64_);
			between = _tmp65_;
			_tmp66_ = active_document;
			_tmp67_ = between;
			_tmp68_ = gtk_text_buffer_create_mark ((GtkTextBuffer*) _tmp66_, NULL, &_tmp67_, TRUE);
			_tmp69_ = _g_object_ref0 (_tmp68_);
			mark = _tmp69_;
			_tmp71_ = text_after2;
			_tmp70_ = _tmp71_;
			if (_tmp70_ == NULL) {
				const gchar* _tmp72_;
				_tmp72_ = text_after;
				_tmp70_ = _tmp72_;
			}
			_tmp73_ = active_document;
			gtk_text_buffer_insert_at_cursor ((GtkTextBuffer*) _tmp73_, _tmp70_, -1);
			_tmp74_ = active_document;
			_tmp75_ = mark;
			gtk_text_buffer_get_iter_at_mark ((GtkTextBuffer*) _tmp74_, &_tmp76_, _tmp75_);
			between = _tmp76_;
			_tmp77_ = active_document;
			_tmp78_ = mark;
			gtk_text_buffer_delete_mark ((GtkTextBuffer*) _tmp77_, _tmp78_);
			_tmp79_ = active_document;
			_tmp80_ = between;
			gtk_text_buffer_place_cursor ((GtkTextBuffer*) _tmp79_, &_tmp80_);
			_g_object_unref0 (mark);
		}
	}
	_tmp81_ = active_document;
	gtk_text_buffer_end_user_action ((GtkTextBuffer*) _tmp81_);
	_g_free0 (text_after2);
	_g_free0 (text_before2);
	_g_object_unref0 (active_document);
}


static gchar* latex_menu_get_indentation (LatexMenu* self) {
	gchar* result = NULL;
	MainWindow* _tmp0_;
	DocumentView* _tmp1_;
	DocumentView* _tmp2_;
	gchar* _tmp3_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->main_window;
	_tmp1_ = main_window_get_active_view (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = document_view_get_indentation_style (_tmp2_);
	result = _tmp3_;
	return result;
}


static void latex_menu_insert_character_style (LatexMenu* self, const gchar* style) {
	MainWindow* _tmp0_;
	DocumentTab* _tmp1_;
	DocumentTab* _tmp2_;
	MainWindow* _tmp3_;
	Document* _tmp4_;
	Document* _tmp5_;
	TeplSelectionType _tmp6_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (style != NULL);
	_tmp0_ = self->priv->main_window;
	_tmp1_ = main_window_get_active_tab (_tmp0_);
	_tmp2_ = _tmp1_;
	g_return_if_fail (_tmp2_ != NULL);
	_tmp3_ = self->priv->main_window;
	_tmp4_ = main_window_get_active_document (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = tepl_buffer_get_selection_type ((TeplBuffer*) _tmp5_);
	if (_tmp6_ == TEPL_SELECTION_TYPE_MULTIPLE_LINES) {
		const gchar* _tmp7_;
		const gchar* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		gchar* _tmp13_;
		gchar* _tmp14_;
		_tmp7_ = style;
		_tmp8_ = string_to_string (_tmp7_);
		_tmp9_ = g_strconcat ("\\begin{", _tmp8_, "}\n", NULL);
		_tmp10_ = _tmp9_;
		_tmp11_ = style;
		_tmp12_ = string_to_string (_tmp11_);
		_tmp13_ = g_strconcat ("\n\\end{", _tmp12_, "}", NULL);
		_tmp14_ = _tmp13_;
		latex_menu_text_buffer_insert (self, _tmp10_, _tmp14_, NULL);
		_g_free0 (_tmp14_);
		_g_free0 (_tmp10_);
	} else {
		const gchar* _tmp15_;
		const gchar* _tmp16_;
		gchar* _tmp17_;
		gchar* _tmp18_;
		const gchar* _tmp19_;
		const gchar* _tmp20_;
		gchar* _tmp21_;
		gchar* _tmp22_;
		_tmp15_ = style;
		_tmp16_ = string_to_string (_tmp15_);
		_tmp17_ = g_strconcat ("{\\", _tmp16_, " ", NULL);
		_tmp18_ = _tmp17_;
		_tmp19_ = style;
		_tmp20_ = string_to_string (_tmp19_);
		_tmp21_ = g_strconcat ("\\", _tmp20_, " ", NULL);
		_tmp22_ = _tmp21_;
		latex_menu_text_buffer_insert (self, _tmp18_, "}", _tmp22_);
		_g_free0 (_tmp22_);
		_g_free0 (_tmp18_);
	}
}


void latex_menu_on_sectioning_part (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\part{", "}", NULL);
}


void latex_menu_on_sectioning_chapter (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\chapter{", "}", NULL);
}


void latex_menu_on_sectioning_section (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\section{", "}", NULL);
}


void latex_menu_on_sectioning_subsection (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\subsection{", "}", NULL);
}


void latex_menu_on_sectioning_subsubsection (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\subsubsection{", "}", NULL);
}


void latex_menu_on_sectioning_paragraph (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\paragraph{", "}", NULL);
}


void latex_menu_on_sectioning_subparagraph (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\subparagraph{", "}", NULL);
}


void latex_menu_on_ref_label (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\label{", "} ", NULL);
}


void latex_menu_on_ref_ref (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\ref{", "} ", NULL);
}


void latex_menu_on_ref_pageref (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\pageref{", "} ", NULL);
}


void latex_menu_on_ref_index (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\index{", "} ", NULL);
}


void latex_menu_on_ref_footnote (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\footnote{", "} ", NULL);
}


void latex_menu_on_ref_cite (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\cite{", "} ", NULL);
}


void latex_menu_on_env_center (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{center}\n", "\n\\end{center}", NULL);
}


void latex_menu_on_env_left (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{flushleft}\n", "\n\\end{flushleft}", NULL);
}


void latex_menu_on_env_right (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{flushright}\n", "\n\\end{flushright}", NULL);
}


void latex_menu_on_env_figure (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	gchar* before_cursor = NULL;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* after_cursor = NULL;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	const gchar* _tmp18_;
	const gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	gchar* _tmp27_;
	gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat (_tmp1_, "\\begin{center}\n", NULL);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strconcat ("\\begin{figure}\n", _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	_tmp6_ = string_to_string (indent);
	_tmp7_ = string_to_string (indent);
	_tmp8_ = g_strconcat (_tmp6_, _tmp7_, "\\includegraphics{", NULL);
	_tmp9_ = _tmp8_;
	_tmp10_ = g_strconcat (_tmp5_, _tmp9_, NULL);
	_tmp11_ = _tmp10_;
	_g_free0 (_tmp9_);
	_g_free0 (_tmp5_);
	_g_free0 (_tmp3_);
	before_cursor = _tmp11_;
	_tmp12_ = string_to_string (indent);
	_tmp13_ = string_to_string (indent);
	_tmp14_ = g_strconcat (_tmp12_, _tmp13_, "\\caption{}\n", NULL);
	_tmp15_ = _tmp14_;
	_tmp16_ = g_strconcat ("}\n", _tmp15_, NULL);
	_tmp17_ = _tmp16_;
	_tmp18_ = string_to_string (indent);
	_tmp19_ = string_to_string (indent);
	_tmp20_ = g_strconcat (_tmp18_, _tmp19_, "\\label{fig:}\n", NULL);
	_tmp21_ = _tmp20_;
	_tmp22_ = g_strconcat (_tmp17_, _tmp21_, NULL);
	_tmp23_ = _tmp22_;
	_tmp24_ = string_to_string (indent);
	_tmp25_ = g_strconcat (_tmp24_, "\\end{center}\n", NULL);
	_tmp26_ = _tmp25_;
	_tmp27_ = g_strconcat (_tmp23_, _tmp26_, NULL);
	_tmp28_ = _tmp27_;
	_tmp29_ = g_strconcat (_tmp28_, "\\end{figure}", NULL);
	_tmp30_ = _tmp29_;
	_g_free0 (_tmp28_);
	_g_free0 (_tmp26_);
	_g_free0 (_tmp23_);
	_g_free0 (_tmp21_);
	_g_free0 (_tmp17_);
	_g_free0 (_tmp15_);
	after_cursor = _tmp30_;
	latex_menu_text_buffer_insert (self, before_cursor, after_cursor, NULL);
	_g_free0 (after_cursor);
	_g_free0 (before_cursor);
	_g_free0 (indent);
}


void latex_menu_on_env_table (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	gchar* before_cursor = NULL;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* after_cursor = NULL;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	const gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	const gchar* _tmp18_;
	const gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	gchar* _tmp27_;
	gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	const gchar* _tmp38_;
	const gchar* _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	gchar* _tmp42_;
	gchar* _tmp43_;
	const gchar* _tmp44_;
	gchar* _tmp45_;
	gchar* _tmp46_;
	gchar* _tmp47_;
	gchar* _tmp48_;
	gchar* _tmp49_;
	gchar* _tmp50_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat (_tmp1_, "\\caption{", NULL);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strconcat ("\\begin{table}\n", _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	_g_free0 (_tmp3_);
	before_cursor = _tmp5_;
	_tmp6_ = string_to_string (indent);
	_tmp7_ = g_strconcat (_tmp6_, "\\label{tab:}\n", NULL);
	_tmp8_ = _tmp7_;
	_tmp9_ = g_strconcat ("}\n", _tmp8_, NULL);
	_tmp10_ = _tmp9_;
	_tmp11_ = g_strconcat (_tmp10_, "\n", NULL);
	_tmp12_ = _tmp11_;
	_tmp13_ = string_to_string (indent);
	_tmp14_ = g_strconcat (_tmp13_, "\\begin{center}\n", NULL);
	_tmp15_ = _tmp14_;
	_tmp16_ = g_strconcat (_tmp12_, _tmp15_, NULL);
	_tmp17_ = _tmp16_;
	_tmp18_ = string_to_string (indent);
	_tmp19_ = string_to_string (indent);
	_tmp20_ = g_strconcat (_tmp18_, _tmp19_, "\\begin{tabular}{cc}\n", NULL);
	_tmp21_ = _tmp20_;
	_tmp22_ = g_strconcat (_tmp17_, _tmp21_, NULL);
	_tmp23_ = _tmp22_;
	_tmp24_ = string_to_string (indent);
	_tmp25_ = string_to_string (indent);
	_tmp26_ = string_to_string (indent);
	_tmp27_ = g_strconcat (_tmp24_, _tmp25_, _tmp26_, " & \\\\\n", NULL);
	_tmp28_ = _tmp27_;
	_tmp29_ = g_strconcat (_tmp23_, _tmp28_, NULL);
	_tmp30_ = _tmp29_;
	_tmp31_ = string_to_string (indent);
	_tmp32_ = string_to_string (indent);
	_tmp33_ = string_to_string (indent);
	_tmp34_ = g_strconcat (_tmp31_, _tmp32_, _tmp33_, " & \\\\\n", NULL);
	_tmp35_ = _tmp34_;
	_tmp36_ = g_strconcat (_tmp30_, _tmp35_, NULL);
	_tmp37_ = _tmp36_;
	_tmp38_ = string_to_string (indent);
	_tmp39_ = string_to_string (indent);
	_tmp40_ = g_strconcat (_tmp38_, _tmp39_, "\\end{tabular}\n", NULL);
	_tmp41_ = _tmp40_;
	_tmp42_ = g_strconcat (_tmp37_, _tmp41_, NULL);
	_tmp43_ = _tmp42_;
	_tmp44_ = string_to_string (indent);
	_tmp45_ = g_strconcat (_tmp44_, "\\end{center}\n", NULL);
	_tmp46_ = _tmp45_;
	_tmp47_ = g_strconcat (_tmp43_, _tmp46_, NULL);
	_tmp48_ = _tmp47_;
	_tmp49_ = g_strconcat (_tmp48_, "\\end{table}", NULL);
	_tmp50_ = _tmp49_;
	_g_free0 (_tmp48_);
	_g_free0 (_tmp46_);
	_g_free0 (_tmp43_);
	_g_free0 (_tmp41_);
	_g_free0 (_tmp37_);
	_g_free0 (_tmp35_);
	_g_free0 (_tmp30_);
	_g_free0 (_tmp28_);
	_g_free0 (_tmp23_);
	_g_free0 (_tmp21_);
	_g_free0 (_tmp17_);
	_g_free0 (_tmp15_);
	_g_free0 (_tmp12_);
	_g_free0 (_tmp10_);
	_g_free0 (_tmp8_);
	after_cursor = _tmp50_;
	latex_menu_text_buffer_insert (self, before_cursor, after_cursor, NULL);
	_g_free0 (after_cursor);
	_g_free0 (before_cursor);
	_g_free0 (indent);
}


void latex_menu_on_env_quote (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{quote}\n", "\n\\end{quote}", NULL);
}


void latex_menu_on_env_quotation (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{quotation}\n", "\n\\end{quotation}", NULL);
}


void latex_menu_on_env_verse (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{verse}\n", "\n\\end{verse}", NULL);
}


void latex_menu_on_env_verbatim (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{verbatim}\n", "\n\\end{verbatim}", NULL);
}


void latex_menu_on_env_minipage (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{minipage}\n", "\n\\end{minipage}", NULL);
}


void latex_menu_on_env_titlepage (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{titlepage}\n", "\n\\end{titlepage}", NULL);
}


void latex_menu_on_list_env_itemize (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat ("\\begin{itemize}\n", _tmp1_, "\\item ", NULL);
	_tmp3_ = _tmp2_;
	latex_menu_text_buffer_insert (self, _tmp3_, "\n\\end{itemize}", NULL);
	_g_free0 (_tmp3_);
	_g_free0 (indent);
}


void latex_menu_on_list_env_enumerate (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat ("\\begin{enumerate}\n", _tmp1_, "\\item ", NULL);
	_tmp3_ = _tmp2_;
	latex_menu_text_buffer_insert (self, _tmp3_, "\n\\end{enumerate}", NULL);
	_g_free0 (_tmp3_);
	_g_free0 (indent);
}


void latex_menu_on_list_env_description (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat ("\\begin{description}\n", _tmp1_, "\\item[", NULL);
	_tmp3_ = _tmp2_;
	latex_menu_text_buffer_insert (self, _tmp3_, "] \n\\end{description}", NULL);
	_g_free0 (_tmp3_);
	_g_free0 (indent);
}


void latex_menu_on_list_env_list (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat ("}{}\n", _tmp1_, "\\item \n\\end{list}", NULL);
	_tmp3_ = _tmp2_;
	latex_menu_text_buffer_insert (self, "\\begin{list}{", _tmp3_, NULL);
	_g_free0 (_tmp3_);
	_g_free0 (indent);
}


void latex_menu_on_list_env_item (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\item ", "", NULL);
}


void latex_menu_on_size_tiny (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "tiny");
}


void latex_menu_on_size_scriptsize (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "scriptsize");
}


void latex_menu_on_size_footnotesize (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "footnotesize");
}


void latex_menu_on_size_small (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "small");
}


void latex_menu_on_size_normalsize (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "normalsize");
}


void latex_menu_on_size_large (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "large");
}


void latex_menu_on_size_Large (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "Large");
}


void latex_menu_on_size_LARGE (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "LARGE");
}


void latex_menu_on_size_huge (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "huge");
}


void latex_menu_on_size_Huge (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "Huge");
}


void latex_menu_on_text_bold (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\textbf{", "}", NULL);
}


void latex_menu_on_text_italic (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\textit{", "}", NULL);
}


void latex_menu_on_text_typewriter (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\texttt{", "}", NULL);
}


void latex_menu_on_text_slanted (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\textsl{", "}", NULL);
}


void latex_menu_on_text_small_caps (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\textsc{", "}", NULL);
}


void latex_menu_on_text_sans_serif (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\textsf{", "}", NULL);
}


void latex_menu_on_text_emph (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\emph{", "}", NULL);
}


void latex_menu_on_text_underline (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\underline{", "}", NULL);
}


void latex_menu_on_text_font_family_roman (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "rmfamily");
}


void latex_menu_on_text_font_family_sans_serif (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "sffamily");
}


void latex_menu_on_text_font_family_monospace (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "ttfamily");
}


void latex_menu_on_text_font_series_medium (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "mdseries");
}


void latex_menu_on_text_font_series_bold (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "bfseries");
}


void latex_menu_on_text_font_shape_upright (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "upshape");
}


void latex_menu_on_text_font_shape_italic (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "itshape");
}


void latex_menu_on_text_font_shape_slanted (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "slshape");
}


void latex_menu_on_text_font_shape_small_caps (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_insert_character_style (self, "scshape");
}


void latex_menu_on_tabular_tabbing (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{tabbing}\n", "\n\\end{tabbing}", NULL);
}


void latex_menu_on_tabular_tabular (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	gchar* before_cursor = NULL;
	gchar* _tmp1_;
	gchar* after_cursor = NULL;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = g_strdup ("\\begin{tabular}{cc");
	before_cursor = _tmp1_;
	_tmp2_ = string_to_string (indent);
	_tmp3_ = g_strconcat (_tmp2_, " & \\\\\n", NULL);
	_tmp4_ = _tmp3_;
	_tmp5_ = g_strconcat ("}\n", _tmp4_, NULL);
	_tmp6_ = _tmp5_;
	_tmp7_ = string_to_string (indent);
	_tmp8_ = g_strconcat (_tmp7_, " & \\\\\n", NULL);
	_tmp9_ = _tmp8_;
	_tmp10_ = g_strconcat (_tmp6_, _tmp9_, NULL);
	_tmp11_ = _tmp10_;
	_tmp12_ = g_strconcat (_tmp11_, "\\end{tabular}", NULL);
	_tmp13_ = _tmp12_;
	_g_free0 (_tmp11_);
	_g_free0 (_tmp9_);
	_g_free0 (_tmp6_);
	_g_free0 (_tmp4_);
	after_cursor = _tmp13_;
	latex_menu_text_buffer_insert (self, before_cursor, after_cursor, NULL);
	_g_free0 (after_cursor);
	_g_free0 (before_cursor);
	_g_free0 (indent);
}


void latex_menu_on_tabular_multicolumn (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\multicolumn{}{}{", "}", NULL);
}


void latex_menu_on_tabular_hline (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\hline ", "", NULL);
}


void latex_menu_on_tabular_vline (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\vline ", "", NULL);
}


void latex_menu_on_tabular_cline (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\cline{", "-}", NULL);
}


void latex_menu_on_spacing_new_line (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\\\\n", "", NULL);
}


void latex_menu_on_spacing_new_page (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\newpage\n", "", NULL);
}


void latex_menu_on_spacing_line_break (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\linebreak\n", "", NULL);
}


void latex_menu_on_spacing_page_break (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\pagebreak\n", "", NULL);
}


void latex_menu_on_spacing_bigskip (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\bigskip ", "", NULL);
}


void latex_menu_on_spacing_medskip (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\medskip ", "", NULL);
}


void latex_menu_on_spacing_hspace (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\hspace{", "}", NULL);
}


void latex_menu_on_spacing_vspace (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\vspace{", "}", NULL);
}


void latex_menu_on_spacing_noindent (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\noindent ", "", NULL);
}


void latex_menu_on_accent0 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\'{", "}", NULL);
}


void latex_menu_on_accent1 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\`{", "}", NULL);
}


void latex_menu_on_accent2 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\^{", "}", NULL);
}


void latex_menu_on_accent3 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\\"{", "}", NULL);
}


void latex_menu_on_accent4 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\~{", "}", NULL);
}


void latex_menu_on_accent5 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\={", "}", NULL);
}


void latex_menu_on_accent6 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\.{", "}", NULL);
}


void latex_menu_on_accent7 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\v{", "}", NULL);
}


void latex_menu_on_accent8 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\u{", "}", NULL);
}


void latex_menu_on_accent9 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\H{", "}", NULL);
}


void latex_menu_on_accent10 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\c{", "}", NULL);
}


void latex_menu_on_accent11 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\k{", "}", NULL);
}


void latex_menu_on_accent12 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\d{", "}", NULL);
}


void latex_menu_on_accent13 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\b{", "}", NULL);
}


void latex_menu_on_accent14 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\r{", "}", NULL);
}


void latex_menu_on_accent15 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\t{", "}", NULL);
}


void latex_menu_on_present_frame (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	gchar* begin_frame = NULL;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* end_frame = NULL;
	gchar* _tmp11_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat (_tmp1_, "\\frametitle{}\n", NULL);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strconcat ("\\begin{frame}\n", _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	_tmp6_ = string_to_string (indent);
	_tmp7_ = g_strconcat (_tmp6_, "\\framesubtitle{}\n", NULL);
	_tmp8_ = _tmp7_;
	_tmp9_ = g_strconcat (_tmp5_, _tmp8_, NULL);
	_tmp10_ = _tmp9_;
	_g_free0 (_tmp8_);
	_g_free0 (_tmp5_);
	_g_free0 (_tmp3_);
	begin_frame = _tmp10_;
	_tmp11_ = g_strdup ("\n\\end{frame}");
	end_frame = _tmp11_;
	latex_menu_text_buffer_insert (self, begin_frame, end_frame, NULL);
	_g_free0 (end_frame);
	_g_free0 (begin_frame);
	_g_free0 (indent);
}


void latex_menu_on_present_columns (LatexMenu* self) {
	gchar* indent = NULL;
	gchar* _tmp0_;
	gchar* begin_columns = NULL;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* end_columns = NULL;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	const gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	g_return_if_fail (self != NULL);
	_tmp0_ = latex_menu_get_indentation (self);
	indent = _tmp0_;
	_tmp1_ = string_to_string (indent);
	_tmp2_ = g_strconcat (_tmp1_, "\\begin{column}{.5\\textwidth}\n", NULL);
	_tmp3_ = _tmp2_;
	_tmp4_ = g_strconcat ("\\begin{columns}\n", _tmp3_, NULL);
	_tmp5_ = _tmp4_;
	_g_free0 (_tmp3_);
	begin_columns = _tmp5_;
	_tmp6_ = string_to_string (indent);
	_tmp7_ = g_strconcat ("\n", _tmp6_, "\\end{column}\n", NULL);
	_tmp8_ = _tmp7_;
	_tmp9_ = string_to_string (indent);
	_tmp10_ = g_strconcat (_tmp9_, "\\begin{column}{.5\\textwidth}\n\n", NULL);
	_tmp11_ = _tmp10_;
	_tmp12_ = g_strconcat (_tmp8_, _tmp11_, NULL);
	_tmp13_ = _tmp12_;
	_tmp14_ = string_to_string (indent);
	_tmp15_ = g_strconcat (_tmp14_, "\\end{column}\n", NULL);
	_tmp16_ = _tmp15_;
	_tmp17_ = g_strconcat (_tmp13_, _tmp16_, NULL);
	_tmp18_ = _tmp17_;
	_tmp19_ = g_strconcat (_tmp18_, "\\end{columns}", NULL);
	_tmp20_ = _tmp19_;
	_g_free0 (_tmp18_);
	_g_free0 (_tmp16_);
	_g_free0 (_tmp13_);
	_g_free0 (_tmp11_);
	_g_free0 (_tmp8_);
	end_columns = _tmp20_;
	latex_menu_text_buffer_insert (self, begin_columns, end_columns, NULL);
	_g_free0 (end_columns);
	_g_free0 (begin_columns);
	_g_free0 (indent);
}


void latex_menu_on_present_block (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{block}{}\n", "\n\\end{block}", NULL);
}


void latex_menu_on_documentclass (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\documentclass{", "}", NULL);
}


void latex_menu_on_usepackage (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\usepackage{", "}", NULL);
}


void latex_menu_on_ams_packages (LatexMenu* self) {
	gchar* packages = NULL;
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup ("\\usepackage{amsmath}\n" "\\usepackage{amsfonts}\n" "\\usepackage{amssymb}");
	packages = _tmp0_;
	latex_menu_text_buffer_insert (self, packages, "", NULL);
	_g_free0 (packages);
}


void latex_menu_on_author (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\author{", "}", NULL);
}


void latex_menu_on_title (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\title{", "}", NULL);
}


void latex_menu_on_begin_document (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{document}\n", "\n\\end{document}", NULL);
}


void latex_menu_on_maketitle (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\maketitle", "", NULL);
}


void latex_menu_on_tableofcontents (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\tableofcontents", "", NULL);
}


void latex_menu_on_abstract (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{abstract}\n", "\n\\end{abstract}", NULL);
}


void latex_menu_on_include_graphics (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\includegraphics{", "}", NULL);
}


void latex_menu_on_input (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\input{", "}", NULL);
}


void latex_menu_on_math_env_normal (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "$ ", " $", NULL);
}


void latex_menu_on_math_env_centered (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\[ ", " \\]", NULL);
}


void latex_menu_on_math_env_numbered (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{equation}\n", "\n\\end{equation}", NULL);
}


void latex_menu_on_math_env_array (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{align*}\n", "\n\\end{align*}", NULL);
}


void latex_menu_on_math_env_numbered_array (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\begin{align}\n", "\n\\end{align}", NULL);
}


void latex_menu_on_math_superscript (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "^{", "}", NULL);
}


void latex_menu_on_math_subscript (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "_{", "}", NULL);
}


void latex_menu_on_math_frac (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\frac{", "}{}", NULL);
}


void latex_menu_on_math_square_root (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\sqrt{", "}", NULL);
}


void latex_menu_on_math_nth_root (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\sqrt[]{", "}", NULL);
}


void latex_menu_on_math_func_arccos (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\arccos ", "", NULL);
}


void latex_menu_on_math_func_arcsin (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\arcsin ", "", NULL);
}


void latex_menu_on_math_func_arctan (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\arctan ", "", NULL);
}


void latex_menu_on_math_func_cos (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\cos ", "", NULL);
}


void latex_menu_on_math_func_cosh (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\cosh ", "", NULL);
}


void latex_menu_on_math_func_cot (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\cot ", "", NULL);
}


void latex_menu_on_math_func_coth (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\coth ", "", NULL);
}


void latex_menu_on_math_func_csc (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\csc ", "", NULL);
}


void latex_menu_on_math_func_deg (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\deg ", "", NULL);
}


void latex_menu_on_math_func_det (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\det ", "", NULL);
}


void latex_menu_on_math_func_dim (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\dim ", "", NULL);
}


void latex_menu_on_math_func_exp (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\exp ", "", NULL);
}


void latex_menu_on_math_func_gcd (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\gcd ", "", NULL);
}


void latex_menu_on_math_func_hom (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\hom ", "", NULL);
}


void latex_menu_on_math_func_inf (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\inf ", "", NULL);
}


void latex_menu_on_math_func_ker (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\ker ", "", NULL);
}


void latex_menu_on_math_func_lg (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\lg ", "", NULL);
}


void latex_menu_on_math_func_lim (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\lim ", "", NULL);
}


void latex_menu_on_math_func_liminf (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\liminf ", "", NULL);
}


void latex_menu_on_math_func_limsup (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\limsup ", "", NULL);
}


void latex_menu_on_math_func_ln (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\ln ", "", NULL);
}


void latex_menu_on_math_func_log (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\log ", "", NULL);
}


void latex_menu_on_math_func_max (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\max ", "", NULL);
}


void latex_menu_on_math_func_min (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\min ", "", NULL);
}


void latex_menu_on_math_func_sec (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\sec ", "", NULL);
}


void latex_menu_on_math_func_sin (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\sin ", "", NULL);
}


void latex_menu_on_math_func_sinh (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\sinh ", "", NULL);
}


void latex_menu_on_math_func_sup (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\sup ", "", NULL);
}


void latex_menu_on_math_func_tan (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\tan ", "", NULL);
}


void latex_menu_on_math_func_tanh (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\tanh ", "", NULL);
}


void latex_menu_on_math_font_style_rm (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathrm{", "}", NULL);
}


void latex_menu_on_math_font_style_it (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathit{", "}", NULL);
}


void latex_menu_on_math_font_style_bf (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathbf{", "}", NULL);
}


void latex_menu_on_math_font_style_sf (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathsf{", "}", NULL);
}


void latex_menu_on_math_font_style_tt (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathtt{", "}", NULL);
}


void latex_menu_on_math_font_style_cal (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathcal{", "}", NULL);
}


void latex_menu_on_math_font_style_bb (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathbb{", "}", NULL);
}


void latex_menu_on_math_font_style_frak (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathfrak{", "}", NULL);
}


void latex_menu_on_math_accent_acute (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\acute{", "}", NULL);
}


void latex_menu_on_math_accent_grave (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\grave{", "}", NULL);
}


void latex_menu_on_math_accent_tilde (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\tilde{", "}", NULL);
}


void latex_menu_on_math_accent_bar (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\bar{", "}", NULL);
}


void latex_menu_on_math_accent_vec (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\vec{", "}", NULL);
}


void latex_menu_on_math_accent_hat (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\hat{", "}", NULL);
}


void latex_menu_on_math_accent_check (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\check{", "}", NULL);
}


void latex_menu_on_math_accent_breve (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\breve{", "}", NULL);
}


void latex_menu_on_math_accent_dot (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\dot{", "}", NULL);
}


void latex_menu_on_math_accent_ddot (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\ddot{", "}", NULL);
}


void latex_menu_on_math_accent_ring (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\mathring{", "}", NULL);
}


void latex_menu_on_math_space_small (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\, ", "", NULL);
}


void latex_menu_on_math_space_medium (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\: ", "", NULL);
}


void latex_menu_on_math_space_large (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\; ", "", NULL);
}


void latex_menu_on_math_space_quad (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\quad ", "", NULL);
}


void latex_menu_on_math_space_qquad (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\qquad ", "", NULL);
}


void latex_menu_on_math_left_delimiter_1 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left( ", "", NULL);
}


void latex_menu_on_math_left_delimiter_2 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left[ ", "", NULL);
}


void latex_menu_on_math_left_delimiter_3 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left\\lbrace ", "", NULL);
}


void latex_menu_on_math_left_delimiter_4 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left\\langle ", "", NULL);
}


void latex_menu_on_math_left_delimiter_5 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left) ", "", NULL);
}


void latex_menu_on_math_left_delimiter_6 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left] ", "", NULL);
}


void latex_menu_on_math_left_delimiter_7 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left\\rbrace ", "", NULL);
}


void latex_menu_on_math_left_delimiter_8 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left\\rangle ", "", NULL);
}


void latex_menu_on_math_left_delimiter_9 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\left. ", "", NULL);
}


void latex_menu_on_math_right_delimiter_1 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right) ", "", NULL);
}


void latex_menu_on_math_right_delimiter_2 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right] ", "", NULL);
}


void latex_menu_on_math_right_delimiter_3 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right\\rbrace ", "", NULL);
}


void latex_menu_on_math_right_delimiter_4 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right\\rangle ", "", NULL);
}


void latex_menu_on_math_right_delimiter_5 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right( ", "", NULL);
}


void latex_menu_on_math_right_delimiter_6 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right[ ", "", NULL);
}


void latex_menu_on_math_right_delimiter_7 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right\\lbrace ", "", NULL);
}


void latex_menu_on_math_right_delimiter_8 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right\\langle ", "", NULL);
}


void latex_menu_on_math_right_delimiter_9 (LatexMenu* self) {
	g_return_if_fail (self != NULL);
	latex_menu_text_buffer_insert (self, "\\right. ", "", NULL);
}


static void latex_menu_class_init (LatexMenuClass * klass) {
	latex_menu_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (LatexMenuPrivate));
	G_OBJECT_CLASS (klass)->finalize = latex_menu_finalize;
}


static void latex_menu_instance_init (LatexMenu * self) {
	self->priv = LATEX_MENU_GET_PRIVATE (self);
}


static void latex_menu_finalize (GObject * obj) {
	LatexMenu * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LATEX_MENU, LatexMenu);
	G_OBJECT_CLASS (latex_menu_parent_class)->finalize (obj);
}


GType latex_menu_get_type (void) {
	static volatile gsize latex_menu_type_id__volatile = 0;
	if (g_once_init_enter (&latex_menu_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (LatexMenuClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) latex_menu_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LatexMenu), 0, (GInstanceInitFunc) latex_menu_instance_init, NULL };
		GType latex_menu_type_id;
		latex_menu_type_id = g_type_register_static (gtk_action_group_get_type (), "LatexMenu", &g_define_type_info, 0);
		g_once_init_leave (&latex_menu_type_id__volatile, latex_menu_type_id);
	}
	return latex_menu_type_id__volatile;
}



