Blackfriday-specific escaping in equations
categories: upstream
tags: equations mathjax escaping blackfriday
Description/Summary
Test to check that the backslashes are correctly escaped.Content
ox-hugo
Issue #138
\|
→ \\|
#
\[ C(w,b) = \frac{1}{2n} \sum_x{{\|y(x)-a\|}^2} \]
\\
at EOL → \\\\
#
\begin{align} a^1 &= x \\ a^2 &= σ(W^2a^1 + b^2) \\ a^3 &= σ(W^3a^2 + b^3) \\ ⋯ \\ a^L &= σ(W^La^{L-1} + b^L) \\ y &= a^L \end{align}
Same as above, but without space before the \\
at EOL
#
\begin{align} a^1 &= x\\ a^2 &= σ(W^2a^1 + b^2)\\ a^3 &= σ(W^3a^2 + b^3)\\ ⋯\\ a^L &= σ(W^La^{L-1} + b^L)\\ y &= a^L \end{align}
\{
→ \\{
, \}
→ \\}
#
ox-hugo
Issue #258
\begin{equation} \phi_j(x) = \mathrm{exp}\left\{ - \frac{(x - \mu_j)^2}{2s^2} \right\} \end{equation}
x <0 \\
#
ox-hugo
Issue #348
\begin{equation} \begin{cases} u_t = ku_{xx} \\ u(x,0) = T_1 , & x <0 \\ u(x,0) = T_2 , & x > 0 \end{cases} \end{equation}
[ .. ]( .. )
in a LaTeX equation
#
ox-hugo
Issue #349
In the below equation, without the escaping hack, the Markdown parser
gets fooled into thinking that [ e^{at} \right](z)
is a Markdown
link!
\begin{equation} \mathcal{L}\left[ e^{at} \right](z) = \frac{1}{z-a} \end{equation}
Backslashes within a LaTeX equation #
ox-hugo
Issue #458
Double backslashes (\\
) should be escaped:
\[\sum_{\substack{0<i<m\\0<j<n}}\]
A backslash before any ASCII punctuation character should be escaped,
for example, \,
, \;
, \:
, \!
are used to control the width of
spacing:
\[ab\]
\[a\ b\]
\[a\,b\]
\[a\;b\]
\[a\:b\]
\[a\!b\]
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Blackfriday-specific escaping in equations" | |
Title | "Blackfriday-specific escaping in equations" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/equations-bf-escaping/" | |
RelPermalink | "/posts/equations-bf-escaping/" | |
Data |
| |
NextPage | Bind footnotes to the preceding word | |
PrevPage | Center align | |
NextInSection | Bind footnotes to the preceding word | |
PrevInSection | Center align |
Page Params (Debug)
Key | Type | Value |
---|---|---|
categories | []string | "upstream" |
description | string | "Test to check that the backslashes are correctly escaped." |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-01-28 11:10:27 -0500 -0500 |
tags | []string | "equations" "mathjax" "escaping" "blackfriday" |
title | string | "Blackfriday-specific escaping in equations" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "c7520bae51a1ca3f48f6aff201ac0172" |
BaseFileName | "equations-bf-escaping" |
TranslationBaseName | "equations-bf-escaping" |
Lang | "en" |
Section | "posts" |
LogicalName | "equations-bf-escaping.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/equations-bf-escaping.md" |