vuepress-theme-plume/assets/math-B_Vhfqbk.js

19 lines
33 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{$ as e,B as t,P as n,_ as r,f as i,g as a,h as o,l as s}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as c}from"./plugin-vue_export-helper-CxTVcLa7.js";var l=JSON.parse(`{"path":"/guide/markdown/math/","title":"数学公式 | 指南","lang":"zh-CN","frontmatter":{"title":"数学公式","icon":"tabler:math","createTime":"2025/11/29 21:36:22","permalink":"/guide/markdown/math/","description":"概述 主题内置了对 数学公式 的支持。 该功能由 @vuepress/plugin-markdown-math 提供支持。你可以选择在 markdown 中使用以下方式渲染数学公式: katex (默认) mathjax 使用 .vuepress/config.ts 当你选择使用 mathjax 时,还需要执行以下命令安装依赖: 语法 内联语法 使用 ...","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"数学公式\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-12-01T03:30:33.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/guide/markdown/math/"}],["meta",{"property":"og:site_name","content":"Plume 主题"}],["meta",{"property":"og:title","content":"数学公式"}],["meta",{"property":"og:description","content":"概述 主题内置了对 数学公式 的支持。 该功能由 @vuepress/plugin-markdown-math 提供支持。你可以选择在 markdown 中使用以下方式渲染数学公式: katex (默认) mathjax 使用 .vuepress/config.ts 当你选择使用 mathjax 时,还需要执行以下命令安装依赖: 语法 内联语法 使用 ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2025-12-01T03:30:33.000Z"}],["meta",{"property":"article:modified_time","content":"2025-12-01T03:30:33.000Z"}],["link",{"rel":"alternate","hreflang":"en-us","href":"https://theme-plume.vuejs.press/en/guide/markdown/math/"}]]},"readingTime":{"minutes":2.1,"words":629},"git":{"createdTime":1764559833000,"updatedTime":1764559833000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":1,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"db8a46eb4cdc6c4bcb15f0e38a5aacfef565975a","time":1764559833000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: optimize and completion docs (#766)"}]},"autoDesc":true,"filePathRelative":"guide/markdown/math.md","headers":[],"bulletin":false}`),u={name:`math.md`},d={class:`code-block-title`,"data-title":`.vuepress/config.ts`},f={class:`code-block-title-bar`},p={class:`title`},m={class:`vp-field-group`},h={class:`vp-field-group`},g={class:`vp-field-group`};function _(c,l,u,_,v,y){let b=t(`VPIcon`),x=t(`CodeTabs`),S=t(`VPDemoBasic`),C=t(`VPField`);return n(),i(`div`,null,[l[20]||=o(`<h2 id="概述" tabindex="-1"><a class="header-anchor" href="#概述"><span>概述</span></a></h2><p>主题内置了对 数学公式 的支持。</p><p>该功能由 <a href="https://ecosystem.vuejs.press/zh/plugins/markdown/markdown-math.html" target="_blank" rel="noopener noreferrer">@vuepress/plugin-markdown-math</a> 提供支持。你可以选择在 markdown 中使用以下方式渲染数学公式:</p><ul><li><code>katex</code> (默认)</li><li><code>mathjax</code></li></ul><h2 id="使用" tabindex="-1"><a class="header-anchor" href="#使用"><span>使用</span></a></h2>`,5),s(`div`,d,[s(`div`,f,[s(`span`,p,[r(b,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[0]||=a(`.vuepress/config.ts`,-1)])]),l[1]||=o(`<div class="language-ts line-numbers-mode" data-highlighter="shiki" data-ext="ts" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-ts"><span class="line"><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;">export</span><span style="--shiki-light:#1E754F;--shiki-dark:#4D9375;"> default</span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;"> defineUserConfig</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">({</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> theme</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#59873A;--shiki-dark:#80A665;">plumeTheme</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">({</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> markdown</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> math</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: {</span></span>
<span class="line"><span style="--shiki-light:#998418;--shiki-dark:#B8A965;"> type</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">: </span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#B56959;--shiki-dark:#C98A7D;">katex</span><span style="--shiki-light:#B5695977;--shiki-dark:#C98A7D77;">&#39;</span><span style="--shiki-light:#999999;--shiki-dark:#666666;">, </span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">// &#39;katex&#39; | &#39;mathjax&#39;</span></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;"> // ... 其它配置项</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> }</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> },</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;"> })</span></span>
<span class="line"><span style="--shiki-light:#999999;--shiki-dark:#666666;">})</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,1)]),l[21]||=s(`p`,null,[a(`当你选择使用 `),s(`code`,null,`mathjax`),a(` 时,还需要执行以下命令安装依赖:`)],-1),r(x,{id:`0`,data:[{id:`pnpm`},{id:`yarn`},{id:`npm`}],"tab-id":`npm-to-pnpm-yarn-npm`},{title0:e(({value:e,isActive:t})=>[r(b,{provider:`iconify`,name:`vscode-icons:file-type-light-pnpm`}),l[2]||=s(`span`,null,`pnpm`,-1)]),title1:e(({value:e,isActive:t})=>[r(b,{provider:`iconify`,name:`vscode-icons:file-type-yarn`}),l[3]||=s(`span`,null,`yarn`,-1)]),title2:e(({value:e,isActive:t})=>[r(b,{provider:`iconify`,name:`logos:npm-icon`}),l[4]||=s(`span`,null,`npm`,-1)]),tab0:e(({value:e,isActive:t})=>[...l[5]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`pnpm`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` add`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` @mathjax/src`)])])])],-1)]]),tab1:e(({value:e,isActive:t})=>[...l[6]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`yarn`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` add`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` @mathjax/src`)])])])],-1)]]),tab2:e(({value:e,isActive:t})=>[...l[7]||=[s(`div`,{class:`language-sh`,"data-highlighter":`shiki`,"data-ext":`sh`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-sh`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#59873A`,"--shiki-dark":`#80A665`}},`npm`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` i`),s(`span`,{style:{"--shiki-light":`#B56959`,"--shiki-dark":`#C98A7D`}},` @mathjax/src`)])])])],-1)]]),_:1}),l[22]||=s(`h2`,{id:`语法`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#语法`},[s(`span`,null,`语法`)])],-1),l[23]||=s(`h3`,{id:`内联语法`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#内联语法`},[s(`span`,null,`内联语法`)])],-1),l[24]||=s(`p`,null,[a(`使用 `),s(`code`,null,`$`),a(` 包裹数学公式 `),s(`em`,null,[a(`(即在两个 `),s(`code`,null,`$`),a(` 之间编写数学公式)`)])],-1),r(S,{type:`markdown`,title:`内联模式`,expanded:``},{code:e(()=>[...l[8]||=[s(`div`,{class:`language-md`,"data-highlighter":`shiki`,"data-ext":`md`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-md`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`Euler's identity $e^{i\\pi}+1=0$ is a beautiful formula in $\\mathbb{R}^2$.`)])])])],-1)]]),default:e(()=>[l[9]||=s(`p`,null,[a(`Euler's identity `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msup`,null,[s(`mi`,null,`e`),s(`mrow`,null,[s(`mi`,null,`i`),s(`mi`,null,`π`)])]),s(`mo`,null,`+`),s(`mn`,null,`1`),s(`mo`,null,`=`),s(`mn`,null,`0`)]),s(`annotation`,{encoding:`application/x-tex`},`e^{i\\pi}+1=0`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`0.908em`,"vertical-align":`-0.0833em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`},`e`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8247em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},``)])])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}})]),s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`1`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`0.6444em`}}),s(`span`,{class:`mord`},`0`)])])]),a(` is a beautiful formula in `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`msup`,null,[s(`mi`,{mathvariant:`double-struck`},`R`),s(`mn`,null,`2`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\mathbb{R}^2`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`0.8141em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathbb`},`R`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8141em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},`2`)])])])])])])])])])]),a(`.`)],-1)]),_:1}),l[25]||=o(`<h3 id="块级语法" tabindex="-1"><a class="header-anchor" href="#块级语法"><span>块级语法</span></a></h3><p>使用 <code>$$</code> 包裹数学公式 <em>(即在两个 <code>$$</code> 之间编写数学公式)</em></p><div class="language-md" data-highlighter="shiki" data-ext="md" style="--shiki-light:#393a34;--shiki-dark:#dbd7caee;--shiki-light-bg:#ffffff;--shiki-dark-bg:#121212;"><pre class="shiki shiki-themes vitesse-light vitesse-dark vp-code"><code class="language-md"><span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">&lt;!-- 在两个 \`</span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;" class="highlighted-word">$$</span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">\` 之间编写数学公式,在单独的块中渲染 --&gt;</span></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;" class="highlighted-word">$$</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">xxx</span><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;" class="highlighted-word">$$</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">&lt;!-- 两个 \`</span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;" class="highlighted-word">$$</span><span style="--shiki-light:#A0ADA0;--shiki-dark:#758575DD;">\` 可以单独占一行,数学公式在它们之间 --&gt;</span></span>
<span class="line highlighted-word"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">$$</span></span>
<span class="line"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">xxx</span></span>
<span class="line highlighted-word"><span style="--shiki-light:#393A34;--shiki-dark:#DBD7CAEE;">$$</span></span></code></pre></div>`,3),r(S,{type:`markdown`,title:`块级模式`,expanded:``},{code:e(()=>[...l[10]||=[s(`div`,{class:`language-md`,"data-highlighter":`shiki`,"data-ext":`md`,style:{"--shiki-light":`#393a34`,"--shiki-dark":`#dbd7caee`,"--shiki-light-bg":`#ffffff`,"--shiki-dark-bg":`#121212`}},[s(`pre`,{class:`shiki shiki-themes vitesse-light vitesse-dark vp-code`},[s(`code`,{class:`language-md`},[s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`$$`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`\\frac {\\partial^r} {\\partial \\omega^r} \\left(\\frac {y^{\\omega}} {\\omega}\\right)`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`= \\left(\\frac {y^{\\omega}} {\\omega}\\right) \\left`),s(`span`,{style:{"--shiki-light":`#A65E2B`,"--shiki-dark":`#C99076`}},`\\{`),s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`(\\log y)^r + \\sum_{i=1}^r \\frac {(-1)^ Ir \\cdots (r-i+1) (\\log y)^{ri}} {\\omega^i} \\right`),s(`span`,{style:{"--shiki-light":`#A65E2B`,"--shiki-dark":`#C99076`}},`\\}`)]),a(`
`),s(`span`,{class:`line`},[s(`span`,{style:{"--shiki-light":`#393A34`,"--shiki-dark":`#DBD7CAEE`}},`$$`)])])])],-1)]]),default:e(()=>[l[11]||=s(`p`,{class:`katex-block`},[s(`span`,{class:`katex-display`},[s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`,display:`block`},[s(`semantics`,null,[s(`mrow`,null,[s(`mfrac`,null,[s(`msup`,null,[s(`mi`,{mathvariant:`normal`},``),s(`mi`,null,`r`)]),s(`mrow`,null,[s(`mi`,{mathvariant:`normal`},``),s(`msup`,null,[s(`mi`,null,`ω`),s(`mi`,null,`r`)])])]),s(`mrow`,null,[s(`mo`,{fence:`true`},`(`),s(`mfrac`,null,[s(`msup`,null,[s(`mi`,null,`y`),s(`mi`,null,`ω`)]),s(`mi`,null,`ω`)]),s(`mo`,{fence:`true`},`)`)]),s(`mo`,null,`=`),s(`mrow`,null,[s(`mo`,{fence:`true`},`(`),s(`mfrac`,null,[s(`msup`,null,[s(`mi`,null,`y`),s(`mi`,null,`ω`)]),s(`mi`,null,`ω`)]),s(`mo`,{fence:`true`},`)`)]),s(`mrow`,null,[s(`mo`,{fence:`true`},`{`),s(`mo`,{stretchy:`false`},`(`),s(`mi`,null,`log`),s(`mo`,null,``),s(`mi`,null,`y`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`)`),s(`mi`,null,`r`)]),s(`mo`,null,`+`),s(`munderover`,null,[s(`mo`,null,``),s(`mrow`,null,[s(`mi`,null,`i`),s(`mo`,null,`=`),s(`mn`,null,`1`)]),s(`mi`,null,`r`)]),s(`mfrac`,null,[s(`mrow`,null,[s(`mo`,{stretchy:`false`},`(`),s(`mo`,null,``),s(`mn`,null,`1`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`)`),s(`mi`,null,`I`)]),s(`mi`,null,`r`),s(`mo`,null,``),s(`mo`,{stretchy:`false`},`(`),s(`mi`,null,`r`),s(`mo`,null,``),s(`mi`,null,`i`),s(`mo`,null,`+`),s(`mn`,null,`1`),s(`mo`,{stretchy:`false`},`)`),s(`mo`,{stretchy:`false`},`(`),s(`mi`,null,`log`),s(`mo`,null,``),s(`mi`,null,`y`),s(`msup`,null,[s(`mo`,{stretchy:`false`},`)`),s(`mrow`,null,[s(`mi`,null,`r`),s(`mi`,null,`i`)])])]),s(`msup`,null,[s(`mi`,null,`ω`),s(`mi`,null,`i`)])]),s(`mo`,{fence:`true`},`}`)])]),s(`annotation`,{encoding:`application/x-tex`},`\\frac {\\partial^r} {\\partial \\omega^r} \\left(\\frac {y^{\\omega}} {\\omega}\\right) = \\left(\\frac {y^{\\omega}} {\\omega}\\right) \\left\\{(\\log y)^r + \\sum_{i=1}^r \\frac {(-1)^ Ir \\cdots (r-i+1) (\\log y)^{ri}} {\\omega^i} \\right\\} `)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`2.4em`,"vertical-align":`-0.95em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mopen nulldelimiter`}),s(`span`,{class:`mfrac`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.3714em`}},[s(`span`,{style:{top:`-2.314em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`,style:{"margin-right":`0.0556em`}},``),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`ω`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.5904em`}},[s(`span`,{style:{top:`-2.989em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`r`)])])])])])])])])]),s(`span`,{style:{top:`-3.23em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),s(`span`,{style:{top:`-3.677em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord`,style:{"margin-right":`0.0556em`}},``),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.6644em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`r`)])])])])])])])])])]),s(`span`,{class:`vlist-s`},``)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.686em`}},[s(`span`)])])])]),s(`span`,{class:`mclose nulldelimiter`})]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`minner`},[s(`span`,{class:`mopen delimcenter`,style:{top:`0em`}},[s(`span`,{class:`delimsizing size3`},`(`)]),s(`span`,{class:`mord`},[s(`span`,{class:`mopen nulldelimiter`}),s(`span`,{class:`mfrac`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.3414em`}},[s(`span`,{style:{top:`-2.314em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`ω`)])]),s(`span`,{style:{top:`-3.23em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),s(`span`,{style:{top:`-3.677em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`y`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.6644em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`ω`)])])])])])])])])])])]),s(`span`,{class:`vlist-s`},``)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.686em`}},[s(`span`)])])])]),s(`span`,{class:`mclose nulldelimiter`})]),s(`span`,{class:`mclose delimcenter`,style:{top:`0em`}},[s(`span`,{class:`delimsizing size3`},`)`)])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}}),s(`span`,{class:`mrel`},`=`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2778em`}})]),s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`3.0277em`,"vertical-align":`-1.2777em`}}),s(`span`,{class:`minner`},[s(`span`,{class:`mopen delimcenter`,style:{top:`0em`}},[s(`span`,{class:`delimsizing size3`},`(`)]),s(`span`,{class:`mord`},[s(`span`,{class:`mopen nulldelimiter`}),s(`span`,{class:`mfrac`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.3414em`}},[s(`span`,{style:{top:`-2.314em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`ω`)])]),s(`span`,{style:{top:`-3.23em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),s(`span`,{style:{top:`-3.677em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`y`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.6644em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0359em`}},`ω`)])])])])])])])])])])]),s(`span`,{class:`vlist-s`},``)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.686em`}},[s(`span`)])])])]),s(`span`,{class:`mclose nulldelimiter`})]),s(`span`,{class:`mclose delimcenter`,style:{top:`0em`}},[s(`span`,{class:`delimsizing size3`},`)`)])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`minner`},[s(`span`,{class:`mopen delimcenter`,style:{top:`0em`}},[s(`span`,{class:`delimsizing size4`},`{`)]),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mop`},[a(`lo`),s(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`y`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`)`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.7144em`}},[s(`span`,{style:{top:`-3.113em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`r`)])])])])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mop op-limits`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.6514em`}},[s(`span`,{style:{top:`-1.8723em`,"margin-left":`0em`}},[s(`span`,{class:`pstrut`,style:{height:`3.05em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mathnormal mtight`},`i`),s(`span`,{class:`mrel mtight`},`=`),s(`span`,{class:`mord mtight`},`1`)])])]),s(`span`,{style:{top:`-3.05em`}},[s(`span`,{class:`pstrut`,style:{height:`3.05em`}}),s(`span`,null,[s(`span`,{class:`mop op-symbol large-op`},``)])]),s(`span`,{style:{top:`-4.3em`,"margin-left":`0em`}},[s(`span`,{class:`pstrut`,style:{height:`3.05em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`r`)])])]),s(`span`,{class:`vlist-s`},``)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.2777em`}},[s(`span`)])])])]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mopen nulldelimiter`}),s(`span`,{class:`mfrac`},[s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`1.5183em`}},[s(`span`,{style:{top:`-2.314em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord`},[s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`ω`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.7507em`}},[s(`span`,{style:{top:`-2.989em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`},`i`)])])])])])])])])]),s(`span`,{style:{top:`-3.23em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`frac-line`,style:{"border-bottom-width":`0.04em`}})]),s(`span`,{style:{top:`-3.677em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord`},``),s(`span`,{class:`mord`},`1`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`)`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8413em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0785em`}},`I`)])])])])])])]),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`r`),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`minner`},``),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0278em`}},`r`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},``),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mord mathnormal`},`i`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mbin`},`+`),s(`span`,{class:`mspace`,style:{"margin-right":`0.2222em`}}),s(`span`,{class:`mord`},`1`),s(`span`,{class:`mclose`},`)`),s(`span`,{class:`mopen`},`(`),s(`span`,{class:`mop`},[a(`lo`),s(`span`,{style:{"margin-right":`0.0139em`}},`g`)]),s(`span`,{class:`mspace`,style:{"margin-right":`0.1667em`}}),s(`span`,{class:`mord mathnormal`,style:{"margin-right":`0.0359em`}},`y`),s(`span`,{class:`mclose`},[s(`span`,{class:`mclose`},`)`),s(`span`,{class:`msupsub`},[s(`span`,{class:`vlist-t`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.8247em`}},[s(`span`,{style:{top:`-3.063em`,"margin-right":`0.05em`}},[s(`span`,{class:`pstrut`,style:{height:`2.7em`}}),s(`span`,{class:`sizing reset-size6 size3 mtight`},[s(`span`,{class:`mord mtight`},[s(`span`,{class:`mord mathnormal mtight`,style:{"margin-right":`0.0278em`}},`r`),s(`span`,{class:`mord mathnormal mtight`},`i`)])])])])])])])])])])]),s(`span`,{class:`vlist-s`},``)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.686em`}},[s(`span`)])])])]),s(`span`,{class:`mclose nulldelimiter`})]),s(`span`,{class:`mclose delimcenter`,style:{top:`0em`}},[s(`span`,{class:`delimsizing size4`},`}`)])])])])])])],-1)]),_:1}),l[26]||=o(`<h2 id="相关教程" tabindex="-1"><a class="header-anchor" href="#相关教程"><span>相关教程</span></a></h2><h3 id="tex" tabindex="-1"><a class="header-anchor" href="#tex"><span>TeX</span></a></h3><p><a href="https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes" class="readmore" target="_blank" rel="noopener noreferrer">TeX 教程</a><a href="https://mdit-plugins.github.io/zh/tex.html#tex-tutorial" class="readmore" target="_blank" rel="noopener noreferrer">TeX 速查表</a></p><h3 id="katex" tabindex="-1"><a class="header-anchor" href="#katex"><span>KateX</span></a></h3><p><a href="https://katex.org/docs/supported.html" class="readmore" target="_blank" rel="noopener noreferrer">KateX 支持功能</a><a href="https://katex.org/docs/support_table.html" class="readmore" target="_blank" rel="noopener noreferrer">KateX 支持列表</a></p><h3 id="mathjax" tabindex="-1"><a class="header-anchor" href="#mathjax"><span>Mathjax</span></a></h3><p><a href="https://docs.mathjax.org/en/latest/input/tex/macros/index.html#tex-commands" class="readmore" target="_blank" rel="noopener noreferrer">支持的 TeX / KateX 命令</a></p><h2 id="配置项" tabindex="-1"><a class="header-anchor" href="#配置项"><span>配置项</span></a></h2>`,8),s(`div`,m,[r(C,{name:`type`,type:`'katex' | 'mathjax'`,"default-value":`'katex'`},{default:e(()=>[...l[12]||=[s(`p`,null,[a(`用于渲染 `),s(`span`,{class:`katex`},[s(`span`,{class:`katex-mathml`},[s(`math`,{xmlns:`http://www.w3.org/1998/Math/MathML`},[s(`semantics`,null,[s(`mrow`,null,[s(`mtext`,null,`TeX`)]),s(`annotation`,{encoding:`application/x-tex`},`\\TeX`)])])]),s(`span`,{class:`katex-html`,"aria-hidden":`true`},[s(`span`,{class:`base`},[s(`span`,{class:`strut`,style:{height:`0.8988em`,"vertical-align":`-0.2155em`}}),s(`span`,{class:`mord text`},[s(`span`,{class:`mord textrm`},`T`),s(`span`,{class:`mspace`,style:{"margin-right":`-0.1667em`}}),s(`span`,{class:`vlist-t vlist-t2`},[s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.4678em`}},[s(`span`,{style:{top:`-2.7845em`}},[s(`span`,{class:`pstrut`,style:{height:`3em`}}),s(`span`,{class:`mord`},[s(`span`,{class:`mord textrm`},`E`)])])]),s(`span`,{class:`vlist-s`},``)]),s(`span`,{class:`vlist-r`},[s(`span`,{class:`vlist`,style:{height:`0.2155em`}},[s(`span`)])])]),s(`span`,{class:`mspace`,style:{"margin-right":`-0.125em`}}),s(`span`,{class:`mord textrm`},`X`)])])])]),a(` 内容的包。`)],-1),s(`ul`,null,[s(`li`,null,[s(`code`,null,`'katex'`),a(`:使用 `),s(`a`,{href:`https://katex.org/`,target:`_blank`,rel:`noopener noreferrer`},`KaTeX`)]),s(`li`,null,[s(`code`,null,`'mathjax'`),a(`:使用 `),s(`a`,{href:`https://www.mathjax.org/`,target:`_blank`,rel:`noopener noreferrer`},`MathJax`)])],-1)]]),_:1}),r(C,{name:`delimiters`,optional:``,type:`'brackets' | 'dollars' | 'all'`,"default-value":`'dollars'`},{default:e(()=>[...l[13]||=[s(`p`,null,`启用的数学分隔符语法。`,-1),s(`ul`,null,[s(`li`,null,[s(`code`,null,`"brackets"`),a(`: 使用 `),s(`code`,null,`\\(...\\)`),a(` 表示内联数学,使用 `),s(`code`,null,`\\[...\\]`),a(` 表示显示模式数学LaTeX 风格)`)]),s(`li`,null,[s(`code`,null,`"dollars"`),a(`: 使用 `),s(`code`,null,`$...$`),a(` 表示内联数学,使用 `),s(`code`,null,`$$...$$`),a(` 表示显示模式数学(常见 Markdown 风格)`)]),s(`li`,null,[s(`code`,null,`"all"`),a(`: 启用括号和美元符号两种语法`)])],-1)]]),_:1})]),l[27]||=s(`h3`,{id:`使用-katex`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#使用-katex`},[s(`span`,null,`使用 KaTeX`)])],-1),l[28]||=s(`p`,null,[a(`使用 KaTeX 时,任何其他选项都将作为 `),s(`code`,null,`KatexOptions`),a(` 传递给 KaTeX。有关所有可用选项请参阅 `),s(`a`,{href:`https://katex.org/docs/options.html`,target:`_blank`,rel:`noopener noreferrer`},`KaTeX 文档`),a(``)],-1),l[29]||=s(`p`,null,`此外,还支持 2 个特殊选项:`,-1),s(`div`,h,[r(C,{name:`copy`,optional:``,type:`boolean`,"default-value":`false`},{default:e(()=>[...l[14]||=[s(`p`,null,`是否启用复制扩展。`,-1)]]),_:1}),r(C,{name:`mhchem`,optional:``,type:`boolean`,"default-value":`false`},{default:e(()=>[...l[15]||=[s(`p`,null,`是否启用 mhchem 扩展。`,-1)]]),_:1})]),l[30]||=s(`h3`,{id:`使用-mathjax`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#使用-mathjax`},[s(`span`,null,`使用 MathJax`)])],-1),l[31]||=s(`p`,null,`使用 MathJax 时,你可以设置:`,-1),s(`div`,g,[r(C,{name:`tex`,optional:``,type:`object`},{default:e(()=>[...l[16]||=[s(`p`,null,`传递给 TeX 输入解析器的选项。`,-1)]]),_:1}),r(C,{name:`output`,optional:``,type:`'svg' | 'chtml'`,"default-value":`'svg'`},{default:e(()=>[...l[17]||=[s(`p`,null,`输出格式SVG 或通用 HTML。`,-1)]]),_:1}),r(C,{name:`chtml`,optional:``,type:`object`},{default:e(()=>[...l[18]||=[s(`p`,null,`传递给通用 HTML 输出解析器的选项。`,-1)]]),_:1}),r(C,{name:`svg`,optional:``,type:`object`},{default:e(()=>[...l[19]||=[s(`p`,null,`传递给 SVG 输出解析器的选项。`,-1)]]),_:1})])])}var v=c(u,[[`render`,_]]);export{l as _pageData,v as default};