Forest - TeX の容量を超えました。申し訳ありません

Forest - TeX の容量を超えました。申し訳ありません

私はラテックスに関することに関しては初心者なので、不明瞭だったり鈍感だったりしたらごめんなさい。

私は最新の Trisquel オペレーティング システムを使用しています。最新の TexLive アップデートの Forest で大きなツリーを作成しようとしているのですが、TeX 容量超過のエラーが繰り返し発生します。ツリーを小さな部分に分割すると、必要なツリーが作成されますが、これを 1 つの大きなツリーにコンパイルしたいと考えています。Lualatex を使用して main_memory を増やしてみましたが、うまくいきませんでした。誰かが解決策を持っているか、元の Tex ファイルに問題があることに気付いているのではないかと期待しています。ご助力いただければ幸いです。

エラーは次のとおりです:

! TeX の容量を超えました。申し訳ありません [保存サイズ = 80000]。 \pgfmath@stack@push ...def \pgfmath@stack@top {#2} \expandafter \expandafter ... l.908 \end{forest}
! ==> 致命的なエラーが発生しました。出力 PDF ファイルは生成されませんでした。

ファイルは次のとおりです:

\documentclass{standalone}
\usepackage[edges]{forest}

\begin{document}

\begin{forest}
  for tree={grow'=0,anchor=base west},
  forked edges,
  [Amerind
[Chibchan-Paezan
  [Chibchan
    [Tarascan]
    [Cuitlatec]
    [Xinca]
    [Lenca]
    [Paya]
    [Yanomam
      [Sanuma]
      [Yanomami]
      [Yanomam\"{o} (Yanomamo)]
      [Ninam]
    ]
    [Nuclear Chibchan
      [Motilon]
      [Cuna]
      [Misumalpan
        [Matagalpa]
        [Miskito]
        [Sumo]
      ]
      [Rama
        [Rama]
        [Guatuso]
        [Guetar (Huetar)]
      ]  
      [Talamanca
        [Cabecar]
        [Bribri]
        [Teribe]
        [Borunca]
      ]
      [Guaymi
        [Guaymi (Ngobe)]
        [Buglere]
      ]
      [Antioquia
        [Katio] 
        [Nutabe]
        [Anserma]
        [Arma]
      ]
      [Aruak
        [Atanque]
        [Guamaca]
        [Ica (Ijka)]
        [Cagaba (Kogi)]
        [Chimila]
        [Malayo (Arsario)]
      ]
      [Chibchan Proper
        [Chibcha] 
        [Sinsiga] 
        [Duit] 
        [Tunebo
         [Eastern Tunebo
          [Central Tunebo]
          [Western Tunebo]
  ] ] ] ] ]
  [Paezan
    [Timucua]
    [Warao]
    [Kunza (Atacameno)]
    [Betoi]
    [Chimu]
    [Itonama]
    [Haurpe
      [Allentiac]
      [Millcayac]
    ]
    [Jirajaran
      [Ayoman]
      [Gayon]
      [Jirajara]
    ]
    [Mura
      [Mura]
      [Matanawi]
    ]
    [Nuclear Paezan
      [Andaqui]
      [Choco
        [Embera (Embera)] 
        [Saija] 
        [Catio] 
        [Caramanta]
        [Chami] 
        [Tado] 
        [Baudo]
        [Waunana (Wounan)]
        [Runa]
      ]
      [Inter-Andine
        [Coconucan
          [Guambiano]
          [Coconuco]
          [Totono]
        ]
        [Paez
          [Paez]
        ]
        [Popayan
          [Popayan]
      ] ]
      [Barbacoan
        [Pasto
          [Cuaiquer]
          [Barbacoas]
        ]
        [Cayapa-Colorado
          [Cayapa (Cayapa)]
          [Colorado]
] ] ] ] ]
[Ge-Pano-Carib
  [Macro-Carib
    [Andoke]
    [Cucura]
    [Peba-Yaguan
      [Peba]
      [Yameo]
      [Yagua]
    ]
    [Bora-Witoto
      [Baran
        [Bora]
        [Faai]
        [Imihita]
        [Muinane]
      ]
      [Witotoan
        [Fitita]
        [Ocaina]
        [Nonuya]
        [Orejone]
        [Coeruna]
        [Witoto Proper
          [Meneca]
          [Murui]
    ] ] ]
    [Carib
      [Northern
        [Costal
          [Venezuelan
            [Chayma] 
            [Cumanagoto]
            [Yao] 
            [Tamanaco]
          ]
          [Sierra De Perija
            [Japreria]
            [Yukpa]
          ]
          [Opone-Carare
            [Opone]
            [Carare]
        ] ]
        [Western Guiana
          [Mapoyo] 
          [Yabarana]
          [Panare] 
          [Quaca] 
          [Pareca]
        ]
        [Galibi
          [Galibi (Kal'ina)]
        ]
        [East-West Guiana
          [Group 1
            [Wayana]
            [Apalai (Apalai)]
            [Roucouyene]
            [Aracaju]
            [Trio]
          ]
          [Group 2
            [Wama]
            [Urukuyana]
            [Triometesen]
            [Kumayena]
          ]
          [Group 3
            [Pianakoto]
            [Saluma] 
            [Paushi] 
            [Cashuena]
            [Chilhena]
            [Wai Wai (Wai Wai)]
          ]
          [Group 4
            [Paravilhana]
            [Wabui]
            [Sapara]
            [Yauapery]
            [Waimiri]
            [Crianara]
            [Paushiana]
            [Bonari]
          ]
          [Group 5
            [Makushi (Macushi)]
            [Pemon] 
            [Patamona]
            [Akawaio]
            [Arinagoto]
        ] ]
        [Northern Brazil
          [Group 1
            [Palmella]
            [Pimenteira]
          ]
          [Group 2
            [Yaruma]
            [Chic\^{a}o]
          ]
          [Group 3
            [Pariri]
            [Apiaka]
            [Arara (Arara)]
            [Yuma]
      ] ] ]
      [Southern
        [Southeastern Columbia
          [Hianacoto] 
          [Guaque] 
          [Carijona]
        ]
        [Xingu Basin
          [Bakairi] 
          [Nanukwa]
        ]
        [Southern Guiana
          [Ye'Cuana (Yekuana?)]
          [Wayumara] 
          [Parukoto] 
          [Hishkaryana]
          [Kashuyana]
  ] ] ] ]
  [Ge-Pano
    [Macro-Panoan
      [Charruan
        [Charrua]
        [Chana] 
        [G\"{u}enoa]
      ]
      [Lulu-Vilela
        [Lule] 
        [Vilela]
      ]
      [Mascoian
        [Guana]
        [Northern Lengua] 
        [Southern Lengua] 
        [Emok]
      ] 
      [Moseten
        [Chimane (Chimane; Moseten)]
      ] 
      [Mataco-Guaicuru
        [Guaicuruan
          [Abipon] 
          [Kadiweu]
          [Guaicuru]
          [Guachi] 
          [Mocovi] 
          [Toba (Toba)]
          [Pilaga (Pilaga)]
        ]
        [Mataco
          [Chulupi]
          [Chorote]
          [Nocten (Wichi?)] 
          [Vejoz] 
          [Maca]
      ] ]
      [Pano-Tacana
        [Panoan
          [Southern
            [Chacobo]
            [Pacahuara]
            [Caripuna]
            [Sinabo] 
            [Surina]
          ]
          [South-Central
            [Amanuaca] 
            [Parquenahua]
            [Yaminahua-Sharanahua
              [Yaminahua] 
              [Poyanawa] 
              [Shipinawa]
              [Tushinawa]
              [Sharanahua]
          ] ]
          [South-Eastern
            [Cashinahua]
            [Morunahua] 
            [Catuquina] 
            [Shahuanahua]
            [Camanahua]
          ]
          [Western
            [Sashibo]
          ]
          [North-Central
            [Capanahua] 
            [Shipibo (Shipibo)] 
            [Isconahua] 
            [Remo] 
            [Marubo]
            [Capuibo]
            [Sensi] 
            [Niarawa]
            [Pichobo]
            [Arawa] 
            [Atsahuaca]
          ]
          [Northern
            [Matses]
            [Mayubo]
            [R\"{e}moybo]
            [Pisabo]
          ]
          [Eastern
            [Kasharari]
        ] ]
        [Tacanan
          [Yamaluba]
          [Arasa]
          [Guariza] 
          [Chirigua
            [Maropa]
            [Chumana]
            [Sapiboca]
          ]
          [Tiatinagua-Tacana
            [Tiatinagua
              [Es\'{e}ejja]
              [Huarayo]
            ]
            [Araona-Tacana
              [Araona
                [Capachena]
                [Mabenaro]
                [Araona]
              ]
              [Cavine\`{n}a-Tacana
                [Cavine\`{n}a
                  [Cavine\`{n}a]
                ]
                [Tacana Proper
                  [Tacana] 
                  [Reyesano]
                  [Toromono]
    ] ] ] ] ] ] ]
    [Macro-Ge
      [Rikbaktsa]
      [Fulnio] 
      [Guato] 
      [Opaye] 
      [Oti] 
      [Caraja]
      [Bororo
        [Bororo Proper
          [Bororo] 
          [Umotina]
          [Aravira]
        ]
        [Otuke
          [Otuke]
          [Covare]
          [Conaveca]
          [Curucane]
          [Tapii]
      ] ]
      [Botocudo
        [Botocudo
      ] ]
      [Chiquito
        [Chiquito]
      ]
      [Kamakan
        [Kutasho]
        [Masacara]
        [Menien] 
        [Mongoyo]
        [Kamakan]
      ]
      [Puri
        [Puri]
        [Coroado]
        [Coropo]
      ]
      [Yabuti
        [Aricapu]
        [Yabuti]
      ]
      [Mashakali
        [Mashakali]
      ]
      [Ge-Kaingang
        [Kaingang
          [Dorin]
          [Northern
            [Kaingang (Kaingang)]
            [Xokleng] 
            [Chiqui]
          ]
          [Southern
            [Amno] 
            [Ingain]
            [Gualachi]
        ] ]
        [Ge
          [Central
            [Acroa
              [Acroa]
              [Aricobe]
              [Guegue]
            ]
            [Aaia?
              [Chavante (Xauante)]
              [Cherente]
          ] ]
          [Northwest
            [Apinaye]
            [Suya]
            [Kreen-Akarore]
            [Cayapo (Gorotire; Kuben Kran Kegn; Mekranoti; Xikrin)]
            [Canela]
] ] ] ] ] ]
[Andean
  [Northern
    [Culli]
    [Sec] 
    [Leco]
    [Catacao
      [Catacao]
      [Colan]
    ]
    [Cholona
      [Cholona]
      [Hibito]
  ] ]
  [Urarina-Waorani
    [Urarina] 
    [Waorani (Waorani)]
    [Omurano]
  ] 
  [Cahuapanan-Zaparoan
    [Cahuapanan
      [Chayahuita (Snawi)]
      [Jebero] ] 
    [Zaparoan
      [Zaparo]
      [Andoa (Andoas)] 
      [Arabela] 
      [Cahuarano]
      [Iquito]
  ] ]
  [Quechuan
    [Quechua A (Huiliche; Arequipa; Cajamarca; Chankas; Chopcca; Karanki; Quechua Bolivia; Quechua Lamistas; Quechua Peru; Quecha Pucachupa; Tayacaja)]
    [Quechua B (Huancas; Kichwa; Yungay)]
  ]
  [Aymaran
    [Aymara (Aymara Bolivia; Aymara Chile; Aymara Peru; Aymara Titicaca)]
    [Jaqaru (Tupe)]
  ]
  [Southern
    [Puelche
      [Puelche (Penuenche)]
    ]
    [Mapudungu
      [Mapudungu (Mapuche)]
      [Huilliche]
    ]
    [Qawasqar-Yamana
      [Qawasqar]
      [Yamana (Yaghan)]
    ]
    [Patagonian
      [Tenuelche? (Tenuenche)] 
      [Teushen] 
      [Selknam] 
      [Haush]
] ] ]
[Equiatorial-Tucanoan
  [Ma\'{c}o-Tucanoan
    [Auishiri]
    [Canichana]
    [Capishana]
    [Gamella]
    [Iranshe]
    [Koaia] 
    [Movima (Movima)]
    [Muniche]
    [Nate] 
    [Pankararu]
    [Shukuru]
    [Uman]
    [Catuquinan
      [Northern
        [Catawishi]
      ]
      [Southern
        [Bendiapa]
        [Burua] 
        [Canamari]
        [Catuquina]
        [Parawa] 
        [Taware] 
        [Tucundiapa]
    ] ]
    [Huari
      [Huari]
      [Masaca]
    ]
    [Arutani-Sape
      [Arutani] 
      [Sape] 
      [Macu]
    ]
    [Nambikuaran
      [Northern Nambikuara]
      [Southern Nambikuara]
      [Sabanes] 
      [Sarare]
    ]
    [Puinave-Maku
      [Puinave] 
      [Maku
        [Hupda]
        [Guariba]
        [Nad\"{e}b] 
        [Yahup] 
        [Cacua]
    ] ]
    [Ticuna-Yuri
      [Ticuna (Ticuna)]
      [Yuri]
    ] 
    [Tucanoan
      [Miriti]
      [Eastern
        [Northern
          [Tucano]
          [Guanano]
          [Piratapuyo]
        ]
        [Central
          [Bara
            [Tuyuca]
          ]
          [Desano
            [Desano]
            [Siriano]
          ]
          [Tatuyo
            [Tatuyo]
            [Carapana]
        ] ]
        [Southern
          [Macuna
            [Macuna]
          ]
          [Barasano
            [Northern Barasona]
            [Southern Barasona]
      ] ] ]
      [Central
        [Cubeo]
      ]
      [Western
        [Tanimuca]
        [Northern
          [Coreguaje]
          [Tetete] 
          [Tama] 
          [Siona-Secoya
            [Siona] 
            [Secoya]
            [Macaguaje]
  ] ] ] ] ]
  [Equatorial
    [Cayuvava]
    [Camsa]
    [Taruma] 
    [Trumai] 
    [Tusha] 
    [Yuracare (Yuracare)] 
    [Piaroa-Saliba
      [Piaroa] 
      [Saliba]
    ]
    [Timote
      [Cuica]
      [Timote]
    ]
    [Jivaroan
      [Cofan]
      [Esmeralda]
      [Yaruro] 
      [Candoshi
        [Candoshi]
        [Taushiro]
      ]
      [Jivaro Proper (Jivaro)
        [Achuar (Achuar)]
        [Shuar]
        [Huambisa (Huambisa)]
        [Aguaruna (Awajun)]
    ] ]
    [Zamucoan
      [Ayoreo (Ayoreo)]
      [Chamacoco]
    ] 
    [Kariri-Tua
      [Kariri
        [Ozubucua]
        [Kamaru] 
        [Kiriri] 
        [Sapuya]
      ]
      [Tupi
        [Purubora]
        [Yuqui] 
        [Arikem
          [Arikem]
          [Kabishiana]
          [Karitiana]
        ]
        [Monde
          [Arua]
          [Gavi\~{a}o (Gavi\~{a}o; Zoro)] 
          [Surui (Surui)] 
          [Monde (Cinta Larga)] 
          [Dig\"{u}t]
        ] 
        [Ramarama
          [Arara]
          [Ramarama]
          [Uruku] 
          [Urumi]
        ]
        [Yuruna
          [Yuruna]
          [Manitsawa]
          [Shipaya]
        ]
        [Tupari
          [Guarategaya]
          [Kepkiriwat]
          [Makurapi] 
          [Tupari] 
          [Wayoro]
        ]
        [Tupi-Guarani
          [Guayaki (Ache)]
          [Juma] 
          [Group 1
            [Apiaca]
            [Aweti]
            [Aua] 
            [Kamayura]
            [Kayabi]
            [Emerillion (Emerillion)]
            [Karipura] 
            [Oyampi (Wayampi)]
            [Pauserna] 
            [Sheta] 
            [Takunape]
            [Tapirape]
            [Kawahiba
              [Paranawat]
              [Tenharim]
              [Takunape]
              [Werafed]
            ]
            [Tenetehana
              [Amanaye]
              [Anambe] 
              [Tembe] 
              [Guajajana]
              [Guaja] 
              [Asurini]
              [Arawete]
              [Paraka\~{n}a (Parakana)]
              [Urubu]
            ]
            [Tupi
              [Guarani (Guarani)]
              [Kaiwa] 
              [Tapiete]
              [Guarayu]
              [Nhengatu]
              [Potiguara]
          ] ]
          [Group 2
            [Cocama]
            [Omagua]
          ]
          [Group 3
            [Mawe]
            [Munduruku (Munduruku)] 
            [Siriono] 
            [Kuruaya]
    ] ] ] ]
    [Macro-Arawakan
      [Katembri]
      [Oromaco] 
      [Tiniguan
        [Tinigua]
        [Pamigua]
      ]
      [Guahiban
        [Churuya]
        [Guahibo (Guahibo)]
        [Cuiba] 
        [Guayabero]
        [Macaguan]
        [Playero]
      ]
      [Arawakan
        [Guamo]
        [Taino]
        [Chamicuro]
        [Arawan
          [Arawa]
          [Culina]
          [Pama] 
          [Paumari]
          [Sewacu]
          [Sipo] 
          [Deni] 
          [Yamamadi (Jamamadi)]
          [Yuberi] 
          [Banawa]
        ]
        [Chipayan
          [Chipaya (Uros Chipaya)]
          [Uru (Los Uros; Uros)] 
          [Cauahuaya] 
          [Caranga] ] 
        [Chapacuran
          [Guapore
            [Chapacura
              [Chapacura]
              [Itene] 
              [Quitemoca]
            ]
            [Wanyam
              [Cabishi]
              [Cujuna]
              [Cumana]
              [Matawa]
              [Wanyam]
              [Urunamacan]
          ] ]
          [Madeina
            [Pakaasnovos]
            [Tora] 
            [Urupa]
          ]
          [Ocorono
            [Herisobocono]
            [Ocorono] 
            [San Ignacio]
        ] ]
        [Maipuran
          [Shebayo]
          [Baniva-Yavitero
            [Baniva] 
            [Yavitero] ]
          [Paressi-Saraveca
            [Paressi] 
            [Saraveca]
          ]
          [Pro-Andine
            [Amuesha (Yanesha?)]
            [Amazonian
              [Marawa]
              [Waraiou]
            ]
            [Cutinana
              [Cushiehineri]
              [Cuniba] 
              [Cutinana]
            ]
            [Jurua-Purus
              [Casharari]
              [Catiana]
              [Inapari]
              [Apurina]
              [Manteneri]
              [Wainamari]
            ]
            [Montana
              [Piro (Yine)]
              [Pucapacuri] 
              [Puncuri] 
              [Sirimeri]
              [Campa
                [Asnaninca]
                [Asneninca]
                [Pajonal] 
                [Caquinte]
                [Machiguenga (Matsguenga)]
                [Nomatsiguenga]
              ] 
              [Harakmbet
                [Amarakaeri]
                [Huachipaeri]
          ] ] ]
          [Wapishanan
            [Wapishana]
          ]
          [Southern
            [Parana
              [Chane]
              [Guana]
              [Terena]
            ]
            [Bolivian
              [Baure]
              [Cashiniti]
              [Chiquito] 
              [Cozarini] 
              [Ignaciano (Mojeno Ignaciano)]
              [Trinitario]
          ] ]
          [Eastern
            [Palicur (Palikur)]
            [Xingu
              [Custenau]
              [Yawalapiti]
              [Mehinaku] 
              [Waura]
          ] ]
          [Northern
            [Island Carib]
            [Arua] 
            [Jaoi] 
            [Regigaro]
            [Caquetion
              [Achagua]
              [Caquetio]
            ]
            [Guayupean
              [Sae]
            ]
            [Orinoco
              [Guarequena] 
              [Bare] 
              [Guinao]
              [Mawacua]
              [Manipore]
            ]
            [Piapocan
              [Piapoco]
            ]
            [TA-Arawakan
              [Guajiro (Wayuu)]
              [Guanebucan] 
              [Arawak] 
              [Paraujano]
            ]
            [Rio Negro
              [Izaneni
                [Baniwa]
                [Curripaco]
                [Pacu] 
                [Cuati]
                [Mapanai]
                [Moriwene]
                [Izaneni]
              ]
              [Mantiparana
                [Cabiyari]
                [Matapi] 
                [Yucuna]
              ]
              [Wirina
                [Wirina]
                [Yabaana]
              ]
              [Tarianan
                [Itayaine]
                [Tariano]
              ]
              [Yapura A
                [Mariate]
                [Wainuma]
              ]
              [Yapura B
                [Cawishana]
                [Yumane] 
                [Passe]
                [Manao]
] ] ] ] ] ] ] ] ]
\end{forest}
\end{document}

答え1

この例はTexlive 2018でエラーなく実行され、ログは終了します

Here is how much of TeX's memory you used:
 100796 strings out of 492580
 2042704 string characters out of 6129170
 1958899 words of memory out of 5000000
 104427 multiletter control sequences out of 15000+600000
 532338 words of font info for 24 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 215i,9n,233p,1577b,53359s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/local/texlive/2018/texmf-dist/fonts/type1/public/amsfonts/
cm/cmr10.pfb>
Output written on bb389.pdf (1 page, 63526 bytes).
PDF statistics:
 15 PDF objects out of 1000 (max. 8388607)
 10 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 13 words of extra memory for PDF output out of 10000 (max. 10000000)

特に、保存スタックのサイズは依然として 80000 ですが、ドキュメントは 53359 秒でその範囲内に留まっていることに注意してください。したがって、保存スタックの使用効率が低いマクロの古いバージョンを使用している可能性が高くなります。\listfilesログからパッケージのバージョンを追加して表示できます。

ここに画像の説明を入力してください

答え2

非常に古い TeX ディストリビューションを実行しているようです。問題を再現できるのは TeX Live 2015 以前だけです。

一方、私が走れば

save_size=1000000 /usr/local/texlive/2015/bin/x86_64-darwin/lualatex bigforest

私のマシンにインストールされている 2015 ディストリビューションから使用するにはlualatex、コードを正しくコンパイルする必要があります。これは、luatexが動的メモリ割り当てを行うため、 とは対照的に、大量のセーブ スタック メモリに対応できるためですpdftex

試す

save_size=1000000 lualatex bigforest

しかし、TeXディストリビューションをアップグレードしたほうがずっと良いでしょう。https://www.tug.org/texlive/手順についてはこちらをご覧ください。

関連情報