Re: Help: Latex stack size limit

2018-05-18 Thread Wolfgang Engelmann



Am 18.05.2018 um 00:26 schrieb Dr Eberhard Lisse:

Robert,

this is a LaTeX error has nothing to do with LyX.

and this 'error' message occurs often, nothing to bother about.


And, LaTeX does page by page, so the size of the project doesn't matter.

It can be as easy as a missing } or something.

I would start looking at the log file.

and there for the error messages (go to next error > shown in red)
if that doesn't help (it also gives you line numbers in the tex file, 
which might help you by opening this file in a text editor and check 
this (these) line(s)) follow el's advice

Wolfgang


If that doens't work, half the project, if it has the error, half it
again, If it doesn't use the other half. You do that until you have
located the error, which you then correct in the original project.

Version Control and backups are your friend :-)-O

el

On 2018-05-16 04:26 , Robert Kern wrote:

Dear lyx-users,

I'm writing a book, and this evening I decided to export it to a .pdf
file to check it out. I went to File->Export->PDF (pdflatex) and hit
Enter. A few seconds later I received an error message which said,

"! TeX capacity exceeded, sorry [parameter stack size=1].

If you really absolutely need more capacity,

you can ask a wizard to enlarge me."

I'm running LyX on Linux and have plenty of memory and disk space, so
I wondered where I could find a "wizard" to increase the Tex stack
size. I went to www.lyx.org, but found nothing there, so I went to
www.ctan.org and searched for "wizard" and "stack size."

So, can anyone tell me how to increase the Tex stack size, or where I
can find a "wizard" that can help me? Otherwise, I'm stuck with a
three-quarter completed book which I can't complete using LyX.

Thanks in advance,

Robert Kern






Re: Help: Latex stack size limit

2018-05-17 Thread Dr Eberhard Lisse
Robert,

this is a LaTeX error has nothing to do with LyX.

And, LaTeX does page by page, so the size of the project doesn't matter.

It can be as easy as a missing } or something.

I would start looking at the log file.

If that doens't work, half the project, if it has the error, half it
again, If it doesn't use the other half. You do that until you have
located the error, which you then correct in the original project.

Version Control and backups are your friend :-)-O

el

On 2018-05-16 04:26 , Robert Kern wrote:
> Dear lyx-users,
> 
> I'm writing a book, and this evening I decided to export it to a .pdf
> file to check it out. I went to File->Export->PDF (pdflatex) and hit
> Enter. A few seconds later I received an error message which said,
> 
> "! TeX capacity exceeded, sorry [parameter stack size=1].
> 
> If you really absolutely need more capacity,
> 
> you can ask a wizard to enlarge me."
> 
> I'm running LyX on Linux and have plenty of memory and disk space, so
> I wondered where I could find a "wizard" to increase the Tex stack
> size. I went to www.lyx.org, but found nothing there, so I went to
> www.ctan.org and searched for "wizard" and "stack size."
> 
> So, can anyone tell me how to increase the Tex stack size, or where I
> can find a "wizard" that can help me? Otherwise, I'm stuck with a
> three-quarter completed book which I can't complete using LyX.
> 
> Thanks in advance,
> 
> Robert Kern
> 
> 



Re: Help: Latex stack size limit

2018-05-15 Thread Steve Litt
On Tue, 15 May 2018 22:52:47 -0400
Scott Kostyshak  wrote:

