MathML - left subscript and superscript - mathml

How to write left subscript and superscript preserving correct syntax of MathML? I mean something like this:
Thanks for the hints.

Use <mmultiscripts> - see http://www.w3.org/TR/MathML3/chapter3.html#presm.mmultiscripts for details. In your case, it's:
<mmultiscripts>
<mi>a</mi>
<mprescripts/> <mi>c</mi> <mi>b</mi>
</mmultiscripts>

Related

Remove space between symbol and text when using 'expression'

I want to use the function 'expression' in r to be able to add symbols as '≤'
Example:
plot(1:10,1:10)
legend(3,8, c(expression(""<="test ")))
With this code there will be a space between ≤ and test, I want there to be no space: ≤test, how to accomplish this?
Thanks
You could use unicode symbols (\U2264 for ≤) and do it without the expression?
plot(1:10,1:10)
legend(3,8, "\U2264test") # legend(3,8, "≤test")

Unicode subscript in R

I want to write \sigma^2_i using unicode I can get two-thirds of the way there with:
"\u03C3\U00B2"
I can't for the life of me figure out how to add subscript. According to this site where I got the unicode for superscript 2 the correct unicode for subscript i is "\u1D62", but in R this does not print subscript i.
I know that for text in plots you can use expression, but this is not for a plot, so expression does not work.
Any help would be appreciated.
edit: it appears that using cat evaluates unicode in cases when just printing doesn't necessarily evaluate the unicode. I still don't understand why the unicode characters are inconsistent. Per this website the unicode character for subscript k is "\u2096", but cat("\u2096") prints a thick |

JMSSecurityExtraBundle nested AND/OR expressions

I have this #PreAuthorize annotation:
#PreAuthorize("(hasRole('PERM_EDIT_ALL_CAMPAIGNS') or (has_role('PERM_EDIT_OWN_CAMPAIGNS') and isCampaignAccountManager(#id))) and (hasRole('PERM_EDIT_ALL_PUBLISHERS') or (has_role('PERM_EDIT_OWN_PUBLISHERS') and isAffiliateAccountManager(#paramFetcher.get('affiliate_id'))))")
I get the following error:
Expected primary expression, but got \u0022has_role\u0022 of type T_NONE at position
40 (0-based)
So the error looks like to appear after the bracket beginning here:
(has_role('PERM_EDIT_OWN_CAMPAIGNS') and isCampaignAccountManager(#id)))
Is there any way to add brackets in and/or expressions?
Thanks in advance
OMG!! sorry, I just realized after I wrote the question. I was using 'has_role' instead 'hasRole' :(

How do you put text below other text?

I need to write the expression meaning optimize over the parameter set. I think I should write something like
$\arg \max_{\substack{w \\ \phi}} f(w,\phi)$
but this puts the subscript below at the right of \max and I'd like to put those subindexes below and centered on the max word.
Which command should I use?
Thanks in advance.
See: http://www.breakthru.altervista.org/?p=27
using
\underset{x}{\operatorname{argmax}}
Have you tried display mode math instead of text mode math. That is, try either:
$\displaystyle\arg \max_{\substack{w \\ \phi}} f(w,\phi)$
Or try:
\[ \arg \max_{\substack{w \\ \phi}} f(w,\phi) \]
$\arg \max\limits_{\substack{w\\ \phi}} f(w,\phi)$
Use this statement. It will surely work. Update the parameters as per your requirement :
max┬(0≤x≤1)⁡〖xe^(-x^2 ) 〗

Latex Math Symbol: Vitanyi puts a tiny plus symbol over his equals. How do I do that?

For example, in http://homepages.cwi.nl/~paulv/papers/algorithmicstatistics.pdf at the bottom of page 5 and top of page 6, he uses a plus/equal symbol and a similar plus/lessthan symbol. I can't figure out how to make that symbol, and I'd like to quote him.
Any help?
Try $\stackrel{top}{bottom}$
You'd want something like this:
$X \stackrel{+}{=} Y$
This positions the plus sign above the equals sign. For example, the following code:
$K(x,y|z) \stackrel{+}{=} K(x|z) \stackrel{+}{<} I(x:y|z)$
produces the following output:
The Comprehensive LaTeX Symbol List (from here) is a great resource, and start for questions like this. You could also contact the author, it's possible he did some LaTex voodoo (math accents and such) to get it to work.
Best of luck.
PS: isn't \pm plus-minus, not plus-equals?
Here's the list of Latex Math Symbols. I don't see the two from the PDF you linked to. Do you know what they mean? You might be able to find an equivalent in the Latex list.

Resources