# ! No room for a new \count . with showidx package

I'm getting an error when I try to \usepackage{showidx}:

! No room for a new \count .
\ch@ck ...\else \errmessage {No room for a new #3}
\fi
l.41 \newinsert\indexbox


The line number is from /usr/share/texmf-texlive/tex/latex/base/showidx.sty. This is a plain debian lenny install, with texlive 2007 :(

A minimal working example is:

\documentclass[11pt,a4paper,twoside,openright]{book}

\usepackage[natbib=true,style=authoryear,backend=bibtex,doi=false,isbn=false,url=false]{biblatex}

\usepackage[backgroundcolor=yellow,textsize=scriptsize,textwidth=3.5cm]{todonotes}

\usepackage[acronym]{glossaries}

\usepackage{hyperref}

\usepackage{makeidx}
\usepackage{showidx}
\makeindex

\begin{document}

Some text here \index{Blah}.

\printindex

\end{document}


If I remove any of the other packages, the error goes away. Any idea what's causing this, and how I can get around it?

-
Note: I see tex.stackexchange.com/questions/38607/no-room-for-a-new-dimen, but I have tried adding \usepackage{etex}, and it doesn't fix the problem. –  naught101 Aug 1 '12 at 2:36
Use package etex and \reserveinserts, it is expained in the answer of no-room-for-a-new-dimen. –  Heiko Oberdiek Aug 1 '12 at 3:02
@HeikoOberdiek: if I do that, I get ! Undefined control sequence. l.3 \item \glossaryentry {AOGCM?\glossaryentryfield{AOGCM}{\glsnamefont{AOG..., which certainly wasn't happening before. –  naught101 Aug 1 '12 at 5:04
@naught101 This all works fine for me if I use the etex package and reserve 32 inserts. Try deleting any .aux file you have and running LaTeX. –  Joseph Wright Aug 1 '12 at 7:15
2. add \usepackage{etex} and \reserveinserts
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7468703389167786, "perplexity": 9184.87142442481}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-15/segments/1398223210034.18/warc/CC-MAIN-20140423032010-00445-ip-10-147-4-33.ec2.internal.warc.gz"}