Repository navigation
Releases: Fr0zenWatter/codex-latex-editor
Release list
v0.3.5 — Paper references and granular proofreading
Version 0.3.5 includes the 2026-10-14 paper-reference and proofreading update.
2026-10-14 update / 补充更新:
- Enable the read-only
cite_textool with the floating conversation’s ” toggle. The toggle remains highlighted while enabled; discussion of paper passages encourages verified links with theorem names or sentence text, including inline math. Links select source and navigate to PDF, with project/source/version guards. - Split AI suggestions and external reviews into at most three short paragraphs per block; paragraphs over 400 source characters stand alone. Preserve complete TeX structures and independent Keep / Undo.
- Add Accept all as a floating capsule at the source pane’s upper-left corner. Accept the current file’s generated AI suggestions and external reviews, preserving unsent comments and other files’ pending changes. Validate stale ranges/baselines and retain unaccepted suggestions on failure.
- Remove the redundant follow-up/memory reminder after ordinary chat replies.
新增论文引用定位工具、分段校对及源码栏左上角“全部接受”;清理冗余聊天状态提示。版本号保持 0.3.5。
Supplemental validation / 补充验证:12 targeted checks passed on Windows for quotations, tool gating, chat, paragraph reviews, bulk acceptance, real TeX/PDF navigation and preview, UI, settings, Markdown and standalone plugin packaging. Browser behavior was also checked using synthetic test documents. macOS/Linux hardware was not retested.
- Replace the project chat sidebar with a movable floating conversation, including compact and expanded views, pinning, a persistent temporary chat bubble enabled by default, width/height controls, Ctrl+Q toggling and Ctrl+wheel text sizing. Preserve an explicitly saved off preference.
- Allow project questions without a source selection; force these replies to leave the source unchanged. Keep selected-text edits and per-change Keep / Undo.
- Render floating chat, saved chat history and annotation replies with literal macros from the paper, using the existing bounded macro parser. Main-file drafts supply their current definitions; included files use the main document. Cache definitions by source and isolate each reply's macro dictionary.
- Export individual saved AI replies to a localized Markdown notes file in the project directory, preserving formatting and checking the project/message identity. Repeated exports of the same reply are deduplicated.
- Add a TEMP icon for sending only the current annotation directly, retaining other queued annotations, saved writing styles and the existing review flow.
- Add original, black, gray, straw and green PDF reading backgrounds, saved across documents without modifying the PDF or its download.
- Open a single dropped
.tex,.mdor.markdownfile through the existing file-switch flow when the browser supplies its original path. When the browser hides it, retain the current file and direct the user to the file menu.
新增浮动项目对话及无选区问答、单条 AI 回复的 Markdown 记录、当前批注直接发送、PDF 阅读底色和文件拖入打开。原生插件保持 Codex 后端;DeepSeek 保留独立版本。
Validation / 验证:14 targeted Python/JavaScript checks passed on Windows, covering project chat/export, history, preferences, editor/compile, UI, Markdown, proofreading, inline completion and standalone plugin packaging. AI calls and browser interactions use test doubles; no real model request or main-chat message was sent. The bundled SVG was inspected for content and external references. macOS/Linux hardware and live browser drag-and-drop have not been tested.
Additional macro-rendering fix / 宏渲染补充修复:6 targeted checks passed for Markdown/KaTeX, paper macro parsing, floating chat/history, main/child-file context, local editor compilation and plugin packaging. The regression reproduces an unknown paper macro before the fix and verifies inline/display math, parameters, operators, code isolation, changed definitions and no cross-document leakage. Only literal declarations supported by the existing parser and KaTeX are imported; TeX packages, conditional definitions and optional-default macros still require the PDF compiler.
2026-10-15: Toolbar layout fix / 顶部栏修复
- Keep long status messages on one line with ellipsis so compilation errors no longer expand the toolbar. Full errors remain in the compilation log.
- 修复报错时顶部栏被撑高的问题;长提示单行省略,完整报错仍可在日志中查看。
UI checks and 12 responsive browser layout scenarios passed. Version remains 0.3.5.
v0.3.4 — Inline completion and editor fixes
- Add optional AI inline completion with independent model and reasoning settings. Suggestions stay outside the source until accepted with Tab; Esc dismisses them. Use bounded cursor context, read-only ephemeral calls, cancellation and completed-turn validation.
- Compile after a full three-second typing pause. Preserve the current file, cursor and scroll position on errors; pause automatic compilation until a manual compile or save shortcut, and navigate to error lines only when requested.
- Complete common LaTeX commands with required argument braces and an insertion cursor. Add a configurable source-to-PDF shortcut, defaulting to Ctrl+E across normal, Vim and Emacs modes.
- Render project chat and annotation replies as sanitized Markdown with KaTeX formulas, and allow resizing the project chat panel.
- Coalesce PDF box dragging by animation frame. Improve numeric list selection and use compiled positions as an explicitly approximate fallback when text or formula matching fails, retaining source/PDF version checks and complete boundaries.
- Preserve valid bibliography caches and restore auxiliary files after ordinary source errors. Run BibTeX by job basename in the temporary build directory for TeX Live/MacTeX output restrictions; stage explicit relative bibliography/style inputs and clean them after success, failure or timeout.
- Store Windows preferences in the standard local application data directory, migrating readable legacy settings and recovering when the legacy directory is inaccessible.
新增可选 AI 行内补全、命令参数补全和可配置 Ctrl+E 定位快捷键;改进自动编译、错误跳转、聊天公式显示、聊天栏宽度和 PDF 选区定位。修复文献缓存、BibTeX 临时路径及 Windows 设置保存问题。DeepSeek 保留独立版本。
Validation / 验证:17 targeted Python/JavaScript checks passed on Windows, including real local TeX/PDF mapping, Biber/BibTeX, history/proofread previews and standalone plugin packaging. CLI completion calls are mocked; no real model request or main-chat message was sent. MacTeX discovery and TeX Live output restrictions are simulated; macOS/Linux hardware has not been tested. Diff and new-file whitespace checks passed.
v0.3.3 — Automatic Biber compilation
Documents using biblatex with backend=biber now resolve citations and generate their bibliography automatically in the live PDF preview.
- Run Biber for the current
.bcfbuild job, followed by two TeX passes, without changing the bibliography backend. - Refresh project-local
.bib/.bstchanges, reuse unchanged results, preserve relative paths and retain BibTeX compatibility. - Report missing/failed processors and keep the last successful PDF.
- Include bibliography inputs in first history/proofread previews and guard against bibliography changes during proofreading generation.
Addresses issue #1.
Validated on Windows with MiKTeX 26.5 and Biber 2.21, including the actual plugin UI, resolved [1], bibliography output and automatic .bib refresh. Eight related checks cover fresh builds, both TeX engines, cache invalidation, relative paths, BibTeX compatibility, preview preservation, portability discovery, UI and plugin packaging. macOS discovery is covered by simulated checks; macOS/Linux hardware has not been tested.
原生 LaTeX Codex 0.3.3 自动支持 Biber,文献修改会刷新预览;保留 BibTeX 兼容与失败保护,并修复首次历史/校对预览的文献依赖。已实测 Windows,macOS/Linux 尚未真机验证。DeepSeek 插件保留自己的独立版本号。
v0.3.2 — Native Codex, plugin isolation & PDF navigation
- Keep the native
latex-codexplugin on Codex and move the optional Harness adapter into the independently installedlatex-deepseekplugin. The DeepSeek package uses a generated, self-contained runtime and retains its own version. - Improve PDF text and box selection with compiled row geometry, nearby source lookup and context for repeated text. Verify theorem headings and proof endings before matching formula-heavy prose; reject ambiguous and incomplete selections.
- Show the chapter timeline as fixed nodes across the preview height, with compact titles, keyboard navigation and PDF scrolling.
- Shorten both READMEs and document installation, packaging and maintenance in
AGENTS.md.
原生 latex-codex 保持 Codex 后端,DeepSeek 适配拆为独立插件并保留独立版本;改进 PDF 拖选、框选与定理正文定位,章节时间线改为固定节点布局。安装与维护说明集中在 AGENTS.md。
Validation / 验证:6 Python checks and 7 JavaScript checks passed, covering local TeX compilation, PDF mapping, UI interactions, native backend isolation and standalone DeepSeek packaging. No real model request or main-chat message was sent.
After pulling this version, update the native plugin from the repository root:
codex plugin marketplace add .
codex plugin add latex-codex@latex-codex-sharedStart a new Codex chat after installation. / 更新安装后新开 Codex 对话。
LaTeX Codex · DeepSeek Harness Preview v0.3.1-deepseek.1
直接下载交给deepseek就行了,解压都不用,我就是这样干的。下面是给deepseek看的。
DeepSeek Harness 独立测试版,稳定版 v0.3.0 保持不变。
- Send、项目对话和历史摘要接入已安装的 DeepSeek Harness CLI,认证沿用 Harness 登录。
- 模型与思考等级动态读取,区分账号与 API 路由;默认模型来自 headless profile。
- 本地预览、自动保存、历史、源码/PDF 校对和逐处 Keep / Undo 沿用现有流程。
- 可选的“发送到 DeepSeek 主对话”将已保存批注转交给启动编辑器的准确会话,失败保留,可安全重试。
下载并解压附件。在目标 DeepSeek 主对话中,让它从解压目录运行:
python plugins/latex-codex/scripts/editor.py /path/to/main.tex --ai-backend deepseek在 Harness 侧边浏览器打开打印的本地 URL。需要主对话转发时先运行一次:
python plugins/latex-codex/scripts/install_deepseek_bridge.py保留解压目录,再从目标主对话启动编辑器。安装器仅追加用户 desktop profile 的桥接模块;开启 HMR 时自动加载,否则重启 Harness。Python 3.10+ 与已有本地 TeX 环境是必要依赖,无需安装 Node 或额外 Python 包。
Windows / DeepSeek Harness 0.2.0-rc.2 已实测账号模型的 Send → 红绿建议 → Keep → 保存及 PDF 编译;相关 chat、HTTP、校对、模型隔离和转发边界检查通过。主对话桥接已实际加载并验证状态,向用户现有会话提交尚需用户从该会话启动后点击验证;macOS/Linux 未进行实机验证。Codex 原生浏览器批注入口在 DeepSeek 模式隐藏。
实现分支:codex/deepseek-harness。完整源码可使用下方 Source code 下载;附件包含启动所需脚本、浏览器资源、技能说明和许可证。
v0.3.0 — Proofreading, PDF review & writing styles
Review AI edits one change at a time in the source and PDF, and choose a writing style for each annotation.
逐处审阅源码与 PDF 中的 AI 修改,并为批注选择写作风格。
English
- Review AI annotation suggestions with red/green source cards and independent Keep / Undo actions. Keep saves one change and its annotation history; Undo preserves the original. Failed saves retain the suggestion for retry, and pending suggestions protect document switching and external conflicts.
- Preview LaTeX suggestions in a temporary red/green PDF, with Keep / Undo beside each change. Preview compilation preserves real source, the regular PDF / SyncTeX and history. Editor and PDF proofreading have separate settings, enabled by default; Markdown uses editor proofreading only.
- Add optional Project change review for main-chat and external edits to project
.texfiles, including child files. Pending changes survive refreshes and restarts, support per-change Keep / Undo and preserve unrelated manual edits. This setting defaults to off; external changes are reviewed after they reach disk. - Add a Style selector to the comment toolbar: English and Chinese Tao Compact / Shelah Compact presets, plus UTF-8
.txt/.mdprompt import. Remember the default across documents and retain a separate style snapshot for each comment; the current edit request takes priority. - Hold Alt + Space and drag in PDF Select text mode to zoom around the initial pointer, from 30% to 500%; Space alone pans. Finish with a sharp render and cancel safely when keys are released, focus is lost or the PDF changes.
- Improve PDF source matching for directly declared
\newtheoremenvironments andproof, including generated headings, numbering and proof endings. Ambiguous or incomplete selections still require source selection. - Enable automatic opening of the comment composer after successful box-selection mapping by default. Existing explicit preferences are preserved; opening the composer does not send an AI request.
- Document proofreading, writing styles, PDF gestures and GitHub release subscriptions in both READMEs.
Validation: 8 Python checks and 10 JavaScript checks passed, including local PDF compilation, source preservation, per-change review, shared preferences, project files, SyncTeX, Markdown PDF conversion and history comparisons. git diff --check passed.
简体中文
- AI 批注建议以红绿源码卡片显示,逐处 Keep / Undo。Keep 保存该处修改及批注历史,Undo 保留原文;保存失败保留建议供重试,未处理建议继续保护文件切换与外部冲突。
- LaTeX 建议生成临时红绿 PDF,每处修改旁提供 Keep / Undo。预览保留真实源码、正式 PDF / SyncTeX 及历史;编辑器与 PDF 校对分别开关,默认开启。Markdown 仅使用编辑器校对。
- 新增可选的项目修改校对,审阅主对话或外部工具对项目
.tex(含子文件)的修改。待确认修改在刷新与重启后保留,支持逐处 Keep / Undo,并保留无关手动编辑;默认关闭,外部修改写入磁盘后才进入校对。 - 批注工具栏新增 Style,提供 Tao Compact / Shelah Compact 中英文预设,以及 UTF-8
.txt/.md提示词导入。默认风格跨文稿记忆,每条批注保留自己的风格快照,当前修改要求优先。 - PDF 选字模式中按住 Alt + 空格拖动,以按下位置为中心连续缩放,范围为 30%–500%;空格单独拖动页面。松开后补清晰渲染,释放按键、失焦或替换 PDF 时安全结束手势。
- 改进直接声明的
\newtheorem与proof环境的 PDF 源码定位,核对自动标题、编号及证毕符号;歧义或不完整选区仍需在源码选择。 - 成功框选定位后,默认自动打开批注框;保留用户已有的显式设置,弹出批注框不会自动发送 AI 请求。
- 中英文 README 补充校对、写作风格、PDF 手势和 GitHub 新版本订阅入口。
验证:8 组 Python 检查与 10 组 JavaScript 检查通过,覆盖本地 PDF 编译、源码保留、逐处校对、共享偏好、项目子文件、SyncTeX、Markdown PDF 转换及历史对比;git diff --check 通过。
This release also includes Markdown / Obsidian live preview and local PDF conversion introduced in v0.2.7. 本版本也包含 v0.2.7 引入的 Markdown / Obsidian 实时预览及本地 PDF 转换。