SF.net SVN: geany-plugins:[344] trunk/geanylatex
frlan at users.sourceforge.net
frlan at xxxxx
Sun Dec 14 23:11:09 UTC 2008
Revision: 344
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=344&view=rev
Author: frlan
Date: 2008-12-14 23:11:09 +0000 (Sun, 14 Dec 2008)
Log Message:
-----------
GeanyLaTeX: Added a template for LaTeX beamer so it can be used now from wizard dialog
Modified Paths:
--------------
trunk/geanylatex/po/de.po
trunk/geanylatex/po/geanylatex.pot
trunk/geanylatex/src/geanylatex.c
trunk/geanylatex/src/geanylatex.h
Modified: trunk/geanylatex/po/de.po
===================================================================
--- trunk/geanylatex/po/de.po 2008-12-13 10:50:58 UTC (rev 343)
+++ trunk/geanylatex/po/de.po 2008-12-14 23:11:09 UTC (rev 344)
@@ -2,7 +2,7 @@
msgstr ""
"Project-Id-Version: GeanyLaTeX\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-12-03 21:29+0100\n"
+"POT-Creation-Date: 2008-12-15 00:01+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Frank Lanitz <frank at frank.uvena.de>\n"
"Language-Team: geany-118n <geany-118n at uvena.de>\n"
@@ -74,30 +74,34 @@
msgid "Letter"
msgstr "Brief"
+#: src/geanylatex.c:432
+msgid "Presentation"
+msgstr "Präsentation"
+
#. Encoding
-#: src/geanylatex.c:441
+#: src/geanylatex.c:442
msgid "Encoding:"
msgstr "Zeichensatz:"
-#: src/geanylatex.c:445
+#: src/geanylatex.c:446
msgid "Set the encoding for your new document"
msgstr "Zeichensatz für das neue Dokument"
#. Scriptsize
-#: src/geanylatex.c:460
+#: src/geanylatex.c:461
msgid "Fontsize:"
msgstr "Schriftgröße:"
-#: src/geanylatex.c:463
+#: src/geanylatex.c:464
msgid "Set the default fontsize of your new document"
msgstr "Setzt die Standardschriftgröße für das neue Dokument"
#. Author
-#: src/geanylatex.c:476
+#: src/geanylatex.c:477
msgid "Author:"
msgstr "Autor:"
-#: src/geanylatex.c:479
+#: src/geanylatex.c:480
msgid ""
"Sets the value of the \\author command. In most cases this should be your "
"name"
@@ -105,11 +109,11 @@
"Setzt den Eintrag für den \\author Befehl. Meist sollte hier Ihr Name stehen."
#. Date
-#: src/geanylatex.c:490
+#: src/geanylatex.c:491
msgid "Date:"
msgstr "Datum:"
-#: src/geanylatex.c:493
+#: src/geanylatex.c:494
msgid ""
"Sets the value of the \\date command inside header of your newly created "
"LaTeX-document. Keeping it at \\today is a good decision if you don't need "
@@ -119,35 +123,35 @@
"meisten Fällen sollte \\today eine gute Wahl sein."
#. Title of the new document
-#: src/geanylatex.c:500
+#: src/geanylatex.c:501
msgid "Title:"
msgstr "Titel:"
-#: src/geanylatex.c:502
+#: src/geanylatex.c:503
msgid "Sets the title of your new document."
msgstr "Setzt den Titel für das neue Dokument."
#. Papersize
-#: src/geanylatex.c:509
+#: src/geanylatex.c:510
msgid "Paper size:"
msgstr "Papiergröße:"
-#: src/geanylatex.c:512
+#: src/geanylatex.c:513
msgid "Choose the paper format for the newly created document"
msgstr ""
"Setzt das Papierformat als Argument der Dokumentenklasse für das neue "
"Dokument"
#. Building the wizard-dialog and showing it
-#: src/geanylatex.c:527
+#: src/geanylatex.c:528
msgid "LaTeX-Wizard"
msgstr "LaTeX-Assistent"
-#: src/geanylatex.c:537
+#: src/geanylatex.c:538
msgid "Use KOMA-script classes if possible"
msgstr "Benutze KOMA-Skript wenn möglich"
-#: src/geanylatex.c:540
+#: src/geanylatex.c:541
msgid ""
"Uses the KOMA-script classes by Markus Kohm.\n"
"Keep in mind: To compile your document these classes have to be installed "
@@ -156,11 +160,11 @@
"Wenn diese Option aktiviert ist, werden die KOMA-Skript-Klassen von Markus "
"Kohm genutzt. Sie müssen natürlich dafür installiert sein."
-#: src/geanylatex.c:546
+#: src/geanylatex.c:547
msgid "Use draft mode"
msgstr "Entwurfsmodus benutzen"
-#: src/geanylatex.c:548
+#: src/geanylatex.c:549
msgid ""
"Set the draft flag inside new created documents to get documents with a "
"number of debugging helpers"
@@ -168,63 +172,63 @@
"Setzt die Option draft für die Dokumentenklasse um das neue Dokument mit "
"einer Nummer von kleinen Korrekturhinweisen zu versehen."
-#: src/geanylatex.c:766
+#: src/geanylatex.c:777
msgid "Dear Sir or Madame"
msgstr "Sehr geehrte Damen und Herren"
-#: src/geanylatex.c:767
+#: src/geanylatex.c:778
msgid "With kind regards"
msgstr "Mit freundlichen Grüßen"
-#: src/geanylatex.c:809
+#: src/geanylatex.c:820
msgid "_LaTeX"
msgstr "_LaTeX"
-#: src/geanylatex.c:816
+#: src/geanylatex.c:827
msgid "LaTeX-_Wizard"
msgstr "LaTeX-_Assistent"
-#: src/geanylatex.c:819
+#: src/geanylatex.c:830
msgid "Starts a Wizard to easily create LaTeX-documents"
msgstr "Öffnet einen Assistenten, um einfache LaTeX-Dokumente zu erstellen."
-#: src/geanylatex.c:824
+#: src/geanylatex.c:835
msgid "Insert _Special Character"
msgstr "_Sonderzeichen einfügen"
-#: src/geanylatex.c:826
+#: src/geanylatex.c:837
msgid "Helps to use some not very common letters and signs"
msgstr "Unterstützt bei der Verwendung von seltenen Sonderzeichen"
-#: src/geanylatex.c:833
+#: src/geanylatex.c:844
msgid "Insert _Reference"
msgstr "_Verweis einfügen"
-#: src/geanylatex.c:835
+#: src/geanylatex.c:846
msgid "Inserting references to the document"
msgstr "Eine Referenz in das Dokument einfügen"
-#: src/geanylatex.c:839
+#: src/geanylatex.c:850
msgid "Insert _Label"
msgstr "_Lesezeichen einfügen"
-#: src/geanylatex.c:841
+#: src/geanylatex.c:852
msgid "Helps at inserting labels to a document"
msgstr "Untersützt bei dem Einfügen von Lesezeichen in ein Dokument"
-#: src/geanylatex.c:845
+#: src/geanylatex.c:856
msgid "BibTeX"
msgstr "BibTeX"
-#: src/geanylatex.c:862
+#: src/geanylatex.c:873
msgid "Run LaTeX-Wizard"
msgstr "LaTeX-Assistent starten"
-#: src/geanylatex.c:864
+#: src/geanylatex.c:875
msgid "Insert \\label"
msgstr "\\label einfügen"
-#: src/geanylatex.c:866
+#: src/geanylatex.c:877
msgid "Insert \\ref"
msgstr "\\ref einfügen"
Modified: trunk/geanylatex/po/geanylatex.pot
===================================================================
--- trunk/geanylatex/po/geanylatex.pot 2008-12-13 10:50:58 UTC (rev 343)
+++ trunk/geanylatex/po/geanylatex.pot 2008-12-14 23:11:09 UTC (rev 344)
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-12-03 21:29+0100\n"
+"POT-Creation-Date: 2008-12-15 00:01+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -77,41 +77,45 @@
msgid "Letter"
msgstr ""
+#: src/geanylatex.c:432
+msgid "Presentation"
+msgstr ""
+
#. Encoding
-#: src/geanylatex.c:441
+#: src/geanylatex.c:442
msgid "Encoding:"
msgstr ""
-#: src/geanylatex.c:445
+#: src/geanylatex.c:446
msgid "Set the encoding for your new document"
msgstr ""
#. Scriptsize
-#: src/geanylatex.c:460
+#: src/geanylatex.c:461
msgid "Fontsize:"
msgstr ""
-#: src/geanylatex.c:463
+#: src/geanylatex.c:464
msgid "Set the default fontsize of your new document"
msgstr ""
#. Author
-#: src/geanylatex.c:476
+#: src/geanylatex.c:477
msgid "Author:"
msgstr ""
-#: src/geanylatex.c:479
+#: src/geanylatex.c:480
msgid ""
"Sets the value of the \\author command. In most cases this should be your "
"name"
msgstr ""
#. Date
-#: src/geanylatex.c:490
+#: src/geanylatex.c:491
msgid "Date:"
msgstr ""
-#: src/geanylatex.c:493
+#: src/geanylatex.c:494
msgid ""
"Sets the value of the \\date command inside header of your newly created "
"LaTeX-document. Keeping it at \\today is a good decision if you don't need "
@@ -119,106 +123,106 @@
msgstr ""
#. Title of the new document
-#: src/geanylatex.c:500
+#: src/geanylatex.c:501
msgid "Title:"
msgstr ""
-#: src/geanylatex.c:502
+#: src/geanylatex.c:503
msgid "Sets the title of your new document."
msgstr ""
#. Papersize
-#: src/geanylatex.c:509
+#: src/geanylatex.c:510
msgid "Paper size:"
msgstr ""
-#: src/geanylatex.c:512
+#: src/geanylatex.c:513
msgid "Choose the paper format for the newly created document"
msgstr ""
#. Building the wizard-dialog and showing it
-#: src/geanylatex.c:527
+#: src/geanylatex.c:528
msgid "LaTeX-Wizard"
msgstr ""
-#: src/geanylatex.c:537
+#: src/geanylatex.c:538
msgid "Use KOMA-script classes if possible"
msgstr ""
-#: src/geanylatex.c:540
+#: src/geanylatex.c:541
msgid ""
"Uses the KOMA-script classes by Markus Kohm.\n"
"Keep in mind: To compile your document these classes have to be installed "
"before."
msgstr ""
-#: src/geanylatex.c:546
+#: src/geanylatex.c:547
msgid "Use draft mode"
msgstr ""
-#: src/geanylatex.c:548
+#: src/geanylatex.c:549
msgid ""
"Set the draft flag inside new created documents to get documents with a "
"number of debugging helpers"
msgstr ""
-#: src/geanylatex.c:766
+#: src/geanylatex.c:777
msgid "Dear Sir or Madame"
msgstr ""
-#: src/geanylatex.c:767
+#: src/geanylatex.c:778
msgid "With kind regards"
msgstr ""
-#: src/geanylatex.c:809
+#: src/geanylatex.c:820
msgid "_LaTeX"
msgstr ""
-#: src/geanylatex.c:816
+#: src/geanylatex.c:827
msgid "LaTeX-_Wizard"
msgstr ""
-#: src/geanylatex.c:819
+#: src/geanylatex.c:830
msgid "Starts a Wizard to easily create LaTeX-documents"
msgstr ""
-#: src/geanylatex.c:824
+#: src/geanylatex.c:835
msgid "Insert _Special Character"
msgstr ""
-#: src/geanylatex.c:826
+#: src/geanylatex.c:837
msgid "Helps to use some not very common letters and signs"
msgstr ""
-#: src/geanylatex.c:833
+#: src/geanylatex.c:844
msgid "Insert _Reference"
msgstr ""
-#: src/geanylatex.c:835
+#: src/geanylatex.c:846
msgid "Inserting references to the document"
msgstr ""
-#: src/geanylatex.c:839
+#: src/geanylatex.c:850
msgid "Insert _Label"
msgstr ""
-#: src/geanylatex.c:841
+#: src/geanylatex.c:852
msgid "Helps at inserting labels to a document"
msgstr ""
-#: src/geanylatex.c:845
+#: src/geanylatex.c:856
msgid "BibTeX"
msgstr ""
-#: src/geanylatex.c:862
+#: src/geanylatex.c:873
msgid "Run LaTeX-Wizard"
msgstr ""
-#: src/geanylatex.c:864
+#: src/geanylatex.c:875
msgid "Insert \\label"
msgstr ""
-#: src/geanylatex.c:866
+#: src/geanylatex.c:877
msgid "Insert \\ref"
msgstr ""
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2008-12-13 10:50:58 UTC (rev 343)
+++ trunk/geanylatex/src/geanylatex.c 2008-12-14 23:11:09 UTC (rev 344)
@@ -429,6 +429,7 @@
gtk_combo_box_insert_text(GTK_COMBO_BOX(documentclass_combobox), 1, _("Article"));
gtk_combo_box_insert_text(GTK_COMBO_BOX(documentclass_combobox), 2, _("Report"));
gtk_combo_box_insert_text(GTK_COMBO_BOX(documentclass_combobox), 3, _("Letter"));
+ gtk_combo_box_insert_text(GTK_COMBO_BOX(documentclass_combobox), 4, _("Presentation"));
gtk_combo_box_set_active(GTK_COMBO_BOX(documentclass_combobox), 0);
@@ -648,6 +649,10 @@
{
documentclass_str = g_utf8_casefold("letter", -1);
}
+ case 4:
+ {
+ documentclass_str = g_utf8_casefold("beamer", -1);
+ }
}
}
else
@@ -674,11 +679,17 @@
documentclass_str = g_utf8_casefold("letter", -1);
break;
}
+ case 4:
+ {
+ documentclass_str = g_utf8_casefold("beamer", -1);
+ }
}
}
if (documentclass_int == 3)
code = g_string_new(TEMPLATE_LATEX_LETTER);
+ else if (documentclass_int == 4)
+ code = g_string_new(TEMPLATE_LATEX_BEAMER);
else
code = g_string_new(TEMPLATE_LATEX);
Modified: trunk/geanylatex/src/geanylatex.h
===================================================================
--- trunk/geanylatex/src/geanylatex.h 2008-12-13 10:50:58 UTC (rev 343)
+++ trunk/geanylatex/src/geanylatex.h 2008-12-14 23:11:09 UTC (rev 344)
@@ -26,7 +26,6 @@
#define GEANYLATEX_H
-
#include "geany.h"
#include "support.h"
#include "plugindata.h"
@@ -80,6 +79,19 @@
\\end{letter}\n\
\\end{document}\n"
+#define TEMPLATE_LATEX_BEAMER "\
+\\documentclass[]{{DOCUMENTCLASS}}\n\
+\\usetheme{default}\
+{ENCODING}\
+{TITLE}\
+{AUTHOR}\
+{DATE}\
+\\begin{document}\n\
+\\frame{\\titlepage}\n\
+\\begin{frame}\n\
+\\end{frame}\n\
+\\end{document}\n"
+
#define create_sub_menu(base_menu, menu, item, title) \
(menu) = gtk_menu_new(); \
(item) = gtk_menu_item_new_with_mnemonic((title)); \
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