Fwd: Re: TeX Capacity exceeded with package listings

2000-04-05 Thread Pascal Francq

I received the solution for my problem in this email.

--  - Original Message -  --
Subject: Re: TeX Capacity exceeded with package listings
Date: Tue, 04 Apr 2000 11:46:47 +0200 (MET_DST)
From: [EMAIL PROTECTED]


 No, that isn't the problem. The listing is printing well, the problem cam=
=3D
 e only
 if I had a "labelstyle" keyword in "\lstset" command.

Then try to increase the stack size. Look at

  kpsewhich texmf.cnf =


In `texmf.cnf' you find: "stack_size =3D ..."

After correction of this value you must call

  texconfig init

I hope this helps...

...Rolf
---

-- =



Ir. Pascal Francq
Researcher
Universit=E9 Libre de Bruxelles
Faculty of Applied Mechanics
Avenue F.D. Roosevelt, 50
CP 165/41
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 27 10



TeX Capacity exceeded with package listings

2000-04-04 Thread Pascal Francq

I use the package "listings" and I have the following message:
"! TeX capacity exceeded, sorry [input stack=3D300].
 \@nomath ...e \@font@warning {Command \noexpand #1
 invalid in math mode}\fi"
I have read somewhere over this problem and the solution, but I don't know
where.
-- =



Ir. Pascal Francq
Researcher
Universit=E9 Libre de Bruxelles
Faculty of Applied Mechanics
Avenue F.D. Roosevelt, 50
CP 165/41
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 27 10



Re: TeX Capacity exceeded with package listings

2000-04-04 Thread niepraschk


Pascal Francq wrote:

 I use the package "listings" and I have the following message:
 "! TeX capacity exceeded, sorry [input stack=3D300].
  \@nomath ...e \@font@warning {Command \noexpand #1
  invalid in math mode}\fi"
 I have read somewhere over this problem and the solution, but I don't 
 know
 where.

May be your listing has wrong line end markers. Convert the file to the 
unix linefeed's...

...Rolf

 -- 
.--.
| Rolf Niepraschk -- Physikalisch-Technische Bundesanstalt |
| Abbestr. 2-12; D-10587 Berlin, Germany   |
| Tel/Fax: ++49-30-3481-316/490, email: [EMAIL PROTECTED]  |
`--'





Re: TeX Capacity exceeded with package listings

2000-04-04 Thread Pascal Francq

On Tue, 04 Apr 2000, you wrote:
 Pascal Francq wrote:
 =

  I use the package "listings" and I have the following message:
  "! TeX capacity exceeded, sorry [input stack=3D3D300].
   \@nomath ...e \@font@warning {Command \noexpand #1
   invalid in math mode}\fi"
  I have read somewhere over this problem and the solution, but I don't =

  know
  where.
 =

 May be your listing has wrong line end markers. Convert the file to the =

 unix linefeed's...
No, that isn't the problem. The listing is printing well, the problem came =
only
if I had a "labelstyle" keyword in "\lstset" command.
-- =



Ir. Pascal Francq
Researcher
Universit=E9 Libre de Bruxelles
Faculty of Applied Mechanics
Avenue F.D. Roosevelt, 50
CP 165/41
B-1050 Brussels
BELGIUM
Tel. +32-2-650 47 65
Fax +32-2-650 27 10



Re: TeX Capacity exceeded with package listings

2000-04-04 Thread John Perkins

 I use the package "listings" and I have the following message:
 "! TeX capacity exceeded, sorry [input stack=3D300].
  \@nomath ...e \@font@warning {Command \noexpand #1
  invalid in math mode}\fi"
 I have read somewhere over this problem and the solution, but I don't kno=
w
 where.

Sounds like you need to increase the save_size in texmf.cnf.

See http://www.xray.mpe.mpg.de/mailing-lists/tetex/1998-04/msg00055.html fo=
r =

details.  If I remember right, you will need to regenerate the .fmt files f=
or =

TeX after the change, assuming you're running teTeX =3D 1.0.  Previous cop=
ies =

had this limit hard-coded into the TeX binary.

-- =

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
   John Perkins   |   University of Wisconsin-Madison
   Associate Researcher   |   Department of Computer Science
   [EMAIL PROTECTED]   |   1210 W. Dayton St.
   608-262-0438/608-262-9997 FAX  |   Madison, WI  53706-1685
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D






Re: TeX Capacity exceeded with package listings

2000-04-04 Thread David Kastrup

   Date: Tue, 04 Apr 2000 10:55:13 -0500
   From: John Perkins [EMAIL PROTECTED]

I use the package "listings" and I have the following message:
"! TeX capacity exceeded, sorry [input stack=3D300].
 \@nomath ...e \@font@warning {Command \noexpand #1
 invalid in math mode}\fi"
I have read somewhere over this problem and the solution, but I don't =
know
where.

   Sounds like you need to increase the save_size in texmf.cnf.

Sounds like nonsense to me.  input stack and save size are two
different beasts.

The input stack size restricts the number of nested sources TeX
might be reading from (token registers, macros, input files, and the
like).

Exceeding an input stack size of 300 is most likely an input or
programming error.

Try putting
\errorcontextlines=3D\maxdimen

at the top of your file and post the *relevant* (not the almost 300
repeated parts) of the resulting log file.

David Kastrup Phone: +49-234-32-25570
Email: [EMAIL PROTECTED]   Fax: +49-234-32-14209
Institut f=FCr Neuroinformatik, Universit=E4tsstr. 150, 44780 Bochum, Germa=
ny