Re: ps2pdf, ERT, and includegraphics

2007-09-13 Thread Paul A. Rubin

Giuseppe Pagnoni wrote:

Dear Paul,

thank you very much for your comments.  It is quite weird: if I export
my file prova.lyx in latex (pdflatex or plain) and run latex prova.tex,
the dvi file shows the picture correctly, and of course the picture is
kept through the chain of dvips and ps2pdf; if I, however, try to
preview the document in LyX or export it directly to pdf (ps2pdf), the
image does not appear.  Looking at the output in the shell window I see
the message:


dvips: Could not find figure file /home/giuseppe/tmp//beckmann2005.eps;
continuing

which is puzzling given that the file is definitely there:

ls /home/giuseppe/tmp//beckmann2005.eps
/home/giuseppe/tmp//beckmann2005.eps

I noticed the use of the double slash in front of the eps file name, but
that should not be a problem, right?

The document I am testing this on is an "article" with the command
\usepackage{graphicx} in the preamble, and a single ERT box containing
the command:

\includegraphics[scale=0.2]{beckmann2005}


where the image beckmann2005.eps is contained in the local directory.

I am attaching in the following my prova.lyx file, which may contain
useful information.  Thank you very much for your help, I truly
appreciate it but please do not feel obliged to reply if this takes up
too much of your time.

best regards

   giuseppe




Oops -- answered out-of-band, forgot to check the list first to see if 
the message was posted here.


Short synopsis (for archival purposes):  The test doc works fine for me 
using LyX 1.4.4 on Win XP Home.  I don't see the double slash causing 
problems (it didn't for me).  Best guess (and I freely admit it's 
shooting from the hip) is a permissions problem.  Since running the 
latex - dvips - ps2pdf sequence manually worked, and ls found the image 
file, this would seem to imply that LyX is running dvips under a 
different account than the user's account (and, particularly, one that's 
not allowed to read the EPS file).


/Paul



Re: ps2pdf, ERT, and includegraphics

2007-09-13 Thread Giuseppe Pagnoni
Dear Paul,

thank you very much for your comments.  It is quite weird: if I export
my file prova.lyx in latex (pdflatex or plain) and run latex prova.tex,
the dvi file shows the picture correctly, and of course the picture is
kept through the chain of dvips and ps2pdf; if I, however, try to
preview the document in LyX or export it directly to pdf (ps2pdf), the
image does not appear.  Looking at the output in the shell window I see
the message:


dvips: Could not find figure file /home/giuseppe/tmp//beckmann2005.eps;
continuing

which is puzzling given that the file is definitely there:

ls /home/giuseppe/tmp//beckmann2005.eps
/home/giuseppe/tmp//beckmann2005.eps

I noticed the use of the double slash in front of the eps file name, but
that should not be a problem, right?

The document I am testing this on is an "article" with the command
\usepackage{graphicx} in the preamble, and a single ERT box containing
the command:

\includegraphics[scale=0.2]{beckmann2005}


where the image beckmann2005.eps is contained in the local directory.

I am attaching in the following my prova.lyx file, which may contain
useful information.  Thank you very much for your help, I truly
appreciate it but please do not feel obliged to reply if this takes up
too much of your time.

best regards

   giuseppe


---

#LyX 1.4.3 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage{graphicx}
\end_preamble
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry false
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Standard


\backslash
includegraphics[scale=0.2]{beckmann2005}
\end_layout

\end_inset


\end_layout

\end_body
\end_document


-- 
-
Giuseppe Pagnoni
Psychiatry and Behavioral Sciences
Emory University School of Medicine
101 Woodruff Circle, Suite 4000
Atlanta, GA, 30322
tel: 404-712-9582
fax: 404-727-3233 



Re: ps2pdf, ERT, and includegraphics

2007-09-13 Thread Paul A. Rubin

Giuseppe Pagnoni wrote:

