[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF wi
From: |
Reinhard Kotucha |
Subject: |
Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips |
Date: |
Fri, 7 Mar 2008 23:03:35 +0100 |
David Kastrup writes:
> Ralf Angeli <address@hidden> writes:
>
> > * David Kastrup (2008-03-07) writes:
> >
> >> Ralf Angeli <address@hidden> writes:
> >>
> >>> * Ralf Angeli (2008-03-07) writes:
> >>>
> >>>> * David Kastrup (2008-03-07) writes:
> >>>>
> >>>>> From: A Mennucc <address@hidden>
> >>>> [...]
> >>>>> if I set auctex to PDF mode, it does not generate a DVI file; when I
> >>>>> try to print, the command is nonetheless 'dvips -f file | lpr'
> >>>>> and this fails (silently)
> >>>>
> >>>> Call ps2pdf instead when TeX PDF mode is active?
> >>>
> >>> s/\(ps\)2\(pdf\)/\22\1/
> >>
> >> Sounds like a plan if we can figure out what to do with the resulting ps
> >> for various printers...
> >
> > I would just have piped it to lpr like in the dvips case. In the long
> > run we might think of something better.
>
> It's only piped to lpr for the default printer, not for named printers.
If you allow the user to select another printer, this feature
shouldn't be restricted to auctex. There are also functions
ps-print-{buffer,region} which will benefit from such a feature.
On UNIX it's easy if there is a filter behind lpr which converts file
formats if necessary (CUPS, apsfilter, ...) to what the printer
understands (PCL or PS).
I don't know about Windows because at work all the printers understand
PostScript. This is from my .emacs at work:
(setq PS-printer "//server/lj8150")
(setq ps-paper-type 'a4)
(defun print-buffer-or-region ()
(interactive)
(if mark-active
(ps-print-region (region-beginning) (region-end) PS-printer)
(ps-print-buffer PS-printer)
)
)
(global-set-key "\M-p" 'print-buffer-or-region)
This code is quite crude. It works, but what it doesn't support is to
select another printer easily. It would be much better to have a
printer-alist which maps printer names to instructions, but as I said
before, it's an emacs issue and should be solved there, not in auctex.
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:address@hidden
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
- [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, David Kastrup, 2008/03/07
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, Ralf Angeli, 2008/03/07
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, Ralf Angeli, 2008/03/07
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, David Kastrup, 2008/03/07
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, Ralf Angeli, 2008/03/07
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, David Kastrup, 2008/03/07
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips,
Reinhard Kotucha <=
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, Ralf Angeli, 2008/03/09
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, David Kastrup, 2008/03/09
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, Ralf Angeli, 2008/03/09
- Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips, Ralf Angeli, 2008/03/09