windows:
D:\MiKTeX\miktex\config 修改 texmfapp.ini
MAC:
/usr/local/texlive/2023/texmf-dist/web2c 修改 texmf.cnf
sudo texhash
修改内容:
;; Extra low memory for boxes, glue, breakpoints, etc.
extra_mem_bot = 10000000
;; Extra high memory for chars, tokens, etc.
extra_mem_top = 10000000
;; Words of inimemory available.
main_memory = 10000000