I am using lyx with powerdot for a presentation.  I am trying to insert
a figure within an ERT box, to get advantage of the \twocolumn command
of powerdot.

I discovered that lyx does not output figures to pdf when using ps2pdf
(I checked this with a new "article" document containing a single ERT
command \includegraphics{}). It does output the figure when using
dvipdfm, but the problem is that powerdot requires ps2pdf...

Does anybody know of a workaround?  I am using lyx 1.4.3 on Ubuntu (and
the figure I am inserting is an eps).



What you're describing works for me in LyX 1.4.4 on Windows -- I put 
\includegraphics{...} in ERT, View -> PDF (ps2pdf) and the image is 
there, provided that the image is EPS (which you said yours is).


The only caveat is that you will need to add \usepackage{graphicx} to 
the preamble if you are not inserting any other images using Insert -> 
Graphics.  LyX automatically adds the command when it inserts a graphic, 
but it does not poke around your ERT to see if you are inserting one 
manually.  I assume you either have the command in the preamble or have 
other images inserted normally (or maybe Powerdot loads graphicx?) -- 
otherwise I don't think you would get the dvipdfm output.


/Paul



Re: ps2pdf

2002-06-11 Thread Jörg Haug

Am Mittwoch, 5. Juni 2002 17:25 schrieb Herbert Voss:
> Jörg Haug wrote:
> > i want to create a PDF-file with good resolution on
> > screen so i changed to type1 fonts. The text is now
> > O.K. but i have a lot of math in my document. If i use
> > matptmx or
>
> hm, with this package everything should be ok ...
>
> > euler i lose some minus sign and the bonds in my
> > chemical formulas (with ppchtex) are not present. Also
> > subscript and superscript looks very bad. Can i use an
> > other math font to solve this ?
>
> can you strip down the doc to one formula which shows the
> behaviour and send it?
>
> Herbert

I found the problem when i had a look on the included files 
of my doc. There was one formula with a bracket () as 
index. Now i use the [] bracket and it works well.

Jörg



Re: ps2pdf

2002-06-11 Thread Jörg Haug

Am Mittwoch, 5. Juni 2002 17:25 schrieb Herbert Voss:
> Jörg Haug wrote:
> > i want to create a PDF-file with good resolution on
> > screen so i changed to type1 fonts. The text is now
> > O.K. but i have a lot of math in my document. If i use
> > matptmx or
>
> hm, with this package everything should be ok ...
>
> > euler i lose some minus sign and the bonds in my
> > chemical formulas (with ppchtex) are not present. Also
> > subscript and superscript looks very bad. Can i use an
> > other math font to solve this ?
>
> can you strip down the doc to one formula which shows the
> behaviour and send it?
>
> Herbert

Now i used only a part of my document with math and 
chemical formula and it looks good. In the original doc i 
use a master document with some included files. Perhaps 
this is the problem. I want to check this.

Jörg



Re: ps2pdf

2002-06-05 Thread Dekel Tsur

On Wed, Jun 05, 2002 at 04:35:24PM +0200, Jörg Haug wrote:
> Hello,
> 
> i want to create a PDF-file with good resolution on screen 
> so i changed to type1 fonts. The text is now O.K. but i 
> have a lot of math in my document. If i use matptmx or 
> euler i lose some minus sign and the bonds in my chemical 
> formulas (with ppchtex) are not present. Also subscript and 
> superscript looks very bad. Can i use an other math font to 
> solve this ?

Do not use these packages to change the fonts.
Read section 3.3.6 of Extended.lyx to learn about the needed configuration for
getting type1 fonts.

See also
http://www.ctan.org/tex-archive/macros/latex/contrib/supported/IEEEtran/testflow



Re: ps2pdf

2002-06-05 Thread Herbert Voss

Jörg Haug wrote:


> i want to create a PDF-file with good resolution on screen 
> so i changed to type1 fonts. The text is now O.K. but i 
> have a lot of math in my document. If i use matptmx or 


