On Dec 5, 2005, at 8:40 AM, Jean-Francois Roy wrote:

Hello list,

I recently picked up LyX after getting some warm recommendations from a few friends. I'm using a PowerBook with Mac OS X 10.4.3.

Thus, I picked up the i-Installer distribution at http:// ii2.sourceforge.net/tex-index.html, which seems to be the most popular for my platform, and followed install instructions from http://www.uoregon.edu/~koch/texshop/installing.html. I selected the 2005 TeX distribution (i-Installer offers "2003", "2004" and "2005", with 2005 being the default).

Then, I grabbed a copy of LyX 1.3.6 for Mac OS X, copied the program to my Applications folder, and ran the install script. So far, so good. But from there, it goes a little bit wrong.

Indeed, I cannot seem to include any graphics (images) in my documents. Or rather, documents that are typeset perfectly fine on Linux won't hear a thing on my computer. However, this only occurs when I use the pdflatex, DVI or dvipdfm options of the View menu. For a reason I cannot explain, the "ps to pdf" option works just fine.

I'm not sure if this is the issue given what you say below, but did you use i-Installer to install ImageMagick? Once that's done, reconfigure LyX (Edit > Reconfigure), and LyX can then automatically translate images from one format to another as needed, which may be part of your problem.

Graphics are included by adding a float:figure element and including within that an ERT block, with the following commands

\center{\includegraphics[scale=0.9,angle=0]{graphics/myimage.pdf or myimage.png}}

graphics is a folder that sits next to the main lyx file.

The main document author (this is part of a team project) also added

\usepackage{graphicx}

to the document preamble.

The errors I get seem to be typical of EPS files with no bounding boxes, but why the heck does it happen with PDFs and PNG files as well, when those very same files work perfectly fine on Linux... An example error:

LaTeX Error: Cannot determine size of graphic in /Users/bahamut/ Documents/Sch
...cale=0.9,angle=0]{graphics/Processus.pdf}
                                                  }
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

In addition to that, if I export the document to latex, and typeset the document from say TeXShop, everything works fine (as far as images go, some other things get lost like cross-references, which makes this option unpractical).

Note that for cross-references you need to run (pdf)latex more than once. (Running latex, bibtex, latex, latex usually is required.)

That things are working with TeXShop (is it working on *all* images?) indicates that it's a problem configuring LyX. First, try reconfiguring LyX (Edit > Reconfigure) to make sure that LyX is properly recognizing your setup. If that doesn't work, try moving your LyX User's directory out of the way (it's at ~/Library/ Application Support/LyX), and re-run LyX to make it automatically generate a new directory (and reconfigure itself). Does that work?

Bennett

Reply via email to