Re: ps2pdf and LaTeX's seminar style

2001-02-01 Thread Mauricio C. de Oliveira
Tom and Rafael,

So far that was the only solution that worked fine for me. pdflatex
still have some problems dealing with eps files so that ps2pdf is the
only alternative I can use. I consider that the way ps2pdf handles the
landscape clause (or better say ignore!) is a bug, and I wonder if this
should not be reported as one to gs guys.  For the moment, I'm using the
following to 'automate' the editing of the ps files (following Rafael):

[EMAIL PROTECTED] latex file.tex
[EMAIL PROTECTED] dvips -Ppdf -t landscape file.dvi -o file.ps
[EMAIL PROTECTED] sed s/ [EMAIL PROTECTED]/  \/PageSize [792 612] 
\/Orientation 0  setpagedevice/ file.ps | ps2pdf - file.pdf 
[EMAIL PROTECTED]

The above can be embedded into a shell script to handle the file name
parameter. For instance:

[EMAIL PROTECTED] cat myps2pdf
#!/bin/sh
sed s/ [EMAIL PROTECTED]/  \/PageSize [792 612] \/Orientation 0  
setpagedevice/ $1.ps | ps2pdf - $1.pdf
[EMAIL PROTECTED]

so that the whole thing would be called as (someone might try to handle
the file extension in a better way)

[EMAIL PROTECTED] latex file.tex
[EMAIL PROTECTED] dvips -Ppdf -t landscape file.dvi -o file.ps
[EMAIL PROTECTED] myps2pdf file 

I'm using dvips 5.86 and gs 6.01. You might need to tune up the
regexps until you get the desired result. Hope this help.

Mauricio



Re: ps2pdf and LaTeX's seminar style

2000-10-07 Thread Thomas Halahan
Rafael 

Nice summary.  The only thing is there must be an easier way that
editing the PS file.  I will investigate.

Tom

On Fri, 06 Oct 2000, Rafael E. Herrera wrote:
 Damn, I had to make a presentation using a laptop and a projector.
 I could not use a PDF file because acroread would not show the 
 document in landscape. From the previous messages the way to convert
 the PS to PDF is given by the next example.
 
 Say the latex file is:
 
 \documentclass[semhelv,landscape,12pt]{seminar}
 \begin{document}
 \begin{slide}
   A darned slide.
 \end{slide}
 \end{document}
 
 $ latex test.tex
 $ dvips -Ppdf -t landscape test.dvi -o test.ps
 
 Edit the postscript with:
 
 Thomas Halahan wrote:
  
   Another person showed me that I can do what I wish by changing the
   PostScript Prolog.  Dvips produces
  
   %%BeginSetup
   %%Feature: *Resolution 1200dpi
   TeXDict begin
@landscape
   %%EndSetup
  
   If I modify this to
  
   %%BeginSetup
   %%Feature: *Resolution 1200dpi
   TeXDict begin
  /PageSize [792 612] /Orientation 0  setpagedevice
   %%EndSetup
 
 After checking http://www.fastlane.nsf.gov/a1/pdfcreat.htm we
 use the cammand:
 
 $ ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 \
   -dSubsetFonts=true -dEmbedAllFonts=true test.ps test.pdf
 
 $ acroread test.pdf
 
 Now it shows right within acroread! I guess I won't be 
 needing Corel Office 2000 or StarOffice now :).
 
 -- 
 Rafael
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null



Re: ps2pdf and LaTeX's seminar style

2000-10-07 Thread Ted Harding

On 07-Oct-00 Thomas Halahan wrote:
 Rafael 
 
 Nice summary.  The only thing is there must be an easier way that
 editing the PS file.  I will investigate.
 
 Tom

I've had the same problem of converting Landscape PS files to PDF
so that they can be viewed right way up in Acrobat Reader.

The only way I've found is to use the 'pstill' program with the '-R'
option:

  pstill -R90 ..

generates a PDF which is rotated clockwise by 90 degrees.

For the 'pstill' program, if you don't know it already, see

  http://www.this.net/~frank/pstill.html

It is not totally straightforward to get this program set up, but once
you have it running it does a good job.

I don't know of any way to get ps2pdf to rotate the output.

Ted.


E-Mail: (Ted Harding) [EMAIL PROTECTED]
Fax-to-email: +44 (0)870 284 7749
Date: 07-Oct-00   Time: 17:02:10
-- XFMail --



Re: ps2pdf and LaTeX's seminar style

2000-10-07 Thread Pedro I. Sanchez
I do this with XFig. Open a new document and import your landscape PS
file using the picture tool (the photo camera button). When doing this
use any picture size you want. You'll get a dialog where you can browse
and pick up the desired file. Just before clicking done click use
original size on the bottom left. You now have your PS picture with the
original size into the XFig canvas.

