texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] [RFC][PATCH] make kghostview move back through pages


From: Igor V. Kovalenko
Subject: [Texmacs-dev] [RFC][PATCH] make kghostview move back through pages
Date: Mon, 04 Nov 2002 02:28:16 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Hi!

I'm not an expert in postscript language, so here is a request for comment:
the following patch enables kghostview to page-up/page-down through PS file
exported from TeXmacs. Simply put, this patch replaces nr_pages with cur_page.

-----------------------------
diff -udBbHr TeXmacs-1.0.0.20-src/src/Window/PsDevice/printer.cc 
TeXmacs-1.0.0.20-src-20021029/src/Window/PsDevice/printer.cc
--- TeXmacs-1.0.0.20-src/src/Window/PsDevice/printer.cc 2002-10-22 
12:12:18.000000000 +0400
+++ TeXmacs-1.0.0.20-src-20021029/src/Window/PsDevice/printer.cc        
2002-10-29 13:20:17.000000000 +0300
@@ -129,10 +129,16 @@
   if (cur_page > 0) print ("eop\n");
   if (cur_page >= nr_pages) return;
   cur_page++;
+/*
   body << "\n%%Page: " << as_string (cur_page) << " "
        << as_string (nr_pages) << "\n"
        << as_string (cur_page) << " "
        << as_string (cur_page-1) << " bop\n";
+*/
+  body << "\n%%Page: " << as_string (cur_page) << " "
+       << as_string (cur_page) << "\n"
+       << as_string (cur_page) << " "
+       << as_string (cur_page-1) << " bop\n";

   fg  = -1;
   bg  = -1;

-----------------------------
--
Regards,
Igor V. Kovalenko    mailto: iko at crec dot mipt dot ru





reply via email to

[Prev in Thread] Current Thread [Next in Thread]