Graphics, Figures & Tables ⇒ Figures and subsection
Figures and subsection
I have four figures in my appendix in my thesis. The first two belongs to subsection 1 (title 1), the last two to subsection 2 (title 2). So I want my title 2 appear BEHIND figure 1 and figure 2. But Latex put my title 2 BETWEEN figure 1 and figure 2. Can someone help me?
(Making my figures smaller doesn't work)
Thank you!
Here's the code:
\subsection{Title 1}
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.8]{dependence1}
\caption{figure1}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.8]{dependence2}
\caption{figure2}
\end{center}
\end{figure}
\subsection{Title 2}
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.8]{dependence3}
\caption{figure3}
\end{center}
\end{figure}
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.8]{dependence4}
\caption{figure4}
\end{center}
\end{figure}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Figures and subsection
[1] View topic: Avoidable mistakes
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Figures and subsection
Thus i want the title of subsection 1.2 behind figure 3, but latex put this title behind figure 1. So the reader of my thesis thinks that figure 2 and 3 belongs to section 1.2 but that isn't...
\documentclass[a4paper]{article}
\usepackage[dutch]{babel}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
\begin{document}
\section{Bijlagen}
\subsection{Het verschil $\hat{\rho_c} - \hat{\kappa}$ \label{bijlage2}}
\begin{figure}[htbp]
\centering
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$]{\includegraphics[width=0.5\textwidth]{RhominKappa}}
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$ (QQ-plot)]{\label{QQ1}\includegraphics[width=0.5\textwidth]{QQRhominKappa}}\\
\subfloat[][De frequentie van $\hat{\rho_c}$]{\label{r1}\includegraphics[width=0.5\textwidth]{Rho_freq}}
\subfloat[][De frequentie van $\hat{\kappa}$]{\label{k1}\includegraphics[width=0.5\textwidth]{Kappa_freq}}
\caption{$d = 3$, corr$(X_1,X_2) = 0.5$, corr$(X_1,X_3) = 0.5$, corr$(X_2,X_3) = 0.5$}
\end{figure}
\begin{figure}[htbp]
\centering
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$]{\includegraphics[width=0.5\textwidth]{RhominKappa_corr0109}}
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$ (QQ-plot)]{\includegraphics[width=0.5\textwidth]{RhominKappa_qq}}\\
\subfloat[][De frequentie van $\hat{\rho_c}$]{\includegraphics[width=0.5\textwidth]{Rho_freq_corr0109}}
\subfloat[][De frequentie van $\hat{\kappa}$]{\includegraphics[width=0.5\textwidth]{Kappa_freq_0109}}
\caption{$d = 3$, corr$(X_1,X_2) = 0.9$, corr$(X_1,X_3) = 0.1$, corr$(X_2,X_3) = 0.1$\label{rminkcorr}}
\end{figure}
\begin{figure}[!ht]
\centering
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$ ($d = 3$)]{\includegraphics[width=0.35\textwidth]{RhominKappa_willcorr3}}
\subfloat[][De frequentie van $\hat{\rho_c}$]{\includegraphics[width=0.35\textwidth]{Rho_freq_willcorr3}}
\subfloat[][De frequentie van $\hat{\kappa}$]{\includegraphics[width=0.35\textwidth]{Kappa_freq_willcorr3}}\\
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$ ($d = 10$)]{\includegraphics[width=0.35\textwidth]{RhominKappa_willcorr10}}
\subfloat[][De frequentie van $\hat{\rho_c}$]{\includegraphics[width=0.35\textwidth]{Rho_freq_willcorr10}}
\subfloat[][De frequentie van $\hat{\kappa}$]{\includegraphics[width=0.35\textwidth]{Kappa_freq_willcorr10}}\\
\subfloat[][$\hat{\rho_c}-\hat{\kappa}$ ($d = 30$)]{\includegraphics[width=0.35\textwidth]{RhominKappa_willcorr30}}
\subfloat[][De frequentie van $\hat{\rho_c}$]{\includegraphics[width=0.35\textwidth]{Rho_freq_willcorr30}}
\subfloat[][De frequentie van $\hat{\kappa}$]{\includegraphics[width=0.35\textwidth]{Kappa_freq_willcorr30}}
\caption{Willekeurige correlaties (1000 keer uitgevoerd)\label{willcorr310}}
\end{figure}
\subsection{$\hat{\rho_c}$ en $\hat{\kappa}$ in functie van n \label{bijlage3}}
\begin{figure}[!ht]
\centering
\subfloat[][$\hat{\rho_c}$ (n=1000)]{\includegraphics[width=0.35\textwidth]{RhoIfvN_2}}
\subfloat[][$\hat{\rho_c}$ (n=10000)]{\includegraphics[width=0.35\textwidth]{RhoIfvN}}\\
\subfloat[][$\hat{\kappa}$ (n=1000)]{\includegraphics[width=0.35\textwidth]{RhoIfvN_2}}
\subfloat[][$\hat{\kappa}$ (n=10000)]{\includegraphics[width=0.35\textwidth]{KappaIfvN}}
\caption{$\rho$ en $\hat{\kappa}$ in functie van n met een correlatie van 0.5 (d=3)\label{renktien}}
\end{figure}
\begin{figure}[!ht]
\centering
\subfloat[][$\hat{\rho_c}$, onafhankelijke variabelen]{\includegraphics[width=0.4\textwidth]{RhoIfvN_Dis50_onafhVar_2}}
\subfloat[][$\hat{\rho_c}$, afnemende correlatie]{\includegraphics[width=0.4\textwidth]{RhoIfvN_Dis50_afnemendeCorr_2}}\\
\subfloat[][$\hat{\kappa}$, onafhankelijke variabelen]{\includegraphics[width=0.4\textwidth]{KappaIfvN_Dis50_onafhVar_2}}
\subfloat[][$\hat{\kappa}$, afnemende correlatie]{\includegraphics[width=0.4\textwidth]{KappaIfvN_afnemendeCorr_2}}
\caption{$\hat{\rho_c}$ en $\hat{\kappa}$ in functie van n, d=50\label{renkifvn5}}
\end{figure}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Figures and subsection
Almost. But you didn't tag the code as such by using the code environment. And the bunch of graphics files you include is not present here so that you have to replace them with equivalent \rule commands like mentioned in the topic I linked above. So I can only make a suggestion without the guarantee for functionality. This would be to insert a \clearpage command after the third figure.frederik wrote:Ok, I hope this code is the good one?
Thus i want the title of subsection 1.2 behind figure 3, but latex put this title behind figure 1. So the reader of my thesis thinks that figure 2 and 3 belongs to section 1.2 but that isn't [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10