[Pkg-octave-devel] PDF version of Octave-FAQ
Rafael Laboissiere
Rafael Laboissiere <rafael@debian.org>
Fri, 25 Feb 2005 14:27:42 +0100
--6WlEvdN9Dv0WHSBl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
* John W. Eaton <jwe@bevo.che.wisc.edu> [2005-02-21 12:01]:
> On 21-Feb-2005, Rafael Laboissiere <rafael@debian.org> wrote:
>
> | If nobody objects, I am going to
> | replace the PS files by the PDF files in the octave2.1-doc package.
>
> I don't object. I've been thinking of adding a PDF version of the
> manual to the core distribution. Now I've done that. I also added
> rules for the liboctave docs, though they were never complete and are
> hopelessly out of date now.
>
> | A suggestion for the upstream authors: you might include a rule for building
> | octave.pdf in doc/Makefile.in, something like this:
> |
> | octave.pdf: $(MAIN_TEXINFO) $(SUB_TEXINFO) ../conf.texi
> | -TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):"; \
> | export TEXINPUTS; \
> | texi2pdf $<
>
> Thanks, this is what I used.
I noticed the changes in 2.1.66. Thanks. However, the FAQ is not built in
PDF format. Attached below is the patch that I am using in the Debian
package for doing that.
--
Rafael
--6WlEvdN9Dv0WHSBl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="50_build-faq-pdf.dpatch"
#! /bin/sh /usr/share/dpatch/dpatch-run
## 50_build-faq-pdf.dpatch by Rafael Laboissiere <rafael@debian.org>
##
## DP: Build Octave-FAQ.pdf from texi sources
@DPATCH@
--- octave2.1-2.1.66.orig/doc/faq/Makefile.in
+++ octave2.1-2.1.66/doc/faq/Makefile.in
@@ -22,7 +22,8 @@
TEXINFO := Octave-FAQ.texi
-FORMATTED := Octave-FAQ.info Octave-FAQ.dvi Octave-FAQ.ps Octave-FAQ*.html
+FORMATTED := Octave-FAQ.info Octave-FAQ.dvi Octave-FAQ.ps Octave-FAQ.pdf \
+ Octave-FAQ*.html
DISTFILES := Makefile.in $(TEXINFO) $(FORMATTED)
@@ -49,6 +50,11 @@
Octave-FAQ.ps: Octave-FAQ.dvi
-dvips -o Octave-FAQ.ps Octave-FAQ.dvi
+Octave-FAQ.pdf: Octave-FAQ.texi
+ -TEXINPUTS="$(srcdir):$(srcdir)/..:$(TEXINPUTS):"; \
+ export TEXINPUTS; \
+ $(TEXI2PDF) $(srcdir)/Octave-FAQ.texi
+
# These option forms are supported by texi2html 1.65 and probably also
# more recent versions.
Octave-FAQ_toc.html:
--6WlEvdN9Dv0WHSBl--