David Kastrup writes:
> Ralf Angeli <[EMAIL PROTECTED]> writes:
>
> > * David Kastrup (2008-03-07) writes:
> >
> >> Ralf Angeli <[EMAIL PROTECTED]> writes:
> >>
> >>> * Ralf Angeli (2008-03-07) writes:
> >>>
> >>>> * David Kastrup (2008-03-07) writes:
> >>>>
> >>>>> From: A Mennucc <[EMAIL PROTECTED]>
> >>>> [...]
> >>>>> 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:[EMAIL PROTECTED]
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex