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

Re: gEDA-user: Re: printing to a ps or eps file from gschem



On 9/10/05, John Luciani <jluciani@xxxxxxxxx> wrote:
> Are you including the EPS files in a LaTeX document?

Here's what I did for including gschem diagrams in my thesis:

Makefile rules:

%.ps : %.sch diagrams/print.scm
	cd diagrams; gschem -o $(notdir $@) -s print.scm $(notdir $<)

%.pdf : %.ps
	psselect -p_1 $< | ps2pdf - $@

thesis.pdf : thesis.tex
	$(LATEX) $< || ( rm -f $@; exit 1 )
	$(BIBTEX) thesis || :
	$(LATEX) $<
	$(LATEX) $<
	@pdfinfo $@ | grep '^File size'

LaTeX fragment:

\begin{figure}
\begin{center}
\includegraphics[width=\textwidth]{block_dia}
\caption{block diagram}
\label{fig:block-diagram}
\end{center}
\end{figure}

Note that the figures were never converted to bitmap format. This
makes the images sharper when viewing on the screen and printing,
without making the file too large.

-- 
- Charles Lepple