New Feature: Thermodynamics package - #1563
Open
hammondkd wants to merge 7 commits into
Open
Conversation
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
Signed-off-by: Karl Hammond <kaiserkarl31@yahoo.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains code to implement the vast majority of the commands in the LaTeX package
thermodynamics(written by the same author).This version does not implement all of the options the LaTeX package does, but most of the non-textbook-specific options are supported.
If this PR is incorporated into MathJax, I will add a section to the documentation on CTAN that denotes the limitations the MathJax version has that are different from the LaTeX package.
There are a lot of commands and environments in this package, and I was not certain how the MathJax developers do unit tests/etc., so with that in mind, I include an example HTML file that I used to test the functionality at the bottom of this message.
Some things to note:
(1) Before I started this project, I had not written anything in JavaScript since about 1998, and I had never heard of TypeScript before, so if you see something and think, "Why did he do it that way?" by all means, change it to something that makes more sense!
(2) I may have done some things in here that do not make a lot of sense (see point #1), and there are probably a few ways to break it that I haven't found yet.
(3) I was able to get this working and tested it off of the
masterbranch, but thedevelopbranch code currently posted does not seem to create a valid package that I can import in my browser. There should be no changes to any files except the five associated with the package, however.(4) Some of the package options are currently commented out; these may (or may not?) be implemented later, but they won't work now.
Example file to test this package: