SV: Many huge pictures - Memory problems?

2012-02-11 Thread Ingar Pareliussen
Hi
Without the file it is difficult to know precisely what is going on. I 
would say that I do not think it is likely that it is a memory problem, 
at least my experience is that lyx and latex work fine producing books 
with many hundreds of images (tif in the 100MB range), making 
pdfs of 10GBs... :).  But then again, I might have been lucky :)

(./000-sdl-buch.out
! Undefined control sequence.
l.47 \BOOKM

This is Latex telling you that you have a command \BOOKM 
that it does not know. 

3. To compile just a part but to tell LyX it should include counter and
references results in the same error.

I guess this is a good hint. My money would be on that in one of your
references have a included something you shouldn't. :) And then again
this should have been triggered in draft mode as well... Could it be 
something in your file-names or file paths? 

And then again it might me something else, as I said it is difficult
to know without your file. And then I guess you should try, as always,
reproducing the error with the smallest possible file.

Also you could try exporting to latex and run it through latex 
manually, this might give you some more information
as well...

Ingar





Re: Many huge pictures - Memory problems?

2012-02-11 Thread Les Denham
On Sat, 11 Feb 2012 07:04:48 +0100
Peter Baumgartner peter.baumgart...@donau-uni.ac.at wrote:
 My assumption is that there is a memory problem:
 
 1. I can compile every part of the book as long as I'm not compiling
 the whole book at once.
 2. I can compile the whole book without problems in draft modus e.g.
 without integrating the pictures
 3. To compile just a part but to tell LyX it should include counter
 and references results in the same error.

Probably not a memory problem: I compiled a document yesterday with
about 250 images, producing a PDF file of 280 pages and 325MB.
 
 I have not idea how to proceed: If I compile the book in two
 independent parts what about the int-text references, bibliography
 and other automatic generated lists (table of contents, table of
 figures etc.)?

You shouldn't have to do that.
 
 Could a new organisation of the files helpful? (At the moment I have
 one master file with 53 subfiles.)

That shouldn't make any difference.

 Another possibility I'm thinking of are the pictures itself. In my
 first version the pictures had about 80 to 300 kB. After shooting the
 screenshots again half of them have now 200 kB to 700 kB (still bad
 resolution but maybe sufficient?) the other half is between 2 to 4
 MB. All the pictures are in PNGs. Perhaps it would help to size the
 biggest pictures a little bit down? But here the problem is: To some
 of the websites I have no access anymore and all the pictures have
 overlaid graphics in it (to highlight some part of the screenshot).  

The size of the graphics is not a problem, but there is probably one
particular image which is giving you a problem.

 I'm at a loss and don't know how to proceed. Any hint would be *very*
 appreciated...

I'd suggest the following process:

1. Export to LaTeX (pdflatex)

2. Run pdflatex on the exported file. It will stop at the problem.

3. Use the 'E' command to edit the file, removing anything suspicious
around the point where it stopped.

4. Rerun pdflatex, repeating until you get it to run properly.

5. Go back to LyX and remove and re-enter the bits where pdflatex had
problems.

That process  has solved similar problems for me in the past.

One frequent problem is spaces in filepath names: they sometimes work
and sometimes don't. The best solution is to remove them.

Les


Re: SV: Many huge pictures - Memory problems?

2012-02-11 Thread Peter Baumgartner
Ingar,

Thanks for your answer.

You mentioned that you had no problems with very huge pictures. Perhaps it
has to do with the kind of compilation? I compile with pdflatex. Maybe I
should use another compilation but I'm afraid of (small) changes in
hyphenation or in the very critical positions of my pictures on the page
layout. 

***

In the meanwhile I have reorganised my file structure so that I've got less
but larger files. -- No change.

Than I grouped pictures (in these larger files) and set the latex option
draft mode of all pictures in one of these large files. -- This helped!!

I can now produce all my material in two runs where I set alternatively
pictures of two different large files to draft mode and combine the two pdf
files of these two different runs of compilations with Adobe Professional to
one book file. -- Not very comfortable but I hope it will work for the
publisher.

I think this change with pictures in draft mode is another clue that I ran
in memory problems because of my problems.

Peter




Re: SV: Many huge pictures - Memory problems?

2012-02-11 Thread David L. Johnson

On 02/11/2012 01:36 PM, Peter Baumgartner wrote:

Ingar,

Thanks for your answer.

You mentioned that you had no problems with very huge pictures. Perhaps it
has to do with the kind of compilation? I compile with pdflatex.


I often get errors in trying to compile a file with pdflatex if I have 
graphics in it, but typically the problem is with postscript files, for 
which it has trouble finding sizes.  It will typically work fine with 
ps2pdf.  It is certainly worth a try.  I can't imagine that there would 
be a formatting difference between the two methods of export.


--

David L. Johnson

A mathematician is a machine for turning coffee into theorems.
-- Paul Erdos



SV: Many huge pictures - Memory problems?

2012-02-11 Thread Ingar Pareliussen
Hi
Without the file it is difficult to know precisely what is going on. I 
would say that I do not think it is likely that it is a memory problem, 
at least my experience is that lyx and latex work fine producing books 
with many hundreds of images (tif in the 100MB range), making 
pdfs of 10GBs... :).  But then again, I might have been lucky :)

