Skip to content

literalinclude xml: TeX capacity exceeded, sorry [main memory size=3000000]. #3099

@petsuter

Description

@petsuter

A document with just the following fails:

.. literalinclude:: large.xml
    :language: xml
..

where large.xml is about 1000 lines of this:

<a>
                <e f="g" h="i" />
                <e f="g" h="i" />
                <e f="g" h="i" />
                <e f="g" h="i" />
                ... same line repeated ~1000 times ...
</a>

(for some reason the 16 spaces indentation are important to trigger this)

The error is:

...
("C:\Program Files\MiKTeX 2.9\tex\latex\psnfss\t1pcr.fd")
Underfull \vbox (badness 10000) detected at line 1156

Underfull \vbox (badness 10000) detected at line 1156
! TeX capacity exceeded, sorry [main memory size=3000000].
\spx@VerbatimFBox ...ip \fboxsep \copy \@tempboxa
                                                  \vskip \fboxsep }\kern -\w...
l.1156 \end{Verbatim}

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on SNSNetworkProtocol.log.

Build finished; the PDF files are in _build/latex.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions