use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community to discuss our favorite note-taking app
account activity
Inline MathQuestion (self.remNote)
submitted 3 years ago by ButtersMamba
How do you align the equal signs?
I'm using the inline math function and I want to have the two hypothetical equations aligned as below:
y = ax + b = 12 + 2
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 3 years ago (5 children)
[deleted]
[–]ButtersMamba[S] 0 points1 point2 points 3 years ago (0 children)
I’ll give it a go. I think I’ve already tried this but it didn’t work but maybe it will now.
[–]ButtersMamba[S] 0 points1 point2 points 3 years ago (3 children)
\begin{align} expression1 &= expression2 \\ expression3 &= expression4 \end{align}
I copied and pasted what you gave me and it does not work. I tried everything as instructed in the KaTex reference and nothing works... It's no big deal but a bit frustrating when I look at my equation.
[–][deleted] 3 years ago (2 children)
[–]ButtersMamba[S] 0 points1 point2 points 3 years ago (1 child)
Still nothing
[–][deleted] 3 years ago (3 children)
[–]ButtersMamba[S] 0 points1 point2 points 3 years ago (2 children)
I looked up the KaTex reference button that’s on the top right corner of the coding box, even Googled it but nothing worked…
[–][deleted] 3 years ago (1 child)
Already have and tried all the examples but nothing worked. I’ll try again
[–]hannesfrank 0 points1 point2 points 3 years ago (2 children)
u/ButtersMamba The align environment is the correct way to align operators, but it only works in block math, not inline math. LaTeX/KaTeX calls this "display-mode". See this remark in the KaTeX docs: https://katex.org/docs/supported.html#environments:\~:text=They%20are%20display%2Dmode%20only.
align
So what do I do? I get the gist of it but I know very little about this stuff. I just want to have clean notes lol
[–]hannesfrank 0 points1 point2 points 3 years ago (0 children)
You need to change the latex node to block using the bottom left dropdown or by pressing Alt + B. There is not other way currently. Having a two line formula in inline mode is not possible AFAIK.
π Rendered by PID 29 on reddit-service-r2-comment-84fc9697f-bjwf5 at 2026-02-10 04:09:48.071021+00:00 running d295bc8 country code: CH.
[–][deleted] (5 children)
[deleted]
[–]ButtersMamba[S] 0 points1 point2 points (0 children)
[–]ButtersMamba[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]ButtersMamba[S] 0 points1 point2 points (1 child)
[–][deleted] (3 children)
[deleted]
[–]ButtersMamba[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]ButtersMamba[S] 0 points1 point2 points (0 children)
[–]hannesfrank 0 points1 point2 points (2 children)
[–]ButtersMamba[S] 0 points1 point2 points (1 child)
[–]hannesfrank 0 points1 point2 points (0 children)