Select portrait mode from the view menu (or press alt-c) and then
export the file (alt-x) to PDF.

It works for me.

-- 
Pedro

I've had the same problem of converting Landscape PS files to PDF
so that they can be viewed right way up in Acrobat Reader.

The only way I've found is to use the 'pstill' program with the '-R'
option:

  pstill -R90 ..

generates a PDF which is rotated clockwise by 90 degrees.

For the 'pstill' program, if you don't know it already, see

  http://www.this.net/~frank/pstill.html

It is not totally straightforward to get this program set up, but once
you have it running it does a good job.

I don't know of any way to get ps2pdf to rotate the output.

Ted.



RE: ps2pdf and LaTeX's seminar style

2000-10-06 Thread Thomas Halahan
I tried this recently.

What happened was that ps2pdf gave rubbish looking results.  I don't
know why this happens, but the quality is far worse than for pdflatex.

pdflatex, whilst quality is good, doesn't recofgnise the \specials
from fancybox package of pstricks of some such.  Therefore the
pdflatex semainar presentation comes out without a border and not the
right size.

If you do find a solution tell me.  I saw that one user of seminar
recomended VTEX but i could be bothered to learn that.

check out  http://www.tug.org/applications/Seminar/

AHH.. I have just seen your later post about editing the pd file. 
Question:  Do you find the quality of ps2pdf satisfactory.  Are you
really projecting this?  Perhaps I don't have the right gs fonts or
something cos my fonts come out horrid.  Any tips.

Tom


On Tue, 03 Oct 2000, Stephenson, Paul wrote:
 Douglas Bates [EMAIL PROTECTED] wrote:
 
  I have created a presentation in LaTeX using the seminar style.  I use
  landscape orientation for the slides.  The room where I want to give
  the presentation has a computer running Windows with Acrobat Reader
  available.  I would like to convert the slides to PDF and use the
  full-screen feature of Acrobat to display them.
  
  My difficulty is that ps2pdf does not follow the papersize hints.  The
  resultant PDF file is rotated 90 degrees when I try to view it.
 
 Just a thought: have you tried generating PDF directly from the LaTeX
 source with pdflatex?  I have no idea whether this will solve your
 problem, but it might be worth a try.
 
 Regards,
 
 Paul
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null



Re: ps2pdf and LaTeX's seminar style

2000-10-06 Thread Thomas Halahan

Maybe a better way to do this, rather than edit the ps file is to
issue 

 dvips -t landscape filename.dvi -o

to get the landscape ps file.  However when you convert to pdf the
page is shown sideways and on my acroread i cannot rotate it. 
Viewing a presentation sideways is not fun.  Any ideas how you can
get acroread to view true landscape?

Tom

 Thanks for the suggestion.  It is not easy to do that because the
 seminar style uses several PostScript specials.  These would all have
 to be rewritten to used pdflatex.  Also, I am incorporating PostScript
 figures into the slides.  I would have to convert all of them to PDF
 for pdflatex.
 
 Another person showed me that I can do what I wish by changing the
 PostScript Prolog.  Dvips produces 
 
 %%BeginSetup
 %%Feature: *Resolution 1200dpi
 TeXDict begin
  @landscape
 %%EndSetup
 
 If I modify this to 
 
 %%BeginSetup
 %%Feature: *Resolution 1200dpi
 TeXDict begin
/PageSize [792 612] /Orientation 0  setpagedevice
 %%EndSetup
 
 I can convert the PostScript file to PDF with ps2pdf and get the
 desired orientation.
 



RE: ps2pdf and LaTeX's seminar style

2000-10-06 Thread Jim McCloskey

| AHH.. I have just seen your later post about editing the pd file.
| Question: Do you find the quality of ps2pdf satisfactory.  Are you
| really projecting this?  Perhaps I don't have the right gs fonts or
| something cos my fonts come out horrid.  Any tips.

This is probably an off-the-wall suggestion, but it could be
useful. If you go to the web site of the NSF (National Science
Foundation), you can find a long, detailed, and very informative
tutorial about producing PDF documents from various kinds of sources
(including (La)TeX, by way of ghostscript and ps2pdf).

The reason the tutorial is there is that NSF now requires on-line
submission of research proposals for most of its programs, and PDF is
the required format. As a consequence, they've had to develop a large
store of knowledge about how to produce good-quality PDF documents
(especially documents that will display and print reliably on systems
other than those on which they were created).  The tutorial devotes
special attention to font issues.

