Problem description
Edit formula:
$\begin{align}
& \sum\limits_{i=1}^{n}{k=\frac{1}{2}}n(n+1) \\
& \text{ }=\Theta ({{n}^{2}}) \\
\end{align}$
Markdown Error: ParseError: KaTeX parse error: {align} can be used only in display mode
Error: KaTeX parse error: No such environment: align at position 7: \begin{̲a̲l̲i̲g̲n̲}̲ & \sum\limit…
Solution:
Modify {align} to {aligned}, KaTeX is not support align, you need to modify to aligned.
Layout
Next, modify the formula layout so that the formula surrounded by $$ by KaTeX is centered.
\limit can make n and i=1 located directly above and below the accumulation symbol.
$$
\begin{aligned}
\sum_{i=1}^{n} k &=\frac{1}{2} n(n+1) \\
&=\Theta \left(n^{2}\right)
\end{aligned}
$$
Read More:
- [Solved] Vscode Katex Error: ParseError: KaTeX Parse Error: Can‘t Use Function ‘$‘ In Math Mode At Position …
- The showdialog() method in thread/threading. Timer/task reported an error: “before ole can be called, the current thread must be set to single thread unit (STA) mode.”
- [Solved] Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode.
- Sqoop Error: Can‘t parse input data: ‘\N‘ [How to Solve]
- Chart.js Error: “Canvas is already in use. Chart …must be destroyed before the canvas can be reused”
- XML read process error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Content not allowed in preamble
- [Solved] AS Warning: String literal in setText can not be translated. Use Android resources instead.
- JSON parse error: Can not deserialize instance of java.lang.String out of START_OBJECT token
- Filezilla Error: You appear to be behind a NAT router. Please configure the passive mode settings and …
- [Solved] swiper Error: The requested module ‘react’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export
- Redis Exception | DENIED Redis is running in protected mode because protected mode is enabled
- When installing zookeeper, you can view the process start, but the status display error: Error contacting service. It is probably not running
- Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- Driver error 11: System 0.500000: CAN 1 : Message with ID = 630 could not be sent. Driver error 11 in TransmitCANFrame
- [Solved] VSCode Edit LaTeX Error: Recipe terminated with error.
- This limit can be set by changing the [search.max_open_scroll_context] setting
- How to parse JSON string in.Net [error reading job object from jsonreader. Current jsonreader item is not an obj]
- The tree component in easyUI does not display data or displays undefined solutions
- It can be opened with localhost, but not with IP address. The request host name is invalid