# untils **Repository Path**: zedo/untils ## Basic Information - **Project Name**: untils - **Description**: 对一般大众没啥用的工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-01 - **Last Updated**: 2025-09-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AxmathFixer This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin). ## Type Support for `.vue` Imports in TS TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: 1. Disable the built-in TypeScript Extension 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. ## Customize configuration See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh yarn ``` ### Compile and Hot-Reload for Development ```sh yarn dev ``` ### Type-Check, Compile and Minify for Production ```sh yarn build ``` ## 说明 该工具不对 $\rm\LaTeX$ 代码语法解析,而是调整经过 AxMath 转换的 $\rm\LaTeX$ 代码,使其能够正常地在 TexLive、MikTex 等环境中编译。 主要目的是能够方便地进行中文、公式混合排版,尤其是行内公式。 由于是基于文本替换实现的,因此实现原理也没有什么值得看的 :smiley: 。 ### AxmathBuilder 通过类 `AxmathBuilder` 用来构造 `Axmath` 公式对象,将输入转换为字符串数组 `string[]`,一行为一组。同时进行预处理,例如转义花括号和 dollar `{` , `}`, `$`。 ### AxmathHandler 核心部分,提供一系列方法来处理由 `AxmathBuilder` 提供的公式。例如,还原 `AxmathBuilder` 的预处理,处理公式内部的中文、`array`、`matrix`、`cases`等环境中的中文,能够直接输出可用的 $\rm\LaTeX$ 公式。 ### AxmathFormatter 提供 “格式化” 或者说 “美化” 的功能,允许用户进行配置。 配置 ```js { array:{ } } ```