within my subsection I have a figure after which further text should follow. However, the text is shifted after the image and I don't know how to correct this. Here is the latex code:
\documentclass{article}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
\usepackage{outlines}
\usepackage{float}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{csquotes}% Recommended
\usepackage[style=authoryear-ibid,backend=biber]{biblatex}
\title{Title}
\author{...}
\date{26.02.2024}
\usepackage{graphicx}
\begin{document}
\maketitle
\section{Sec1}
\subsection{SubSec1}
Text...
\begin{figure}[H]
\centering
\includegraphics[width=1\textwidth]{example-image.png}
\caption{...}
\end{figure}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{document}

Hfloat type, if not you should get an error message and it will act as a normal float so "float" to a different position (which is the only reason to include anything in afigureenvironment) – David Carlisle Feb 26 '24 at 21:19Hto put the picture in the middle of the section. Otherwise the image would be in front of the entire subsection – Erbas Feb 26 '24 at 21:22TextandText2the output is mock latin Lorem Ipsum. You should provide a small complete document that shows the problem not a fragment we can not run and output from a different document. – David Carlisle Feb 26 '24 at 21:24HI asked if you had defined it. It is not a standardfigureoption. do you get an error saying it's not defined, did you load thefloatpackage (which is usually how people do define it). As you have shown no code it's impossible to guess. – David Carlisle Feb 26 '24 at 21:25[H]why not the standard[htp]? – David Carlisle Feb 26 '24 at 21:28floatpackage. I updated the whole code. The problem occurs exactly like in the image with the following code – Erbas Feb 26 '24 at 21:28htpsome of the Lorem ipsum text is shown above the image and some under it. – Erbas Feb 26 '24 at 21:29\noindentor you could change it globally e.g. by loading\usepackage{parskip}to replace the indent with some vertical space. – samcarter_is_at_topanswers.xyz Feb 26 '24 at 21:34parskippackage worked. Thank you guys – Erbas Feb 26 '24 at 21:35