mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-23 09:51:45 +08:00
331 lines
8.0 KiB
HTML
331 lines
8.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" dir=>
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="KaTeX # KaTeX shortcode let you render math typesetting in markdown document. See KaTeX
|
|
Example # {{< katex [display] [class="text-center"] >}} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{< /katex >}} \[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\] Display Mode Example # Here is some inline example: \(\pi(x)\) , rendered in the same line. And below is display example, having display: block \[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\] Text continues here.">
|
|
<meta name="theme-color" content="#FFFFFF"><meta property="og:title" content="" />
|
|
<meta property="og:description" content="KaTeX # KaTeX shortcode let you render math typesetting in markdown document. See KaTeX
|
|
Example # {{< katex [display] [class="text-center"] >}} f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi {{< /katex >}} \[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\] Display Mode Example # Here is some inline example: \(\pi(x)\) , rendered in the same line. And below is display example, having display: block \[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\] Text continues here." />
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:url" content="https://books.halfrost.com/leetcode/docs/shortcodes/katex/" />
|
|
|
|
<title>Katex | LeetCode Cookbook</title>
|
|
<link rel="manifest" href="/leetcode/manifest.json">
|
|
<link rel="icon" href="/leetcode/favicon.png" type="image/x-icon">
|
|
<link rel="stylesheet" href="/leetcode/book.min.6cd8553a6854f4812343f0f0c8baca31271e686434f381fbe3c7226f66639176.css" integrity="sha256-bNhVOmhU9IEjQ/DwyLrKMSceaGQ084H748cib2ZjkXY=">
|
|
<script defer src="/leetcode/en.search.min.b89b298482a620ecdc3740829351c9d8b19cc485f00b83eaf4b57f44e1cb7e23.js" integrity="sha256-uJsphIKmIOzcN0CCk1HJ2LGcxIXwC4Pq9LV/ROHLfiM="></script>
|
|
<!--
|
|
Made with Book Theme
|
|
https://github.com/alex-shpak/hugo-book
|
|
-->
|
|
|
|
|
|
</head>
|
|
|
|
<body dir=>
|
|
<input type="checkbox" class="hidden toggle" id="menu-control" />
|
|
<input type="checkbox" class="hidden toggle" id="toc-control" />
|
|
<main class="container flex">
|
|
<aside class="book-menu">
|
|
|
|
<nav>
|
|
<h2 class="book-brand">
|
|
<a href="/leetcode"><span>LeetCode Cookbook</span>
|
|
</a>
|
|
</h2>
|
|
|
|
|
|
<div class="book-search">
|
|
<input type="text" id="book-search-input" placeholder="Search" aria-label="Search" maxlength="64" data-hotkeys="s/" />
|
|
<div class="book-search-spinner hidden"></div>
|
|
<ul id="book-search-results"></ul>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="https://halfrost.com" target="_blank" rel="noopener">
|
|
被人嘲笑的梦想
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://github.com/halfrost" target="_blank" rel="noopener">
|
|
Github
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://halfrost.com" target="_blank" rel="noopener">
|
|
微信公众号
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://twitter.com/halffrost" target="_blank" rel="noopener">
|
|
Twitter
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="https://weibo.com/halfrost" target="_blank" rel="noopener">
|
|
Weibo
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/example/"><strong>Example Site</strong></a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/example/table-of-contents/">Table of Contents</a></p>
|
|
<ul>
|
|
<li>
|
|
<a href="/leetcode/docs/example/table-of-contents/with-toc/">With ToC</a></li>
|
|
<li>
|
|
<a href="/leetcode/docs/example/table-of-contents/without-toc/">Without ToC</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/example/collapsed/">Collapsed</a></p>
|
|
<ul>
|
|
<li>
|
|
<a href="/leetcode/docs/example/collapsed/3rd-level/">3rd</a>
|
|
<ul>
|
|
<li>
|
|
<a href="/leetcode/docs/example/collapsed/3rd-level/4th-level/">4th</a>
|
|
<br /></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>Shortcodes</strong></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/buttons/">Buttons</a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/columns/">Columns</a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/expand/">Expand</a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/hints/">Hints</a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/katex/"class=active>Katex</a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/mermaid/">Mermaid</a></p>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
<a href="/leetcode/docs/shortcodes/tabs/">Tabs</a>
|
|
<br /></p>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="/leetcode/posts/" >
|
|
Blog
|
|
</a>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<script>(function(){var menu=document.querySelector("aside.book-menu nav");addEventListener("beforeunload",function(event){localStorage.setItem("menu.scrollTop",menu.scrollTop);});menu.scrollTop=localStorage.getItem("menu.scrollTop");})();</script>
|
|
|
|
|
|
|
|
</aside>
|
|
|
|
<div class="book-page">
|
|
<header class="book-header">
|
|
|
|
<div class="flex align-center justify-between">
|
|
<label for="menu-control">
|
|
<img src="/leetcode/svg/menu.svg" class="book-icon" alt="Menu" />
|
|
</label>
|
|
|
|
<strong>Katex</strong>
|
|
|
|
<label for="toc-control">
|
|
|
|
<img src="/leetcode/svg/toc.svg" class="book-icon" alt="Table of Contents" />
|
|
|
|
</label>
|
|
</div>
|
|
|
|
|
|
|
|
<aside class="hidden clearfix">
|
|
|
|
<nav id="TableOfContents">
|
|
<ul>
|
|
<li><a href="#katex">KaTeX</a>
|
|
<ul>
|
|
<li><a href="#example">Example</a></li>
|
|
<li><a href="#display-mode-example">Display Mode Example</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
</aside>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<article class="markdown"><h1 id="katex">
|
|
KaTeX
|
|
<a class="anchor" href="#katex">#</a>
|
|
</h1>
|
|
<p>KaTeX shortcode let you render math typesetting in markdown document. See
|
|
<a href="https://katex.org/">KaTeX</a></p>
|
|
<h2 id="example">
|
|
Example
|
|
<a class="anchor" href="#example">#</a>
|
|
</h2>
|
|
<div class="book-columns flex flex-wrap">
|
|
|
|
<div class="flex-even markdown-inner">
|
|
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-latex" data-lang="latex">{{< katex [display] [class="text-center"] >}}
|
|
f(x) = <span style="color:#66d9ef">\int</span>_{-<span style="color:#66d9ef">\infty</span>}^<span style="color:#66d9ef">\infty\hat</span> f(<span style="color:#66d9ef">\xi</span>)<span style="color:#66d9ef">\,</span>e^{2 <span style="color:#66d9ef">\pi</span> i <span style="color:#66d9ef">\xi</span> x}<span style="color:#66d9ef">\,</span>d<span style="color:#66d9ef">\xi</span>
|
|
{{< /katex >}}
|
|
</code></pre></div>
|
|
</div>
|
|
|
|
<div class="flex-even markdown-inner">
|
|
<link rel="stylesheet" href="/leetcode/katex/katex.min.css" />
|
|
<script defer src="/leetcode/katex/katex.min.js"></script>
|
|
<script defer src="/leetcode/katex/auto-render.min.js" onload="renderMathInElement(document.body);"></script><span>
|
|
\[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\]
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 id="display-mode-example">
|
|
Display Mode Example
|
|
<a class="anchor" href="#display-mode-example">#</a>
|
|
</h2>
|
|
<p>Here is some inline example: <span>
|
|
\(\pi(x)\)
|
|
</span>
|
|
, rendered in the same line. And below is <code>display</code> example, having <code>display: block</code>
|
|
<span>
|
|
\[f(x) = \int_{-\infty}^\infty\hat f(\xi)\,e^{2 \pi i \xi x}\,d\xi\]
|
|
</span>
|
|
|
|
Text continues here.</p>
|
|
</article>
|
|
|
|
|
|
|
|
<footer class="book-footer">
|
|
|
|
<div class="flex flex-wrap justify-between">
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
<label for="menu-control" class="hidden book-menu-overlay"></label>
|
|
</div>
|
|
|
|
|
|
<aside class="book-toc">
|
|
|
|
<nav id="TableOfContents">
|
|
<ul>
|
|
<li><a href="#katex">KaTeX</a>
|
|
<ul>
|
|
<li><a href="#example">Example</a></li>
|
|
<li><a href="#display-mode-example">Display Mode Example</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
|
|
</aside>
|
|
|
|
</main>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|