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

frlan at users.sourceforge.net frlan at xxxxx
Sat Mar 13 15:29:05 UTC 2010


Revision: 1164
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1164&view=rev
Author:   frlan
Date:     2010-03-13 15:29:05 +0000 (Sat, 13 Mar 2010)

Log Message:
-----------
GeanyLaTeX: Make usage of geometry packages for paper orientation.

Modified Paths:
--------------
    trunk/geanylatex/src/geanylatex.c
    trunk/geanylatex/src/templates.h

Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c	2010-03-12 18:59:56 UTC (rev 1163)
+++ trunk/geanylatex/src/geanylatex.c	2010-03-13 15:29:05 UTC (rev 1164)
@@ -1460,7 +1460,8 @@
 			switch (paperorientation_int){
 				case 2:
 				{
-					utils_string_replace_all(code, "{GEOMETRY}", "");
+					utils_string_replace_all(code, "{GEOMETRY}", 
+						"\\usepackage[landscape]{geometry}\n");
 					break;
 				}
 				default:

Modified: trunk/geanylatex/src/templates.h
===================================================================
--- trunk/geanylatex/src/templates.h	2010-03-12 18:59:56 UTC (rev 1163)
+++ trunk/geanylatex/src/templates.h	2010-03-13 15:29:05 UTC (rev 1164)
@@ -39,6 +39,7 @@
 
 #define TEMPLATE_LATEX "\
 \\documentclass[{CLASSOPTION}]{{DOCUMENTCLASS}}\n\
+{GEOMETRY}\
 {ENCODING}\
 {TITLE}\
 {AUTHOR}\


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