{"id":22218697,"url":"https://github.com/littlenewton/equation_and_codebox","last_synced_at":"2025-07-27T14:33:01.437Z","repository":{"id":45281919,"uuid":"269441473","full_name":"LittleNewton/Equation_and_Codebox","owner":"LittleNewton","description":"Microsoft Word VSTO Add-In，可以插入带编号的公式和代码","archived":false,"fork":false,"pushed_at":"2023-10-07T06:47:06.000Z","size":23752,"stargazers_count":60,"open_issues_count":4,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T03:11:59.437Z","etag":null,"topics":["equation","formula","highlighting","microsoft-word-addin"],"latest_commit_sha":null,"homepage":"https://github.com/LittleNewton/Equation_and_Codebox","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LittleNewton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-04T19:00:28.000Z","updated_at":"2024-12-22T18:24:28.000Z","dependencies_parsed_at":"2024-12-02T22:40:28.042Z","dependency_job_id":null,"html_url":"https://github.com/LittleNewton/Equation_and_Codebox","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/LittleNewton/Equation_and_Codebox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2FEquation_and_Codebox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2FEquation_and_Codebox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2FEquation_and_Codebox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2FEquation_and_Codebox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LittleNewton","download_url":"https://codeload.github.com/LittleNewton/Equation_and_Codebox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LittleNewton%2FEquation_and_Codebox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267370662,"owners_count":24076468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["equation","formula","highlighting","microsoft-word-addin"],"created_at":"2024-12-02T22:28:44.836Z","updated_at":"2025-07-27T14:32:56.405Z","avatar_url":"https://github.com/LittleNewton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 关于本插件\n\n![软件效果](img/效果图.jpg)\n\nGitHub 链接：https://github.com/LittleNewton/Equation_and_Codebox\n\n这是一个 Word VSTO 插件，用来进行以下操作：\n\n- 插入带编号的公式\n- 插入代码表格\n\n需要有以下支持：\n\n- 安装 Iosevka 字体 (必须，该字体是默认字体)，[点此下载](https://github.com/be5invis/Iosevka/releases/download/v24.1.1/super-ttc-iosevka-24.1.1.zip)。\n- 安装 Latin Modern Mono 10 字体\n- 安装 Latin Modern Math 字体 (必须)，[点此下载](http://mirrors.ctan.org/fonts/lm-math/opentype/latinmodern-math.otf)。\n- Office 2013 及之后的更新的版本\n\n## 1. 编译方法（开发者必看）\n\n本插件基于 Visual Studio 2022 开发。\n\n用 Visual Studio 2022 打开 `src/Equation and Code.sln` 即可对本项目进行更改、编译。\n\n使用 VSTO Word 开发 SDK，需要用 Visual Studio Installer 获取相应 SDK。\n\n## 2. 安装方法\n\n### 2.1 安装 reg 注册表文件\n\n首先双击 `utils` 文件夹内的两个 reg 文件，选择安装。\n\n``` txt\n32.reg\n64.reg\n```\n\n这么做是为了规避 Windows 的安全审查机制。因为软件作者目前没有微软开发者证书，所以编译的软件不能直接安装。导入上述两个 reg 注册表项之后，将可自由安装。\n\n### 2.2 安装 vsto 文件\n\n下载最新版 release，然后解压 v0.2.zip 这个压缩包。双击其中的`公式与代码.vsto`文件即可安装。\n\n\u003e **注意：此步骤必须保证 Word 软件处于关闭状态。**\n\n## 3. 使用方法\n\n详细使用方法，请参考哔哩哔哩的[视频](https://www.bilibili.com/video/BV1f5411p7pN/)。\n\n上述视频可能不是有关本插件的最新教程，但是可以帮助用户快速上手。\n\n### 3.1 插入公式\n\n在节标题的后面插入【域代码】，是公式编号的**必要条件**。\n\n![插入公式](img/Demo_Insert_Equations.gif)\n\n### 3.2 插入代码\n\n插入代码，需要首先将要插入的代码的【纯文本】复制到剪贴板。\n\n\u003e 最后必须有个**空行**。\n\n#### 3.2.1 插入普通代码\n\n行号的步长默认为 1\n\n![插入代码](img/Demo_Insert_Codes.gif)\n\n\u003e 比较推荐使用这个方式。该方式不会限制行的字符数，面对超长的行时，软件会自动换行。\n\n#### 3.2.2 自主设置行号的步长\n\n用户可以自主设置行号步长。如下图所示。**该功能现已支持中英文字符混合的代码，且不再对单行文本长度做限制。**\n\n![自主设置步长](img/Demo_Set_LineNum_Step.gif)\n\n## 4. 开源许可\n\n本软件遵循 MIT 开源许可。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlenewton%2Fequation_and_codebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flittlenewton%2Fequation_and_codebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flittlenewton%2Fequation_and_codebox/lists"}