官方徽章与 GitHub README 指南
GitHub Markdown 会移除 <form> 标签,因此仓库 README 无法直接向 /open 发起 POST 表单。对于包含 .cls、.bst、插图或字体的完整论文、毕设、简历和幻灯片模板,推荐先将模板发布到 JointTex 模板库,再在 GitHub README 中放置官方 Open in JointTex 徽章,直接指向 https://jointtex.com/templates/<template-id>。
读者点开后无需登录即可预览渲染效果和源码文件,满意后再一键登录复制为自己的私有项目。
官方托管 SVG 徽章
Section titled “官方托管 SVG 徽章”所有徽章均托管在 https://developers.jointtex.com/badges/,已启用 Access-Control-Allow-Origin: * 与全球边缘缓存。
Markdown(GitHub README)
Section titled “Markdown(GitHub README)”[](https://jointtex.com/templates/<template-id>)如果需要与 CI、License、Release 等 shields 徽章并排展示,请使用 20px 紧凑型徽章:
[](https://jointtex.com/templates/<template-id>)HTML(官网与文档站)
Section titled “HTML(官网与文档站)”<a href="https://jointtex.com/templates/<template-id>" target="_blank" rel="noopener noreferrer"> <img src="https://developers.jointtex.com/badges/open-in-jointtex.svg" alt="Open in JointTex" /></a>自适应 GitHub 浅色 / 深色主题
Section titled “自适应 GitHub 浅色 / 深色主题”利用 GitHub Markdown 支持的 <picture> 标签,让徽章自动跟随读者的 GitHub 外观切换:
<a href="https://jointtex.com/templates/<template-id>"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://developers.jointtex.com/badges/open-in-jointtex-dark.svg" /> <source media="(prefers-color-scheme: light)" srcset="https://developers.jointtex.com/badges/open-in-jointtex-light.svg" /> <img alt="Open in JointTex" src="https://developers.jointtex.com/badges/open-in-jointtex.svg" /> </picture></a>想可视化拼接模板链接并复制代码?前往按钮与徽章生成器切换到模板库徽章标签页。
