Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

physics extension missing macros #2449

Closed
bdtc opened this issue Jun 3, 2020 · 3 comments
Closed

physics extension missing macros #2449

bdtc opened this issue Jun 3, 2020 · 3 comments
Assignees
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Milestone

Comments

@bdtc
Copy link

bdtc commented Jun 3, 2020

v3 physics extension:

Missing the macros: \Bqty, \Residue, \ip.

(\Residue is in the style file, but not mentioned in the physics package documentation.)

It would be nice to have a way to request the equivalent to the options italicdiff and arrowdel.

<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<script
         id="MathJax-script"
         src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
></script>
</head>

<body>


<div class="hidden" >
\(\require {physics}\)
</div>


<p>
<kbd>\pqty</kbd>: \(\pqty {a}\) <kbd>\vqty</kbd>: \(\vqty {a}\) <kbd>\bqty</kbd>: \(\bqty {a}\) <kbd>\Bqty</kbd>: \(\Bqty {a}\)
</p>


<p>
<kbd>\Residue</kbd>: \(\Residue [f(z)]\)
</p>


<p>
<kbd>\innerproduct</kbd>: \(\ip {\frac {A}{B}} \quad \ip {\frac {A}{B}}{b}\)
</p>

<p>
<kbd>\innerproduct*</kbd>: \(\ip *{\frac {A}{B}} \quad \ip *{\frac {A}{B}}{b}\)
</p>

</body>
</html>
@zorkow
Copy link
Member

zorkow commented Jun 3, 2020

  • \Bqty is actually implemented but produces an error.
    • Added missing protection around braces.
  • \Residue is not in the manual. But it should be added as the base operator for '\Res'
  • \ip must have been an oversight and should be added.
  • \qsince produces a bug.
    • Removes trailing comma in definition.

@zorkow zorkow self-assigned this Jun 3, 2020
@zorkow zorkow added the Accepted Issue has been reproduced by MathJax team label Jun 3, 2020
@ickc
Copy link

ickc commented May 8, 2021

copy from #694 to deduplicate:

The following commands are not working:

\Bqty{ \frac{1}{1+\frac{1}{2}} }
\qsince

@zorkow
Copy link
Member

zorkow commented May 14, 2021

PR 704 implements the missing/incorrect macros and the two options.

Options can be set in the global configuration object:

    <script>
      MathJax = {
      tex: {
          packages: ['base', 'physics'],
          inlineMath: [['$', '$'], ['\\(', '\\)']],
          physics: {
             italicdiff: true,
             arrowdel: true
           }
         }}
    </script>

That does not yet work with \require.

zorkow added a commit to mathjax/MathJax-src that referenced this issue Jun 1, 2021
Add missing macros and other improvements in physics package (mathjax/MathJax#2449)
@dpvc dpvc added the Merged Merged into develop branch label Jun 14, 2021
@dpvc dpvc added this to the 3.2 milestone Jun 16, 2021
@dpvc dpvc added Fixed v3.2 and removed Merged Merged into develop branch labels Jul 6, 2021
@dpvc dpvc closed this as completed Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Projects
None yet
Development

No branches or pull requests

4 participants