I am preparing a document of class article in LaTex. I am required to include the figure captions, but provide the figures themselves as separate image files without incorporating them into the document. Therefore, I would like to create a section in my file containing all the figure captions, but format them basically like the rest of the "normal" text in the document.
I believe someone asked a similar question before, but wanted to create a list of figures to basically the same end by only printing the long title.
However, I would like to know whether this is also possible by modifying e.g. the \vspace parameter.
So far, I have used the following code for each of my figures:
\documentclass[12pt,a4paper]{article}
\usepackage[a4paper,left=2.6cm, right=2.9cm, top=3.5cm, bottom=3.5cm]{geometry}
\renewcommand{\baselinestretch}{2}
\usepackage{lineno}
\usepackage{caption}
\captionsetup{justification=raggedright,singlelinecheck=false}
\begin{document}
\linenumbers
\section{Some section}
Some text
\section{Figure legends}
\begin{figure}[!h]
\internallinenumbers
\caption{This is my caption.}
\label{fig:myfig}
\vspace{-1.2cm}
\end{figure}
\begin{figure}[!h]
\internallinenumbers
\caption{This is my other caption.}
\label{fig:myfig1}
\vspace{-1.2cm}
\end{figure}
\clearpage
\end{document}
This gives an output that is somewhat similar to what I need. However, I have the problem my last caption does not fit on the same page as the others and is therefore positioned in the middle of the following page. I have tried replacing \begin{figure}[!h] with \begin{figure}[!t], but this does not yield the output I need. Instead I would like the caption to start in the first line of the new page. Also, I wonder whether there is a way to set the spacing between the different captions to equal that of lines in the rest of the text.
\refstepcounter{figure}} – John Kormylo Aug 09 '23 at 15:01