Re: PDF cropped at right margin

Laurent Jacques <[email protected]>
Newsgroups gmane.comp.tex.latex.prosper.user
Organization UCL/FYMA
Message-ID <[email protected]>
On Wednesday 18 June 2003 12:16, Fred Labrosse wrote:
| You need to make sure that you specify a4 paper when converting from ps to
| pdf.  You can do that with the gs option -sPAPERSIZE=a4.

This last solution never worked for me even if it works for other people (I 
don't know why). So, if you are in my case, try the sequence

	latex <yourtexfile>.tex
	dvips -o <yourtexfile>.ps -Ppdf -G0 -t a4 <yourtexfile>.dvi
        ps2pdf <yourtexfile>.ps

where <yourtexfile> is obviously the name without extension of your original 
tex file.

Personnally, I used to summarize this sequence in a Makefile (given in 
attachment) that I put in the same dir than my file. Next, after having 
replaced <yourtexfile> by the correct name in the Makefile, I type
	make pdf 
on the command line to generate my pdf file and open acroread.

Bye,
Laurent.
Makefile (text/x-makefile, 402 B)
all:	clean bib pdf

pdf: 
	latex <yourtexfile>.tex
	dvips -o <yourtexfile>.ps -Ppdf -G0 -t a4 <yourtexfile>.dvi
	ps2pdf <yourtexfile>.ps
	acroread <yourtexfile>.pdf
bib:	
	latex <yourtexfile>.tex
	bibtex <yourtexfile>
	latex <yourtexfile>.tex
	
clean:
	rm -f <yourtexfile>.aux <yourtexfile>.log <yourtexfile>.blg <yourtexfile>.bbl <yourtexfile>.out <yourtexfile>.dvi <yourtexfile>.ps <yourtexfile>.pdf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.