Revision: 1165 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1165&view=re... Author: frlan Date: 2010-03-14 20:22:36 +0000 (Sun, 14 Mar 2010)
Log Message: ----------- GeanyLaTeX: Do the KOMA way for setting paper size in case of KOMA script is active.
Modified Paths: -------------- trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2010-03-13 15:29:05 UTC (rev 1164) +++ trunk/geanylatex/src/geanylatex.c 2010-03-14 20:22:36 UTC (rev 1165) @@ -1276,25 +1276,50 @@ GTK_COMBO_BOX(papersize_combobox)); paperorientation_int = gtk_combo_box_get_active( GTK_COMBO_BOX(orientation_combobox)); - switch (papersize_int) + + if (KOMA_active == TRUE) { - case 0: + switch (papersize_int) { - papersize = g_utf8_casefold("a4paper", -1); - break; + case 0: + { + papersize = g_utf8_casefold("paper=a4", -1); + break; + } + case 1: + { + papersize = g_utf8_casefold("paper=a5", -1); + break; + } + case 2: + { + papersize = g_utf8_casefold("paper=a6", -1); + break; + } } - case 1: + + } + else + { + switch (papersize_int) { - papersize = g_utf8_casefold("a5paper", -1); - break; + case 0: + { + papersize = g_utf8_casefold("a4paper", -1); + break; + } + case 1: + { + papersize = g_utf8_casefold("a5paper", -1); + break; + } + case 2: + { + papersize = g_utf8_casefold("a6paper", -1); + break; + } } - case 2: - { - papersize = g_utf8_casefold("a6paper", -1); - break; - } } - fontsize = gtk_combo_box_get_active_text( GTK_COMBO_BOX(fontsize_combobox));
@@ -1460,7 +1485,7 @@ switch (paperorientation_int){ case 2: { - utils_string_replace_all(code, "{GEOMETRY}", + utils_string_replace_all(code, "{GEOMETRY}", "\usepackage[landscape]{geometry}\n"); break; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org