Over here is a recent paper on continued fractions, and I was wondering how I could format Gauss' K notation in this fashion. Here is a picture to demonstrate what I mean:
I am unsure how to format the alligned position of the + signs and ellipsis without aligning them with the vinculums of the fractions a(k)/b(k).
To format the size, font, indices, etc of the K notation, I tried doing: \operatornamewithlimits{\Large{\Bigg\mathcal{K}}}}_{m=1}^\infty
or
\operatorname*{\Large{\Bigg\mathcal{K}}}}\limits_{m=1}^\infty
and experimented with \large, \big, \bigg, with or without.
It seems that the size is right, but the indices are... way off. Can somebody help me, please? I have searched for some related posts (e.g. here), but amidst my search, I could not find the appropriate format I am looking for, as depicted above.
My thoughts: I think I need to install a package (e.g. amsmath) that can enhance typesetting and other facilities. I am writing a paper on Overleaf - does Overleaf come wit this package?
I am not new to TeX, but I believe this is either my first or second post. If I am doing something wrong, or failing to follow the guidelines, please let me know asap, and I will try to amend my question/post accordingly.
Thank you in advance.





amsmathpackage to use\operatornamewithlimitsor\operatornameregardless? – bclzyjhr Apr 26 '20 at 09:01\newcommandinstead of\def). (To answer your question about Overleaf: Overleaf has all packages installed that come with a normal TeX live installation.amsmathis definitely one of those. You can just say\usepackage{amsmath}in the preamble and are good to go.) – moewe Apr 26 '20 at 09:01\contFracOpethat looks familiar) https://tex.stackexchange.com/q/73195/35864. Also interesting: https://tex.stackexchange.com/q/23432/35864 – moewe Apr 26 '20 at 09:04\mathrmin the code of\contFracOpeseems unnecessary. – moewe Apr 26 '20 at 09:08\DeclareMathOperator*{\Kay}{\vcenter{\hbox{\huge\(\mathcal{K}\)}}}and\newcommand{\bottom}[1]{\begin{array}{c}{}\\#1\end{array}}in your preamble, and then in your document write\[\Kay_{m=1}^{\infty} \bigg(\frac{a_m}{b_m}\bigg) :=\frac{a_1}{b_1}\bottom{+} \frac{a_2}{b_2} \bottom{+} \frac{a_3}{b_3} \bottom{+}\bottom{\cdots}\]. – bclzyjhr Apr 26 '20 at 09:28