On Jan 6, 2005, at 3:30 AM, Angus Leeming wrote:

Bennett Helm wrote:
I'm not sure when this happened, but recently LyX's attempts to copy
graphics files from their original directories to the tmp directory
results in files of 0K. This is with LyX 1.3.x (current CVS) on Mac OS
X.

Could you try to explain again. What you have written isn't understandable.

It is by me! ;)

When LyX produces DVI/PDF/PS output, it creates a tmp directory containing the .tex file and all associated files. Among these (apparently) are graphics files that it copies from their original locations; when converting to LaTeX, the .tex file points to these copies of graphics files in the tmp directory. The trouble is that for me at least the graphics files that get copied to the tmp directory don't get copied properly: new files are created in the tmp directory, but they are empty: 0KB.

Try "lyx -dbg graphics" ?

Debugging like this is difficult on Mac OS X (as I've noted before for 1.4.0; now it's a problem for 1.3.x as well). The trouble is that when lyx is invoked from the command line, the lyx application window refuses to take focus. I've just discovered, though, that I can get around that by creating a shell script within the application bundle named "lyx" that gets invoked when the application icon is double-clicked; this script in turn calls lyx with the -dbg graphics option.


When I do that, the output is:

Token: 'filename'
Token: 'lyxscale'
Token: 'height'
Token: 'keepAspectRatio'
Token: '\end_inset'
The font scaling factor is 99.63
insetgraphics::latex: Filename = Consciousness_and_Brain-big.pdf
Message = ""
Opts = height=0.9\textheight,
keepaspectratio
Before = \includegraphics[%
height=0.9\textheight,
keepaspectratio]
after =
[InsetGraphics::prepareFile] orig_file = Consciousness_and_Brain-big.pdf
with path: /Users/bennett/Documents/College/2004-05/Consciousness_and_Brain- big.pdf
Recognised Fileformat: pdf
Recognised Fileformat: pdf
findTargetFormat: PDF mode
we have: from pdf to pdf
the orig file is: /Users/bennett/Documents/College/2004-05/Consciousness_and_Brain- big.pdf
changed to: /tmp/lyx_tmpdir17152KDsvRK/lyx_tmpbuf0/ _Users_bennett_Documents_College_2004-05_Consciousness_and_Brain- big.pdf
copying from /Users/bennett/Documents/College/2004-05/Consciousness_and_Brain- big.pdf to /tmp/lyx_tmpdir17152KDsvRK/lyx_tmpbuf0/ _Users_bennett_Documents_College_2004-05_Consciousness_and_Brain- big.pdf succeeded
Failed to find start of cross-reference table.


Notice that the last few lines here are relevant: it says that copying the file to the tmp directory succeeded; in fact, the resulting graphics file is empty.

Bennett



Reply via email to