-
Select Topic AreaQuestion BodyMathJax supports However, doesn't work. It is weird we need to use to render correctly. Is there one way to solve with this problem for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
When writing LaTeX formulas in a Markdown document for display on GitHub, you may find the need to use two backslashes (\) to indicate a line break instead of a single backslash (). This is because Markdown itself uses a backslash to escape special characters, such as the backslash character, which is used in LaTeX to indicate a line break. When you use Therefore, to ensure that LaTeX correctly interprets line breaks in a GitHub Markdown environment, you need to use \\ for each line break within an expression delimited by $...$. This ensures that Markdown correctly interprets the backslashes and passes them to LaTeX for proper formatting. |
Beta Was this translation helpful? Give feedback.
-
In LaTeX, the double backslash "" is used to create a newline within a document. However, when writing LaTeX within Markdown, such as in GitHub Markdown, you often need to escape the backslash character because Markdown uses it for its own formatting purposes. So, when you want to create a newline in LaTeX within Markdown on GitHub, you need to use four backslashes "\". This is because Markdown requires you to escape the backslash with another backslash, and then LaTeX requires its own double backslash for a newline. Hence, the total becomes four backslashes: two for Markdown and two for LaTeX. |
Beta Was this translation helpful? Give feedback.
-
But I have to say this 2 For example, we need Also GitHub markdown seems to not recognize indentation well.
Maybe it is not one good idea to use latex in Github markdown due to incompatibility. |
Beta Was this translation helpful? Give feedback.
In LaTeX, the double backslash "" is used to create a newline within a document. However, when writing LaTeX within Markdown, such as in GitHub Markdown, you often need to escape the backslash character because Markdown uses it for its own formatting purposes.
So, when you want to create a newline in LaTeX within Markdown on GitHub, you need to use four backslashes "\". This is because Markdown requires you to escape the backslash with another backslash, and then LaTeX requires its own double backslash for a newline. Hence, the total becomes four backslashes: two for Markdown and two for LaTeX.
For example, in GitHub Markdown, you would write:
This would render in LaTeX as: