1

I am trying an inline math expression on latex

the graph is almost surely connected ($\lim_{n \to \infty} \mathrm{P}(G(n,p) \text{is connected}) \to 1 $

and it outputs the subscript term next to "lim". How do I get it under "lim" like in eqn (6) while using inline.

enter image description here

  • 3
    There is a reason why it is typeset as a subscript in i line math. Placing it under disturbs the line spacing too much. Your other line in the image is displayed math and the limit is automatically placed under. – daleif Sep 18 '22 at 17:11
  • why have you again tagged this bibtex and biblatex? https://tex.stackexchange.com/questions/657640/getting-math-expression-on-same-line-as-text#comment1638242_657640 – David Carlisle Sep 18 '22 at 17:38
  • 1
    If you absolutely want the subscript under $\lim$, you can code \lim \limits_{n\to\infty}. – Bernard Sep 18 '22 at 18:04

2 Answers2

2

Update

\documentclass{article}
\usepackage{amsmath}
\usepackage{lipsum}
\begin{document}
\lipsum[1][1-2]

the graph is almost surely connected ($\lim_{n \to \infty} \mathrm{P}(G(n,p) \text{is connected}) \to 1 $

\lipsum[1][1-2]

the graph is almost surely connected ($\lim\limits_{n \to \infty} \mathrm{P}(G(n,p) \text{is connected}) \to 1 $

\lipsum[1][1-2] \end{document}

enter image description here

Clara
  • 6,012
1

In one of my documents I use this

\documentclass{article}
\usepackage{tikz}
\usepackage{bigints}
\newcommand{\Lim}[1]{\raisebox{0.5ex}{\scalebox{0.8}{$\displaystyle 
\lim_{#1}\;$}}}
\begin{document}
In classical graph thoery the graph is almost surely connected $\left(\Lim{\rightarrow\infty}\operatorname{P}(G(n, p)\text{ is connected})\right)\rightarrow 1$
\end{document}

enter image description here

I could've sworn though I got this from a question here lol, but I can't seem to find it so whatever.

Max0815
  • 111
  • 2