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

[Enhancement] Compability to physics package #16

Open
Firestar-Reimu opened this issue Mar 22, 2024 · 1 comment
Open

[Enhancement] Compability to physics package #16

Firestar-Reimu opened this issue Mar 22, 2024 · 1 comment

Comments

@Firestar-Reimu
Copy link

The latex physics package define some derivatives:

\dd \dv \pdv \var \fdv

which that: (physics = derivative)

\dd  = \odif
\dv  = \odv
\var = \fdif

I think you can make aliases to enhance the compability to physics package for:

  • Frequent users of the legacy physics package;
  • Those who have to maintain a document written with physics;
  • Users who failed to use unicode-math with physics.
@sjelatex
Copy link
Owner

sjelatex commented Apr 6, 2024

While I understand the arguments for compatibility with the syntax of the LaTeX physics package by introducing aliases for derivatives, I made a decision when creating the package not to include aliases for existing commands. The primary reason behind this decision was to mitigate the risk of command collisions with those defined by other packages.

However, users who wish to use aliases for the derivatives defined by this package are welcome to do so. They can define their own variants using the commands outlined in Section 5 of the documentation. For example

\DeclareDifferential{\dd}{\mathrm{d}} % \odif
\DeclareDerivative{\dv}{\mathrm{d}} % \odv
\DeclareDifferential{\var}{\delta} % \fdif

Moreover, the documentation specify how the derivatives are defined by this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants