Graphics, Figures & Tables100 minipage figures: symptom must make width smaller

Information and discussion about graphics, figures & tables in LaTeX documents.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

100 minipage figures: symptom must make width smaller

Post by Michael_590 »

I have over 100 figures in my book document. I have gotten to the point that when I add just a short line of textural data to the document, the pdflatex command produces a document with pages that can't be viewed.

(I can fix this problem by making all the figures smaller.)

When I open the document without reducing the size of all the figures, I get the error:
There was an error processing the page. There was a problem reading this document (131).
That's the only error that I get!

When I click OK on the error popup window, the only pages shown in the document are the ones that don't have a header image on that page. I.E.: The title page and each page that starts a new chapter are shown. All the other pages are empty! The document says I have so many pages, but most of them are completely empty. Clicking on these empty pages results in the the above error being displayed.

What can I do besides reducing the size of over 100 figures to alleviate this problem.

Thank you,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: 100 minipage figures: symptom must make width smaller

Post by Johannes_B »

We need to see at least the log file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

100 minipage figures: symptom must make width smaller

Post by Michael_590 »

Johannes_B wrote:We need to see at least the log file.
My employer shuns doing this.

Instead, can you maybe give me information on how to read the log file (myself), and let me try to figure things out.

Some questions:
What areas of the log file are important.
What counters should I be looking at.
...
What else should I be considering.

I might be able to post a very small fraction of the log file.

Thanks,
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

100 minipage figures: symptom must make width smaller

Post by Johannes_B »

You need to look for errors which are introduced by an exclamation mark (!).

I guess there are errors going on and LaTeX decides at a point that further compiling is useless.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

100 minipage figures: symptom must make width smaller

Post by Michael_590 »

Below is a hint!

I've been trying to work on the symptom to my problem outlined in the first post to this thread.

Basically, I've been going to every figure and reducing the width of every figure by 10 to 20 pts each! I'm hoping this will allow me to eventually be able add more textural data to the document as I need.

So, I proceeded to do this. After modifying at least 20 figures (this way), I get the exact same error that I originally got. Which is the final document has empty pages. And, if you try to goto one of these pages you get the error message posted in the first post to this thread.

Cause of duplicate error:
I modified the width of a figure by reducing its width by 10pts instead of adding a small line of textural data.

I compared the resulting log files of the good document created and a document causing the error. The two documents were exactly the same except that one figure width was changed by 10pts.

What I see in the bad document log file is an extra page is generated exactly where it encounters my modified figure width of 10pts.

The only difference between the two log files is the (pdflatex) requested size of the image added to the header of each page, see below! There is a header image added to the top of every page except the start of each chapter.

Log file giving error:
(pdftex.def) Requested size 443.60524pt x 34.44592pt

Log file not producing error:
(pdftex.def) Requested size 279.20801pt x 21.6821pt

Thank you,

P.S.: Both log files have the below and differ only by the size:

Package Fancyhdr Warning: \headheight is too small (12.0pt).
Make it at least 47.21063pt.
We now make it that large for the rest of the document.
This may cause the page layout to be inconsistent, however.

The good log file size is 34.44592pt and not 47.21063pt.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

Re: 100 minipage figures: symptom must make width smaller

Post by Michael_590 »

The only exclamation points in the log file are these:

Package tocstyle Warning: THIS IS AN ALPHA VERSION!
(tocstyle) USAGE OF THIS VERSION IS ON YOUR OWN RISK!
(tocstyle) EVERYTHING MAY HAPPEN!
(tocstyle) EVERYTHING MAY CHANGE IN THE FUTURE!
(tocstyle) THERE IS NO SUPPORT IF YOU USE THIS PACKAGE!
(tocstyle) Maybe it would be better, not to load this package.

Thank you,
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

Re: 100 minipage figures: symptom must make width smaller

Post by Michael_590 »

If the tocstyle package is truly causing me the problems, that I have been discussing, what are my alternatives to using it?

I'm using tocstyle because it gives better indentation within a table of contents with many subsections.

I know I can just stop using the tocstyle package. But, I don't want to give up its gift of indentation.

Thank you,
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

100 minipage figures: symptom must make width smaller

Post by Michael_590 »

The data that I obtained in the comparison of the two pdflatex log files (mentioned earlier) indicates that my problem is probably with the Fancyhdr package and not the tocstyle package.

Do you see any options for me. What do you suggest I do?

Thanks for any help,
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: 100 minipage figures: symptom must make width smaller

Post by Johannes_B »

Right now i really can't say more than, set the headheight higher.

Feels a bit like a treasure hunt here.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

Re: 100 minipage figures: symptom must make width smaller

Post by Michael_590 »

With the Fancyhdr package, things begin to overlap when I increase the \headheight.

Details:
If I make the \headheight for the image bigger the image overlaps the data in the document. This happens if I place the header image to the left, at the center, or to the right side of the header.

FYI: There is textural data in the header also and it overlaps the data in the document as well when I try placing it at different positions in the header.

Thank you,
Last edited by Michael_590 on Thu Sep 04, 2014 1:57 pm, edited 1 time in total.
Post Reply