1

In LaTeX, Is there a way to write a subscript (or superscript) before (i.e. to the left of) the main symbol as in the n_C_k (n choose k) below?

enter image description here

3 Answers 3

4

You could use

{n \choose k} = C^n_k = {}_nC_k

to typeset your example.

1

You can use \sideset as far the main symbol is a math operator:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[\sideset{_1^2}{_3^4}\sum\]
\[\sideset{_a^b}{_c^ d}{\mathop{\kern-.35em\text{\huge C}}}\]
\end{document}
1

I add my suggestion to have the same output of your image using leftidx package. You can see that the alignment of the subscript is the same.

\documentclass[a4paper,12pt]{article}
\usepackage{mathtools,leftidx}

\begin{document}
\[\dbinom{n}{k}=C^{n}_{k}=\leftidx{_n}{C}{_k}\]
\[\tbinom{n}{k}=C^{n}_{k}=\leftidx{_n}{C}{_k}\]
\[{n \choose k}=C^{n}_{k}=\leftidx{_n}{C}{_k}\]
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .