How do I set a TraditionalForm
output for a particular symbol/function?
In particular I would like my user-defined symbol pvB[n,P,x,s,m0,m1]
to have an output that looks like $B_{0\ldots0 1\ldots1}(s,m0,m1)$. Here, the number of $0$'s in the subscript is $n$ and the number of $1$'s in the subscript is $P-n$. The third parameter shouldn't appear in the output, and $s$, $m0$, $m1$ are just arguments. (Of course, if this appears as part of a larger expression, I need to have it be formatted appropriately).
So for example:
TraditionalForm[pvB[2,4,x,s,m0,m1]]
should give
$B_{0011}(s,m0,m1)$.
How can I achieve this?