GeneralA problem with a document in MiKTeX

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cbkschroeder
Posts: 55
Joined: Sun Nov 09, 2008 7:48 pm

A problem with a document in MiKTeX

Post by cbkschroeder »

Hi there.

Thanks for taking the time to read my inquiry.

I have, until recently, been using MiKTeX 2.7. Under 2.7 my document compiled without grief, either to dvi or directly to pdf. Upon upgrading to MiKTeX 2.8, that same document compiles flawlessly to dvi, but blows up when complied to pdf. I'm hoping to elicit some guidance from someone as to why this is happening. In my preamble I have, after the inclusion of several other packages, the following two cases:

Code: Select all

\ifpdf %if we're running under pdftex, do the following

\usepackage[final,verbose,letterpaper,pdftex,pagebackref=true]{hyperref}
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf} % make sure we convert all eps figures to pdf on the fly

%\DeclareGraphicsExtensions{.eps,.pdf}
%\DeclareGraphicsRule{.eps}{pdf}{.pdf}{`epstopdf --gsopt="-dPDFSETTINGS=/prepress -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -sColorImageFilter=FlateEncode -sGrayImageFilter=FlateEncode -sCompressPages=false -dPreserveHalftoneInfo=true" #1 }

\hypersetup{pdftitle=Document Title,pdfauthor = My Name,pdfpagemode = UseThumbs}

\else %if we're running under normal latex, do the following

\usepackage[dvips]{graphicx}

\fi
Note that the two comment-excluded lines have been excluded in order to facilitate compilation under 2.8; it's my impression they're needed under 2.7 but not 2.8. I discovered this based on trial-and-error (busted - I'm a hack!). Regardless, the document is huge, and latex makes it to some point, and then gives up by saying:

Code: Select all

<use figures_theory_nmr_and_mri_section/three_projections/three_projections-eps
-converted-to.pdf>
pdftex: define anchor at line 365: subsubsection.2.2.3
! TeX capacity exceeded, sorry [parameter stack size=10000].
\@gobble #1->
             
l.365 ...}$-Space Acquisition Using the Hahn Echo}
                                                  
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.

 
Here is how much of TeX's memory you used:
 6758 strings out of 495269
 103853 string characters out of 3180097
 387707 words of memory out of 3000000
 9682 multiletter control sequences out of 15000+200000
 78155 words of font info for 66 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 9978i,12n,10001p,1796b,358s stack positions out of 50000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!
Now, for the sake of playing around and debugging, I've added -stack-size=50000 to the latex command line. Without it, a slightly different distribution of numbers in the "9978i,12n,10001p,1796b,358s stack positions out of 50000i,500n,10000p,200000b,50000s" line results, but latex gives up regardless.

So how do I get past this? What's going wrong? I'm a little clueless on this one, actually. It's been my experience that when one runs up against TeX capacity errors like this one is doing something wrong. This document is, as previously stated, pretty big, though. Moreover, in selecting my labels for cross-referencing I'm very verbose - it really helps me to keep things straight in this monster. Is it appropriate to increase stack sizes any more? How do I do this for the "n", "p", "b" and "s" stack parameters? Heck, what do those even mean?

Any help anyone could provide would be much appreciated. If I'm being stupid, I assure you, I'm unaware and I apologize. Please be gentle! Also, this document is one of about 13 "pots" on my stove at the moment. If you respond with assistance or a further query and I don't get back to you right away, please accept my apologies (and gratitude, in advance!). I promise: I'll be back!

Thanks again for your time!

Christian

Recommended reading 2024:

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

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

cbkschroeder
Posts: 55
Joined: Sun Nov 09, 2008 7:48 pm

Re: A problem with a document in MiKTeX

Post by cbkschroeder »

Hi again,

I must apologize - I have NO idea why this slipped under my radar. :oops: I'm really sorry.

It seems that this is a hyperref-related problem only because it turns out that the document fails to compile to pdf regardless of the version of MiKTeX - 2.7 OR 2.8. For some reason, I erroneously thought I had it working in 2.7.

Again, I apologize. In trying to solve this problem this morning I ran the document on 2.7 - just to "try" - and kaboom, it didn't work. Certainly if I comment out the hyperref package and the hypersetup statement, things DO work, in both 2.7 and 2.8 - but then no hyperref!

If, with this new information, you have any thoughts, I'd appreciate them.

Take care,

Christian
Post Reply