diff --git a/Graphics/gl2ps.cpp b/Graphics/gl2ps.cpp
index be9b7ca97df66853f87e3175d5c896882261521d..3256bb51ff20891488322c4be797a6648dee83b9 100644
--- a/Graphics/gl2ps.cpp
+++ b/Graphics/gl2ps.cpp
@@ -2,7 +2,7 @@
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2002  Christophe Geuzaine 
  *
- * $Id: gl2ps.cpp,v 1.36 2002-02-05 20:13:51 geuzaine Exp $
+ * $Id: gl2ps.cpp,v 1.37 2002-02-15 00:32:35 geuzaine Exp $
  *
  * E-mail: geuz@geuz.org
  * URL: http://www.geuz.org/gl2ps/
@@ -1314,8 +1314,9 @@ GLvoid gl2psPrintTeXHeader(GLvoid){
 	  "\\begin{picture}(0,0)\n"
 	  "\\includegraphics{%s}\n"
 	  "\\end{picture}%%\n"
-	  "\\begin{picture}(%d,%d)(0,0)\n",
-	  name, viewport[2],viewport[3]);
+	  "%s\\begin{picture}(%d,%d)(0,0)\n",
+	  name, (gl2ps.options & GL2PS_LANDSCAPE) ? "\\rotatebox{90}{" : "",
+	  viewport[2],viewport[3]);
 }
 
 GLvoid gl2psPrintTeXPrimitive(GLvoid *a, GLvoid *b){
@@ -1334,7 +1335,8 @@ GLvoid gl2psPrintTeXPrimitive(GLvoid *a, GLvoid *b){
 }
 
 void gl2psPrintTeXFooter(GLvoid){
-  fprintf(gl2ps.stream, "\\end{picture}\n");
+  fprintf(gl2ps.stream, "\\end{picture}%s\n",
+	  (gl2ps.options & GL2PS_LANDSCAPE) ? "}" : "");
 }
 
 
diff --git a/Graphics/gl2ps.h b/Graphics/gl2ps.h
index 96888ff1238c858105c89686079ce795e9de6104..c16e26ef235f2de57c397e5ded8c8e0f99d230a9 100644
--- a/Graphics/gl2ps.h
+++ b/Graphics/gl2ps.h
@@ -2,7 +2,7 @@
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2002  Christophe Geuzaine
  *
- * $Id: gl2ps.h,v 1.18 2002-02-13 09:20:41 stainier Exp $
+ * $Id: gl2ps.h,v 1.19 2002-02-15 00:32:35 geuzaine Exp $
  *
  * E-mail: geuz@geuz.org
  * URL: http://www.geuz.org/gl2ps/
@@ -32,11 +32,12 @@
 #ifdef WIN32
 #include <windows.h>
 #endif
+
 #ifdef __APPLE__
 #include <OpenGL/gl.h>
 #else
 #include <GL/gl.h>
-#endif /* __APPLE__ */
+#endif
 
 #define GL2PS_VERSION                    0.52
 #define GL2PS_NONE                       0