From 2c7c1dd29f6cc319a65b71476442fe6abced4de3 Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Thu, 26 Mar 2026 15:34:45 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20cards=20template=20=E2=80=94=20larger?= =?UTF-8?q?=20logo,=20git=20hash=20revision,=20CJK=20labels,=20table=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Larger pals logo (9em), tighter title page spacing to fit all elements - Git hash as clickable revision link (replaces "Revision 2") - CJK font (\accjk) for Chinese/Japanese translation labels in native script - OLPC table: switch from tabularx to p{} columns to prevent right margin bleed - Template generates all title page elements including translations dynamically Co-Authored-By: Claude Opus 4.6 (1M context) --- papers/arxiv-plork/plork-cards.tex | 20 ++++++++++---------- papers/cards-convert.mjs | 23 ++++++++++++++--------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/papers/arxiv-plork/plork-cards.tex b/papers/arxiv-plork/plork-cards.tex index 625b7dcce7..ee70bfb8be 100644 --- a/papers/arxiv-plork/plork-cards.tex +++ b/papers/arxiv-plork/plork-cards.tex @@ -73,21 +73,21 @@ \thispagestyle{empty} \vspace*{\fill} \begin{center} -\includegraphics[height=8em]{pals}\par\vspace{0.2em} -{\acbold\fontsize{20pt}{24pt}\selectfont\color{acdark} PLOrk'ing the Planet}\par -\vspace{0.3em} -{\fontsize{10pt}{12pt}\selectfont\color{acpink} From Ivy League Laptop Orchestra to Kid-Friendly Planetary Organ}\par -\vspace{0.8em} +\includegraphics[height=9em]{pals}\par\vspace{0.1em} +{\acbold\fontsize{18pt}{22pt}\selectfont\color{acdark} PLOrk'ing the Planet}\par +\vspace{0.1em} +{\fontsize{9pt}{11pt}\selectfont\color{acpink} From Ivy League Laptop Orchestra to Kid-Friendly Planetary Organ}\par +\vspace{0.4em} {\normalsize\color{cyan!70!blue}\href{https://prompt.ac/@jeffrey}{\textbf{@jeffrey}}}\par {\small\color{acgray} Aesthetic.Computer}\par {\small\color{acgray} ORCID: \href{https://orcid.org/0009-0007-4460-4913}{0009-0007-4460-4913}}\par -\vspace{0.8em} -\rule{0.6\textwidth}{1pt}\par \vspace{0.4em} +\rule{0.5\textwidth}{0.5pt}\par +\vspace{0.15em} \colorbox{yellow!60}{\small\color{red!80!black}\textbf{\textit{working draft --- not for citation}}}\par -\vspace{0.2em} -{\footnotesize\color{acgray} March 2026 · Revision 2}\par -\vspace{0.3em} +\vspace{0.1em} +{\footnotesize\color{acgray} March 2026 · \href{https://github.com/whistlegraph/aesthetic-computer/commit/4acd6724d}{4acd6724d}}\par +\vspace{0.1em} {\footnotesize\color{acgray}\href{https://papers.aesthetic.computer/plorking-the-planet-26-arxiv-da-cards.pdf}{Dansk} · \href{https://papers.aesthetic.computer/plorking-the-planet-26-arxiv-es-cards.pdf}{Español} · \href{https://papers.aesthetic.computer/plorking-the-planet-26-arxiv-zh-cards.pdf}{{\accjk 中文}} · \href{https://papers.aesthetic.computer/plorking-the-planet-26-arxiv-ja-cards.pdf}{{\accjk 日本語}}}\par \end{center} \vspace*{\fill} diff --git a/papers/cards-convert.mjs b/papers/cards-convert.mjs index 6bbee2ebe5..8d4b52d5e0 100644 --- a/papers/cards-convert.mjs +++ b/papers/cards-convert.mjs @@ -10,6 +10,7 @@ import { readFileSync, writeFileSync, existsSync } from "fs"; import { join, basename, dirname } from "path"; +import { execSync } from "child_process"; const PAPERS_DIR = new URL(".", import.meta.url).pathname; @@ -176,6 +177,10 @@ function generateCardsTeX(dir, info, parsed) { const title = info.title || parsed.pdftitle; const subtitle = parsed.subtitle || ""; + // Git hash for revision stamp + let gitHash = "unknown"; + try { gitHash = execSync("git rev-parse --short HEAD", { encoding: "utf8" }).trim(); } catch (_) {} + // Translation links for title card const cjkLangs = new Set(["zh", "ja", "ko"]); const translationLinks = info.translations @@ -251,20 +256,20 @@ ${extraCmds} \\thispagestyle{empty} \\vspace*{\\fill} \\begin{center} -\\includegraphics[height=8em]{pals}\\par\\vspace{0.2em} -{\\acbold\\fontsize{20pt}{24pt}\\selectfont\\color{acdark} ${title}}\\par -\\vspace{0.3em} -${subtitle ? `{\\fontsize{10pt}{12pt}\\selectfont\\color{acpink} ${subtitle}}\\par\n\\vspace{0.8em}` : "\\vspace{0.5em}"} +\\includegraphics[height=9em]{pals}\\par\\vspace{0.1em} +{\\acbold\\fontsize{18pt}{22pt}\\selectfont\\color{acdark} ${title}}\\par +\\vspace{0.1em} +${subtitle ? `{\\fontsize{9pt}{11pt}\\selectfont\\color{acpink} ${subtitle}}\\par\n\\vspace{0.4em}` : "\\vspace{0.3em}"} {\\normalsize\\color{cyan!70!blue}\\href{https://prompt.ac/@jeffrey}{\\textbf{@jeffrey}}}\\par {\\small\\color{acgray} Aesthetic.Computer}\\par {\\small\\color{acgray} ORCID: \\href{https://orcid.org/0009-0007-4460-4913}{0009-0007-4460-4913}}\\par -\\vspace{0.8em} -\\rule{0.6\\textwidth}{1pt}\\par \\vspace{0.4em} +\\rule{0.5\\textwidth}{0.5pt}\\par +\\vspace{0.15em} \\colorbox{yellow!60}{\\small\\color{red!80!black}\\textbf{\\textit{working draft --- not for citation}}}\\par -\\vspace{0.2em} -{\\footnotesize\\color{acgray} March 2026 · Revision 2}\\par${translationLinks ? ` -\\vspace{0.3em} +\\vspace{0.1em} +{\\footnotesize\\color{acgray} March 2026 · \\href{https://github.com/whistlegraph/aesthetic-computer/commit/${gitHash}}{${gitHash}}}\\par${translationLinks ? ` +\\vspace{0.1em} {\\footnotesize\\color{acgray}${translationLinks}}\\par` : ""} \\end{center} \\vspace*{\\fill} -- 2.51.2