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

actuarialsymbol - MathJax Third party extension #46

Open
MADEV34 opened this issue Mar 28, 2021 · 3 comments
Open

actuarialsymbol - MathJax Third party extension #46

MADEV34 opened this issue Mar 28, 2021 · 3 comments

Comments

@MADEV34
Copy link

MADEV34 commented Mar 28, 2021

Hi!

I'm trying to create a MathJax extension to mimic the actuarialsymbol and actuarialangle LaTex package. Here is a demonstration of some of the implemented features. I am a little confused on how to publish my work in MathJax 3.1 since all extensions seem to have been created in earlier versions.

Can someone give me some cues on how I should do it?

Thanks!

Actuarial Symbol extension

@dpvc
Copy link
Member

dpvc commented Mar 29, 2021

Do you have a GitHub repository for your extension? If not, that would be a good place to start, as you can use that as a platform from which to publish your code. If you include the web packed component file in the repository, then people can use a CDN like jsDelivr to access the component directly from there, so that is an easy approach. Even better would be to create an npm package (you can arrange fro GitHub to publish that when you tag a release), so that node users can include your component directly into their projects that way.

As for how you set up the extension itself, there is an example in the MathJax web demos repository (the custom tex extension example).

This example is also listed in the MathJax Documentation with a little more detail in the instructions for building and loading the extension.

See if that gets you where you need to go. Otherwise, once you make the code available on GitHub, we can take look and her more specific about what you would need to do.

@dpvc
Copy link
Member

dpvc commented Mar 29, 2021

PS, note that the README for this repository indicates that it is for v2 only. WE no longer house a third-party repository for v3, since it is no longer necessary to have a common repository in order to get the extensions hosted on a CDN. Every GitHub repository can be accessed vis CDN now, so it is easy to just use your won repository for that.

@vigou3
Copy link

vigou3 commented Jul 20, 2021

Marc-André (madev34) was working with me on the actuarialsymbol-mathjax project. The goal is to bring most of the functionality of the actuarialangle and actuarialsymbol LaTeX packages to MathJax, mostly for people using Bookdown to write actuarial documentation.

(I'm not the target audience since I use LaTeX exclusively; I merely do this for the community.)

Now, we still have two main issues:

  1. I need a MathJax frontend for the MathML element <mmultiscripts> to position sub- and superscripts on all four corners of a principal symbol. There seems to already exist an implementation. How do we reuse this in our code?
  2. Publishing our extension so that it is trivial for writer to use it. I'm quite familiar with the LaTeX and R package system, but not with the MathJax one (or, for full disclosure, with MathJax at all).

If you can bear with me and hold my hand a little, it'd be greatly appreciated to get your help to complete this project.

Perhaps we could start with the first issue above?

Thanks in advance!

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

3 participants