LaTeX forum ⇒ GeneralLaTeX => PS => PDF

General information and discussion about TeXnicCenter
User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Re: LaTeX => PS => PDF

Postby localghost » Wed Jul 30, 2008 4:52 pm

jambon wrote:[...] I join 3 files, the epsf for figure, the image and a tex file so you can try.
I add 3 packages
  1. \usepackage{times}
  2. \usepackage{palatino}
  3. \usepackage{lmodern}

If I comment the 3 lines, the pdf is generated without text and if i uncomment at least 1 of them (doesn't matter which one), it is ok for me. [...]

These three packages are all font packages which modify the roman default style. You should only use one of them, preferably lmodern if it fits your ideas. For other font families there are also suitable font packages like helvet (sans serif, from the PSNFSS) and luximono (typewriter mono spaced).
jambon wrote:[...] edit: the image is too big, take any ps image [...]

Compress the image file as ZIP archive so it matches the size limits. Instead of epsf.tex and the epsfig package you should use the graphicx package for graphics inclusion.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Tags:

Linus
Posts: 3
Joined: Mon Sep 08, 2008 12:22 pm

Postby Linus » Mon Sep 08, 2008 12:31 pm

jambon wrote:

I try to write a report with some images, when I build the file with
Latex => DVI or PS, I have the good final file (but I want a pdf and the quality is horrible if i print the DVI in a pdf);
Latex => PDF, I obtain the good text (chapter, TOC and everything) but blanks instead of pictures;
Latex => PS => PDF, I only obtain the pictures in the .pdf file


For the process latex -> dvi -> ps -> pdf, the pictures are OK in eps format, but you need to
edit the file config.pdf (which is a *text* file, not a pdf, and that resides somewhere in your TeX system
(under \dvips\tetex\ in MikTex2.7), and comment out the line starting
D 8000

For the direct Latex -> pdf, transform your pictures to png format; eps are not printed.

jotex
Posts: 1
Joined: Wed Sep 17, 2008 10:05 am

Postby jotex » Wed Sep 17, 2008 11:02 am

thanks for the information regarding "LaTeX => PS => PDF"

i have been working in TexnicCenter with MikTex package.
LaTeX => PS => PDF certainly works for plotting *.eps figures.
As said earlier, u have to set the executable locations properly in the "Define output profile" tab.

Veeral
Posts: 8
Joined: Wed Aug 27, 2008 12:00 pm

Postby Veeral » Fri Oct 03, 2008 9:13 pm

I have been working in TexnicCenter with MikTex package.

Latex => DVI or PS, I have the good final file (but I want a pdf and the quality is horrible if i print the DVI in a pdf);
Latex => PDF, I obtain the good text (chapter, TOC and everything) but blanks instead of pictures;

Latex => PS => PDF I get full out put in terms of figures, tables etc, but it cuts the top part i.e. the page numbers and the first line for all the pages.

Linus
Posts: 3
Joined: Mon Sep 08, 2008 12:22 pm

Postby Linus » Mon Oct 06, 2008 12:15 pm

Latex => PDF, I obtain the good text (chapter, TOC and everything) but blanks instead of pictures;

Pictures have to be in .png for this method to work.

Latex => PS => PDF I get full out put in terms of figures, tables etc, but it cuts the top part i.e. the page numbers and the first line for all the pages.

One possible reason for this is that dvips is configured with a paper size diferent than yours by default. Open the file config.ps (it is a text file! not postscript), which in MikTex is under /dvips/config, and look for the lines starting with "@". They define the paper sizes and the first one establishes the default. If you do not supersede this default in the command line of dvips, you get that size.

See also de dvips manual under /doc/dvips .

Seviath
Posts: 1
Joined: Wed Oct 15, 2008 11:27 am

Postby Seviath » Wed Oct 15, 2008 11:32 am

I would like to thank localghost for his help in this subject. I had this problem and his .tco file was really an unexpected gift.

In case it could be of any help to others, I had to update my ghostscript in order for the command to work properly (in fact I was producing only the .dvi and .ps file). This is something trivial, but sometimes one simply doesn't think about that!

Thanks again.

wherisat
Posts: 1
Joined: Mon Oct 20, 2008 4:58 pm

Postby wherisat » Mon Oct 20, 2008 5:04 pm

What works for me: Using the 'standard' LaTeX => PS build and then using the ps2pdf command in cygwin

I trying to use the supplied (w/updated paths and 'do not use bibtex or makeindex') profile I get text but no images. This is my LaTeX code, but I can't imagine it's wrong as it works if I go to PS and then manually convert to pdf:

  1. \begin{figure}
  2. \centering
  3. \includegraphics[width=0.75\textwidth,angle=270]{images/zdt1_avg}
  4. \caption{Fitness Sampling Two Individuals with 4 Samples Each}
  5. \label{fig:zdt1avg}
  6. \end{figure}


Apparently I can't simply copy and paste my build log in TeXnicCenter. So here is the summary of 'curiosities': 1 Bad Box(es), and this corresponds to my figure. However, as stated it works when I go to PS first and then manually convert. My problem is that I don't want to have to manually go into cygwin and convert everytime.

Otherwise, I have 0 warnings and 0 errors. Any help is genuinely appreciated.

dws
Posts: 1
Joined: Mon Sep 22, 2008 7:21 pm

Postby dws » Fri Nov 07, 2008 1:58 pm

Linus wrote:
Latex => PDF, I obtain the good text (chapter, TOC and everything) but blanks instead of pictures;

Pictures have to be in .png for this method to work.

Not True! Don't know if this will help the original poster, but in case anyone else comes along and finds this thread....

Just use the epstopdf package.
\usepackage{epstopdf}

I'm using Latex => PDF for my thesis and most of my figures are .eps files. And of course other image formats like .jpg work fine as well.

Linus
Posts: 3
Joined: Mon Sep 08, 2008 12:22 pm

Postby Linus » Fri Nov 07, 2008 6:35 pm

dws wrote:
Linus wrote:
Latex => PDF, I obtain the good text (chapter, TOC and everything) but blanks instead of pictures;

Pictures have to be in .png for this method to work.

Not True! Don't know if this will help the original poster, but in case anyone else comes along and finds this thread....

Just use the epstopdf package.
\usepackage{epstopdf}

I'm using Latex => PDF for my thesis and most of my figures are .eps files. And of course other image formats like .jpg work fine as well.


Yes, you are right.
But still, I recommend converting first to png, if possible. This package does not always work out-of-the-box (it depends on the TeX distribution and configuration), and the are security issues. Anyway, it is highly recommendable to read first its manual.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8460
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Nov 07, 2008 6:41 pm

I wouldn't recommend to convert eps to png because of possible quality loss, png is a raster image format. It's better to convert eps to pdf, even without the epstopdf package. ps2pdf/ghostscript would be needed.

Stefan
Site admin


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests