SF.net SVN: geany-plugins:[655] trunk/geanylatex

frlan at users.sourceforge.net frlan at xxxxx
Sun May 17 21:51:23 UTC 2009


Revision: 655
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=655&view=rev
Author:   frlan
Date:     2009-05-17 21:51:23 +0000 (Sun, 17 May 2009)

Log Message:
-----------
GeanyLaTeX: Added keybindings for new format options added with svn r652

Modified Paths:
--------------
    trunk/geanylatex/doc/geanylatex.tex
    trunk/geanylatex/src/geanylatex.c

Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex	2009-05-17 21:50:56 UTC (rev 654)
+++ trunk/geanylatex/doc/geanylatex.tex	2009-05-17 21:51:23 UTC (rev 655)
@@ -325,6 +325,9 @@
 	\item Typewriter
 	\item Small Caps
 	\item Emphasis
+	\item Centered
+	\item left-aligned
+	\item right-aligned
 \end{itemize}
 
 Geany\LaTeX{} will add the correct format pattern to the document. If
@@ -368,6 +371,9 @@
 Format selection in typewriter font face & Format a selection with typewriter
 font face. This is done be adding \texttt{\textbackslash texttt\{...\}} around
 selection.\\\hline
+Format selection centered & Formats selected text centered on page (uses \texttt{\textbackslash{}centering} \\\hline
+Format selection left-aligned & Formats selected text left-aligned on page (uses \texttt{\textbackslash{}raggedleft} \\\hline
+ Format selection right-alignedm & Formats selected text right-aligned on page (uses \texttt{\textbackslash{}raggedright}\\\hline
 \end{tabular}
 \end{table}
 

Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c	2009-05-17 21:50:56 UTC (rev 654)
+++ trunk/geanylatex/src/geanylatex.c	2009-05-17 21:51:23 UTC (rev 655)
@@ -75,6 +75,9 @@
 	KB_LATEX_FORMAT_BOLD,
 	KB_LATEX_FORMAT_ITALIC,
 	KB_LATEX_FORMAT_TYPEWRITER,
+	KB_LATEX_FORMAT_CENTER,
+	KB_LATEX_FORMAT_LEFT,
+	KB_LATEX_FORMAT_RIGHT,
 	COUNT_KB
 };
 
@@ -1015,7 +1018,12 @@
 		0, 0, "format_italic", _("Format selection in italic font face"), NULL);
 	keybindings_set_item(plugin_key_group, KB_LATEX_FORMAT_TYPEWRITER, glatex_kb_format_typewriter,
 		0, 0, "format_typewriter", _("Format selection in typewriter font face"), NULL);
-
+	keybindings_set_item(plugin_key_group, KB_LATEX_FORMAT_CENTER, glatex_kb_format_centering,
+		0, 0, "format_center", _("Format selection centered"), NULL);
+	keybindings_set_item(plugin_key_group, KB_LATEX_FORMAT_LEFT, glatex_kb_format_left,
+		0, 0, "format_left", _("Format selection left-aligned"), NULL);
+	keybindings_set_item(plugin_key_group, KB_LATEX_FORMAT_RIGHT, glatex_kb_format_right,
+		0, 0, "format_right", _("Format selection right-aligned "), NULL);
 }
 
 void plugin_help()


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list