Skip to content

scdenney/open-science-skills / codex/paper-tex

paper-tex

Verified

Typeset a working paper or journal submission in house-style LaTeX from Markdown, Word, TeX, ODT, RTF, or HTML. Use to convert drafts, build PDFs, or prepare journal-specific spacing, limits, anonymization, disclosures, and citations.

FileKindSize
SKILL.mdskill md13.8 KB
agents/openai.yamlconfig230 B
assets/main.template.texother731 B
assets/preamble.texother3.5 KB
assets/si.template.texother730 B
scripts/format_paper.pyexecutablescript12.7 KB

assets/preamble.tex

View on GitHub
% ============================================================================
% Open Science Skills — house-style preamble for working papers and submissions
% ----------------------------------------------------------------------------
% Font: EB Garamond. Bibliography: author-date (apsr/natbib). Sections numbered,
% subsections unnumbered. Captions carry a title with an italic "Note:" beneath
% (\figcap). Floats placed exactly where written ([H]). Robust to pandoc output.
%
% Journal overrides (edit here, not in the body):
%   - font:    swap \usepackage{ebgaramond} for the required family
%   - bib:     change \bibliographystyle{apsr} to the required .bst
%   - spacing: set in the main/SI file (\singlespacing or \doublespacing), not here
% ============================================================================

\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}                 % house serif; replace if a journal mandates a font

\usepackage{graphicx}
\usepackage{calc}                       % pandoc emits column widths as (\columnwidth ...) * \real{..}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{threeparttable}
\usepackage{float}                      % enables [H] exact float placement
\usepackage{amsmath}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{appendix}
\usepackage{pdflscape}

\usepackage[round]{natbib}
\bibliographystyle{apsr}                % author-date; change per journal
\usepackage[hidelinks]{hyperref}
\usepackage{xr-hyper}                   % \externaldocument{...} cross-refs main <-> SI

% Number sections only; subsection headings are unnumbered.
\setcounter{secnumdepth}{1}

% Captions: bold label, colon separator, justified, no single-line centering.
\captionsetup{labelfont=bf, labelsep=colon, justification=justified, singlelinecheck=false}

% \figcap{title}{note}
%   The caption carries the title; an italic "Note:" line sits beneath it.
%   Use for EVERY figure and table so each exhibit reads on its own.
%   Put the title and all explanation here, never baked inside the image, and
%   state confidence-interval / N / source details in the note only.
\newcommand{\figcap}[2]{\caption[#1]{#1\\[6pt]\textit{Note:} #2}}

% ----------------------------------------------------------------------------
% pandoc compatibility shims (harmless when unused; let converted bodies build)
% ----------------------------------------------------------------------------
\providecommand{\tightlist}{\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\providecommand{\real}[1]{#1}
% \pandocbounded scales an image down to fit the text block (pandoc's own definition;
% pandoc emits the call but not the definition when producing a body fragment).
\makeatletter
\newsavebox\pandoc@box
\providecommand*\pandocbounded[1]{%
  \sbox\pandoc@box{#1}%
  \Gscale@div\@tempa\textheight{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}%
  \Gscale@div\@tempb\linewidth{\wd\pandoc@box}%
  \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi%
  \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}%
  \else\usebox\pandoc@box\fi}
\makeatother

\usepackage{newunicodechar}
\newunicodechar{−}{\ensuremath{-}}      % U+2212 minus
\newunicodechar{–}{--}                  % en dash
\newunicodechar{—}{---}                 % em dash
\newunicodechar{→}{\ensuremath{\rightarrow}}
\newunicodechar{≥}{\ensuremath{\geq}}
\newunicodechar{≤}{\ensuremath{\leq}}

% Footnote breathing room.
\setlength{\skip\footins}{16pt plus 4pt minus 2pt}
\setlength{\footnotesep}{9pt}
add-product-e2e-evalpaperclipai/paperclipAdd or extend a Paperclip full-stack runner E2E workflow, fixture, matcher, or report evidence path for local or Daytona execution.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
add-runner-evalpaperclipai/paperclipAdd or extend a Paperclip Runner protocol evaluation definition, roster, assertion, or report fixture with provenance and narrow validation.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
diagnose-why-work-stoppedpaperclipai/paperclipCompatibility entry point for failed, stalled, looping, or over-recovered Paperclip work. Use fix-failed-paperclip-run for the full diagnosis, regression, repair, real verification, and green-PR workflow; honor an explicitly requested diagnosis-only scope.Stars: 115kUpdated Claude CodeCodexVerifiedInstall
fix-failed-paperclip-runpaperclipai/paperclipDiagnose and fix failed, stuck, slow, or incorrectly blocked Paperclip tasks and runs. Use with a task/run URL or failure report to trace the root cause, prove a regression red then green, check second-order effects, verify the real workflow, and deliver a PR with passing checks.Stars: 115kUpdated Claude CodeCodexVerifiedInstall