Texmaker and TeXstudioFigures, subfigures, wrap figures

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
Dmytro
Posts: 1
Joined: Thu Mar 06, 2014 1:41 pm

Figures, subfigures, wrap figures

Post by Dmytro »

Dear all,

I have been playing around with figures and subfigures environments, but have not succeeded much. Basically, in order to insert figures (and subfigures) and at the same time wrap them up around the passage I have utilised the following packages:
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{caption}
\usepackage{subcaption}

So that to place the figure/s I have used the next environment:
\begin{wrapfigure}[h]{0.5\textwidth}
\begin{center}
\begin{subfigure}
\includegraphics[width=0.2\textwidth]{title1.png}
\caption{tyre-smooth surface interaction}
\label{fig:tyre1}
\end{subfigure}

\begin{subfigure}
\includegraphics[width=0.5\textwidth]{title2.png}
\caption{tyre-smooth surface interaction}
\end{subfigure}
\end{center}

\end{wrapfigure}

However, when I compile the code, long list of errors are popping up in relation to one of those environment lines like as:
- missing \endcsname inserted;
- missing number treated as zero;
- illegal unit of measure;
Can you please help me to identify the hidden problem? Thanks immensely in advance! Cheers!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply