8000 Converting a paragraph containing an equation from org to latex results in 3 paragraphs · Issue #10836 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Converting a paragraph containing an equation from org to latex results in 3 paragraphs #10836
Closed
@METhOphetamine

Description

@METhOphetamine

Problem description

Converting a paragraph containing an equation from org to latex results in 3 paragraphs, because pandoc inserts a newline before and after the equation. For example this org file:

Some equation here
\begin{equation}
x = y
\end{equation}
where $x$ is something important

Gets converted to the following latex code:

Some equation here

\begin{equation}
x = y
\end{equation}

where \(x\) is something important

But if we use emacs' org-mode for the conversion, we get this latex code:

Some equation here
\begin{equation}
x = y
\end{equation}
where \(x\) is something important

So it should be considered a bug.

You also get the same issue when using the \begin{subequations} and \begin{math} blocks.

Pandoc version?

3.6.4

I also tested it in the online version.

Links to similar issues

Markdown had similar issues in the past.

#7883

#3726

#894

#2171

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0