DRMF / texvcjs

A LaTeX validator/translator for TeX strings embedded in wikitext
0 stars 2 forks source link

implement support for a simple macro #2

Closed physikerwelt closed 9 years ago

physikerwelt commented 9 years ago

@HowardCohl can you provide the example we discussed on hangouts. The chat window is gone

HowardCohl commented 9 years ago

\CatalansConstant

One should make texvcjs allow for the above macro. right?

physikerwelt commented 9 years ago

Yes the goal is that the input

./texvcjs "\\CatalansConstant"

returns

+\CatalansConstant
poortho commented 9 years ago

I found out how to add a command- apparently all you need to do is add it in texutil.js, and then texvcjs recognizes it as a command. I already changed it in my repository, should I change it here as well? Also, I put it under other_literals1- is there a specific place that it needs to be placed in or does it not matter?

physikerwelt commented 9 years ago

To complete this task you will need to open a pull request with your change Based on that it's easier to discuss the rest.

HowardCohl commented 9 years ago

Since you are modifying texvcjs, shouldn't you name is something else, such as slatexjs?

physikerwelt commented 9 years ago

I would not worry about that right now. It would be optimal if our changes would be additive and could serve as an extension / plugin to texvcjs. It's one of the MediaWik's goals to make the grammar customizable

poortho commented 9 years ago

I tested this for a while now and it seems to work fine, so I have closed this issue.

physikerwelt commented 9 years ago

Great. However to ensure that this will work in the future as well please also add a testcase