bug-auctex
[Top][All Lists]
Advanced

[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: Ralf Angeli
Subject: Re: [Bug-AUCTeX] [A Mennucc] Bug#469816: auctex: (does not) print PDF with dvips
Date: Sun, 09 Mar 2008 14:38:31 +0100

* David Kastrup (2008-03-07) writes:

> Ralf Angeli <address@hidden> writes:
>
>> 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.

In the AUCTeX sources only the "Default" printer is defined (in
`TeX-printer-list').  And then there is `TeX-print-command' which is
used in case a printer in `TeX-command-list' does not specify its own
printing command.  The default command in `TeX-print-command' advises
dvips to print directly to a certain printer, i.e. it leaves the piping
to dvips.  So I am not sure what named printers you mean.

What we probably need is something like `TeX-output-view-style' for
printing, i.e. a configuration variable where one can define a printing
command based on the type of output file and certain document
properties.

Problem is that I don't particulary like `TeX-output-view-style' because
of its complexity.  It's also quite inflexible in that one has to repeat
a lot of stuff (most notably the viewer binaries) for the different
properties.  And last but not least does not offer any kind of control
which file to choose if several alternatives are available.

So when I say we need "something like `TeX-output-view-style'" I mean
"`TeX-output-view-style' done right".

A cheap-assed alternative could be to define another expander for
`TeX-print-command' and the "Default" printer in `TeX-printer-list', but
using that will likely mean that nobody will actually be able to
understand what's going on.  In addition it would be backwards to
hardcode an expansion to be used in a variable.

-- 
Ralf




reply via email to

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