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

Implement general DLMF/DRMF macro #9

Open
HowardCohl opened this issue Jul 15, 2015 · 4 comments
Open

Implement general DLMF/DRMF macro #9

HowardCohl opened this issue Jul 15, 2015 · 4 comments

Comments

@HowardCohl
Copy link
Member

A general DLMF/DRMF macro looks like this

\macro{}...{}[]...[]@...@{}..{},

where \macro is the macro name,
there are n parameters {}...{},
m optional parameters []...[],
p number of @ symbols, and
q number of arguments {}...{}.

Note:
(1) if n>0 then must give full list (possibly empty) of parameters;
(2) if m>0 then []...[] may or may not appear (hence optional);
(3) if p>0 then @'s may appear in any number 0\le p' \le p; and
(4) if q>0 then must give either zero arguments of full q'=q list of arguments.

@physikerwelt
Copy link
Member

I would not know how to do that. I.e. can you elaborate on the goal. The intention of texvcjs is that only valid and renderable latex is passed. Allowing for any macro would change this

@physikerwelt
Copy link
Member

I would prefere to replace that by all commands specified in the csv file... where the csv file should be interchangable without to modify the program

@HowardCohl
Copy link
Member Author

Read in the following csv file

macro name, n, m, p, q
\frac,2,0,0,0
\sinh,0,0,2,1
\cosh,0,0,2,1
\exp,0,0,2,1
\sqrt,1,1,0,0

and then process appropriate LaTeX strings to ensure these are valid.

(remove these from the main file)

@poortho
Copy link

poortho commented Aug 14, 2015

I have not looked at this issue very much, I was hoping to try this after I finished everything else (excluding #11) as it seems like this issue requires much more complex programming that the other issues at the moment, so I was hoping to gain some more knowledge of the program with the other issues before trying to complete this one.

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

No branches or pull requests

3 participants