(./000-sdl-buch.out
! Undefined control sequence.
l.47 \BOOKM

This is Latex telling you that you have a command \BOOKM 
that it does not know. 

3. To compile just a part but to tell LyX it should include counter and
references results in the same error.

I guess this is a good hint. My money would be on that in one of your
references have a included something you shouldn't. :) And then again
this should have been triggered in draft mode as well... Could it be 
something in your file-names or file paths? 

And then again it might me something else, as I said it is difficult
to know without your file. And then I guess you should try, as always,
reproducing the error with the smallest possible file.

Also you could try exporting to latex and run it through latex 
manually, this might give you some more information
as well...

Ingar





Re: Many huge pictures - Memory problems?

2012-02-11 Thread Les Denham
On Sat, 11 Feb 2012 07:04:48 +0100
Peter Baumgartner peter.baumgart...@donau-uni.ac.at wrote:
 My assumption is that there is a memory problem:
 
 1. I can compile every part of the book as long as I'm not compiling
 the whole book at once.
 2. I can compile the whole book without problems in draft modus e.g.
 without integrating the pictures
 3. To compile just a part but to tell LyX it should include counter
 and references results in the same error.

Probably not a memory problem: I compiled a document yesterday with
about 250 images, producing a PDF file of 280 pages and 325MB.
 
 I have not idea how to proceed: If I compile the book in two
 independent parts what about the int-text references, bibliography
 and other automatic generated lists (table of contents, table of
 figures etc.)?

You shouldn't have to do that.
 
 Could a new organisation of the files helpful? (At the moment I have
 one master file with 53 subfiles.)

That shouldn't make any difference.

 Another possibility I'm thinking of are the pictures itself. In my
 first version the pictures had about 80 to 300 kB. After shooting the
 screenshots again half of them have now 200 kB to 700 kB (still bad
 resolution but maybe sufficient?) the other half is between 2 to 4
 MB. All the pictures are in PNGs. Perhaps it would help to size the
 biggest pictures a little bit down? But here the problem is: To some
 of the websites I have no access anymore and all the pictures have
 overlaid graphics in it (to highlight some part of the screenshot).  

The size of the graphics is not a problem, but there is probably one
particular image which is giving you a problem.

 I'm at a loss and don't know how to proceed. Any hint would be *very*
 appreciated...

I'd suggest the following process:

1. Export to LaTeX (pdflatex)

2. Run pdflatex on the exported file. It will stop at the problem.

3. Use the 'E' command to edit the file, removing anything suspicious
around the point where it stopped.

4. Rerun pdflatex, repeating until you get it to run properly.

5. Go back to LyX and remove and re-enter the bits where pdflatex had
problems.

That process  has solved similar problems for me in the past.

One frequent problem is spaces in filepath names: they sometimes work
and sometimes don't. The best solution is to remove them.

Les


Re: SV: Many huge pictures - Memory problems?

2012-02-11 Thread Peter Baumgartner
Ingar,

Thanks for your answer.

You mentioned that you had no problems with very huge pictures. Perhaps it
has to do with the kind of compilation? I compile with pdflatex. Maybe I
should use another compilation but I'm afraid of (small) changes in
hyphenation or in the very critical positions of my pictures on the page
layout. 

***

In the meanwhile I have reorganised my file structure so that I've got less
but larger files. -- No change.

Than I grouped pictures (in these larger files) and set the latex option
draft mode of all pictures in one of these large files. -- This helped!!

I can now produce all my material in two runs where I set alternatively
pictures of two different large files to draft mode and combine the two pdf
files of these two different runs of compilations with Adobe Professional to
one book file. -- Not very comfortable but I hope it will work for the
publisher.

I think this change with pictures in draft mode is another clue that I ran
in memory problems because of my problems.

Peter




Re: SV: Many huge pictures - Memory problems?

2012-02-11 Thread David L. Johnson

On 02/11/2012 01:36 PM, Peter Baumgartner wrote:

Ingar,

Thanks for your answer.

You mentioned that you had no problems with very huge pictures. Perhaps it
has to do with the kind of compilation? I compile with pdflatex.


I often get errors in trying to compile a file with pdflatex if I have 
graphics in it, but typically the problem is with postscript files, for 
which it has trouble finding sizes.  It will typically work fine with 
ps2pdf.  It is certainly worth a try.  I can't imagine that there would 
be a formatting difference between the two methods of export.


--

David L. Johnson

A mathematician is a machine for turning coffee into theorems.
-- Paul Erdos



SV: Many huge pictures - Memory problems?

2012-02-11 Thread Ingar Pareliussen
Hi
Without the file it is difficult to know precisely what is going on. I 
would say that I do not think it is likely that it is a memory problem, 
at least my experience is that lyx and latex work fine producing books 
with many hundreds of images (tif in the 100MB range), making 
pdfs of 10GBs... :).  But then again, I might have been lucky :)

>(./000-sdl-buch.out
>! Undefined control sequence.
>l.47 \BOOKM

This is Latex telling you that you have a command \BOOKM 
that it does not know. 

>3. To compile just a part but to tell LyX it should include counter and
>references results in the same error.

I guess this is a good hint. My money would be on that in one of your
references have a included something you shouldn't. :) And then again
this should have been triggered in draft mode as well... Could it be 
something in your file-names or file paths? 

And then again it might me something else, as I said it is difficult
to know without your file. And then I guess you should try, as always,
reproducing the error with the smallest possible file.

Also you could try exporting to latex and run it through latex 
manually, this might give you some more information
as well...

Ingar





Re: Many huge pictures - Memory problems?

2012-02-11 Thread Les Denham
On Sat, 11 Feb 2012 07:04:48 +0100
Peter Baumgartner  wrote:
> My assumption is that there is a memory problem:
> 
> 1. I can compile every part of the book as long as I'm not compiling
> the whole book at once.
> 2. I can compile the whole book without problems in draft modus e.g.
> without integrating the pictures
> 3. To compile just a part but to tell LyX it should include counter
> and references results in the same error.

Probably not a memory problem: I compiled a document yesterday with
about 250 images, producing a PDF file of 280 pages and 325MB.
> 
> I have not idea how to proceed: If I compile the book in two
> independent parts what about the int-text references, bibliography
> and other automatic generated lists (table of contents, table of
> figures etc.)?

You shouldn't have to do that.
> 
> Could a new organisation of the files helpful? (At the moment I have
> one master file with 53 subfiles.)

That shouldn't make any difference.

> Another possibility I'm thinking of are the pictures itself. In my
> first version the pictures had about 80 to 300 kB. After shooting the
> screenshots again half of them have now 200 kB to 700 kB (still bad
> resolution but maybe sufficient?) the other half is between 2 to 4
> MB. All the pictures are in PNGs. Perhaps it would help to size the
> biggest pictures a little bit down? But here the problem is: To some
> of the websites I have no access anymore and all the pictures have
> overlaid graphics in it (to highlight some part of the screenshot).  

The size of the graphics is not a problem, but there is probably one
particular image which is giving you a problem.

> I'm at a loss and don't know how to proceed. Any hint would be *very*
> appreciated...

I'd suggest the following process:

1. Export to LaTeX (pdflatex)

2. Run pdflatex on the exported file. It will stop at the problem.

3. Use the 'E' command to edit the file, removing anything suspicious
around the point where it stopped.

4. Rerun pdflatex, repeating until you get it to run properly.

5. Go back to LyX and remove and re-enter the bits where pdflatex had
problems.

That process  has solved similar problems for me in the past.

One frequent problem is spaces in filepath names: they sometimes work
and sometimes don't. The best solution is to remove them.

Les


Re: SV: Many huge pictures - Memory problems?

2012-02-11 Thread Peter Baumgartner
Ingar,

Thanks for your answer.

You mentioned that you had no problems with very huge pictures. Perhaps it
has to do with the kind of compilation? I compile with pdflatex. Maybe I
should use another compilation but I'm afraid of (small) changes in
hyphenation or in the very critical positions of my pictures on the page
layout. 

***

In the meanwhile I have reorganised my file structure so that I've got less
but larger files. -- No change.

Than I grouped pictures (in these larger files) and set the latex option
"draft mode" of all pictures in one of these large files. -- This helped!!

I can now produce all my material in two runs where I set alternatively
pictures of two different large files to draft mode and combine the two pdf
files of these two different runs of compilations with Adobe Professional to
one book file. -- Not very comfortable but I hope it will work for the
publisher.

I think this change with pictures in draft mode is another clue that I ran
in memory problems because of my problems.

Peter




Re: SV: Many huge pictures - Memory problems?

2012-02-11 Thread David L. Johnson

On 02/11/2012 01:36 PM, Peter Baumgartner wrote:

Ingar,

Thanks for your answer.

You mentioned that you had no problems with very huge pictures. Perhaps it
has to do with the kind of compilation? I compile with pdflatex.


I often get errors in trying to compile a file with pdflatex if I have 
graphics in it, but typically the problem is with postscript files, for 
which it has trouble finding sizes.  It will typically work fine with 
ps2pdf.  It is certainly worth a try.  I can't imagine that there would 
be a formatting difference between the two methods of export.


--

David L. Johnson

A mathematician is a machine for turning coffee into theorems.
-- Paul Erdos



Many huge pictures - Memory problems?

2012-02-10 Thread Peter Baumgartner
Dear LyX-Community,

I'm finalising a textbook with about 120 figures, half of them screenshots.
The publisher told me to deliver the screenshots with better resolutions.
But now my book does not compile any more and LyX generates wired errors I
can't track: 

(./000-sdl-buch.out
! Undefined control sequence.
l.47 \BOOKM

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

[000-sdl-buch is the name of my master file]


My assumption is that there is a memory problem:

1. I can compile every part of the book as long as I'm not compiling the
whole book at once.
2. I can compile the whole book without problems in draft modus e.g. without
integrating the pictures
3. To compile just a part but to tell LyX it should include counter and
references results in the same error.

I have not idea how to proceed: If I compile the book in two independent
parts what about the int-text references, bibliography and other automatic
generated lists (table of contents, table of figures etc.)?

Could a new organisation of the files helpful? (At the moment I have one
master file with 53 subfiles.)

Another possibility I'm thinking of are the pictures itself. In my first
version the pictures had about 80 to 300 kB. After shooting the screenshots
again half of them have now 200 kB to 700 kB (still bad resolution but maybe
sufficient?) the other half is between 2 to 4 MB. All the pictures are in
PNGs. Perhaps it would help to size the biggest pictures a little bit down?
But here the problem is: To some of the websites I have no access anymore
and all the pictures have overlaid graphics in it (to highlight some part of
the screenshot).  

I'm at a loss and don't know how to proceed. Any hint would be *very*
appreciated...

Peter


 




Many huge pictures - Memory problems?

2012-02-10 Thread Peter Baumgartner
Dear LyX-Community,

I'm finalising a textbook with about 120 figures, half of them screenshots.
The publisher told me to deliver the screenshots with better resolutions.
But now my book does not compile any more and LyX generates wired errors I
can't track: 

(./000-sdl-buch.out
! Undefined control sequence.
l.47 \BOOKM

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

[000-sdl-buch is the name of my master file]


My assumption is that there is a memory problem:

1. I can compile every part of the book as long as I'm not compiling the
whole book at once.
2. I can compile the whole book without problems in draft modus e.g. without
integrating the pictures
3. To compile just a part but to tell LyX it should include counter and
references results in the same error.

I have not idea how to proceed: If I compile the book in two independent
parts what about the int-text references, bibliography and other automatic
generated lists (table of contents, table of figures etc.)?

Could a new organisation of the files helpful? (At the moment I have one
master file with 53 subfiles.)

Another possibility I'm thinking of are the pictures itself. In my first
version the pictures had about 80 to 300 kB. After shooting the screenshots
again half of them have now 200 kB to 700 kB (still bad resolution but maybe
sufficient?) the other half is between 2 to 4 MB. All the pictures are in
PNGs. Perhaps it would help to size the biggest pictures a little bit down?
But here the problem is: To some of the websites I have no access anymore
and all the pictures have overlaid graphics in it (to highlight some part of
the screenshot).  

I'm at a loss and don't know how to proceed. Any hint would be *very*
appreciated...

Peter


 




Many huge pictures - Memory problems?

2012-02-10 Thread Peter Baumgartner
Dear LyX-Community,

I'm finalising a textbook with about 120 figures, half of them screenshots.
The publisher told me to deliver the screenshots with better resolutions.
But now my book does not compile any more and LyX generates wired errors I
can't track: 

(./000-sdl-buch.out
! Undefined control sequence.
l.47 \BOOKM

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

["000-sdl-buch" is the name of my master file]


My assumption is that there is a memory problem:

1. I can compile every part of the book as long as I'm not compiling the
whole book at once.
2. I can compile the whole book without problems in draft modus e.g. without
integrating the pictures
3. To compile just a part but to tell LyX it should include counter and
references results in the same error.

I have not idea how to proceed: If I compile the book in two independent
parts what about the int-text references, bibliography and other automatic
generated lists (table of contents, table of figures etc.)?

Could a new organisation of the files helpful? (At the moment I have one
master file with 53 subfiles.)

Another possibility I'm thinking of are the pictures itself. In my first
version the pictures had about 80 to 300 kB. After shooting the screenshots
again half of them have now 200 kB to 700 kB (still bad resolution but maybe
sufficient?) the other half is between 2 to 4 MB. All the pictures are in
PNGs. Perhaps it would help to size the biggest pictures a little bit down?
But here the problem is: To some of the websites I have no access anymore
and all the pictures have overlaid graphics in it (to highlight some part of
the screenshot).  

I'm at a loss and don't know how to proceed. Any hint would be *very*
appreciated...

Peter