[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Looking for PDF version of the dia manual



On Sat, 1 Feb 2003 18:11:09 +0200, Steffen Macke <sdteffen@web.de> wrote:
> Could someone with a better docbook setup send
> me a PDF version of the current dia manual? I would like to
> include it in the win32 release. I just can't get the images to
> work... 

Done.

http://www.schemamania.org/play/projects/dia-cvs-snapshot/doc/en/dia-manual.pdf

To make yours work, edit your sgml catalog:

1. Find the file that defines "%graphic-default-extension%".  Mine is 
/usr/pkg/share/sgml/docbook/dsssl/dsssl/modular/print/dbparam.dsl

2. In my file, that feature was defeated.  I tried to follow Norm Walsh's
instructions:
  http://sources.redhat.com/ml/docbook/1999-11/msg00140.html
  http://sources.redhat.com/ml/docbook/1999-11/msg00135.html
  
but jade didn't like that, so I used:
	(define %graphic-default-extension% "eps")

You could try this patch, YMMV:
[--snip--]
--- dbparam.dsl.orig	Thu Apr  6 08:56:50 2000
+++ dbparam.dsl	Sun Feb  2 16:07:59 2003
@@ -1506,7 +1506,9 @@
 
 ;; REFERENCE Graphics
 
-(define %graphic-default-extension% 
+(define %graphic-default-extension% "eps")
+
+;;define %graphic-default-extension% 
   ;; REFENTRY graphic-default-extension
   ;; PURP Default extension for graphic FILEREFs
   ;; DESC
@@ -1518,7 +1520,7 @@
   ;; /DESC
   ;; AUTHOR N/A
   ;; /REFENTRY
-  #f)
+;;  #f)
 
 (define %graphic-extensions% 
   ;; REFENTRY graphic-extensions
[--snip--]

Then convert the png files to eps.  I used "convert" from ImageMagick.

$ cd doc/en/graphics/
$ for f in `ls *.png |sed s/.png//` ; do convert $f.png $f.eps; done
$ cd ..

To make the printable files:

$ openjade -d ${DOCBOOK_DSL} -t tex dia-manual.sgml
$ jadetex *.tex |xmessage -file -
$ dvips *.dvi	# for postscript
$ dvipdf *.dvi	# for pdf

Hope that helps.

--jkl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK