I get no error and also the reset of subfigure numbering if I remove tabularx
, that's probably the cause for the issue.
You simply don't need it just for setting multiple subfigures.
I also changed Thesis
to book
, as it's impossible to know what class you're loading.
\PassOptionsToPackage{demo}{graphicx} % just for this example
\documentclass[11pt, oneside]{book} % The default font size and one-sided printing (no margin offsets)
\usepackage[T1]{fontenc}
\usepackage{mathtools} % loads »amsmath«
\usepackage{amsmath}
\usepackage{physics}
\usepackage{float}
\usepackage{adjustbox}
\usepackage[english]{babel}
\usepackage[table]{xcolor}
%\usepackage{showframe} % for demo
\usepackage{lmodern}
\usepackage{microtype}
\usepackage{ragged2e}
\usepackage{lua-visual-debug}
\usepackage{placeins}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[square, numbers, comma, sort&compress]{natbib}
\usepackage{booktabs}
%\usepackage[table,xcdraw]{xcolor}
\usepackage{hyperref}
\hypersetup{urlcolor=blue, colorlinks=true} % Colors hyperlinks in blue - change to black if annoying
\graphicspath{{./Pictures/}} % Specifies the directory where pictures are stored
\title{\ttitle} % Defines the thesis title - don't touch this
\begin{document}
\FloatBarrier
\section{Influence of solid exits}
%compare 5wg and 6wg. REG and SIDE sections, velocity vectors, turbulence, velocity contours?, ... Explain "vortex air-wall" in both, and why it's a clear advantage in 6wg.
\begin{table}[htp]
\centering
\makebox[\columnwidth][c]{%
\begin{minipage}{1.4\linewidth}
\centering
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_5wg_REG_VV}
\caption{In-plane velocity vectors [m/s] - 5-wheels geometry}
\medskip
\end{subfigure}\hfill
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_6wg_REG_VV}
\caption{In-plane velocity vectors [m/s]] - 6-wheels geometry}
\medskip
\end{subfigure} \\
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_5wg_REG_VVz}
\caption{In-plane velocity vectors [m/s] - 5-wheels geometry close-up}
\medskip
\end{subfigure}\hfill
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_6wg_REG_VVz}
\caption{In-plane velocity vectors [m/s] - 6-wheels geometry close-up}
\medskip
\end{subfigure} \\
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_5wg_REG_TANz}
\caption{Tangential velocity contours [m/s] - 5-wheels geometry close-up}
\medskip
\end{subfigure}\hfill
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_6wg_REG_TANz}
\caption{Tangential velocity contours [m/s] - 6-wheels geometry close-up}
\medskip
\end{subfigure} \\
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_5wg_REG_TURBz}
\caption{Subgrid turbulent viscosity ratio [kg/m.s] - 5-wheels geometry close-up}
\medskip
\end{subfigure}\hfill
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{SE_6wg_REG_TURBz}
\caption{Subgrid turbulent viscosity ratio [kg/m.s] - 6-wheels geometry close-up}
\medskip
\end{subfigure} \\
\end{minipage}}
\caption{Influence of the solid exits: 5-wheels geometry (left) and 6-wheels geometry (right)}
\label{solid_exits}
\end{table}
\FloatBarrier\clearpage
\section{Influence of chimneys}
%Chimneys as turbulence creators?
%Chimney diameter? => central reflux! show in both 5wg and 6wg!
%Possible solution => conic chimneys, show with 6wg.
\begin{table}[htp]
\centering
\makebox[\textwidth][c]{%
\begin{minipage}{1.4\textwidth}
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_5wg_REG_VV}
\caption{In-plane velocity vectors [m/s] - 5-wheels geometry}
\medskip
\end{subfigure}
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_6wg_REG_VV}
\caption{In-plane velocity vectors [m/s]] - 6-wheels geometry}
\medskip
\end{subfigure} \\
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_5wg_REG_VVz2}
\caption{In-plane velocity vectors [m/s] - 5-wheels geometry close-up}
\medskip
\end{subfigure}
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_6wg_REG_VVz2}
\caption{In-plane velocity vectors [m/s] - 6-wheels geometry close-up}
\medskip
\end{subfigure} \\
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_5wg_REG_AXIz}
\caption{Axial velocity contours [m/s] - 5-wheels geometry close-up}
\medskip
\end{subfigure}
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_6wg_REG_AXIz}
\caption{Axial velocity contours [m/s] - 6-wheels geometry close-up}
\medskip
\end{subfigure} \\
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_5wg_REG_TURBz2}
\caption{Subgrid turbulent viscosity ratio [kg/m.s] - 5-wheels geometry close-up}
\medskip
\end{subfigure}
\begin{subfigure}[t]{.49\textwidth}
\includegraphics[width=\textwidth,height=2cm]{CH_6wg_REG_TURBz2}
\caption{Subgrid turbulent viscosity ratio [kg/m.s] - 6-wheels geometry close-up}
\medskip
\end{subfigure} \\
\end{minipage}}
\caption{Influence of the chimneys: 5-wheels geometry (left) and 6-wheels geometry (right)}
\label{chimneys}
\end{table}
\end{document}
In the example, I used height=2cm
in order not to get too large floats.
Maybe I'm missing an important complication, but I think all you need to do is (a) define a "scratch" counter variable named, say, scratchcounter
, in the preamble and (b) use an instruction such as
\setcounter{scratchcounter}{\value{theorem}}
immediately after the theorem in question to store the number of the theorem (minus the "prefix") in the counter named scratchcounter
. Its value may be accessed elsewhere in the document via \thescratchcounter
.
\documentclass{article}
\usepackage{amsthm} % or: "\usepackage{ntheorem}"
\newtheorem{theorem}{Theorem}[section]
\newcounter{scratchcounter} % define the scratch counter
\begin{document}
\setcounter{section}{2} % just for this example
\setcounter{theorem}{20}
\begin{theorem}[Pythagoras] \label{thm:pyth}
$a^2+b^2=c^2$.
\end{theorem}
\setcounter{scratchcounter}{\value{theorem}} % Store value of 'theorem' counter
\bigskip\noindent
Later on \dots\ the value of the ``scratch'' counter is \thescratchcounter.
\end{document}
Best Answer
Some details on @Werner's comment: if you use, say, the
subfigure
environment, these lines in your preamble should solve your problem:After
z
, you'll getaa,ab,\dots
. fromsubcaption
If you prefer a numeric subfigure counter, just use something like:
or if you want to prefix with the main figure number: