X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vzl5f9cr4QWhXXlDybXP65DhwMpDnEMZm1C466dcPG0=; b=MIowxHWhl/1CMLOFdXjxQcyPGWZ4NSWnjTpVAInReWv0MZes8Hp/Lm/YkqDatU9ojz 8L5593/7kpaWqLPLWYgYN2sxebo5T1HL47avCu5OM8qanoEp9OvCZPmK3Xq5yhjGDqsD 9C+jooOQybBYywz7f+o8vdoAM59bbv55H+WJDle293teYc39+BcD9l/lld5i3mZbD+eG h6jU79ONe9rcptR/QmtUk/iAhcsc8wlLj4Oao1qBUgV5v1cJjLbKakqlX6Y4RNq7Ia5E og/J8yd9oTYPAuFBfMP0b4yAmtwuE9bdDbYvg2z26BwzWxqYOkhgjmyYcrKiMsHE90Az 7mdA== MIME-Version: 1.0 In-Reply-To: <874njrni9a.fsf@harrington.peter-b.co.uk> References: <874njrni9a DOT fsf AT harrington DOT peter-b DOT co DOT uk> Date: Thu, 13 Dec 2012 13:26:21 +0600 Message-ID: Subject: Re: [geda-user] Monochrome PDF From: Eugene Mikhantiev To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=20cf303bfae8f096d404d0b6d476 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --20cf303bfae8f096d404d0b6d476 Content-Type: text/plain; charset=ISO-8859-1 Thank you! gaf solved my problem. Also, I have troubles with print-color option, but I'm not completely sure that this is a bug in gEDA, not a bug in my build. Log: Backtrace: In /home/eugene/.gEDA/gschemrc: 1: 0* [print-color "disabled"] In /usr/share/gEDA/scheme/geda-deprecated-config.scm: 80: 1 ((@ (geda config) config-set!) (rc-config) group ...) 80: 2* (@ (geda config) config-set!) In unknown file: ?: 3* [copy-tree ... ?: 4* [apply # ((geda config) config-set!)] ?: 5 [# (geda config) config-set!] ?: 6 (let* ((var #)) (if (not var) (error "no such public variable" #)) var) ?: 7* (if (not var) (error "no such public variable" (list # mod-name var-name))) ?: 8 [error "no such public variable" (@ (geda config) config-set!)] ... ?: 9 [scm-error misc-error #f ...] : In procedure scm-error in expression (scm-error (quote misc-error) #f ...): : no such public variable (@ (geda config) config-set!) ERROR: Failed to load RC file [/home/eugene/.gEDA/gschemrc]: no such public variable (@ (geda config) config-set!) 2012/12/13 Peter TB Brett > > Eugene Mikhantiev > writes: > > > Hi, all! > > > > I have a question about the new print dialog. > > Old versions of gschem generates monochrome output when printing to > > pdf. Output generated by current stable version is colored. > > Is there any possibility to make gschem generate monochrome pdf? Or by > > now monochrome PDFs can be done only by PDF postprocessing? > > The following applies only to people running gEDA/gaf 1.9.x. > > 1) To generate a monochrome PDF file, you don't need to bother with > gschem at all; just run: > > gaf export -o foo.pdf foo.sch > > Or to get a colour PDF: > > gaf export -co foo.pdf foo.sch > > 2) To force gschem to print in monochrome, add: > > (print-color "disabled") > > to your ~/.gEDA/gschemrc file. In theory, gschem should detect if > you're printing to a BW printer and just Do The Right Thing, but I > haven't actually tested that. > > Peter > > -- > Peter Brett > Remote Sensing Research Group > Surrey Space Centre > > --20cf303bfae8f096d404d0b6d476 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you!
gaf solved my pr= oblem.
Also, I have troubles with print-color option, but I'm not c= ompletely sure that t= his is a bug in gEDA,= not a bug in my build. Log:

Backtrace:
In /home/eugene/.gEDA/gschemrc:
=A0=A0 1: 0* [print-co= lor "disabled"]
In /usr/share/gEDA/scheme/geda-deprecated-conf= ig.scm:
=A0 80: 1=A0 ((@ (geda config) config-set!) (rc-config) group ..= .)
=A0 80: 2* (@ (geda config) config-set!)
In unknown file:
=A0=A0 ?: 3= * [copy-tree ...
=A0=A0 ?: 4*=A0 [apply #<procedure #f (mod-name var-= name)> ((geda config) config-set!)]
=A0=A0 ?: 5=A0=A0 [#<procedure= #f (mod-name var-name)> (geda config) config-set!]
=A0=A0 ?: 6=A0=A0 (let* ((var #)) (if (not var) (error "no such public= variable" #)) var)
=A0=A0 ?: 7*=A0 (if (not var) (error "no s= uch public variable" (list # mod-name var-name)))
=A0=A0 ?: 8=A0=A0= [error "no such public variable" (@ (geda config) config-set!)]<= br> =A0=A0=A0 ...
=A0=A0 ?: 9=A0=A0 [scm-error misc-error #f ...]

<= ;unnamed port>: In procedure scm-error in expression (scm-error (quote m= isc-error) #f ...):
<unnamed port>: no such public variable (@ (ge= da config) config-set!)
ERROR: Failed to load RC file [/home/eugene/.gEDA/gschemrc]: no such public= variable (@ (geda config) config-set!)


2012/12/13 Peter TB Brett <peter AT peter-b DOT co DOT uk>

Eugene Mikhantiev <mikhantiev AT gmail DOT com>
writes:

> Hi, all!
>
> I have a question about the new print dialog.
> Old versions of gschem generates monochrome output when printing to > pdf. Output generated by current stable version is colored.
> Is there any possibility to make gschem generate monochrome pdf? Or by=
> now monochrome PDFs can be done only by PDF postprocessing?

The following applies only to people running gEDA/gaf 1.9.x.

1) To generate a monochrome PDF file, you don't need to bother with
gschem at all; just run:

=A0 gaf export -o foo.pdf foo.sch

Or to get a colour PDF:

=A0 gaf export -co foo.pdf foo.sch

2) To force gschem to print in monochrome, add:

=A0 (print-color "disabled")

to your ~/.gEDA/gschemrc file. =A0In theory, gschem should detect if
you're printing to a BW printer and just Do The Right Thing, but I
haven't actually tested that.

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Peter

--
Peter Brett <pe= ter AT peter-b DOT co DOT uk>
Remote Sensing Research Group
Surrey Space Centre

--20cf303bfae8f096d404d0b6d476--