> On Wed, May 16, 2018 at 02:26:35AM +, Robert Kern wrote:
> > Dear lyx-users,
> > 
> > I'm writing a book, and this evening I decided to export it to
> > a .pdf file to check it out. I went to File->Export->PDF (pdflatex)
> > and hit Enter. A few seconds later I received an error message
> > which said,
> > 
> > "! TeX capacity exceeded, sorry [parameter stack size=1].
> > 
> > If you really absolutely need more capacity,
> > 
> > you can ask a wizard to enlarge me."
> > 
> > I'm running LyX on Linux and have plenty of memory and disk space,
> > so I wondered where I could find a "wizard" to increase the Tex
> > stack size. I went to www.lyx.org, but found nothing there, so I
> > went to www.ctan.org and searched for "wizard" and "stack size."
> > 
> > So, can anyone tell me how to increase the Tex stack size, or where
> > I can find a "wizard" that can help me? Otherwise, I'm stuck with a
> > three-quarter completed book which I can't complete using LyX.
> > 
> > Thanks in advance,  
> 
> Hi Robert,
> 
> Ouch, that sounds frustrating. Usually this message occurs not because
> of lack of RAM or disk space, but because of an error in LaTeX code.
> Can you create a minimal example that still generates the error? For
> more info, see:
> 
>   https://wiki.lyx.org/FAQ/MinimalExample
> 
> Do you have a previous version of your book that does compile? If the
> differences are not too big, you might get a hint at what addition
> caused the change. If you're not using version control, and you're
> interested in more information, let us know. It is very helpful for
> situations like this. And yes, unfortunately, a similar situation will
> happen again in the future.
> 
> I hope that we can help figure this out!

What Scott said.

I've had 100,000 word books with graphics, indices and table of
contents compile just fine in LyX. Except for those times I made an
error (usually something with LaTeX or ERT).

