split-proposal

Split an NSF proposal into submission documents for summary, project description, and references. Keeps bookmarks (table of contents in your PDF viewer) in the description.
Running
Add \pdfbookmark commands to demarcate your project description section to make this reliable. You'll need:
\pdfbookmark[0]{Project Description}{Project Description} before the project description
\pdfbookmark[0]{References cited}{References cited} before references
- (optional)
\pdfbookmark[0]{Data management plan}{Data management plan}
- (optional)
\pdfbookmark[0]{Mentoring plan}{Mentoring plan}
See sample/main.tex for a complete working example.
If you don't have bookmarks, it is assumed your summary is 1 page, description is 15 pages, and the rest of the document is references.
To split the combined proposal file run:
go run github.com/tchajed/split-proposal@latest -file main.pdf
Web frontend
There is a web interface in web/ that uses this code via WebAssembly. See the README in that directory.
Why?
Because automation. Preserving bookmarks while splitting is surprisingly difficult without using a PDF library.