[tex-live] dviselect wishlist?
zdenek.wagner at gmail.com
Sun Nov 17 11:32:00 CET 2013
2013/11/17 Karl Berry <karl at freefriends.org>:
> request (wish) to the author(s) of dviselect.
> The original author of dviselect (Chris Torek) has not been active for
> many years, so we have been "maintaining" it as part of TeX Live (with
> his approval).
> I'd like it to return a non-zero value
> when the specified page is out of range. It would also be
> nice if dviselect didn't generate an output in that case.
> Sounds logical -- I've been annoyed by that zero-page output on occasion
> myself. Unfortunately I'm not likely to get to it myself any time soon.
> I'm not sure if anyone else will have time. A patch would surely be
> welcome :).
> By the way, I think this bit:
> while true; do
> dviselect -i infile.dvi -o out$n.dvi $n || break
> could be simplified to:
> while dviselect -i infile.dvi -o out$n.dvi $n; do
> It's also necessary to use =$n instead of $n, so that dviselect selects
> by absolute page number (1, ..., n), instead of the TeX page numbers,
> which are often negative, etc.
Is it really necessary to do such operations with DVI? It is easier
with PDF, you can split a PDF file to one-page files by
pdftk infile.pdf burst output out%02d.pdf
More information about the tex-live