I am using the following codes to input DNA sequences from fasta format (177 sequences with 1140 base pair long) Using texshade package but I had the following error:

my system is: Windows 7 (64 bit)

! TeX capacity exceeded, sorry [save size=50000].

Dose anyone know how to resolve this problem and your help would be appreciated

\usepackage[a4paper, top=2cm, bottom=2cm, left=.5cm, right=.5cm]{geometry}



  • 4
    I know next to nothing about the texshade package, but you have an unmatched brace in line 6; it should be \begin{texshade}{Concerted-evolution-2.fas}. – Paul Gessler Aug 24 '14 at 12:53
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. A suggestion: Do us a favour and change your username to something more telling than "user1234". – Martin Schröder Aug 25 '14 at 21:53

The manual (pdf) of texshade states on page 13 that a ! TeX capacity exceeded error might orccur. It also gives instructions on how to increasse the capacity. The only difference to your error is that it does not talk about save size, but about main memory size or stack size.

The principle of increasing the capacity should also work here. Instructions for increasing the save_size for TeXlive can be found in this answer.

  • Thanks for your replay, I have read the manual and I could not find this file (miktex.ini) in the Config folder on my system. – user48386 Aug 24 '14 at 15:25
  • 1
    Unfortunately, I don't use MikTex, so I can only guess. The documentation says to run initexmf --edit-config-file=pdflatex on the command line to open the configuration file. If that works, try to find the line that starts with save_size and increase it to 80000. Otherwise add a new line at the end: save_size=80000. – justibus Aug 24 '14 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.