Given a table number:
- Locate the do-file that produces it in the project's script directory and run it with the
Stata console binary — on macOS that is the lowercase
stata-se/stata-mpinside the app bundle, e.g./Applications/Stata/StataSE.app/Contents/MacOS/stata-se -b do <file>. Check which edition is actually installed rather than assuming MP. Gotcha: Mac batch Stata chokes on spaces in the-b dopath. If any project directory has a space in its name, run through a wrapper do-file placed in a space-free directory whose only content isdo "<quoted absolute path>". - Check the .log for r(###) errors; stop and report if any.
- Confirm firm-level clustering is used unless the do-file says otherwise.
- Regenerate the .tex fragment and recompile the document that
\inputs it. Don't assume amain.tex— a project may hold several standalone root documents (the paper, a results appendix, a referee response), so compile the one that actually includes the fragment. - Report any overfull hbox for the affected page, with its pt measurement, to confirm fit.
If latexmk/pdflatex aren't installed,
tectoniccompiles the same documents; either way send output to a temp directory so stray PDFs don't land in an Overleaf-synced folder. - Only then commit and sync to Overleaf, with a message naming the table.