返回 Skill 列表
extension
分类: 开发与工程无需 API Key

find-overfull

查找LaTeX演示文稿中溢出的盒子(即内容不适合的情况)。在检查布局问题或内容溢出时使用。

person作者: jakexiaohubgithub

Find Overfull Boxes Tool

Use tools/find_overfull.py to find overfull hbox/vbox warnings in LaTeX log files.

Usage

Basic usage (parses .log file for a .tex file):

python tools/find_overfull.py $ARGUMENTS[0]

Filter by box type:

python tools/find_overfull.py <file>.tex --vbox-only  # vertical overflow (too tall)
python tools/find_overfull.py <file>.tex --hbox-only  # horizontal overflow (too wide)

Filter by severity:

python tools/find_overfull.py <file>.tex --min-badness 10  # only boxes > 10pt overfull

Output formats:

python tools/find_overfull.py <file>.tex --pages-only  # just page numbers, one per line
python tools/find_overfull.py <file>.tex --json        # JSON format

Output

The tool reports:

  • Page number where overflow occurs
  • Type (hbox = too wide, vbox = too tall)
  • How much it overflows (in pt)
  • Source line number in .tex file
  • Context (problematic content)

Notes

  • Requires the .log file to exist (run pdflatex first)
  • Looks in build/ directory for log files by default