我真的不知道为什么句子不只是继续,而是在文本中的任何图形中都中断了。你知道怎样才能避免这种情况吗?我用红色圈了出来。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{float}
\usepackage{caption}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{threeparttable}
\usepackage{caption} \captionsetup[table]{skip=4pt}
\usepackage{caption} \captionsetup[figure]{skip=3pt}
\usepackage{threeparttablex}
\usepackage[T1]{fontenc}
\usepackage[a4paper, left=2.5cm, right=3.5cm, top=2.5cm, bottom=2.5cm]{geometry}
\usepackage{setspace}
\usepackage{mwe}
\usepackage[toc,page]{appendix}
\onehalfspacing
\usetikzlibrary{intersections}
\usepackage{hanging}
\usepackage[bottom,hang]{footmisc}
\setlength{\footnotemargin}{10pt}
\usepackage{indentfirst}
\begin{document}
\begin{figure}[H]
\caption{Descriptive Statistics Graphically} \vspace{0.3cm}
\centering
\includegraphics[width=13cm,height=28cm,keepaspectratio]{Figure2}
\begin{tablenotes}
\item \footnotesize Source: based on Gonzalez and Ortega (2013).
\end{tablenotes}
\end{figure}
\end{document}
答案1
环境tablenotes
必须插入threeparttable
。我建议改用copyrightbox
包。我借此机会简化了您的代码(如果您加载 threeparttablex,则无需加载 threeparttable,等等)。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[a4paper, margin=2.5cm]{geometry}
\usepackage[demo]{graphicx}
\usepackage{tikz}
\usepackage{tkz-fct}
\usetikzlibrary{intersections}
\usepackage{float}
\usepackage{caption}
\captionsetup[table]{skip=4pt}\captionsetup[figure]{skip=3pt}
\usepackage{booktabs}
\usepackage{threeparttablex}
\usepackage{setspace}
\usepackage{mwe} \onehalfspacing
\usepackage{hanging}
\usepackage[bottom,hang]{footmisc}
\setlength{\footnotemargin}{10pt}
\usepackage{copyrightbox}
\begin{document}
\begin{figure}[!htb]
\caption{Descriptive Statistics Graphically} \vspace{0.3cm}
\centering
\copyrightbox[b]{\includegraphics[width=13cm, height=8cm, keepaspectratio]{Figure2}}
{Source: based on Gonzalez and Ortega (2013). Also based on Ortega and Gonzalez (2014). }
\end{figure}
\end{document}