Discussion:
Latex error on graphics insert (LyX 1.3.7)
Marc D.
2006-01-25 22:39:42 UTC
Permalink
I have a file that processes fine using "PDF (ps to pdf)"
option.

When I insert a graphic, it then gives me a single error:

LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir7937ASk7yo/ly
...van_courses_current_320_assign_a1-3b.jpg}


The only difference in the two files is:

assign $ diff a1.works.lyx a1.lyx
1359a1360,1370
\layout Standard
\begin_inset Graphics
filename a1-3b.jpg
lyxscale 50
scale 50
\end_inset
Yet the file has size information:

assign $ identify a1-3b.jpg
a1-3b.jpg JPEG 707x321 707x321+0+0 DirectClass 6e+01kb


When I go to clipping and tell it to clip to a particular
bounding box (using "get info from file, which works),
I get the dreaded "blank image in the result".

Can anyone tell me what I'm doing wrong? Or should I just
give up on LyX at this point, given that in the past week
I've spent more time fighting the tool than I have doing
the work? The sad part is this WAS working before I trashed
my /usr/local and was forced to rebuild using more up-to-date
tools.
Marc D.
2006-01-26 08:25:58 UTC
Permalink
Post by Marc D.
I have a file that processes fine using "PDF (ps to pdf)"
option.
LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir7937ASk7yo/ly
...van_courses_current_320_assign_a1-3b.jpg}
I'm at my wits end. Can someone please tell me at least WHAT is wrong,
in terms of why LyX isn't able to create LaTeX code that works in
this case?
What is LyX is doing (or not doing) that creates this LaTeX error?
What should either LyX or myself should be doing to correct the problem?
I have googled, read the archives, searched, scoured, and generally
beat my head on this for many hours now, and I'm no closer to a clue.

Please, can someone help?

Do I have the wrong version of teTeX? Did I load the wrong tools?
This type of thing used to work without any problems with 1.3.4, 1.3,5
and 1.3.6 prior to a system error I had last week. Now, it's not working
at all.

What are the people using MacOSX generally using as the teTeX install?
I followed the instructions for Texshop, and used the 2006 MacTex.dmg
to install the necessary teTeX files. Should I be using something else?
I vaguely recall doing something different the first time I installed
teTeX, but do you think I can find my old notes? Not a chance!

All I'm doing is inserting a graphic into a file. That is the only
change between the two files.

Here are the differences between a file that works and one
that doesn't:

=====================
assign $ diff a1.borked.lyx a1.works.lyx
2492,2502d2491
< \layout Standard
<
<
< \begin_inset Graphics
< filename a1-3a.jpg
< lyxscale 50
< scale 50
<
< \end_inset
<
<
3653,3663d3641
< \layout Standard
<
<
< \begin_inset Graphics
< filename a1-3b.jpg
< lyxscale 50
< scale 50
<
< \end_inset
<
<
5693,5703d5670
< \layout Standard
<
<
< \begin_inset Graphics
< filename a1-3c.jpg
< lyxscale 50
< scale 50
<
< \end_inset
<
<
==============================


And a full log from the most recent test on a1.borked.lyx

============== cut << _EOF_ ================
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
(format=pdflatex 2006.1.8) 26 JAN 2006 00:09
entering extended mode
**a1.tex
(./a1.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german,
ngerman, d
utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.

(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\***@part=\count79
\***@section=\count80
\***@subsection=\count81
\***@subsubsection=\count82
\***@paragraph=\count83
\***@subparagraph=\count84
\***@figure=\count85
\***@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
Package: fontenc 2004/02/22 v1.99f Standard LaTeX package
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/t1enc.def
File: t1enc.def 2004/02/22 v1.99f Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/inputenc.sty
Package: inputenc 2004/02/05 v1.0d Input encoding file
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/latin1.def
File: latin1.def 2004/02/05 v1.0d Input encoding file
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\***@toks@=\toks14
)
\***@cnth=\count87
\***@cntv=\count88
\***@Gm@tempcnt=\count89
\***@bindingoffset=\dimen103
\***@wd@mp=\dimen104
\***@odd@mp=\dimen105
\***@even@mp=\dimen106
\***@dimlist=\toks15
(/usr/local/teTeX/share/texmf.tetex/tex/latex/geometry/geometry.cfg))
(/usr/loc
al/teTeX/share/texmf.tetex/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?' option.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks16
\ex@=\dimen107
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen108
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\***@bad=\count90
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count91
\leftroot@=\count92
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count93
\DOTSCASE@=\count94
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box26
\strutbox@=\box27
\***@size=\dimen109
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\***@depth=\count95
\***@MaxMatrixCols=\count96
\dotsspace@=\muskip10
\***@parentequation=\count97
\***@lvl=\count98
\***@help=\toks17
\row@=\count99
\column@=\count100
\maxfields@=\count101
\andhelp@=\toks18
\eqnshift@=\dimen110
\alignsep@=\dimen111
\tagshift@=\dimen112
\tagwidth@=\dimen113
\totwidth@=\dimen114
\lineht@=\dimen115
\@envbody=\toks19
\multlinegap=\skip44
\multlinetaggap=\skip45
\***@stack=\toks20
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg
File: graphics.cfg 2005/02/03 v1.3 graphics configuration of teTeX/
TeXLive
)
Package graphics Info: Driver file: dvips.def on input line 80.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\***@req@height=\dimen116
\***@req@width=\dimen117
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2002/01/22 v2.2d
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2001/10/25 v2.2f
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version
`bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 132.
)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/fancyhdr/fancyhdr.sty
\***@headwidth=\skip46
\***@ncyO@elh=\skip47
\***@ncyO@erh=\skip48
\***@ncyO@olh=\skip49
\***@ncyO@orh=\skip50
\***@ncyO@elf=\skip51
\***@ncyO@erf=\skip52
\***@ncyO@olf=\skip53
\***@ncyO@orf=\skip54
) (/usr/local/teTeX/share/texmf.tetex/tex/latex/lastpage/lastpage.sty
Package: lastpage 1994/06/25 v0.1b LaTeX2e package for refs to last
page number
(JPG)
) (/usr/local/teTeX/share/texmf.tetex/tex/generic/babel/babel.sty
Package: babel 2004/11/20 v3.8d The Babel package
(/usr/local/teTeX/share/texmf.tetex/tex/generic/babel/english.ldf
Language: english 2004/06/14 v3.3o English support from the babel system
(/usr/local/teTeX/share/texmf.tetex/tex/generic/babel/babel.def
File: babel.def 2004/11/20 v3.8d Babel common definitions
\***@savecnt=\count102
\***@D=\dimen118
)
\***@british = a dialect from \language\***@english
\***@UKenglish = a dialect from \language\***@english
\***@canadian = a dialect from \language\***@american
\***@australian = a dialect from \language\***@british
\***@newzealand = a dialect from \language\***@british
))
No file a1.aux.
\openout1 = `a1.aux'.

LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 29.
LaTeX Font Info: ... okay on input line 29.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 29.
LaTeX Font Info: ... okay on input line 29.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 29.
LaTeX Font Info: ... okay on input line 29.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 29.
LaTeX Font Info: ... okay on input line 29.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 29.
LaTeX Font Info: ... okay on input line 29.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 29.
LaTeX Font Info: ... okay on input line 29.
-------------------- Geometry parameters
paper: letterpaper
landscape: --
twocolumn: --
twoside: --
asymmetric: --
h-parts: 72.26999pt, 433.62001pt, 108.405pt
v-parts: 72.26999pt, 650.43001pt, 72.26999pt
hmarginratio: --
vmarginratio: --
lines: --
heightrounded: --
bindingoffset: 0.0pt
truedimen: --
includehead: --
includefoot: --
includemp: --
driver: pdftex
-------------------- Page layout dimensions and switches
\paperwidth 614.295pt
\paperheight 794.96999pt
\textwidth 433.62001pt
\textheight 650.43001pt
\oddsidemargin 0.0pt
\evensidemargin 0.0pt
\topmargin -37.0pt
\headheight 12.0pt
\headsep 25.0pt
\footskip 30.0pt
\marginparwidth 65.0pt
\marginparsep 11.0pt
\columnsep 10.0pt
\skip\footins 9.0pt plus 4.0pt minus 2.0pt
\hoffset 0.0pt
\voffset 0.0pt
\mag 1000

(1in=72.27pt, 1cm=28.45pt)
-----------------------
LaTeX Font Info: Try loading font information for U+msa on input
line 39.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
LaTeX Font Info: Try loading font information for U+msb on input
line 39.
(/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2002/01/19 v2.2g AMS font definitions
)

LaTeX Warning: Reference `LastPage' on page 1 undefined on input line
78.

[1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/updmap/
pdftex.map}

]

LaTeX Warning: Reference `LastPage' on page 2 undefined on input line
98.

[2]
Overfull \hbox (103.34856pt too wide) in paragraph at lines 118--121
\T1/cmr/m/n/10 final ex-pres-sion: $\OML/cmm/m/it/10 b[]\OT1/cmr/m/n/
10 ((\OML/
cmm/m/it/10 a[]b\OT1/cmr/m/n/10 )[]\OML/cmm/m/it/10 bb\OT1/cmr/m/n/
10 )[]$ \T1/
cmr/m/n/10 + $\OML/cmm/m/it/10 b[]a\OT1/cmr/m/n/10 (\OML/cmm/m/it/10 a
[]\OT1/cm
r/m/n/10 (\OML/cmm/m/it/10 ba\OT1/cmr/m/n/10 )[](\OML/cmm/m/it/10 bb[]
a[]b\OT1/
cmr/m/n/10 )[])[]$ \T1/cmr/m/n/10 + $\OML/cmm/m/it/10 b[]a[]$$b \OT1/
cmr/m/n/10
( (\OML/cmm/m/it/10 ab\OT1/cmr/m/n/10 )[]$$(\OML/cmm/m/it/10 a[]b\OT1/
cmr/m/n/
10 )[](\OML/cmm/m/it/10 bb[]a[]b\OT1/cmr/m/n/10 )[] )[]$\T1/cmr/m/n/
10 + $\OML/
cmm/m/it/10 b[]a[]b\OT1/cmr/m/n/10 (\OML/cmm/m/it/10 a[]b\OT1/cmr/m/n/
10 )[]\OM
L/cmm/m/it/10 b\OT1/cmr/m/n/10 (\OML/cmm/m/it/10 b[]a[]b\OT1/cmr/m/n/
10 (\OML/c
mm/m/it/10 a[]b\OT1/cmr/m/n/10 )[]\OML/cmm/m/it/10 b\OT1/cmr/m/n/10 )[]$
[]


LaTeX Warning: Reference `LastPage' on page 3 undefined on input line
156.

[3]

LaTeX Warning: Reference `LastPage' on page 4 undefined on input line
214.

[4]

! LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir17654ldPLfc/l
yx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg (no
BoundingBox
).

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.456 ...van_courses_current_320_assign_a1-3a.jpg}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

File: /tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/0_Users_donovan_courses_current_32
0_assign_a1-3a.jpg Graphic file (type eps)

</tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/0_Users_donovan_courses_current_320_ass
ign_a1-3a.jpg>

LaTeX Warning: Reference `LastPage' on page 5 undefined on input line
459.

[5
Non-PDF special ignored!]

! LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir17654ldPLfc/l
yx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3b.jpg (no
BoundingBox
).

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.627 ...van_courses_current_320_assign_a1-3b.jpg}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

File: /tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/1_Users_donovan_courses_current_32
0_assign_a1-3b.jpg Graphic file (type eps)

</tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/1_Users_donovan_courses_current_320_ass
ign_a1-3b.jpg>

LaTeX Warning: Reference `LastPage' on page 6 undefined on input line
630.

[6
Non-PDF special ignored!]

! LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir17654ldPLfc/l
yx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3c.jpg (no
BoundingBox
).

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.910 ...van_courses_current_320_assign_a1-3c.jpg}

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

File: /tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/2_Users_donovan_courses_current_32
0_assign_a1-3c.jpg Graphic file (type eps)

</tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/2_Users_donovan_courses_current_320_ass
ign_a1-3c.jpg> AED: lastpage setting LastPage

