Can anybody suggest how I set this up? I'd like pretty-printed pages of C++ from emacs on SuSE 10.1. I used to use pretty-print on xemacs. Postscript print on emacs produces PostScript errors at the moment; so I'm using Kate for printing. Just in case I provoke any zealotry, I use vi mode in emacs. I've switched from xemacs because emacs now looks better and works with AucTeX. And sometimes I use vim when I jsut want to do something quickly. -- JDL
Can anybody suggest how I set this up? I'd like pretty-printed pages of C++ from emacs on SuSE 10.1.
I used to use pretty-print on xemacs. Postscript print on emacs produces PostScript errors at the moment; so I'm using Kate for printing.
Just in case I provoke any zealotry, I use vi mode in emacs. I've switched from xemacs because emacs now looks better and works with AucTeX. And sometimes I use vim when I jsut want to do something quickly. I generally use Xemacs, but I simply brought up GNU emacs 21.3-224 (out of
On Wednesday 07 June 2006 3:20 pm, John D Lamb wrote:
the box SuSE 10.1 x86_64), selected a short C++ program, then selected
File/Postcript Print Buffer (B&W), walked over to the printer and it was
waiting for me. Could it be that the GNU daemon is punishing you for using
vi mode :-)
I also successfully printer from SuSE 10.0.
--
Jerry Feldman
Jerry Feldman wrote:
On Wednesday 07 June 2006 3:20 pm, John D Lamb wrote:
Can anybody suggest how I set this up? I'd like pretty-printed pages of C++ from emacs on SuSE 10.1.
I used to use pretty-print on xemacs. Postscript print on emacs produces PostScript errors at the moment; so I'm using Kate for printing.
Just in case I provoke any zealotry, I use vi mode in emacs. I've switched from xemacs because emacs now looks better and works with AucTeX. And sometimes I use vim when I jsut want to do something quickly.
I generally use Xemacs, but I simply brought up GNU emacs 21.3-224 (out of the box SuSE 10.1 x86_64), selected a short C++ program, then selected File/Postcript Print Buffer (B&W), walked over to the printer and it was waiting for me. Could it be that the GNU daemon is punishing you for using vi mode :-) I also successfully printer from SuSE 10.0.
Mine seems to be 21.3.1 (P4) straight out of the box and doesn't work in colour or b/w even if I switch out of vi mode. Xemacs LaTeX mode doesn't work, which is the main reason for going to plain emacs, though emacs now looks nicer than xemacs. -- JDL
On Wednesday 07 June 2006 4:46 pm, John D Lamb wrote:
Mine seems to be 21.3.1 (P4) straight out of the box and doesn't work in colour or b/w even if I switch out of vi mode. Xemacs LaTeX mode doesn't work, which is the main reason for going to plain emacs, though emacs now looks nicer than xemacs. This is the version I have on SuSE 10.0 is emacs-21.3-206
Check all the related emacs RPMs, such as the -el stuff to make sure they
are all the same release. Looking at the 10.1 DVD:
emacs-21.3-224.i586.rpm
emacs-x11-21.3-224.i586.rpm
I would suggest that you delete the emacs packages that are installed on
your system and reinstalled them from the media again just to confirm that
they are all the same revision and that they install correctly.
--
Jerry Feldman
Preston Hagar wrote:
On 6/7/06, John D Lamb
wrote: Can anybody suggest how I set this up? I'd like pretty-printed pages of C++ from emacs on SuSE 10.1.
a2ps -P <printername> -2 --line-numbers=5 file.cpp Jerry Feldman wrote: Check all the related emacs RPMs, such as the -el stuff to make sure they are all the same release. Looking at the 10.1 DVD: emacs-21.3-224.i586.rpm emacs-x11-21.3-224.i586.rpm
I would suggest that you delete the emacs packages that are installed on your system and reinstalled them from the media again just to confirm that they are all the same revision and that they install correctly.
I tried all this and reinstalled ghostscript also. I still can't trace the problem. But it seems only to affect non-postscript printers where gs is used as an intermediate program. I got the code printed using a bw laser printer. For now, I'll probably use Kate for printing or else use bw. I occasionally want printing on colour and Kate is fine for that. -- JDL
On Tuesday 13 June 2006 1:27 pm, John D Lamb wrote:
I tried all this and reinstalled ghostscript also. I still can't trace the problem. But it seems only to affect non-postscript printers where gs is used as an intermediate program. I got the code printed using a bw laser printer.
For now, I'll probably use Kate for printing or else use bw. I occasionally want printing on colour and Kate is fine for that. That is wierd. I am 100% sure I have printed from emacs at home. I'll try to remember to do it tonight.
--
Jerry Feldman
On 6/7/06, John D Lamb
Can anybody suggest how I set this up? I'd like pretty-printed pages of C++ from emacs on SuSE 10.1.
Although this doesn't directly address your issues, I would recommend looking at a2ps ( http://www.gnu.org/software/a2ps/ ) It is what I always used when I needed to print out source code in college or even now. It is very configurable, you can have it put line numbers on the printout for you, you can have two pages side -by -side and it usually formats C/C++ sourcecode well. I usually run it as follows: a2ps -P <printername> -2 --line-numbers=5 file.cpp this will print file.cpp to printer <printername> with two "pages" per sheet of paper with line numbers every 5 lines. Anyway, it is one of those programs I really like a lot and find that many people don't know about. Just thought I would share. Preston
participants (3)
-
Jerry Feldman
-
John D Lamb
-
Preston Hagar