Skip to content

Document support for \( and \[ math delimiters #12263

Open

Description

@cwickham

What would you like to do?

Report an issue on quarto.org

Description

Originally suggested by @JamesSmith20, moved from #11761 :

2. Support for \( and \[ Math Delimiters

Currently, the Quarto documentation on equations does not mention support for LaTeX-style math delimiters \(...\) (inline) and \[...\] (block). It states that only $...$ and $$...$$ are supported for inline and block math. However, using Pandoc’s markdown+tex_math_single_backslash extension, Quarto can support these delimiters seamlessly across Word, HTML, and PDF formats.

Here is an example:

---
title: "Quarto Playground"
from: markdown+tex_math_single_backslash
format:
  docx
---

Inline math example: \( E = mc^2 \)

Inline math example: $E = mc^2$

Block math example:

\[ a^2 + b^2 = c^2 \]

$$
a^2 + b^2 = c^2
$$

This works well to render equations using the preferred LaTeX-style delimiters, which are consistent with LaTeX standards and widely used by large language models and other AI tools. Including this information in the official documentation would help users integrate equations more easily without manual adjustments.

Suggested Improvements:

  1. Document Support for \( and \[ Delimiters:
    • Update the math documentation to mention the use of markdown+tex_math_single_backslash for LaTeX-style math delimiters.
    • Include examples to show how \(...\) and \[...\] can be used for inline and block math.

Benefits:

  • Makes Quarto’s capabilities more transparent to users.
  • Enhances usability for academic and technical writing by providing official guidance on:
    • LaTeX-style math delimiters for consistency.

Related Discussions:

This request builds upon Discussion #11753 on Quarto’s GitHub platform.

Thank you for considering this enhancement to the documentation!

Activity

  1. added this to the v1.9 milestone on Feb 13, 2026
  2. modified the milestones: v1.9, v1.10 on Feb 24, 2026
  3. mcanouil commented on Jul 5, 2026

    @mcanouil
    Collaborator

    Discussed on quarto-web PR quarto-dev/quarto-web#2088, which I am closing.
    Below a summary of the comments that can be found on the PR itself.

    The \(...\) and \[...\] delimiters rely on Pandoc's tex_math_single_backslash extension, enabled through the reader (from) option.
    Quarto 2 drops the Pandoc binary as reading parser and will support only its own Markdown dialect in the future, without Pandoc format extensions, so this syntax is likely to be removed.
    Documenting a feature that is about to disappear would mislead users, so we prefer to leave it undocumented for Quarto 1.
    Users who need it today can still find guidance in existing issues and discussions.

  4. removed their assignment
    on Jul 5, 2026
  5. modified the milestones: v1.10, v1.11 on Jul 30, 2026
  6. modified the milestones: v1.11, v1.12 on Oct 29, 2026
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

    documentationDoc improvements & quarto-web

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions