From 026d1d3f58b7805638914ae683623601ebb209b9 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Wed, 14 Jan 2009 14:38:12 +0800
Subject: [PATCH] DOC: formatting software guide

---
 Examples/Projections/MapProjectionExample.cxx | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/Examples/Projections/MapProjectionExample.cxx b/Examples/Projections/MapProjectionExample.cxx
index fd402b6876..7f67a3a276 100644
--- a/Examples/Projections/MapProjectionExample.cxx
+++ b/Examples/Projections/MapProjectionExample.cxx
@@ -93,6 +93,8 @@ int main( int argc, char* argv[] )
   file << std::setprecision(15);
   // Software Guide : EndCodeSnippet
 
+  file << "\\begin{verbatim}" << std::endl;
+
   // Software Guide : BeginLatex
   //
   // We can now instanciate our first map projection. Here, it is a UTM projection
@@ -155,11 +157,14 @@ int main( int argc, char* argv[] )
 
   // Software Guide : BeginCodeSnippet
   std::string projectionRefWkt ="PROJCS[\"UTM Zone 31, Northern Hemisphere\","
-      "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],"
-      "TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],"
-      "UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9108\"]],AXIS[\"Lat\",NORTH],AXIS[\"Long\",EAST],"
-      "AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],"
-      "PARAMETER[\"central_meridian\",3],PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"false_easting\",500000],"
+      "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,"
+      "AUTHORITY[\"EPSG\",\"7030\"]],TOWGS84[0,0,0,0,0,0,0],"
+      "AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],"
+      "UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9108\"]],"
+      "AXIS[\"Lat\",NORTH],AXIS[\"Long\",EAST],"
+      "AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Transverse_Mercator\"],"
+      "PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",3],"
+      "PARAMETER[\"scale_factor\",0.9996],PARAMETER[\"false_easting\",500000],"
       "PARAMETER[\"false_northing\",0],UNIT[\"Meter\",1]]";
   // Software Guide : EndCodeSnippet
 
@@ -180,6 +185,8 @@ int main( int argc, char* argv[] )
   file << std::endl << std::endl;
   // Software Guide : EndCodeSnippet
 
+  file << "\\end{verbatim}" << std::endl;
+
   // Software Guide : BeginLatex
   //
   // And of course, we don't forget to close the file:
-- 
GitLab