When that stuff happens to me (and it happens to me all the time
because I'm not careful), I archive the current document, then keep
cutting it half until I get it compile, then add stuff til it bombs,
and take stuff away, and I can usually get it down to a paragraph and
some document settings. At that point, my mistake is usually obvious,
but if not, I can send that tiny document (called a Minimum Example) to
the list and somebody will instantly diagnose the problem.

One thing I do is compile early and often, so that the number of causes
is limited. When working on a long term project like a book, I usually
compile via a shellscript (or if you're Windows, I think it's called
Powerscript). Much faster, easier, and informative.

HTH,

SteveT

Steve Litt 
June 2018 featured book: Twenty Eight Tales of Troubleshooting
http://www.troubleshooters.com/28




Re: Help: Latex stack size limit

2018-05-15 Thread Scott Kostyshak
On Wed, May 16, 2018 at 03:27:56AM +, Robert Kern wrote:
> On 05/15/2018 10:52 PM, Scott Kostyshak wrote:
> > On Wed, May 16, 2018 at 02:26:35AM +, Robert Kern wrote:
> > > Dear lyx-users,
> > > 
> > > I'm writing a book, and this evening I decided to export it to a .pdf file
> > > to check it out. I went to File->Export->PDF (pdflatex) and hit Enter. A 
> > > few
> > > seconds later I received an error message which said,
> > > 
> > > "! TeX capacity exceeded, sorry [parameter stack size=1].
> > > 
> > > If you really absolutely need more capacity,
> > > 
> > > you can ask a wizard to enlarge me."
> > > 
> > > I'm running LyX on Linux and have plenty of memory and disk space, so I
> > > wondered where I could find a "wizard" to increase the Tex stack size. I
> > > went to www.lyx.org, but found nothing there, so I went to www.ctan.org 
> > > and
> > > searched for "wizard" and "stack size."
> > > 
> > > So, can anyone tell me how to increase the Tex stack size, or where I can
> > > find a "wizard" that can help me? Otherwise, I'm stuck with a 
> > > three-quarter
> > > completed book which I can't complete using LyX.
> > > 
> > > Thanks in advance,
> > Hi Robert,
> > 
> > Ouch, that sounds frustrating. Usually this message occurs not because
> > of lack of RAM or disk space, but because of an error in LaTeX code. Can
> > you create a minimal example that still generates the error? For more
> > info, see:
> > 
> >https://wiki.lyx.org/FAQ/MinimalExample
> > 
> > Do you have a previous version of your book that does compile? If the
> > differences are not too big, you might get a hint at what addition
> > caused the change. If you're not using version control, and you're
> > interested in more information, let us know. It is very helpful for
> > situations like this. And yes, unfortunately, a similar situation will
> > happen again in the future.
> > 
> > I hope that we can help figure this out!
> > 
> > Please respond to the list.
> > 
> > Best,
> > 
> > Scott
> 
> Dear Scott,
> 
> I removed the figures I'd added and had the same error message. Then I
> recalled I'd added two page breaks to separate several paragraphs on one
> page from another. When I removed those page breaks, I was able to export
> the file correctly.

Good to know. If you share a minimal example with us (a small .lyx file
that makes an error), I can let you know whether the latest LyX version
would give an error or not.

> Now that I've gotten it working again, why don't you mark this problem
> closed? I've been using LyX 2.1.4 which was supplied by Linux Mint 8.13. I'm
> thinking I'd probably have fewer problems if I used the latest LyX version.

Not necessarily. Upgrade when you are at a point where you can deal with
potential problems.

> I certainly do appreciate your assistance, though. Even commercial software
> support doesn't respond as quickly as you did. I didn't expect to receive a
> response for a couple days!

Well, some emails slip through the cracks.

> Thanks again, and I really like Lyx better than Word or other commercial
> products.

Thanks for the kind words, Robert!

Scott


signature.asc
Description: PGP signature


Re: Help: Latex stack size limit

2018-05-15 Thread Paul A. Rubin

On 05/15/2018 10:26 PM, Robert Kern wrote:


Dear lyx-users,

I'm writing a book, and this evening I decided to export it to a .pdf 
file to check it out. I went to File->Export->PDF (pdflatex) and hit 
Enter. A few seconds later I received an error message which said,


"! TeX capacity exceeded, sorry [parameter stack size=1].

If you really absolutely need more capacity,

you can ask a wizard to enlarge me."

I'm running LyX on Linux and have plenty of memory and disk space, so 
I wondered where I could find a "wizard" to increase the Tex stack 
size. I went to www.lyx.org, but found nothing there, so I went to 
www.ctan.org and searched for "wizard" and "stack size."


So, can anyone tell me how to increase the Tex stack size, or where I 
can find a "wizard" that can help me? Otherwise, I'm stuck with a 
three-quarter completed book which I can't complete using LyX.


Thanks in advance,

Robert Kern


Various errors in the source document can cause this error message 
(which means that increasing the stack size may not actually help). You 
might try compiling portions of the books (individual chapters, first 
half then second half, ...) to see if you can isolate a specific section 
that triggers the error. I think a relatively painless way to do it is 
to put portions of the file in deactivated branches (Document > Settings 
> Branches to create and activate/deactivate them, Insert > Branch to 
put selected text in a branch).


Paul



Re: Help: Latex stack size limit

2018-05-15 Thread Scott Kostyshak
On Wed, May 16, 2018 at 02:26:35AM +, Robert Kern wrote:
> Dear lyx-users,
> 
> I'm writing a book, and this evening I decided to export it to a .pdf file
> to check it out. I went to File->Export->PDF (pdflatex) and hit Enter. A few
> seconds later I received an error message which said,
> 
> "! TeX capacity exceeded, sorry [parameter stack size=1].
> 
> If you really absolutely need more capacity,
> 
> you can ask a wizard to enlarge me."
> 
> I'm running LyX on Linux and have plenty of memory and disk space, so I
> wondered where I could find a "wizard" to increase the Tex stack size. I
> went to www.lyx.org, but found nothing there, so I went to www.ctan.org and
> searched for "wizard" and "stack size."
> 
> So, can anyone tell me how to increase the Tex stack size, or where I can
> find a "wizard" that can help me? Otherwise, I'm stuck with a three-quarter
> completed book which I can't complete using LyX.
> 
> Thanks in advance,

Hi Robert,

Ouch, that sounds frustrating. Usually this message occurs not because
of lack of RAM or disk space, but because of an error in LaTeX code. Can
you create a minimal example that still generates the error? For more
info, see:

  https://wiki.lyx.org/FAQ/MinimalExample

Do you have a previous version of your book that does compile? If the
differences are not too big, you might get a hint at what addition
caused the change. If you're not using version control, and you're
interested in more information, let us know. It is very helpful for
situations like this. And yes, unfortunately, a similar situation will
happen again in the future.

I hope that we can help figure this out!

Please respond to the list.

Best,

Scott


signature.asc
Description: PGP signature