From 80280a2b65b921325b1b1e5b661c26609ed3fcee Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Mon, 15 Feb 2021 21:59:44 -0600 Subject: [PATCH] subfigures and matrix --- 3_equ-tab-figs/1_equations/main.tex | 8 ++++++ 3_equ-tab-figs/2_figures/main.tex | 44 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/3_equ-tab-figs/1_equations/main.tex b/3_equ-tab-figs/1_equations/main.tex index 50b8799..4ac346e 100644 --- a/3_equ-tab-figs/1_equations/main.tex +++ b/3_equ-tab-figs/1_equations/main.tex @@ -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} diff --git a/3_equ-tab-figs/2_figures/main.tex b/3_equ-tab-figs/2_figures/main.tex index 51a2f4e..eb49d45 100644 --- a/3_equ-tab-figs/2_figures/main.tex +++ b/3_equ-tab-figs/2_figures/main.tex @@ -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} \ No newline at end of file