youfoundjk_TeXcore/docs/proof-environment.html

12 lines
38 KiB
HTML
Raw Normal View History

2025-10-30 19:16:32 +00:00
<!doctype html><html><head><title>Proof environment</title><base href="./"><meta id="root-path" root-path="./"><link rel="icon" sizes="96x96" href="https://publish-01.obsidian.md/access/f786db9fac45774fa4f0d8112e232d67/favicon-96x96.png"><meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=yes,minimum-scale=1,maximum-scale=5"><meta charset="UTF-8"><link rel="stylesheet" href="lib/styles/obsidian-styles.css"><link rel="stylesheet" href="lib/styles/theme.css"><link rel="stylesheet" href="lib/styles/plugin-styles.css"><link rel="stylesheet" href="lib/styles/snippets.css"><link rel="stylesheet" href="lib/styles/generated-styles.css"><style>body.css-settings-manager{--h6-variant:normal;--h5-variant:normal;--h4-variant:normal;--h1-size:1.8em;--h2-size:1.5em;--h3-size:1.324em;--h4-size:1.266em;--h5-size:1.125em;--h6-size:1em;--h1-font:inherit;--h2-font:inherit;--h3-font:inherit;--h4-font:inherit;--h5-font:inherit;--h6-font:inherit;--h1-variant:normal;--tab-stacked-pane-width:850px;--blockquote-font-style:normal;--blockquote-border-thickness:3px;--list-spacing:0.11em;--image-muted:1;--cursor:default;--pdf-dark-opacity:0.85;--heading-spacing:2em}</style><script type="module" src="lib/scripts/graph_view.js"></script><script src="lib/scripts/graph_wasm.js"></script><script src="lib/scripts/tinycolor.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/7.2.4/pixi.min.js" integrity="sha512-Ch/O6kL8BqUwAfCF7Ie5SX1Hin+BJgYH4pNjRqXdTEqMsis1TUYg+j6nnI9uduPjGaj7DN4UKCZgpvoExt6dkw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><script src="lib/scripts/webpage.js"></script><script src="lib/scripts/generated.js"></script></head><body class="theme-dark mod-macos native-scrollbars math-booster-preview-enabled callouts-default trim-cols embed-hide-title h2-l h3-l checkbox-square minimal-strike-lists pdf-shadows-on pdf-invert-dark pdf-blend-light metadata-heading-off sidebar-tabs-default ribbon-hidden maximize-tables-off tabs-default tab-stack-top minimal-tab-title-visible styled-scrollbars loading"><div class="webpage-container"><div class="sidebar-left sidebar"><div class="sidebar-container"><div class="sidebar-sizer"><div class="sidebar-content-positioner"><div class="sidebar-content"><div><label class="theme-toggle-container" for="theme_toggle"><input class="theme-toggle-input" type="checkbox" id="theme_toggle"><div class="toggle-background"></div></label></div><div class="tree-container file-tree mod-nav-indicator" data-depth="0"><div class="tree-header"><span class="sidebar-section-header">LaTeX-like Theorem &amp; Equation Referencer Docs</span><button class="clickable-icon collapse-tree-button is-collapsed"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></svg></button></div><div class="tree-scroll-area"><div class="tree-item mod-tree-folder mod-collapsible is-collapsed" data-depth="1"><div class="tree-item-contents"><a class="internal-link tree-item-link"><div class="tree-item-icon collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle"><path d="M3 8L12 17L21 8"></path></svg></div><span class="tree-item-title">Extending Obsidian's math rendering functionalities</span></a></div><div class="tree-item-children" style="display:none"><div class="tree-item mod-tree-file" data-depth="2"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="extending-obsidian's-math-rendering-functionalities/multi-line-equation-support-inside-blockquotes.html"><span class="tree-item-title">Multi-line equation support inside blockquotes</span></a></div><div class="tree-item-children"></div></div><div class="tree-item mod-tree-file" data-depth="2"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="extending-obsidian's-math-rendering-functionalities/r
Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...
`\end{proof}`
</code><button class="copy-code-button">Copy</button></pre></div><div><p><span class="math-booster-begin-proof math-booster-begin-proof-en">Proof.</span><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...<br><span class="math-booster-end-proof math-booster-end-proof-en"></span></p></div><div><ul><li data-line="0">You can use any string you like, <code>PROOF</code>/<code>QED</code> for example, instead of <code>\begin{proof}</code>/<code>\end{proof}</code>. See <a data-href="#Settings &amp; styling" href="#Settings &amp; styling" class="original-internal-link" target="_blank" rel="noopener" style="display:none">Settings &amp; styling</a><a data-href="#Settings &amp; styling" href="#Settings_&amp;_styling" class="internal-link mathLink-internal-link" target="_self" rel="noopener">Settings &amp; styling</a>.</li><li data-line="1">To quickly insert a proof, I recommend using a <a data-tooltip-position="top" aria-label="Latex Suite snippet" data-href="#Latex Suite snippet" href="#Latex Suite snippet" class="original-internal-link" target="_blank" rel="noopener" style="display:none">Latex Suite snippet</a><a data-tooltip-position="top" aria-label="Latex Suite snippet" data-href="#Latex Suite snippet" href="#Latex_Suite_snippet" class="internal-link mathLink-internal-link" target="_self" rel="noopener">Latex Suite snippet</a> or <a data-tooltip-position="top" aria-label="https://help.obsidian.md/Customization/Custom+hotkeys" rel="noopener" class="external-link" href="https://help.obsidian.md/Customization/Custom+hotkeys" target="_blank">assigning a hotkey</a> to the command <code>Insert proof</code>.<br></li></ul></div><div class="heading-wrapper"><h3 data-heading="Custom texts" class="heading" id="Custom_texts"><div class="heading-before"></div><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle" style="width:24px;max-width:100%"><path d="M3 8L12 17L21 8"></path></svg></div>Custom texts<div class="heading-after">...</div></h3><div class="heading-children"><div><p>Use the following syntax to print custom text.<br>Any inline markdown syntax can be used, but inline formulas will render with flickering in the live preview.</p></div><div><pre><code>`\begin{proof}[Solution.]`
Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...
`\end{proof}`
</code><button class="copy-code-button">Copy</button></pre></div><div><p><span class="math-booster-begin-proof math-booster-begin-proof-en">Solution.</span><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...<br><span class="math-booster-end-proof math-booster-end-proof-en"></span></p></div></div></div><div class="heading-wrapper"><h3 data-heading="Linked proofs" class="heading" id="Linked_proofs"><div class="heading-before"></div><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle" style="width:24px;max-width:100%"><path d="M3 8L12 17L21 8"></path></svg></div>Linked proofs<div class="heading-after">...</div></h3><div class="heading-children"><div><p>Suppose that you have a theorem like below and it has a <a data-tooltip-position="top" aria-label="https://help.obsidian.md/Linking+notes+and+files/Internal+links#Link%20to%20a%20block%20in%20a%20note" rel="noopener" class="external-link" href="https://help.obsidian.md/Linking+notes+and+files/Internal+links#Link%20to%20a%20block%20in%20a%20note" target="_blank">block ID</a> <code>123456</code>.</p></div><div><div data-callout-metadata="" data-callout-fold="" data-callout="theorem" class="callout node-insert-event theorem-callout theorem-callout-en theorem-callout-theorem theorem-callout-framed"><div class="callout-title"><div class="callout-icon"><svg height="16" style="width:16px;max-width:100%"></svg></div><div class="callout-title-inner"><span class="theorem-callout-main-title">Theorem 2</span> <span class="theorem-callout-subtitle">(Title)</span>.</div></div><div class="callout-content"><p>Content</p></div></div></div><div><p>The following will be printed as "<em>Proof of Theorem 2 (Title).</em>" by default.</p></div><div><pre><code>`\begin{proof}`@[[#^123456]]
Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...
`\end{proof}`
</code><button class="copy-code-button">Copy</button></pre></div><div><p><span class="math-booster-begin-proof math-booster-begin-proof-en">Proof of <a data-href="Theorem callouts#^f58c13" href="Theorem callouts#^f58c13" class="original-internal-link" target="_blank" rel="noopener" style="display:none">Theorem callouts &gt; ^f58c13</a><a data-href="Theorem callouts#^f58c13" href="theorem-callouts/theorem-callouts.html#^f58c13" class="internal-link mathLink-internal-link" target="_self" rel="noopener">Theorem callouts &gt; Theorem 1 (Title)</a>.</span><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...<br><span class="math-booster-end-proof math-booster-end-proof-en"></span></p></div><div><div data-callout-metadata="" data-callout-fold="" data-callout="remark" class="callout node-insert-event theorem-callout theorem-callout-en theorem-callout-remark theorem-callout-framed"><div class="callout-title"><div class="callout-icon"><svg height="16" style="width:16px;max-width:100%"></svg></div><div class="callout-title-inner"><span class="theorem-callout-main-title">Remark 3</span>.</div></div><div class="callout-content"><p>Alternatively, you can just write:</p><pre><code>\begin{proof}[Proof of [[#^123456]].]
</code><button class="copy-code-button">Copy</button></pre><p>For now, I prefer this due to its potentially higher potability.<br>The strength of the <code>@</code> syntax is it's rendered dynamically depending on the current <a data-tooltip-position="top" aria-label="Profiles" data-href="Profiles" href="Profiles" class="original-internal-link" target="_blank" rel="noopener" style="display:none">profile</a><a data-tooltip-position="top" aria-label="Profiles" data-href="Profiles" href="settings/profiles.html" class="internal-link mathLink-internal-link" target="_self" rel="noopener">profile</a>.</p></div></div></div></div></div><div class="heading-wrapper"><h2 data-heading="Settings &amp; styling" class="heading" id="Settings_&amp;_styling"><div class="heading-before"></div><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle" style="width:24px;max-width:100%"><path d="M3 8L12 17L21 8"></path></svg></div>Settings &amp; styling<div class="heading-after">...</div></h2><div class="heading-children"><div><p>Don't like <code>\begin{proof}</code>? You can use any string you like instead. Go to the plugin setting tab, and modify the <strong>Beginning of proof</strong> and <strong>Ending of proof</strong> fields. Also take a look at the <code>Proofs</code> section in the <a data-href="Profiles" href="Profiles" class="original-internal-link" target="_blank" rel="noopener" style="display:none">Profiles</a><a data-href="Profiles" href="settings/profiles.html" class="internal-link mathLink-internal-link" target="_self" rel="noopener">Profiles</a> editing menu.</p></div><div><p>Beginning/ending of proofs are given the following CSS classes.</p></div><div><ul><li data-line="0"><code>.math-booster-begin-proof</code>/<code>.math-booster-end-proof</code></li><li data-line="1"><code>.math-booster-begin-proof-{tag}</code>/<code>.math-booster-end-proof-{tag}</code>: <code>{tag}</code> is each tag associated with the profile applying to the note.</li></ul></div></div></div><div class="heading-wrapper"><h2 data-heading="Latex Suite snippet" class="heading" id="Latex_Suite_snippet"><div class="heading-before"></div><div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon right-triangle" style="width:24px;max-width:100%"><path d="M3 8L12 17L21 8"></path></svg></div>Latex Suite snippet<div class="heading-after">...</div></h2><div class="heading-children"><div><p>Using the following <a data-tooltip-position="top" aria-label="https://github.com/artisticat1/obsidian-latex-suite" rel="noopener" class="external-link" href="https://github.com/artisticat1/obsidian-latex-suite" target="_blank">Latex Suite</a> snippet, you can quickly insert a proof by just typing <code>proof</code>+<code>Tab</code>.</p></div><div><pre class="language-js" tabindex="0"><code class="language-js is-loaded"> <span class="token punctuation">{</span> <span class="token literal-property property">trigger</span><span class="token operator">:</span> <span class="token string">"proof"</span><span class="token punctuation">,</span> <span class="token literal-property property">replacement</span><span class="token operator">:</span> <span class="token string">"`\\begin{proof}`\n$0\n`\\end{proof}`"</span><span class="token punctuation">,</span> <span class="token literal-property property">options</span><span class="token operator">:</span> <span class="token string">"t"</span> <span class="token punctuation">}</span>
</code><button class="copy-code-button">Copy</button></pre></div><div class="mod-footer"></div></div></div></div></div></div></div></div><div class="sidebar-right sidebar"><div class="sidebar-gutter"><div class="clickable-icon sidebar-collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="svg-icon"><path d="M21 3H3C1.89543 3 1 3.89543 1 5V19C1 20.1046 1.89543 21 3 21H21C22.1046 21 23 20.1046 23 19V5C23 3.89543 22.1046 3 21 3Z"></path><path d="M10 4V20"></path><path d="M4 7H7"></path><path d="M4 10H7"></path><path d="M4 13H7"></path></svg></div></div><div class="sidebar-container"><div class="sidebar-sizer"><div class="sidebar-content-positioner"><div class="sidebar-content"><div class="graph-view-wrapper"><div class="sidebar-section-header">Interactive Graph</div><div class="graph-view-placeholder"><div class="graph-view-container"><div class="graph-icon graph-expand" role="button" aria-label="Expand" data-tooltip-position="top"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg></div><canvas id="graph-canvas" width="512px" height="512px"></canvas></div></div></div><div class="tree-container outline-tree" data-depth="0"><div class="tree-header"><span class="sidebar-section-header">Table Of Contents</span><button class="clickable-icon collapse-tree-button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></svg></button></div><div class="tree-scroll-area"><div class="tree-item" data-depth="1"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="#Proof_environment"><span class="tree-item-title"><p>Proof environment</p></span></a></div><div class="tree-item-children"><div class="tree-item" data-depth="3"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="#Custom_texts"><span class="tree-item-title"><p>Custom texts</p></span></a></div><div class="tree-item-children"></div></div><div class="tree-item" data-depth="3"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="#Linked_proofs"><span class="tree-item-title"><p>Linked proofs</p></span></a></div><div class="tree-item-children"></div></div><div class="tree-item" data-depth="2"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="#Settings_&amp;_styling"><span class="tree-item-title"><p>Settings &amp; styling</p></span></a></div><div class="tree-item-children"></div></div><div class="tree-item" data-depth="2"><div class="tree-item-contents"><a class="internal-link tree-item-link" href="#Latex_Suite_snippet"><span class="tree-item-title"><p>Latex Suite snippet</p></span></a></div><div class="tree-item-children"></div></div></div></div></div></div></div></div></div></div></div></div></body></html>