gEDA Schaltplan in PS konvertieren

Mar 10, 2015 4 Replies

Hallo Gruppe,


heruas) nach PS konvertieren will. Das ging auch immer ganz gut, indem ich



$ gschem -p -o mysch.ps -s /path/to/this/file/print.scm mysch.sch



gemacht habe. "print.scm" ist in der Distribution enthalten. Allerdings verwende ich in meiner Version



(output-color "enabled") (output-text "ps")


Backtrace:
> In ice-9/boot-9.scm:
> 157: 9 [catch #t # ...]
> In unknown file:
> ?: 8 [apply-smob/1 #]
> In ice-9/boot-9.scm:
> 157: 7 [catch #t # ...]
> In unknown file:
> ?: 6 [apply-smob/1 #]
> In ice-9/boot-9.scm:
> 2320: 5 [save-module-excursion #]
> 3966: 4 [#]
> In unknown file:
> ?: 3 [load-compiled/vm "/home/joe/.cache/guile/ccache/2.0-LE-8-2.0/usr/share/gEDA/scheme/print.scm.go"]
> In print.scm:
> 14: 2 [#]
> In ice-9/boot-9.scm:
> 102: 1 [# unbound-variable ...]
> In unknown file:
> ?: 0 [apply-smob/1 # unbound-variable ...]
>
> ERROR: In procedure apply-smob/1:
> ERROR: In procedure module-lookup: Unbound variable: output-text

/home/joe/.cache/guile/ccache/2.0-LE-8-2.0/usr/share/gEDA), aber das war


(g875406c) unter Mint Linux x86_64.


Johannes


>> Wo hattest Du das Beben nochmal GENAU vorhergesagt? Kosmologen: Die Geheim-Vorhersage.

file

m

"print.scm" ist out und wird nicht mehr gepflegt. "gaf export" ist in.

hrend gaf ein fertig compiliertes Utility. Das gaf versteht die Befehle "export", "config" und "shell". Dazu diverse Optionen, die in einer man

- page beschrieben sind.

Zitat "man gaf": /----------------------------- (...) EXPORTING IMAGE FILES gaf export [OPTION ...] -o OUTPUT [--] FILE ...

gaf export can export schematic and symbol files in a variety of

image formats for printing or further processing. It currently

supports single-page PNG, SVG and EPS output, and multi-page PS

and PDF output. It accepts a variety of options for controlling

how the output is formatted.

-o, --output=FILE Output generated image data to FILE.

-f, --format=(png | pdf | svg | ps | eps) Specify an output format. Usually, this option is not

required, because gaf export will infer the correct for? ?? mat from the file extension of the output file.

-p, --paper=NAME Size the output for a particular paper size. The NAME

should be a PWG 5101.1-2002 paper name. For example,

valid values include `iso_a4', `na_letter', or `na_d'.

-l, --layout=(auto | landscape | portrait) When using a paper size, set the orientation of the out? ?? put. If `auto' layout is used, the orientation that

best fits the drawing will be used.

-s, --size=(auto | WIDTH:HEIGHT) Size the output with specific dimensions. If the size

is `auto', select the size that best fits the drawing.

-k, --scale=FACTOR Set the output scale FACTOR. This is a distance identi? ?? cal with 100 points (1 default grid spacing) in

gschem(1) coordinate space. It is used to size the out? ?? put when neither --paper nor --size are given, and

defaults to 100 mil.

-m, --margins=(auto | TOP[:LEFT[:BOTTOM[:RIGHT]]]) Set the widths of the margins to be used. If `auto'

margins are specified, a sensible default value will be

chosen. Up to four margin widths can be provided. If

one is provided, it will be used on all four sides. If

two are provided, the first will be used for the

top/bottom and the second for the left/right. If three

are provided, the first will be used for the top, the

second for left/right, and the third for the bottom.

-a, --align=(auto | HALIGN:VALIGN) Set how the drawing is aligned within the page. HALIGN

controls the horizontal alignment, and VALIGN the verti? ?? cal. Each alignment value should be in the range 0.0 to

1.0. The `auto' alignment is equivalent to a value of

`0.5:0.5', i.e. centered.

-d, --dpi=DPI Set the number of pixels per inch used when generating

PNG output.

-c, --color Enable colour output.

--no-color Disable color output.

-F, --font=FONT-FAMILY Set the font to be used for drawing text.

-- Treat all remaining arguments as schematic or symbol

filenames. Use this if you have a schematic or symbol

filename which begins with `-'.

The --size, --margins, or --scale options described above accept

values using units of `mm', `cm', `in', `pc', `px', or `pt'. If

you do not provide a unit, points are assumed. N.b. that `px'

are evaluated relative to the current --dpi setting.

When using the --size, --margins, or --align options with multi? ?? ple values, you may use `;', or ` ' as a separator between them

instead of `:'. In such a case, remember to properly quote your

arguments to avoid them to be interpreted by your shell. \-------------------------------

los ist:

Mir sagt Scheme auch immer so viel, wie ein chinesisches Buch.

schem 1.8.2

Mir ist nicht ganz klar, bei welcher Version gaf dazugekommen ist. Ist

wohl etwa zwei Jahre her. Probier mal aus, ob Du den Befehl gaf hast. W enn

e- Scripten.

formatting link
.sh

entlang, sammelt alle Ausdrucke ein und erstellt ein Gesamt-PDF.

------

Kai-Martin Knaak tel: +49-511-762-2895 1-762-2211 Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op= get

[...]

Oh, das sieht aber in der Tat besser aus. Ich will eh als SVG exportieren, print.scm konnte das nicht.

Nein, ist nicht dabei. Klar, dann muss ich mir das selbst ziehen.

Wundert mich schon sehr, dass die Paketierer bei Ubuntu so lahm sind, dass sie ein zwei Jahre altes Update nicht reinnehmen? Oder ist der

stable markiert und wandert deswegen nicht rein? Du bist doch auch gEDA Dev, oder? Musst es dann ja wissen :-)

Ah, das sieht echt cool aus. Wobei ich nicht drucken/PDFs erzeugen will, sondern SVGs, die dann letztendlich in ein LaTeX-Dokument eingebettet werden.

Naja, mal basteln...

Johannes

>> Wo hattest Du das Beben nochmal GENAU vorhergesagt? Kosmologen: Die Geheim-Vorhersage.

Ein paar Tipps, damit es weniger nervig wird:

1) Die notwendigen dev-Pakete von libraries und sonstigen Komponenten

apt-get build-dep geda-gschem geda-gnetlist ;

2) Die Source saugen: git clone git://git.geda-project.org/geda-gaf cd geda-gaf

3) Makefiles erzeugen und konfigurieren ./autogen.sh ./configure

4) auf mehreren Cores compilieren make -j4

5) nach /usr/local/ installieren sudo make install

6) Die frisch installierte libgeda einbinden sudo ldconfig

Release. Letzter Stand ist 1.8.2 vom September 2013. Siehe

formatting link

klein und es gibt mit gibt es wesentlich weniger Artefakte als mit den anderen Web-tauglichen Formaten.

Hmm, das habe ich bisher immer mit PDF gemacht. Was ist der Vorteil von SVG in Latex-Docs?

------

Hi Kai-Martin,

hab erst gerade gesehen dass du hier geantwortet hast. Ich probier's

Dankesehr, ja, ich hab's mir gleich gebaut. War auch gar nicht so nervig wie gedacht, er braucht nur die libgtk und groff als Dependency, alles andere war bei mir eh schon mit Dev-Paketen installiert. Lief ganz gut durch.

Ach das ist Mist. So kriegt man ein OSS Projekt tot :-(

Hmmmmmm echt jetzt? Aber du schickst ab und zu Patches rein, oder? Ich war mir da so sicher, dass ich dich immer wieder auf der geda ML gesehen habe.

Die werden auch letztendlich zu PDFs die ich dann ins TeX einbinde.

ins Bett zu gehen. Da werden beispielsweise Nodes nicht als Pfad verbunden, sondern alles als einzelne Liniensegmente gezeichnet. Und die

Liniensegmente und nicht als echte Pfade abgelegt wird?

Das sieht sooooo schlimm aus. Leider das einzige Opensource Programm das Vektorgrafiken exportieren kann. Die anderen sind da noch schrottiger

Johannes

>> Wo hattest Du das Beben nochmal GENAU vorhergesagt? Kosmologen: Die Geheim-Vorhersage.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required