I have quite a long figure which I need to adjust to fit to textheight. When I want to include some description below, the figure stop being centered and indents the text. I tried this suggestion to use \floatfoot, but it did not help. Any ideas? Can I place a box inside the figure environment?
Here is an MWE
\documentclass[12pt]{article}
\usepackage{amssymb,amsmath,amsfonts,eurosym,geometry,ulem,graphicx,caption,color,setspace,sectsty,comment,footmisc,caption,pdflscape,subfigure,array,hyperref, bm}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[flushleft]{threeparttable}
\usepackage{amsthm,amsmath}
%\RequirePackage[numbers]{natbib}
%\RequirePackage[authoryear]{natbib}% uncomment this for author-year bibliography
%\RequirePackage{hyperref}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{adjustbox}
\usepackage{textcomp}
\usepackage{mathtools}
\usepackage{setspace}
\usepackage{lipsum}
\usepackage[skip=1ex,
font=small,
textfont=it]{caption}
\makeatletter
\newlength{\fnBreite}
\renewcommand{@makefntext}[1]{%
\settowidth{\fnBreite}{\footnotesize@thefnmark.i}
\protect\footnotesize\upshape%
\setlength{@tempdima}{\columnwidth}\addtolength{@tempdima}{-\fnBreite}%
\makebox[\fnBreite][l]{@thefnmark.\phantom{}}%
\parbox[t]{@tempdima}{\everypar{\hspace{1em}}\hspace{-1em}\upshape#1}}
\makeatother
\normalem
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{proposition}{Proposition}
\newtheorem{hyp}{Hypothesis}
\newtheorem{subhyp}{Hypothesis}[hyp]
\renewcommand{\thesubhyp}{\thehyp\alph{subhyp}}
\newcommand{\red}[1]{{\color{red} #1}}
\newcommand{\blue}[1]{{\color{blue} #1}}
\usepackage[backend=biber, style=authoryear]{biblatex}
\makeatletter
\newrobustcmd*{\parentexttrack}[1]{%
\begingroup
\blx@blxinit
\blx@setsfcodes
\blx@bibopenparen#1\blx@bibcloseparen
\endgroup}
\AtEveryCite{%
\let\parentext=\parentexttrack%
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket}
\makeatother
\addbibresource{bib.bib}
\begin{document}
\begin{figure}[hp]
\centering
\captionsetup{font=small,labelfont=small}
\caption{\textit{Title}}\label{fig:lpoly}
\includegraphics[width=\textwidth, height=0.9\textheight, keepaspectratio]{fig1.png}
\medskip
\floatfoot{\scriptsize{Sources: \lipsum[1] \lipsum[1]}}
\end{figure}
\end{document}
Here is the picture


\floatfoot? And its argument is not closed. And please keep your examples minimal, you're loading a lot of packages that are irrelevant for your problem – daleif Apr 29 '21 at 08:32\scriptsizedoes not take any argument. You should not be using\caption{\textit{Title}}, it you want italig caption, use the caption setup to configure it. – daleif Apr 29 '21 at 08:33\floatfoot(you not loadfloatrowpackage) your example works fine. Anyway, please consider settings in my answer. Also purpose of it is unclear in your case. BTW, in preamble you have big mess. Do you really need all those packages. At list load it in correct order. – Zarko Apr 29 '21 at 08:39\usepackage[skip=1ex, font=small, textfont=it]{caption}– Papayapap Apr 29 '21 at 08:42figure:-(. Please show your of your compilation of the provided document example – Zarko Apr 29 '21 at 08:43