This is the URL:

 http://www.fastlane.nsf.gov/a1/pdfcreat.htm

I've found it very useful.

Jim




Re: ps2pdf and LaTeX's seminar style

2000-10-06 Thread Rafael E. Herrera
Damn, I had to make a presentation using a laptop and a projector.
I could not use a PDF file because acroread would not show the 
document in landscape. From the previous messages the way to convert
the PS to PDF is given by the next example.

Say the latex file is:

\documentclass[semhelv,landscape,12pt]{seminar}
\begin{document}
\begin{slide}
A darned slide.
\end{slide}
\end{document}

$ latex test.tex
$ dvips -Ppdf -t landscape test.dvi -o test.ps

Edit the postscript with:

Thomas Halahan wrote:
 
  Another person showed me that I can do what I wish by changing the
  PostScript Prolog.  Dvips produces
 
  %%BeginSetup
  %%Feature: *Resolution 1200dpi
  TeXDict begin
   @landscape
  %%EndSetup
 
  If I modify this to
 
  %%BeginSetup
  %%Feature: *Resolution 1200dpi
  TeXDict begin
 /PageSize [792 612] /Orientation 0  setpagedevice
  %%EndSetup

After checking http://www.fastlane.nsf.gov/a1/pdfcreat.htm we
use the cammand:

$ ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 \
  -dSubsetFonts=true -dEmbedAllFonts=true test.ps test.pdf

$ acroread test.pdf

Now it shows right within acroread! I guess I won't be 
needing Corel Office 2000 or StarOffice now :).

-- 
Rafael



RE: ps2pdf and LaTeX's seminar style

2000-10-03 Thread Stephenson, Paul
Douglas Bates [EMAIL PROTECTED] wrote:

 I have created a presentation in LaTeX using the seminar style.  I use
 landscape orientation for the slides.  The room where I want to give
 the presentation has a computer running Windows with Acrobat Reader
 available.  I would like to convert the slides to PDF and use the
 full-screen feature of Acrobat to display them.
 
 My difficulty is that ps2pdf does not follow the papersize hints.  The
 resultant PDF file is rotated 90 degrees when I try to view it.

Just a thought: have you tried generating PDF directly from the LaTeX
source with pdflatex?  I have no idea whether this will solve your
problem, but it might be worth a try.

Regards,

Paul



Re: ps2pdf and LaTeX's seminar style

2000-10-03 Thread Douglas Bates
Stephenson, Paul [EMAIL PROTECTED] writes:

 Douglas Bates [EMAIL PROTECTED] wrote:
 
  I have created a presentation in LaTeX using the seminar style.  I use
  landscape orientation for the slides.  The room where I want to give
  the presentation has a computer running Windows with Acrobat Reader
  available.  I would like to convert the slides to PDF and use the
  full-screen feature of Acrobat to display them.
  
  My difficulty is that ps2pdf does not follow the papersize hints.  The
  resultant PDF file is rotated 90 degrees when I try to view it.
 
 Just a thought: have you tried generating PDF directly from the LaTeX
 source with pdflatex?  I have no idea whether this will solve your
 problem, but it might be worth a try.

Thanks for the suggestion.  It is not easy to do that because the
seminar style uses several PostScript specials.  These would all have
to be rewritten to used pdflatex.  Also, I am incorporating PostScript
figures into the slides.  I would have to convert all of them to PDF
for pdflatex.

Another person showed me that I can do what I wish by changing the
PostScript Prolog.  Dvips produces 

%%BeginSetup
%%Feature: *Resolution 1200dpi
TeXDict begin
 @landscape
%%EndSetup

If I modify this to 

%%BeginSetup
%%Feature: *Resolution 1200dpi
TeXDict begin
   /PageSize [792 612] /Orientation 0  setpagedevice
%%EndSetup

I can convert the PostScript file to PDF with ps2pdf and get the
desired orientation.



ps2pdf and LaTeX's seminar style

2000-10-02 Thread Douglas Bates
I am using Debian Linux 2.2 (potato).  I also have access to systems running
2.3 (woody) if that would help.

I have created a presentation in LaTeX using the seminar style.  I use
landscape orientation for the slides.  The room where I want to give
the presentation has a computer running Windows with Acrobat Reader
available.  I would like to convert the slides to PDF and use the
full-screen feature of Acrobat to display them.

My difficulty is that ps2pdf does not follow the papersize hints.  The
resultant PDF file is rotated 90 degrees when I try to view it.

Has anyone been successful at producing PDF from landscape slides done
with the seminar style?

Please cc: me on any replies.  I am too far behind on messages to this
list to ever hope to catch up.