You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Scribble生成PDF时出现run-pdflatex错误退出码问题求助

Troubleshooting Scribble PDF Generation Error with pdflatex Exit Code

Hey there! Let's break down what's happening with your Scribble PDF generation issue. First, a key observation from your log: the PDF file was actually successfully generated (you can see Output written on documentation.pdf (1 page, 12585 bytes) in the TeX output). All memory usage metrics are well within their limits too—so this error about pdflatex exiting with an error code might be a false positive from Scribble's wrapper script, not a real compilation failure.

Here are some steps to fix or work around this:

  • First, check the generated PDF: Open documentation.pdf and verify if the content (title, author) is correctly rendered. If it looks fine, this might just be a minor issue with how Scribble detects pdflatex's exit status, and you can safely use the generated file.
  • Update Scribble and Racket: Outdated versions of Scribble might have bugs in how they handle pdflatex exit codes. Run this command in your terminal to update the Scribble package:
    raco pkg update scribble-lib
    
    You can also update Racket itself to the latest stable version to ensure full compatibility with your TeX Live 2022 setup.
  • Manually compile the generated .tex file: Scribble creates a temporary .tex file before calling pdflatex. Locate this file (it's usually in the same directory as your .scrbl file, or in a temporary folder) and run pdflatex manually:
    pdflatex your-document.tex
    
    This will show you the full, unfiltered TeX output—look for any hidden warnings or errors that Scribble might be misinterpreting as fatal.
  • Add more content to your test document: Sometimes extremely minimal documents can trigger edge cases in TeX or Scribble. Try modifying your test code to include some body text:
    #lang scribble/base
    @title{Discourse}
    @author{Racket}
    
    This is a simple test paragraph to give the document more structure.
    
    Recompile and see if the error persists.

内容的提问来源于stack exchange,提问作者jordy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.28 22:07:47