hm, with this package everything should be ok ...

> euler i lose some minus sign and the bonds in my chemical 
> formulas (with ppchtex) are not present. Also subscript and 
> superscript looks very bad. Can i use an other math font to 
> solve this ?


can you strip down the doc to one formula which shows the
behaviour and send it?

Herbert



-- 
http://www.lyx.org/help/




Re: ps2pdf

2001-07-13 Thread Kathryn Andersen

On Fri, Jul 13, 2001 at 11:20:52PM -0300, Rodrigo Esteves de Lima-Lopes wrote:
> if you write n your preamble:
> 
> \usepackage{times}
> 
> it will deliver a much more readble pdf, but you might get a
> 'windows-like' font-effect.

Don't put it in the preamble, all you need to do is put it in the
document layout.
Menu: Layout -> Document
gives a window.
Pick the Document tab.
Select, from the Fonts: menu
times
or
pslatex

and your default fonts will be the ones most portable for PDF -- Times,
Helvetica, Courier.

If you want something which will produce decent PDF, the trick is, you
have to be using Postscript Type1 fonts, *not* TeX Metafont.   If you
use Metafont, when the document is translated into PDF, the font will
become an ugly bitmapped fonts, wheras (if you have a version of
Ghostscript higher than 5.50) with a Type1 font, a non-default font will
be translated into an outline, which looks nicer than a bitmap.

Kathryn Andersen
-=-=-=-=-=-=-=-=-
   Travis:  You wouldn't do it.
Blake:  What have I got to lose?
   Travis:  It's not a pleasant death, Blake.
Blake:  So I gather, but it would have its compensations: I'd share
it with you -- and the Supreme Commander. Are you quite
sure I wouldn't do it?
 (Blake's 7: Project Avalon [A9])
-- 
 _--_|\ | Kathryn Andersen  <[EMAIL PROTECTED]>
/  \|   
\_.--.*/|   
  v | #include "standard/disclaimer.h"
| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |   -> Earth -> Sol -> Milky Way Galaxy -> Universe



Re: ps2pdf

2001-07-12 Thread Fernando Pérez

On 12 Jul 2001, Myriam Abramson wrote:

> 
> Hi!
> 
> I'm trying to convert some foiltex to pdf for a presentation. 
> I put \usepackage[ps2pdf]{hyperref} in the latex preamble. 
> ps2pdf works fine but the colors and the fonts come out terrible on
> acroread on the pc. Any ideas?
> 
> Thanks,

Here are some comments I have in my script that does precisely that. See if
it helps (I get perfect pdf's using it):

# Make the pdf directly from the latex file
# Notes: for this to work ok, the following must have been done:
# 1. ~/.dvipsrc file must contain the lines
#p+ psfonts.cmz
#p+ psfonts.amz
# 2. The latex preamble of the lyx file must have
#\usepackage{ae,aecompl}
# This is so that T1 encoded fonts come out looking good in the final pdf.

Cheers,

f




Re: ps2pdf

2001-07-12 Thread Rodrigo Esteves de Lima-Lopes

if you write n your preamble:

\usepackage{times}

it will deliver a much more readble pdf, but you might get a
'windows-like' font-effect.

cheers

[]s
lima-lopes

R.E. de Lima-Lopes
[EMAIL PROTECTED]
GNU/Linux Registered User # 182240

On 12 Jul 2001, Myriam Abramson wrote:

> Date: 12 Jul 2001 21:51:16 -0400
> From: Myriam Abramson <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: ps2pdf
> 
> 
> Hi!
> 
> I'm trying to convert some foiltex to pdf for a presentation. 
> I put \usepackage[ps2pdf]{hyperref} in the latex preamble. 
> ps2pdf works fine but the colors and the fonts come out terrible on
> acroread on the pc. Any ideas?
> 
> Thanks,
> 
> 
>