mathjax / mathjax/MathJax

Support `\diff` from `esdiff` latex package

Open
#3,513 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Code Example Feature Request Good first contribution
Dominant language
JavaScript
Stars
10.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
It is really annoying to write

\frac{d x}{d y}
\frac{\partial x}{\partial y}

every time I want to render derivative.
There is a latex package called esdiff
which allows to do this:

\diff{x}{y}
\partdiff{x}{y}

as an equivalent to the above.

Describe the solution you'd like
idk how mathjax uses latex, but in a standard project it'd be just adding \usepackage{esdiff}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context

$$
\frac{\partial x}{\partial y}
$$

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked esdiff package description and MathJax's existing LaTeX extension support. Check how the examples using \diff{x}{y} and \partdiff{x}{y} should render, then verify both commands produce the corresponding derivative expressions in MathJax.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, latex
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.