Skip to content

\\ for linebreak in LaTeX math environment (not \\\\) #45

Open

Description

@stared

To break a line in a LaTeX environment I need to use \\\\ instead of \\.

I guess here \ plays a role of escape character. However, it is inconsistent with other places in formulas where \ does not need to be escaped.

E.g.:

\begin{align}
c_{ij} &= - \langle \psi | \sigma^x_i \sigma^x_j  | \psi \rangle \\\\
\sum_{i \neq j } c_{ij} &= 1
\end{align}

works but

\begin{align}
c_{ij} &= - \langle \psi | \sigma^x_i \sigma^x_j  | \psi \rangle \\
\sum_{i \neq j } c_{ij} &= 1
\end{align}

not (i.e. there is no line break).

Activity

  1. yoavram commented on Nov 15, 2013

    @yoavram
    Owner

    I totally agree. I'm not sure why this happens. If someone wants to fix this using a pre-processor hook, it's should be staightforward and there are some examples in initMarkdownConverter in markx.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions