Browse Source

subfigures and matrix

day-3
parent
commit
80280a2b65
2 changed files with 52 additions and 0 deletions
  1. +8
    -0
      3_equ-tab-figs/1_equations/main.tex
  2. +44
    -0
      3_equ-tab-figs/2_figures/main.tex

+ 8
- 0
3_equ-tab-figs/1_equations/main.tex View File

@ -31,6 +31,14 @@ Previous equations are used to define the Fourier series as:
\label{eq:fourier}
g(t)=a_0+\sum_{m=1}^{\infty}a_m \cos{\left(\frac{2\pi mt}{T}\right)}++\sum_{m=1}^{\infty}b_n \sin{\left(\frac{2\pi nt}{T}\right)}
\end{equation}
\begin{equation}
A=
\begin{pmatrix}
a & b& c\\
d & e &f
\end{pmatrix}
\end{equation}
\end{document}


+ 44
- 0
3_equ-tab-figs/2_figures/main.tex View File

@ -1,6 +1,12 @@
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
%\usepackage{hyperref}
%\captionsetup{subrefformat=parens}
% new suref command
\newcommand{\suref}[2]{\figurename{} \ref{#1}:(\subref{#2})}
\begin{document}
\section{Simple figures}
\label{sec:simple}
@ -12,4 +18,42 @@ This is a simple figure; see \figurename{} \ref{fig:fig-example}.
\caption{Figure's caption.}
\label{fig:fig-example}
\end{figure}
\section{The subsigures option}
\label{sec:subfigures}
Now we are adding three sub-figure in one figure; see \figurename{} \ref{fig:three graphs}. Notice that in \ref{fig:a} ... or by using \suref{fig:three graphs}{fig:a} ...
%on body
\begin{figure}
\centering
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-a}
\caption{The image a}
\label{fig:a}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-b}
\caption{The image b}
\label{fig:b}
\end{subfigure}
\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-c}
\caption{The image c with more text than the other captions}
\label{fig:c}
\end{subfigure}
\caption{Three images together and its large caption}
\label{fig:three graphs}
\end{figure}
\newpage
\section{Tables}
\label{sec:tables}
\end{document}

Loading…
Cancel
Save