LaTeX Warning: Reference `LastPage' on page 7 undefined on input line
911.

[7
Non-PDF special ignored!] (./a1.aux)

LaTeX Warning: There were undefined references.


LaTeX Warning: Label(s) may have changed. Rerun to get cross-
references right.

)
Here is how much of TeX's memory you used:
2424 strings out of 95137
29144 string characters out of 1183014
2082174 words of memory out of 4537009
5558 multiletter control sequences out of 10000+50000
9961 words of font info for 28 fonts, out of 2000000 for 2000
58 hyphenation exceptions out of 5000
27i,11n,43p,1091b,220s stack positions out of 5000i,500n,6000p,
200000b,40000s
PDF statistics:
56 PDF objects out of 300000
0 named destinations out of 131072
1 words of extra memory for PDF output out of 10000
</usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/symbols/
msam10.pfb></
usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm/cmmi7.pfb>{/
usr/local/
teTeX/share/texmf.local/fonts/enc/dvips/cm-super/cm-super-t1.enc}</
usr/local/te
TeX/share/texmf.local/fonts/type1/public/cm-super/sfbx1200.pfb></usr/
local/teTe
X/share/texmf.tetex/fonts/type1/bluesky/cm/cmr10.pfb></usr/local/
teTeX/share/te
xmf.tetex/fonts/type1/bluesky/cm/cmsy10.pfb></usr/local/teTeX/share/
texmf.tetex
/fonts/type1/bluesky/cm/cmsy7.pfb></usr/local/teTeX/share/texmf.tetex/
fonts/typ
e1/bluesky/cm/cmr7.pfb></usr/local/teTeX/share/texmf.tetex/fonts/
type1/bluesky/
cm/cmmi10.pfb></usr/local/teTeX/share/texmf.local/fonts/type1/public/
cm-super/s
fbx1440.pfb></usr/local/teTeX/share/texmf.local/fonts/type1/public/cm-
super/sfb
x1000.pfb></usr/local/teTeX/share/texmf.local/fonts/type1/public/cm-
super/sfrm1
000.pfb>
Output written on a1.pdf (7 pages, 113492 bytes).

_EOF_ ============================== end cut ================
Kevin Pfeiffer
2006-01-26 08:51:49 UTC
Permalink
Post by Marc D.
Post by Marc D.
LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir7937ASk7yo/ly
...van_courses_current_320_assign_a1-3b.jpg}
File: /tmp/lyx_tmpdir17654ldPLfc/
lyx_tmpbuf0/0_Users_donovan_courses_current_32
0_assign_a1-3a.jpg Graphic file (type eps)
From the Latex Companion: You did not specify an explicit image size on
the \includegraphics command and LaTeX was unable to determine the
image size. It usually does this automatically for EPS files by reading
bounding box info. However... it may be unable to extract this
information from binary bitmap images such as .jpeg files.

In my experience (1.3.5) LyX converts jpegs to an EPS automagically. And
above it does say "type eps"...

You could, as a workaround, try doing this yourself (save the jpeg as an
eps). I would also first try one of the LyX help docs (with images) to
see if have the same problem.

-Kevin
--
Kevin Pfeiffer <pfeiffer-***@public.gmane.org>
Tiros-Translations
Georg Baum
2006-01-26 09:06:30 UTC
Permalink
Post by Kevin Pfeiffer
In my experience (1.3.5) LyX converts jpegs to an EPS automagically.
Only for dvi output, but he runs pdflatex. LyX does not convert to eps in
this case.
Post by Kevin Pfeiffer
And
above it does say "type eps"...
I overread this. That is very interesting. Marc. please post the complete
\includegraphics command of the .tex file that was created by LyX. Does it
create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.


Georg
Marc D.
2006-01-26 09:39:43 UTC
Permalink
Post by Georg Baum
Post by Kevin Pfeiffer
In my experience (1.3.5) LyX converts jpegs to an EPS automagically.
Only for dvi output, but he runs pdflatex. LyX does not convert to eps in
this case.
Post by Kevin Pfeiffer
And
above it does say "type eps"...
I overread this. That is very interesting. Marc. please post the complete
\includegraphics command of the .tex file that was created by LyX. Does it
create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.
Thanks for getting back to me.

I have tested the 3 images in a standalone file, and the images
display fine using the PDF (ps to pdf) option. It looks like the 3rd
image, specified as eps rather than jpg, is converted to pdf before
the tex file is created.

The jpg images are all in tmpbuf.

Opening the a1.tex file found in /tmp/lyx...
using Texshop gives the same results: image does not load.

Viewing the a1.lyx file as LaTeX directly:
opens Texshop, same result (no images)

Viewing the testimg.lyx file (where all I have is 3 images):
opens Texshop, works fine.

Not being able to view images in the other two options (PDF dvipdfm
and PDF pdflatex is apparently a known bug: see <http://
bugzilla.lyx.org/show_bug.cgi? id=2127> and many thanks to Bennett
Helm for pointing that out to me.


From the a1.tex file in /tmp/...
=========================================
\includegraphics[%
bb=1bp 1bp 0bp 0bp,
scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/
lyx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3a.jpg}
...
\includegraphics[%
bb=1bp 1bp 836bp 321bp,
scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/
lyx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3b.jpg}
...
\includegraphics[%
bb=1bp 1bp 994bp 367bp,
scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/
lyx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3c.pdf}
\end{document}
===========================================

from the testimg.tex file in /tmp/lyx... (the file that works):

==========================================
\includegraphics[%
bb=1bp 1bp 1034bp 273bp,
scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/
lyx_tmpbuf1/1_Users_donovan_courses_current_320_assign_a1-3a.jpg}

\includegraphics[%
bb=1bp 1bp 836bp 321bp,
scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/
lyx_tmpbuf1/2_Users_donovan_courses_current_320_assign_a1-3b.jpg}

\includegraphics[%
bb=1bp 1bp 994bp 367bp,
scale=0.5]{/tmp/lyx_tmpdir182370kPLxI/
lyx_tmpbuf1/0_Users_donovan_courses_current_320_assign_a1-3c.pdf}
\end{document}
============================================
Georg Baum
2006-01-26 10:21:18 UTC
Permalink
Post by Marc D.
I have tested the 3 images in a standalone file, and the images
display fine using the PDF (ps to pdf) option. It looks like the 3rd
image, specified as eps rather than jpg, is converted to pdf before
the tex file is created.
What does "specified as eps" mean? If it means that this file is actually n
eps file, then this is the wanted behaviour for pdflatex export, since
pdflatex can't handle .eps images.
Post by Marc D.
Not being able to view images in the other two options (PDF dvipdfm
and PDF pdflatex is apparently a known bug: see <http://
bugzilla.lyx.org/show_bug.cgi? id=2127> and many thanks to Bennett
Helm for pointing that out to me.
I am not sure whether you see the same bug, see my other mail.
Post by Marc D.
From the a1.tex file in /tmp/...
=========================================
\includegraphics[%
bb=1bp 1bp 0bp 0bp,
Maybe this is the reason: You are specifying an impossible bounding box
here.


Georg
Stephen Harris
2006-01-26 12:16:49 UTC
Permalink
----- Original Message -----
From: "Georg Baum" <Georg.Baum-6V9naDJErT6662+jY7v6MhvVK+***@public.gmane.org>
To: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Thursday, January 26, 2006 2:21 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)
Post by Georg Baum
Post by Marc D.
From the a1.tex file in /tmp/...
=========================================
\includegraphics[%
bb=1bp 1bp 0bp 0bp,
Maybe this is the reason: You are specifying an impossible bounding
box here.
Georg
That seems plausible since the error message he reported is
caused by an improper bounding box, or an incorrect filename.

Regards,
Stephen
Stephen Harris
2006-01-26 13:28:57 UTC
Permalink
Post by Stephen Harris
----- Original Message -----
Sent: Thursday, January 26, 2006 2:21 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)
Post by Georg Baum
Post by Marc D.
From the a1.tex file in /tmp/...
=========================================
\includegraphics[%
bb=1bp 1bp 0bp 0bp,
Maybe this is the reason: You are specifying an impossible bounding
box here.
Georg
SH: That seems plausible since the error message he reported is
caused by an improper bounding box, or an incorrect filename.
--------------------------------------------------------------------

http://www.physionet.org/physiotools/plt/plt/html/node47.html

Margins, cropping, and bounding boxes

"Every PostScript file included in a LATEX document must have
a defined bounding box. Normally, the bounding box is defined
using a structured comment at the beginning of the PostScript
file. For example, the PostScript source for the figures shown
above begins like this:

%!PS-Adobe-3.0
%%BoundingBox: 90 252 540 684

In some cases, you may need to redefine the bounding box,
either to adjust the amount of white space surrounding the
figure or to crop your figure by selecting a clipping region.
You may do so either by editing the PostScript file or in
the LATEX source file. Any bounding box definitions in the
LATEX source override those in the PostScript file. For
details, see section 11.3, "Merging Text and PostScript
Graphics", in The LATEX Companion, pp. 317-320.

An easy way to determine the correct bounding box is to
view your figure using ghostview. Move the mouse pointer to
the lower left corner of the figure and note the coordinates
(displayed by ghostview immediately above the File button);
these are the first two numbers in the BoundingBox line.
Now move the mouse pointer to the upper right corner of the
figure; the coordinates displayed are the last two numbers
in the BoundingBox line.

(This plot does not "float" within the text, since it was
not put into a figure environment; rather, it appears in the
same place in the output as in the LATEX source file.) Note
that the "=" is required in the clip= option, although no
value follows the "=". Also note that the clip= option is
ignored by pdfLATEX (see this figure in the PDF version of
this book)."

Regards,
Stephen
Marc D.
2006-01-26 14:43:00 UTC
Permalink
Post by Georg Baum
Post by Marc D.
I have tested the 3 images in a standalone file, and the images
display fine using the PDF (ps to pdf) option. It looks like the 3rd
image, specified as eps rather than jpg, is converted to pdf before
the tex file is created.
What does "specified as eps" mean? If it means that this file is actually n
eps file, then this is the wanted behaviour for pdflatex export, since
pdflatex can't handle .eps images.
Post by Marc D.
Not being able to view images in the other two options (PDF dvipdfm
and PDF pdflatex is apparently a known bug: see <http://
bugzilla.lyx.org/show_bug.cgi? id=2127> and many thanks to Bennett
Helm for pointing that out to me.
I am not sure whether you see the same bug, see my other mail.
Post by Marc D.
From the a1.tex file in /tmp/...
=========================================
\includegraphics[%
bb=1bp 1bp 0bp 0bp,
Maybe this is the reason: You are specifying an impossible bounding box
here.
I wish it was that easy. That just happened once (so, of course,
that was the one I copied. Sigh). It does exactly the same thing
with a correct bounding box (which is to say... nothing at all).

\includegraphics[%
bb=1bp 1bp 1034bp 273bp,
scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/
lyx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg}
...
\includegraphics[%
bb=1bp 1bp 836bp 321bp,
scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/
lyx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3b.jpg}
...
\includegraphics[%
bb=1bp 1bp 994bp 367bp,
scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/
lyx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3c.jpg}
\end{document}

==================
I have reinstalled my LaTeX environment from the latest MacTeX image,
I've checked to make sure that all the paths are working, and that
everything is correctly installed.

I now get the following errors in the LaTeX log:

(partial log excerpt:)

[3] [4]
File: /tmp/lyx_tmpdir1273TYiZ5F/
lyx_tmpbuf0/0_Users_donovan_courses_320_assign_
a1-3a.jpg Graphic file (type eps)

</tmp/lyx_tmpdir1273TYiZ5F/
lyx_tmpbuf0/0_Users_donovan_courses_320_assign_a1-3a
.jpg>
Overfull \hbox (11.83386pt too wide) in paragraph at lines 468--469
[][]
[]

[5
Non-PDF special ignored!]
File: /tmp/lyx_tmpdir1273TYiZ5F/
lyx_tmpbuf0/1_Users_donovan_courses_320_assign_
a1-3b.jpg Graphic file (type eps)

</tmp/lyx_tmpdir1273TYiZ5F/
lyx_tmpbuf0/1_Users_donovan_courses_320_assign_a1-3b
.jpg> [6
Non-PDF special ignored!]
File: /tmp/lyx_tmpdir1273TYiZ5F/
lyx_tmpbuf0/2_Users_donovan_courses_320_assign_
a1-3c.jpg Graphic file (type eps)

</tmp/lyx_tmpdir1273TYiZ5F/
lyx_tmpbuf0/2_Users_donovan_courses_320_assign_a1-3c
.jpg> AED: lastpage setting LastPage [7
Non-PDF special ignored!] (./a1.aux) )

======================

Why would it say "type eps" when it's a jpeg file? Why would it
have hbox overfull on the pathname to the file (that's line 468 in the
tex file. I tried shortening the path - same error)
I have no idea, and I'm giving up for now.

I'd like to thank all those who tried to help.

I know this can work: I had it working all last year with NO problems.
Large images, multiple include files, everything worked. Now... I can't
even print a frigging 3 page assignment with 1 small image.

It's only since installing new versions of teTeX and LyX that I have
experienced these problems. I'm going to try to find my notes from last
year on how to install teTeX and LyX and try going back to previous
versions to see if I can get things to work again. Later. After class
and after I get some sleep.

Again, thanks to those who have tried to help.

regards,
Marc
Georg Baum
2006-01-26 19:36:30 UTC
Permalink
Post by Marc D.
\includegraphics[%
bb=1bp 1bp 1034bp 273bp,
scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/
lyx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg}
...
\includegraphics[%
bb=1bp 1bp 836bp 321bp,
scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/
lyx_tmpbuf0/1_Users_donovan_courses_current_320_assign_a1-3b.jpg}
...
\includegraphics[%
bb=1bp 1bp 994bp 367bp,
scale=0.5]{/tmp/lyx_tmpdir1096WTsl0f/
lyx_tmpbuf0/2_Users_donovan_courses_current_320_assign_a1-3c.jpg}
\end{document}
This looks sensible, and very similar to the working file.
Post by Marc D.
Why would it say "type eps" when it's a jpeg file?
I don't know. It should not!
Post by Marc D.
Why would it
have hbox overfull on the pathname to the file (that's line 468 in the
tex file. I tried shortening the path - same error)
I don't think that the hbox refers to the file name.
Post by Marc D.
It's only since installing new versions of teTeX and LyX that I have
experienced these problems. I'm going to try to find my notes from last
year on how to install teTeX and LyX and try going back to previous
versions to see if I can get things to work again. Later. After class
and after I get some sleep.
I can understand your frustration. Nevertheless, it would,be nice if you
could come back to this when you have time, I am sure that other Mac
users will appreciate it.


Georg
Stephen Harris
2006-01-26 11:59:53 UTC
Permalink
----- Original Message -----
From: "Marc D." <list-/***@public.gmane.org>
To: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Thursday, January 26, 2006 1:39 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)
Post by Marc D.
Post by Georg Baum
Post by Kevin Pfeiffer
In my experience (1.3.5) LyX converts jpegs to an EPS automagically.
Only for dvi output, but he runs pdflatex. LyX does not convert to eps in
this case.
Post by Kevin Pfeiffer
And
above it does say "type eps"...
I overread this. That is very interesting. Marc. please post the complete
\includegraphics command of the .tex file that was created by LyX. Does it
create something like type=eps? If not, then either your image or your
pdflatex compiler is broken.
Thanks for getting back to me.
I have tested the 3 images in a standalone file, and the images
display fine using the PDF (ps to pdf) option. It looks like the 3rd
image, specified as eps rather than jpg, is converted to pdf before
the tex file is created.
The jpg images are all in tmpbuf.
If the .eps image file is causing a problem, could you convert it
.jpg and reference the .jpg version rather than the .eps in LyX?
Maybe the eps conversion is faulty and if it is the file itself then
it might fail to convert to another image format, so narrow it down.

I did a search for TeXshop and error messages.
Maybe this will be helpful, maybe not. Most of the users use
systems other than Macs and/or Texshop so don't have answers
arising from their own experience.

-----------------------------------------------------------------
http://rutherglen.ics.mq.edu.au/~alpha-bugzilla/show_bug.cgi?id=1906

viewPDF with TeXShop fails if the path contains spaces,
giving an error

Error Message: "Couldn't build descriptor: OSErr -1740"

This was reported by Andreas in the beginning of July(05). He also
observed that the bug could be fixed by inserting some quotes
around referenced variables. (This revealed some very strange
phenomena that have not yet been explained...)

Lars and Jon pointed out that the real problem is a missing
[tclAE::build::TEXT] in the TeXShop viewPDF driver.
---------------------------------------------------------

http://www.uoregon.edu/~koch/texshop/version.html [SH: unlikely]

"The default TeXShop preference for the teTeX binary directory is
/usr/local/teTeX/bin/powerpc-apple-darwin-current. But if users
have installed Gerben Wierda's latest TeX redistribution, they
also have Intel binaries. On Intel machines, the teTeX binary
directory should then be
/usr/local/teTeX/bin/i386-apple-darwin-current. TeXShop now has
code to make this change automatically. When the program first
starts, it calls "uname -p" to determine the current processor.
If the result is "i386", then TeXShop permanently changes the
above preference to /usr/local/teTeX/bin/i386-apple-darwin-current.
However this change is not made if the user has manually changed
the default /usr/local/teTeX/bin/powerpc-apple-darwin-current to
some other location. Thus if a user has the Fink teTeX distribution
or some other distribution and has set the teTeX binary directory
preference to point to it, the preference will not be changed."

-----------------------------------------------------------
http://darkwing.uoregon.edu/~koch/texshop/texshop.html
-----------------------------------------------------------
http://www.uoregon.edu/~koch/texshop/installing.html
---------------------------------------------------------

When did you last update your system? But though that
sometimes fixes bugs, it can also introduce backward
compatibility issues.

Good luck,
Stephen
Georg Baum
2006-01-26 09:02:39 UTC
Permalink
Post by Marc D.
I'm at my wits end. Can someone please tell me at least WHAT is wrong,
in terms of why LyX isn't able to create LaTeX code that works in
this case?
What is LyX is doing (or not doing) that creates this LaTeX error?
We don't know, but with your help we might find out. Maybe this is bug 2127
(but I doubt it, see below): http://bugzilla.lyx.org/show_bug.cgi?id=2127.
Post by Marc D.
What should either LyX or myself should be doing to correct the problem?
First we need to find out whether the error is on the LyX side or TeX side.
Export the file to LaTeX, and run it through pdflatex manually. Does that
work? If not, what are the error messages?
Post by Marc D.
============== cut << _EOF_ ================
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
(format=pdflatex 2006.1.8) 26 JAN 2006 00:09
This is different to bug 2127: There LyX tries to run TeX in dvi mode, here
it does the right thing.
Post by Marc D.
! LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir17654ldPLfc/l
yx_tmpbuf0/0_Users_donovan_courses_current_320_assign_a1-3a.jpg (no
BoundingBox
).
This should not happen: pdflatex can use .jpg files natively. Did you check
whether the file in the temp dir does actually exist and is readable? Can
you run a simple .tex file that includes this very image through pdflatex?


Georg
Herbert Voss
2006-01-26 19:46:17 UTC
Permalink
Post by Marc D.
I have a file that processes fine using "PDF (ps to pdf)"
option.
LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir7937ASk7yo/ly
...van_courses_current_320_assign_a1-3b.jpg}
you can not use ps2pdf and a jpeg file! ps2pdf converts a
PostScript file:

ps/eps : latex ->dvips -> ps2pdf
jpeg/png/pdf : pdflatex

you have to use pdflatex

Herbert
Stephen Harris
2006-01-27 12:49:31 UTC
Permalink
----- Original Message -----
From: "Herbert Voss" <hvoss-***@public.gmane.org>
To: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Thursday, January 26, 2006 11:46 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)
Post by Herbert Voss
Post by Marc D.
I have a file that processes fine using "PDF (ps to pdf)"
option.
LaTeX Error: Cannot determine size of graphic in /tmp/
lyx_tmpdir7937ASk7yo/ly
...van_courses_current_320_assign_a1-3b.jpg}
you can not use ps2pdf and a jpeg file! ps2pdf converts a
ps/eps : latex ->dvips -> ps2pdf
jpeg/png/pdf : pdflatex
you have to use pdflatex
Herbert
It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.

http://mintaka.sdsu.edu/GF/bibliog/latex/LaTeXtoPDF.html

pdflatex method (details)

1. Convert all the figures to non-EPS form.

As pdflatex doesn't use EPS figures, we have to convert
them all to either JPEG, PNG, or PDF form. It makes no sense
to convert EPS to PNG, because that changes scalable graphics
to bulky rasterised form. JPEG would be even worse, because
of its lossy compression.

The way to go is to convert EPS to PDF:
epstopdf image.eps
which creates a file named image.pdf by default. (This has the
happy side-effect of compressing the actual PostScript text of
the original EPS file; if that file were longer than about 2 kB, the
compression would more than offset the added PDF headers,
and the PDF file could be smaller than its EPS parent.)

2. Tell LaTeX what to expect.

The preamble to the LaTeX source file now looks much like
the one used in the traditional method:

\documentclass[pdftex,...]{article} % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex} % to use PostScript fonts

% redefine float-placement parameters here
\begin{document}

Note that the package name to put in the argument list
is pdftex, not pdflatex.

3. Include the figures in the *.tex file.

Just as in the traditional method, we can omit the filename suffix:

\begin{figure}[htp]
\resizebox{\textwidth}{!}{
\includegraphics[width=\textwidth]{circle1}
}
\caption{circle1}
\end{figure}

But now, what's automatically found is the
file circle1.pdf, not circle1.eps."

Regards,
Stephen
Herbert Voss
2006-01-27 15:12:06 UTC
Permalink
Post by Stephen Harris
It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.
eps to jpg is the wrong way, convert them _always_ to pdf with epstopdf.
Post by Stephen Harris
The preamble to the LaTeX source file now looks much like the one used
\documentclass[pdftex,...]{article} % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex} % to use PostScript fonts
using options pdftex _and_ dvips makes no sense, use
only one of it.
only when you use the right driver!
Post by Stephen Harris
But now, what's automatically found is the file circle1.pdf, not
circle1.eps."
pdflatex is run in dvi mode. _all_ new distributions
use pdftex as engine.

Herbert
Marc D.
2006-01-27 15:40:59 UTC
Permalink
Post by Herbert Voss
Post by Stephen Harris
It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.
eps to jpg is the wrong way, convert them _always_ to pdf with
epstopdf.
Post by Stephen Harris
The preamble to the LaTeX source file now looks much like the one
\documentclass[pdftex,...]{article} % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex} % to use PostScript fonts
using options pdftex _and_ dvips makes no sense, use
only one of it.
I'm back. Sleep is good!!

Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs. I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.

I've read the available documentation under "Help", but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.

Thanks,
Marc
Stephen Harris
2006-01-27 17:36:12 UTC
Permalink
----- Original Message -----
From: "Marc D." <list-/***@public.gmane.org>
To: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Friday, January 27, 2006 7:40 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)
Post by Marc D.
Post by Herbert Voss
Post by Stephen Harris
It seems my idea about converting the .eps file to .jpg format
was not the best way to proceed, but instead to use epstopdf.
eps to jpg is the wrong way, convert them _always_ to pdf with epstopdf.
Yes, my sentence was correcting an earlier post which suggested
eps to jpg. "instead" meant I was suggesting epstopdf as you did.
I should have put a comma after "proceed, but instead,..."
Post by Marc D.
Post by Herbert Voss
Post by Stephen Harris
The preamble to the LaTeX source file now looks much like the one
\documentclass[pdftex,...]{article} % the pdftex is essential
\usepackage[dvips]{graphicx} % to include images
\usepackage{pslatex} % to use PostScript fonts
using options pdftex _and_ dvips makes no sense, use
only one of it.
I'm back. Sleep is good!!
Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs. I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.
Under LyX1.3.7, under View, there are three different .pdf viewing
options, if your LyX is installed right. pdflatex is the recommended
one, but it doesn't handle image files in the .eps format. Which is
why epstopdf is used to change the file format from .eps to .pdf.
pdflatex works with image files of the .png, .jpg and .pdf formats.

ps2pdf does work with .eps graphical files, but not the .jpg format
So ps2pdf worked ok when you had one eps image within your
lyx document (and I presume within a (La)tex document). But then
you added another I think, .jpg image, which violated the boundaries
of the ps2pdf conversion capability.

On my system, I can view with a ghostscript viewer, gsview, or
Adobe Reader which reads .pdf files, save the file or print it out
on my printer. On Linux/Mac OS X the user .pdf viewer is xpdf
which I think you said you removed.

Also under Lyx->File if you have a file open there is an active
choice to Export to .pdf or dvi or postscript. I know less about
that since the only time I use that is to export as Latex and that
exported file is made, but there isn't any indication of it, and I
think it is stored in a temp directory.

Another place where the behavior of viewing files is controlled
is under LyX->Edit->Preferences, you will see File formats and
it displays the assigned Viewers for the different file formats.
Also you will see Converters which also lists three .pdf methods.
Post by Marc D.
I've read the available documentation under "Help", but can't
recall any detailed documentation on exactly what LyX calls
to convert the LyX code to LaTeX and then to PDF. Once I understand
that process, I'll be able to see what might be broken on
my system, maybe even contribute a general-purpose script
(I'm very good at scripts) if necessary.
Thanks,
Marc
Usually the defaults work quite well and a user never has to fiddle
with the settings. Try loading your first file which I think had just
the .eps image; the one you said works with ps2pdf. This time
use the View windows and select ps2pdf and see if it still works.
Then try dvipdfm. I am not so sure you should have removed the
xpdf viewer, see how it works. If dvipdfm works with just the
one graphic image using View, then try it with the the file that has
two images (one eps and one jpg if I undertand you). You may
have to put xpdf back in as a viewer. You said you had pdflatex
working from the command line before, which would need your
jpg file and the image.pdf file (which you converted from image.eps)
using epstopdf (from the command line). Sometimes that epstopdf
conversion needs to have some bounding box (BB) work done on
the image.eps file depending on how it was constructed. Edit your
homework .lyx file appropriately for BBs and adding images.

Herbert is the expert in this area. If I made any mistakes in
explaining this I hope he corrects them. Perhaps part of the
problem so far is a lack of knowledge about LyX defaults.
http://wiki.lyx.org/ provides a searchable interface for some
topics. Google also contains a lot of information about (La)TeX
providing details about the pdf viewers which LyX relies upon,
but which come with the various (La)TeX versions and platforms.
Working instances of Ghostscript and Python are also needed.

I'll leave any further advice to more experienced users, Good luck,
Stephen
Herbert Voss
2006-01-27 18:17:43 UTC
Permalink
Post by Marc D.
Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs. I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.
what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?

Herbert
Marc D.
2006-01-27 19:11:37 UTC
Permalink
Post by Herbert Voss
Post by Marc D.
Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs. I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.
what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?
Herbert
I have a LaTeX -> PDF (ps to pdf) option that says:

Converter: pdflatex $$i
extra flag: latex


Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
Herbert Voss
2006-01-27 20:50:14 UTC
Permalink
Post by Marc D.
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line

\graphics dvips

in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)
And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.

http://www.lsv.ens-cachan.fr/~gastin/gastex/more.html

Same for your commutated diagrams ... there are much more
better tools.

http://tug.org/PSTricks/main.cgi?file=psmatrix/cd

Herbert
Herbert Voss
2006-01-27 21:04:28 UTC
Permalink
Post by Herbert Voss
Post by Marc D.
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
seems to be a bug in LyX, but the question is who inserts
this line ...
just found it ... It was you who enables the PostScript
driver Layout->Document->Packages->PostScript driver

it is wrong enabling dvips when using pdflatex.
This option should _always_ be the default driver.
However, this is one of the really really obsolete
options, which confuses users and doesn't help.

Herbert
Jean-Marc Lasgouttes
2006-01-27 21:41:55 UTC
Permalink
Herbert> it is wrong enabling dvips when using pdflatex. This option
Herbert> should _always_ be the default driver. However, this is one
Herbert> of the really really obsolete options, which confuses users
Herbert> and doesn't help.


Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)

JMarc
Herbert Voss
2006-01-27 22:10:54 UTC
Permalink
Post by Jean-Marc Lasgouttes
Herbert> it is wrong enabling dvips when using pdflatex. This option
Herbert> should _always_ be the default driver. However, this is one
Herbert> of the really really obsolete options, which confuses users
Herbert> and doesn't help.
Do you mean there is no good reason to use it? Is it true for
color.sty too? I'd be glad to get rid of it :)
\listfiles
\documentclass{article}
\usepackage{color}
\begin{document}

\fcolorbox{red}{green}{blue}

\end{document}

the color.cfg can detect the running mode:

---------------------- snip ------------------------
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
%&-line parsing enabled.
entering extended mode
(./demo0.tex
LaTeX2e
Babel and hyphenation patterns for english, usenglishmax, dumylang, noh

[ ... ]

(/usr/local/texlive/2005/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2005/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvips.def)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/dvipsnam.def))
(./demo0.aux) [1] (./demo0.aux)

*File List*
article.cls 2004/02/16 v1.4f Standard LaTeX document class
size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
color.sty 1999/02/16 v1.0i Standard LaTeX Color (DPC)
color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
---------------------- snip ------------------------

and the same with running pdflatex:

---------------------- snip ------------------------
[ ... ]
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2005/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/pdftex.def))
(./demo0.aux)
(/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-pdf.tex
(/usr/local/texlive/2005/texmf-dist/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
[ ... ]
---------------------- snip ------------------------


maybe that there is a very special case for using this option, then
it is no problem to use dvips via the documentclass option field.


Herbert
Marc D.
2006-01-28 01:45:07 UTC
Permalink
Post by Herbert Voss
Post by Herbert Voss
Post by Marc D.
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
seems to be a bug in LyX, but the question is who inserts
this line ...
just found it ... It was you who enables the PostScript
driver Layout->Document->Packages->PostScript driver
It says "default" when I go there from here,
and I don't recall ever changing it. It's a
clean, recent install. I even did the lyxrc xpdf to open
changes manually in order to not copy over any other stuff
I may have done by mistake.

If it says "Default" in LyX, would you know the
other ways that it could have been changed?
Where does LyX store that preference?

As for other options, the lyxrc was copied only
to change "xpdf" to "open", as I use the Mac interface
by preference. That was the only change.

LyX $ diff lyxrc lyxrc.defaults.bak
64,66c64,66
< \viewer pdf "open"
< \viewer pdf2 "open"
< \viewer pdf3 "open"
---
Post by Herbert Voss
\viewer pdf "xpdf"
\viewer pdf2 "xpdf"
\viewer pdf3 "xpdf"
Marc D.
2006-01-28 02:08:52 UTC
Permalink
Post by Herbert Voss
Post by Marc D.
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line
\graphics dvips
in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)
This works for me as well. Still doesn't work with any
of the other view options, but at least one works.

Thank you.

I still don't understand where that line came from, since
when I go to Layout->Document->Packages it says that
my Postscript driver is "Default". Can I change that
to something else in my preferences or lyxrc?
Post by Herbert Voss
And by the way, it is a kind of crazy to convert your
automata images to jpeg. png or odf is the right format,
or what I would prefer, create them on the fly with gastex.
I use jpeg because I was having trouble with other formats.
As in, LyX wouldn't even display them internally. Including png.
Since the clean install it seems to work ok, although no
better or no worse than jpg.

I'm not sure that creating something "on the fly" with gastex
is something I will be doing in the near future. Learning curve
seems a little high, and it doesn't seem condusive to taking
notes in class. Probably a lovely tool for writing a book or
paper. The "better interface" requirement is why I use LyX in
the first place! I don't want to have to type raw laTeX code.
I have in the past, and I didn't enjoy it.

I create my automata with Omnigraffle and export to jpg.
That tool also allows me to copy the professor's lectures from
the board on the fly. I'm not sure I could do that with gastex,
unless there is a better interface to it than a text editor.

regards,
Marc
Marc D.
2006-01-28 02:57:10 UTC
Permalink
Post by Marc D.
Post by Herbert Voss
Post by Marc D.
Converter: pdflatex $$i
extra flag: latex
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
seems to be a bug in LyX, but the question is who inserts
this line ...
Delete the line
\graphics dvips
in your LyX file ( outside of LyX ) and everything should
be ok. At least for me ... ;-)
This works for me as well. Still doesn't work with any
of the other view options, but at least one works.
Thank you.
I still don't understand where that line came from, since
when I go to Layout->Document->Packages it says that
my Postscript driver is "Default". Can I change that
to something else in my preferences or lyxrc?
replying to myself...

In testing, I've found that if I create a NEW file,
I get \graphics default. This would explain why the new
file was working.

However, in a1.ps, even though I have set
the option to "default", it seems to keep \graphics dvips
The file may have been created before my installation broke,
so I don't know if that was the way things were before.
Setting the options to dvips, saving, then setting them
back to default actually updated the file.

Now to try to solve the problem of it not working for any
other option, no matter what file format I use. Prior to
my loss of /usr/local, it was working fine. Now I open
my old files and I'm getting all sorts of errors and I can't
create pdfs from them at all, yet I could before.

I have been sent a couple more links for documentation, so
will read those before coming back with hopefully cogent
questions.

regards,
Marc
Herbert Voss
2006-01-28 08:16:59 UTC
Permalink
Post by Marc D.
Post by Marc D.
I still don't understand where that line came from, since
when I go to Layout->Document->Packages it says that
my Postscript driver is "Default". Can I change that
to something else in my preferences or lyxrc?
replying to myself...
In testing, I've found that if I create a NEW file,
I get \graphics default. This would explain why the new
file was working.
However, in a1.ps, even though I have set
you _cannot_ get a PostScript file when running pdflatex.
So you did something else, like viewing PostScript output.
Then LyX converts the jpegs to eps and maybe then anables
the dvips option of the PostScript driver and didn't change
this one when going back to pdflatex.

Herbert
Paul A. Rubin
2006-01-27 21:07:02 UTC
Permalink
Post by Marc D.
Post by Herbert Voss
Post by Marc D.
Any suggestions on how I can go about changing the behaviour
of lyx? I was unaware that I had control over the LaTeX that
LyX outputs. I'm more than willing and able to read documentation,
but I'd appreciate being pointed to the right chapter.
what does Edit->Preferences->Output->Converters say for
the entry LaTeX->PDF?
Herbert
Converter: pdflatex $$i
extra flag: latex
There's an inconsistency here. I downloaded all the files from your
directory. The converters are defined in lyxrc, where the key lines (I
think) are:

\Format pdf pdf "PDF (ps2pdf)" P
\Format pdf2 pdf "PDF (pdflatex)" F
\Format pdf3 pdf "PDF (dvipdfm)" m
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi pdf3 "dvipdfm $$i" ""
\converter ps pdf "ps2pdf13 $$i" ""

The first three lines declare three different extensions (pdf, pdf2,
pdf3) to by used by LyX to indicate pdf files created three different
ways (latex->dvi->ps->pdf, latex->pdf, latex->dvi->pdf respectively).
The other three lines give the terminal conversion in each case.

In your preferences file, I found the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex). So if you're selecting View->PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View->PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.
Post by Marc D.
Now that the homework has been handed in (manual cut
and paste of images) I've posted the .lyx file to
http://ryuu.ca/lyx, along with the images, in case anyone
wants to see the raw source. I've also posted my preferences
and lyxrc files in the same directory. All will vanish
once this is solved, but it might help, and it can't hurt.
I ran your document with LyX 1.3.7, Win XP, MiKTeX. No matter how I
view it, it comes out correct. I also exported to latex and ran latex
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file.
I notice from your path that you're using teTeX. Maybe a component
needs upgrading?

/Paul
Herbert Voss
2006-01-27 21:14:31 UTC
Permalink
Post by Paul A. Rubin
I ran your document with LyX 1.3.7, Win XP, MiKTeX. No matter how I
MiKTeX comes with an own extended dvips driver, which is the reason
why it runs with an installed MiKTeX but not with _any_ other
distribution.
Post by Paul A. Rubin
view it, it comes out correct. I also exported to latex and ran latex
(twice, dvips, and ps2pdf13 in that order, and got a correct PDF file. I
in _general_ this cannot work, dvips understands only ps/eps images.
Post by Paul A. Rubin
notice from your path that you're using teTeX. Maybe a component needs
upgrading?
Herbert
Georg Baum
2006-01-28 11:10:31 UTC
Permalink
Post by Paul A. Rubin
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex). So if you're selecting View->PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View->PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.
Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).

What do we learn from this lengthy debug session? Always provide minimal
example files!


Georg
Herbert Voss
2006-01-28 11:49:31 UTC
Permalink
Post by Georg Baum
Post by Paul A. Rubin
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex). So if you're selecting View->PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View->PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.
Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).
these entries are nonsense, but could not be a problem,
because they have the same meaning.

Herbert
Stephen Harris
2006-01-28 12:10:17 UTC
Permalink
----- Original Message -----
From: "Georg Baum" <Georg.Baum-6V9naDJErT6662+jY7v6MhvVK+***@public.gmane.org>
To: <lyx-users-UqbJ+GOpo4+***@public.gmane.org>
Sent: Saturday, January 28, 2006 3:10 AM
Subject: Re: Latex error on graphics insert (LyX 1.3.7)
Post by Georg Baum
Post by Paul A. Rubin
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex). So if you're selecting View->PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View->PDF (pdflatex),
I think you're actually running latex, dvips and ps2pdf13.
Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).
What do we learn from this lengthy debug session? Always provide minimal
example files!
Georg
Hello Marc,

I came to the same conclusion about using the defaults.

I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.

That means the image files are OK, and the doc syntax structure is OK,
once \graphics dvips is eliminated. On the Windows system the/my
Layout->Document->Packages, the graphics driver is set to "default"
(as yours was) and it works so it seems just \graphics dvips is
problematic and maybe your other documents have that line also.
You would still need to be careful if they contained eps images.

So I was going to recommend saving preferences somewhere safe,
just in case, but reinstalling the defaults because they work for other
people and there is a fair chance your editing of lyxrc was faulty.
And I learned a lesson about the value of providing minimal examples.

Hope your other files are easy to fix,
Stephen
Marc D.
2006-01-28 16:14:19 UTC
Permalink
Post by Stephen Harris
[...]
Hello Marc,
I came to the same conclusion about using the defaults.
I use the defaults with Windows and Lyx 1.3.7 and on Linux Fedora4
which has LyX1.3.6. On both systems I can use the DVI, all 3 pdf and
the postscript viewers, in order to view your file.
The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)

Everything else was "as provided", as far as I can tell.
However, I will erase everything again and start over, using
just the defaults modulo the above changes, and see if it does,
in fact, work with the "\graphics default" entry in the test file.
Then will see if it works with my older files.
Georg Baum
2006-01-28 16:33:35 UTC
Permalink
Post by Marc D.
The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)
I did not talk about the viewer settings. Of course you can set them to
"open", and it should work. I meant these two lines (found by Paul):

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

These are wrong! Read Pauls explanation if it is not clear why.


Georg
Herbert Voss
2006-01-28 17:07:15 UTC
Permalink
Post by Georg Baum
Post by Marc D.
The defaults do not seem to work under MacOSX, in that they specify xpdf
rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)
I did not talk about the viewer settings. Of course you can set them to
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
These are wrong! Read Pauls explanation if it is not clear why.
??? Why are these lines _wrong_?

Herbert
Georg Baum
2006-01-28 17:29:00 UTC
Permalink
Post by Herbert Voss
Post by Paul A. Rubin
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
These are wrong! Read Pauls explanation if it is not clear why.
??? Why are these lines _wrong_?
Read it in Pauls mail. Short version: They are wrong because the comments
("pdflatex" and "ps to pdf") don't match the converters. The defaults are

\Format pdf pdf "PDF (ps2pdf)" P
\Format pdf2 pdf "PDF (pdflatex)" F
\Format pdf3 pdf "PDF (dvipdfm)" m
\converter ps pdf "ps2pdf13 $$i" ""
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi pdf3 "dvipdfm $$i" ""


Georg
Herbert Voss
2006-01-28 18:43:08 UTC
Permalink
Post by Georg Baum
Post by Herbert Voss
Post by Paul A. Rubin
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
These are wrong! Read Pauls explanation if it is not clear why.
??? Why are these lines _wrong_?
Read it in Pauls mail. Short version: They are wrong because the comments
("pdflatex" and "ps to pdf") don't match the converters. The defaults are
ok ok, my question was why it is _wrong_! It is wrong
in a logical way, but it should work without LyX internal
errors, right?

Herbert
Post by Georg Baum
\Format pdf pdf "PDF (ps2pdf)" P
\Format pdf2 pdf "PDF (pdflatex)" F
\Format pdf3 pdf "PDF (dvipdfm)" m
\converter ps pdf "ps2pdf13 $$i" ""
\converter latex pdf2 "pdflatex $$i" "latex"
\converter dvi pdf3 "dvipdfm $$i" ""
Georg Baum
2006-01-28 19:01:53 UTC
Permalink
Post by Herbert Voss
ok ok, my question was why it is _wrong_! It is wrong
in a logical way, but it should work without LyX internal
errors, right?
Yes. But it might have lead Marc to think that he is converting via
pdflatex when he actually used ps2pdf. I think there are no more
misunderstandings now :-)


Georg
Marc D.
2006-01-28 18:47:22 UTC
Permalink
Post by Georg Baum
Post by Marc D.
The defaults do not seem to work under MacOSX, in that they
specify xpdf
rather than "open" to view files. This is probably fine if the user
is using XWindows subsystem to run LyX, but not if the user wants
to run LyX under the MacOS GUI. The only changes I
made to the defaults were to lyxrc to change xpdf to open.
(yes, I could have just specified those two lines in lyxrc.
Instead I elected to just copy lyxrc.default and change those
2 lines. It should have resulted in the same thing.)
I did not talk about the viewer settings. Of course you can set them to
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
These are wrong! Read Pauls explanation if it is not clear why.
Georg
OK, I have completed a full reinstall (I'm getting VERY good at this!)

LyX 1.3.7 on MacOSX 10.4.4.
Downloaded from http://wiki.lyx.org/LyX/LyXOnMac?from=LyX.Mac

LaTeX install from MacTeX.dmg downloaded from Tug was not touched.

OK. I have deleted LyX, deleted all the preferences
Library->Application Support->LyX (actually deleted the whole directory)
I then reinstalled LyX from a fresh download.

Opened my a1.lyx that worked before...

LyX does a whole bunch of stuff on the console, creating the
Library/Application Support/LyX directory and doing some self
configuration.

When I try View -> PDF (ps to pdf) it doesn't display the images.

Under Layout->Document->Packages, Postscript driver was set to dvips.
This was AFTER resetting it in the document previously, as documented
previous in this thread.

So I manually reset "dvips" back to default, apply...

View -> PDF (ps to pdf) now works fine and display my images.

There is now no preferences file in the Library->Application Support-
Post by Georg Baum
LyX
directory. However, LyX.app/Contents/Resources/lyx
in the dmg file I just downloaded has the following:

\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""

This also appears in preferences where I've installed LyX.app.

So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.

regards,
Marc
Georg Baum
2006-01-28 19:04:55 UTC
Permalink
Post by Marc D.
There is now no preferences file in the Library->Application Support-
LyX
directory. However, LyX.app/Contents/Resources/lyx
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
This also appears in preferences where I've installed LyX.app.
So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.
OK finally we have found the problem. You are absolutely right, this
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?


Georg
Bennett Helm
2006-01-29 03:15:08 UTC
Permalink
Post by Georg Baum
Post by Marc D.
There is now no preferences file in the Library->Application Support-
LyX
directory. However, LyX.app/Contents/Resources/lyx
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
This also appears in preferences where I've installed LyX.app.
So may I suggest that if this is so wrong that the distribution
itself needs to be fixed, since I can guarantee that I had
nothing to do with these settings.
OK finally we have found the problem. You are absolutely right, this
should not be like that.
Bennett, could you please correct the installer?
Maybe this is also the reason for
http://bugzilla.lyx.org/show_bug.cgi?id=2127 ?
Yes ... it appears to be my mistake somewhere along the line. But
those two lines have been in the LyX/Mac default preferences for a
while and haven't caused a problem before. Moreover, deleting those
lines from within the LyX.app bundle -- i.e., the default LyX/Mac
preferences -- does not affect bug 2127 substantially. (I'll post new
comments on bugzilla so we have them there: <http://bugzilla.lyx.org/
show_bug.cgi?id=2127>.)

Bennett


----------
Bennett Helm
Department of Philosophy
Franklin & Marshall College
P. O. Box 3003
Lancaster, PA 17604-3003
Voice: (717) 291-4392
Fax: (717) 291-4369
<http://www.fandm.edu/Departments/Philosophy/staticpages/index.php?
page=helm>

Marc D.
2006-01-28 16:05:50 UTC
Permalink
Post by Georg Baum
Post by Paul A. Rubin
\format "pdf" "pdf" "PDF (pdflatex)" ""
\format "pdf2" "pdf" "PDF (ps to pdf)" ""
Note that the labels for the pdf and pdf2 extensions are actually the
reverse of what the converters do (i.e., pdf is via ps, not via
pdflatex). So if you're selecting View->PDF (ps to pdf), I think you're
actually running pdflatex, and if you're selecting View->PDF
(pdflatex),
I think you're actually running latex, dvips and ps2pdf13.
Marc, you should really delete these lines from your preferences file and
use the defaults that come with LyX (if not already done).
What do we learn from this lengthy debug session? Always provide minimal
example files!
The problem is that the "minimal" example files worked,
whereas my working file did not.

Rule 2) Always provide example files that actually show the problem.
Loading...