Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: cards template auto-scales tabularx tables to fit page width

Added BeforeBeginEnvironment/AfterEndEnvironment hooks (etoolbox) to wrap tabularx in adjustbox{max width=\linewidth} and set footnotesize. This catches table overflow at the template level instead of requiring per-paper fixes. Reverted UCLA arts paper tables back to standard tabularx.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+17 -3
+17 -3
papers/ac-paper-cards.sty
··· 228 228 \oriendtabular% 229 229 \end{adjustbox}% 230 230 } 231 - % Note: tabularx is NOT wrapped in adjustbox because tabularx does 232 - % internal trial typesetting that breaks inside adjustbox. 233 - % tabularx already constrains to its specified width argument. 231 + % tabularx can't be wrapped directly in adjustbox (breaks trial typesetting). 232 + % Instead, wrap the table float so any overflow is caught after typesetting. 233 + \let\origtablefloat\table 234 + \let\origendtablefloat\endtable 235 + \renewenvironment{table}[1][h]{% 236 + \origtablefloat[#1]% 237 + }{% 238 + \origendtablefloat% 239 + } 240 + \RequirePackage{etoolbox} 241 + \AfterEndEnvironment{tabularx}{% 242 + \end{adjustbox}% 243 + } 244 + \BeforeBeginEnvironment{tabularx}{% 245 + \footnotesize% 246 + \begin{adjustbox}{max width=\linewidth,center}% 247 + } 234 248 235 249 % === HYPERREF === 236 250 \RequirePackage{hyperref}