Copy this limit out of a PDF made by pdflatex, the program most LaTeX documents go through, and paste it into a plain text editor.
Pasted
f (x + h) โ f (x) hโ0 h lim
A PDF does not store a formula. It stores glyphs, each placed at a position on the page, and a program that extracts the text has to guess an order from the positions. The numerator sits above the fraction bar and the denominator below; the condition under "lim" hangs beneath it. The extractor reads them as lines of print, top to bottom, and the structure that made them one formula is gone.
It does not have to be that way. Copied out of the PDF our software made of the same formula, the paste is one line, in reading order:
Pastedlim_(hโ0) (f(x + h) โ f(x))/h
Both pastes were taken with pdftotext, the extractor of the poppler library, from PDFs made when this site was built. Other viewers extract text in their own ways, so a usual LaTeX PDF can come apart differently in each. More examples, side by side, are on the copy page.