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

Alternative to \stackrel {\frown} {AD} #63

Open
kekearif opened this issue Jun 11, 2017 · 4 comments · May be fixed by #129
Open

Alternative to \stackrel {\frown} {AD} #63

kekearif opened this issue Jun 11, 2017 · 4 comments · May be fixed by #129

Comments

@kekearif
Copy link

kekearif commented Jun 11, 2017

Hey I am using the command \stackrel {\frown} {AD} to show the arc / frown symbol over letters. As seen in the image below:

screen shot 2017-06-11 at 19 36 10

Both of these commands aren't supported in the library. Is there an alternative to these or a way for me to add them in?

@kekearif
Copy link
Author

kekearif commented Jun 11, 2017

I've managed to add the \frown symbol using @"frown" : [MTMathAtom atomWithType:kMTMathAtomRelation value:@"\u2312"], in MTMathAtomFactory.m not sure how to implement \stackrel though and make it float about a given symbol. Do I need to add it accents or something?

@kostub
Copy link
Owner

kostub commented Jun 13, 2017

\stackrel is defined as follows:

\def\stackrel#1#2{\mathrel{\mathop{#2}\limits^{#1}}}

So you could make an operator with limits as the \frown and value as AD. Note however, you may not want it to be a relation, as the spacing between AD and = is messed up.

Also you can add frown without modifying the source code as follows:

[MTMathAtomFactory addLatexSymbol:@"frown"
                            value:[MTMathAtom atomWithType:kMTMathAtomOrdinary
                                                     value:@"\u2312"]];

@CodingSha
Copy link

CodingSha commented Jun 14, 2017

[MTMathAtomFactory addLatexSymbol:@"frown" value:[MTMathAtom atomWithType:kMTMathAtomOrdinary value:@"\u2312"]];
This code doesn't work the way i want it
How can I achieve the mathematical symbols in the picture above?
I found that there was nothe Unicode \u2312 in the given font package
I'm not sure if it's the reason why the code doesn't work

@wingsiu
Copy link

wingsiu commented Jun 22, 2017

Add @"arc" : @"\u0311",
in the NSDictionary* accents in MTMathAtomFactory.m
seems works fine
arc

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

Successfully merging a pull request may close this issue.

4 participants