[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Re: Axiom Book
From: |
Bertfried Fauser |
Subject: |
Re: [Axiom-developer] Re: Axiom Book |
Date: |
Sat, 19 Jun 2004 18:13:28 +0200 (CEST) |
Hi,
it is fairly easy to create a pdf file having graphics in it _and_
using reasonable pdf fonts. A colleague of mine used a makefile to produce
his PhD thesis, I had sent a copy to Tim. The main point is to go as
follows:
1) use ordinary latex
2a) use dvips to produce ordinary ps-files (including graphics)
2b) use dvips with differnt options to produce a ps-file prepared to be
translated into pdf (including graphics)
3) use ps2pdf (and some other goodies if wanted) to produce a pdf (having
tubnails etc)
Note that pdflatex has problems with certain latex styles, eg pstricks.
There are pstricks somethings for pdflatex, but then you have two latex
files, one for producing dvi and one for directly producing pdf via
pdflatex.
ciao
BF.
------------------------------------------------------
An example which I use for a local project looks like:
------------------------------------------------------
# name of main tex file
MAINTEXFILE = Bbook
# possibly path to latex
LATEX = latex
all: dvi pspdf
world: dvi pdf ps
clean:
rm -f ${MAINTEXFILE}.dvi ${MAINTEXFILE}.ps ${MAINTEXFILE}.pdf
${MAINTEXFILE}.aux \
${MAINTEXFILE}.log ${MAINTEXFILE}.lof ${MAINTEXFILE}.toc
${MAINTEXFILE}.tpm\
${MAINTEXFILE}.bbl ${MAINTEXFILE}.blg ${MAINTEXFILE}.ind
${MAINTEXFILE}.idx\
${MAINTEXFILE}.ilg ${MAINTEXFILE}.out ${MAKEFILE}.bak *.log
BF_book_2004.pdf
dvi: ${MAINTEXFILE}.dvi
pdf: ${MAINTEXFILE}-fromps.pdf
pspdf: ${MAINTEXFILE}-fromps.pdf
ps: ${MAINTEXFILE}.ps
${MAINTEXFILE}.dvi: ${MAINTEXFILE}.tex ${MAINTEXFILE}.bbl ${MAINTEXFILE}.ind
${LATEX} ${MAINTEXFILE}.tex
${LATEX} ${MAINTEXFILE}.tex
${MAINTEXFILE}.bbl: sql.bib
${LATEX} ${MAINTEXFILE}.tex
bibtex ${MAINTEXFILE}
${MAINTEXFILE}.ind: ${MAINTEXFILE}.idx
${LATEX} ${MAINTEXFILE}.tex
makeindex ${MAINTEXFILE}
# see especially the options to dvips & ps2pdf
${MAINTEXFILE}-fromps.pdf: ${MAINTEXFILE}.dvi
dvips -Ppdf -G0 ${MAINTEXFILE}.dvi -o ${MAINTEXFILE}.ps
ps2pdf -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.3 \
-dSubsetFonts=true -dEmbedAllFonts=true ${MAINTEXFILE}.ps \
${MAINTEXFILE}.pdf
# new dvips and ps2pdf version (ghostscript 3.??) produces
# thumbnails automatically
# thumbpdf --modes=dvips ${MAINTEXFILE}.pdf
${LATEX} ${MAINTEXFILE}.tex
dvips -Ppdf -G0 ${MAINTEXFILE}.dvi -o ${MAINTEXFILE}.ps
# timestamp (program not on my solaris box, havn't tested)
# pdftime ${MAINTEXFILE}.ps
ps2pdf -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.3 \
-dSubsetFonts=true -dEmbedAllFonts=true ${MAINTEXFILE}.ps \
${MAINTEXFILE}.pdf
# 'publish' the pdf file
mv ${MAINTEXFILE}.pdf BF_book_2004.pdf
rm ${MAINTEXFILE}.ps
dvips ${MAINTEXFILE}.dvi -o ${MAINTEXFILE}.ps
${MAINTEXFILE}.ps: ${MAINTEXFILE}.dvi
dvips ${MAINTEXFILE}.dvi -o ${MAINTEXFILE}.ps
% PD Dr Bertfried Fauser
% Institution: Max Planck Institut for Mathematics Leipzig
<http://www.mis.mpg.de>
% Privat Docent: University of Konstanz, Physics Dept
<http://www.uni-konstanz.de>
% contact |-> URL : http://clifford.physik.uni-konstanz.de/~fauser/
% Phone : Leipzig +49 341 9959 735 Konstanz +49 7531 693491
- [Axiom-developer] Re: Axiom Book, root, 2004/06/19
- [Axiom-developer] Re: Axiom Book, C Y, 2004/06/19
- Re: [Axiom-developer] Re: Axiom Book, David MENTRE, 2004/06/19
- Re: [Axiom-developer] Re: Axiom Book, root, 2004/06/19
- Re: [Axiom-developer] Re: Axiom Book, David MENTRE, 2004/06/20
- Re: [Axiom-developer] Re: Axiom Book, root, 2004/06/20
- Re: [Axiom-developer] Re: Axiom Book, David MENTRE, 2004/06/20
- Re: [Axiom-developer] Re: Axiom Book, Bertfried Fauser, 2004/06/20
- Re: [Axiom-developer] Re: Axiom Book, C Y, 2004/06/20
- Re: [Axiom-developer] Re: Axiom Book, David MENTRE, 2004/06/20