Re: gEDA-user: label printing
Hi, Thank you all of your answers. I've solved the problem entirely in perl. There is a PostScript::Simple package, which does what I need. Cheers, Levente On Fri, 06 Feb 2009 10:54:00 +0100 Stephan Boettcher boettc...@physik.uni-kiel.de wrote: Levente Kovacs leventel...@gmail.com writes: I would like to print labels. For this I'd generate N times some labels, with slight different content. Then I have N *.eps file. Question. How do I merge them into one A4 postscript page? I'd try 'pstops', after some tool to merge the N .eps files into one ps file with multiple pages. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user -- Levente Kovacs http://logonex.eu ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: label printing
Levente Kovacs leventel...@gmail.com writes: I would like to print labels. For this I'd generate N times some labels, with slight different content. Then I have N *.eps file. Question. How do I merge them into one A4 postscript page? I'd try 'pstops', after some tool to merge the N .eps files into one ps file with multiple pages. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: label printing
Am Mittwoch, den 04.02.2009, 23:30 +0100 schrieb Levente Kovacs: I would like to print labels. For this I'd generate N times some labels, with slight different content. Then I have N *.eps file. Question. How do I merge them into one A4 postscript page? Options I have so far. * LaTex. It is pain to do it, but once it's done, it's okay. I think this is not too much related to gEDA :-[ I made some with LaTeX some time ago, try something like ste...@amd64-x2 ~/LaTeX/Labels $ cat RLabel.tex % Simple rectangular labels with adjustable size % S. Salewski, 21-MAI-2006 \documentclass{article}[12pt,a4paper] \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} % Use Times font: \usepackage{mathptmx} \usepackage[scaled=.90]{helvet} \usepackage{courier} \newlength{\mylabelwidth} \newlength{\mylabelheight} \setlength{\mylabelwidth}{5cm} % width of labels \setlength{\mylabelheight}{2cm} % height of labels \setlength{\fboxrule}{0.5mm} % thickness of frame \setlength{\fboxsep}{5mm} % minimum distance frame to text \addtolength{\mylabelwidth}{-2\fboxrule} \addtolength{\mylabelwidth}{-2\fboxsep} \addtolength{\mylabelheight}{-2\fboxrule} \addtolength{\mylabelheight}{-2\fboxsep} \newcommand{\rlabel}[1]{ \fbox{% \begin{minipage}[c][\mylabelheight]{\mylabelwidth} \centering% center text horizontally \large% textsize #1 \end{minipage}}} \begin{document} \setlength{\parindent}{0pt} \rlabel{Etikett 1} \rlabel{Etikett 2} \rlabel{Etikett 3} \rlabel{Und noch ein Etikett mit mehr Text.} \end{document} And you can make CD-Covers too: ste...@amd64-x2 ~/LaTeX/CD-Covers $ cat New.tex % Simple retangular labels for CD- and DVD-Covers % S. Salewski, 21-MAI-2006 \documentclass[12pt, a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} % Use Times font: \usepackage{mathptmx} \usepackage[scaled=.90]{helvet} \usepackage{courier} %\usepackage{extsizes} % larger text sizes \usepackage[a4paper]{geometry} \usepackage[cam,a4,center]{crop} \geometry{ paperwidth=12cm, paperheight=12cm, margin=2em, nohead } \begin{document} \pagestyle{empty} \setlength{\parindent}{0pt} \newpage \section*{Datensicherung auf DVD-RAM\\Rechner AMD64X2 (Gentoo AMD64)\ \Juni 2008} \subsection*{Kopien wichtiger Dateien (/mnt/data/stefan)} \begin{itemize} \item Bibliothek \item Briefe \item gEDA \item HTML \item LaTeX \item Notizen \item Projekte \item Tresor \end{itemize} %\end{document} \newpage \section*{Datensicherung auf DVD-RAM\\Rechner Salewski1\\2006} \subsection*{Fortlaufende Sicherung} Methode: cp bzw. rsync \begin{itemize} \item Notizen \item HTML \item \LaTeX \end{itemize} \end{document} ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: label printing
Levente - On Wed, Feb 04, 2009 at 11:30:53PM +0100, Levente Kovacs wrote: I would like to print labels. For this I'd generate N times some labels, with slight different content. Then I have N *.eps file. Question. How do I merge them into one A4 postscript page? Look into mpage http://www.mesa.nl/pub/mpage (probably also in your favorite Linux distribution) * LaTex. It is pain to do it, but once it's done, it's okay. I've done that. Well, plain TeX. * Xfig. Ditto. I've done that. * Postscript. It should be possible to include *.eps into the main page. That should be the most portable. I don't know what it takes to implement the include *.eps part. * Buy a label printer, and not to use sheet labels. :-p Does anyone have any experience with Postscript programming? Yes. ;-) - Larry ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: label printing
Have you tried psnup ? Otherwise, what you do is have a template *.ps file with a def for a label, and use your favorite scripting language (perl in my case) to concatenate that *.ps file with N invocations of it with the relevent data. ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
Re: gEDA-user: label printing
I would like to print labels. For this I'd generate N times some labels, with slight different content. Then I have N *.eps file. Question. How do I merge them into one A4 postscript page? Options I have so far. * LaTex. It is pain to do it, but once it's done, it's okay. Actually, TeX proper (and LaTeX is just a TeX macro package) can't; all it can do is drop a directive in the DVI that tells the DVI converter to do something implementation-specific. You then need a DVI-to-PostScript converter that does what you want when it sees the resulting \special in the DVI. Also, where's the pain? Is it not just a suitable \halign or \valign? * Postscript. It should be possible to include *.eps into the main page. That's what I'd recommend. Does anyone have any experience with Postscript programming? Yes. :) Any other idea is welcome. It would be nice if the solution was scriptable. Creating PostScript is scriptable in principle, since PostScript is just plain text (with suitable content - that is, PostScript is plain text just as much as, for example, C is). How easy is it? If you're willing to make a few assumptions, such as the amount you need to scale the labels by (which may be reasonable in your case), then it's probably just a matter of catting together the pieces of a template with the label files. It might even be as simple as doing gsave NNN NNN translate NNN dup scale save ...label file 1 goes here... restore grestore gsave NNN NNN translate NNN dup scale save ...label file 2 goes here... restore grestore gsave NNN NNN translate NNN dup scale save ...label file 3 goes here... restore grestore ...etc... showpage where the NNN things in the gsave...save lines are values you need to work out to control where on the page the label files appear (first two NNNs) and what sizes they are (third NNN). In a proper general-purpose solution these would be computed based on the bounding box of the EPS file, but doing that may be more work than it's worth in this case. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B ___ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user