I'm creating a function (HInt
) for a traditional output for integrates.
For example:
HInt[f, x]
If I specify just the domain, like this:
HInt[f, {v, V}]
I have:
How to modify my function in order to obtain, the following result, if I specify the domain. In other words, how to set de ScriptCapital letters in my code.
Here is my code:
HInt/:MakeBoxes[HInt[f_,x_],StandardForm]:=RowBox[{"\[Integral]",ToBoxes[f],"\[DoubleStruckD]",ToBoxes[x]}]
HInt/:MakeBoxes[HInt[f_,{x_,x1_}],StandardForm]:=RowBox[{SubscriptBox["\[Integral]",ToBoxes[x1]],ToBoxes[f],"\[DoubleStruckD]",ToBoxes[x]}]
Examples to ilustrate:
HInt[f, {a, A}]
HInt[f, {s, S}]
HInt[f, {v, V}]
HInt[f, {g, G}]
ToBoxes
problem in an answer to your recent question. $\endgroup$ – Kuba♦ Jan 30 '19 at 19:09V
to"\[ScriptCapitalV]"
? $\endgroup$ – Kuba♦ Jan 30 '19 at 20:04\[ScriptCapital #]
(where#
can be any letter) in my code. This way every time that I putHInt[f, {#, #}]
he gives de integrate output with the ScriptCapital. $\endgroup$ – Mateus Jan 30 '19 at 20:09{#,#}
if{v, V}
has two different characters. What about characters that don't have script capital version? Please provide couple of examples ofHInt[f, ...]
and show what should be the finalRowBox[...]
. $\endgroup$ – Kuba♦ Jan 30 '19 at 20:11