Basic

A simple LaTeX template

Category

Other

License

Free to use (MIT)

File

main.tex

main.texRead-only preview
\documentclass{article}

% Math packages from AMS, graphicx for images, hyperref for colored links, lineno for inserting line numbers, lipsum for generating random chunks of text, geometry for margins, natbib for bibliography, subcaption for subfigures, authblk for affiliation 
\usepackage{amsmath, amsfonts, amssymb, graphicx, hyperref, lipsum, setspace, subcaption, lineno, natbib, authblk}

% Reduce the margin a bit
\usepackage[a4paper, total={6in, 10in}]{geometry}

% To remove line numbers, comment out the next line 
\linenumbers

% Get more colors than default set and color links (citations, urls).
\usepackage[dvipsnames]{xcolor} 
\hypersetup{colorlinks=true, linkcolor=MidnightBlue, urlcolor=MidnightBlue,
            citecolor=MidnightBlue}

% //////////////////////////////////////////////////////////////
\begin{document}
\title{Title}
\author{Author}
\affil{Affiliation}
% \date{} % Uncomment to add today's date
\maketitle
\begin{abstract}
    \lipsum[1]
\end{abstract}
% //////////////////////////////////////////////////////////////

\section{Introduction}
\lipsum[1] \citep{batra2022Machine}

\begin{figure*}[!h]
    \begin{subfigure}[h]{0.3\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{subcaption}
    \end{subfigure}\hfill
    \begin{subfigure}[h]{0.3\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{subcaption}
    \end{subfigure}\hfill
    \begin{subfigure}[h]{0.3\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{subcaption}
    \end{subfigure}\hfill
    \begin{subfigure}[h]{0.3\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{subcaption}
    \end{subfigure}\hfill
    \begin{subfigure}[h]{0.3\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{subcaption}
    \end{subfigure}\hfill
    \begin{subfigure}[h]{0.3\linewidth}
        \includegraphics[width=\linewidth]{example-image}
        \caption{subcaption}
    \end{subfigure}\hfill
    \caption{Figure caption}
\end{figure*}

\lipsum[1]

% ////////////////////////////////////////////////////////////
\bibliographystyle{plainnat}
\bibliography{ref}
\end{document}
Preview
Basic preview
Basic LaTeX Template | Bibby | Bibby AI