Github

LaTeX template for GitHub including general CI/CD actions and Mathematica templates

Category

Other

License

Free to use (MIT)

File

src/github-latex-template.tex

github-latex-template.texRead-only preview
\documentclass[12pt,letterpaper,oneside,reqno]{amsart}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
% \usepackage{mathrsfs}
% \usepackage{mdframed}
\usepackage{array}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage[
  unicode,                  % allow unicode characters in bookmarks
  pdfpagelabels,            % use page numbers as labels in PDF
  hyperindex,               % add page numbers to index entries as hyperlinks
  colorlinks=true,          % color the text of links instead of boxes
  linkcolor=red,            % color of internal links (sections, equations)
  urlcolor=blue,            % color of URLs
  citecolor=red             % color of citation links
]{hyperref}

\usepackage{geometry} % Page layout and margins

% Geometry settings (each on its own line for clarity)
\geometry{
  left=1in,    % left margin
  right=1in,   % right margin
  top=1in,     % top margin
  bottom=1in,  % bottom margin
  %showframe    % draw the page frame (useful for checking margins)
}

%% Figures and captions
\usepackage{float}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{graphicx}

% display line numbers
\usepackage{lineno}
\linenumbers

% draw the page frame (useful for checking margins)
\geometry{showframe}

% margins and layout
\linespread{1.7}

% \emergencystretch=1em
% \raggedbottom
% \apptocmd{\sloppy}{\hbadness 10000\relax}{}{}

\newcommand \coeffA [3][A] {{\mathbf{#1}}_{#2,#3}}
\newcommand \polynomialP [4][P]{{\mathbf{#1}}^{#2}_{#3}(#4)}

%\newcommand \anglePower [2]{\langle #1 \rangle \sp{#2}}
%\newcommand \curvePower [2]{\{#1\}\sp{#2}}

% factorial notations
\newcommand \centralFactorial [2] {#1^{[#2]}}
\newcommand{\fallingFactorial}[2]{\left(#1\right)_{#2}}
\newcommand{\risingFactorial}[2]{#1^{\left(#2\right)}}
\newcommand{\generalizedFactorial}[3]{\left(#1\mid #2\right)_{#3}}

\newcommand{\KnuthRFoldSum}[3]{\Sigma^{#1}\,{#2}^{#3}}
\newcommand{\tsum}{\mathop{\textstyle\sum}}

% Special numbers
\newcommand{\stirlingii}{\genfrac{\{}{\}}{0pt}{}}
\newcommand{\tstirlingii}[2]{{\textstyle\genfrac\{\}{0pt}{}{#1}{#2}}}

\newcommand{\eulerian}[2]{\genfrac{\langle}{\rangle}{0pt}{}{#1}{#2}} % Eulerian
\newcommand{\teulerian}[2]{{\textstyle\genfrac\langle\rangle{0pt}{}{#1}{#2}}}

\newcommand \bernoulli [2][B] {{#1}_{#2}}
\newcommand{\stirlingi}{\genfrac{[}{]}{0pt}{}}

% % Ordinary derivatives
\newcommand{\od}[2]{\frac{\mathrm{d} #1}{\mathrm{d} #2}}
\newcommand{\odd}[3]{\frac{\mathrm{d}^{#3} #1}{\mathrm{d} #2^{#3}}}

% Partial derivatives
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\newcommand{\pdd}[3]{\frac{\partial^{#3} #1}{\partial #2^{#3}}}

% free foot note
\let\svthefootnote\thefootnote
\newcommand\freefootnote[1]{%
  \let\thefootnote\relax%
  \footnotetext{#1}%
  \let\thefootnote\svthefootnote%
}


\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{observation}[theorem]{Observation}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{example}[theorem]{Example}
\newtheorem{conjecture}[theorem]{Conjecture}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{question}[theorem]{Question}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{assumption}[theorem]{Assumption}
\newtheorem{algorithm}[theorem]{Algorithm}
\newtheorem{convention}[theorem]{Convention}

\title[LaTeX Template for GitHub]
{LaTeX Template for GitHub}
\author[Petro Kolosov]{Petro Kolosov}
\date{\today}

% metadata
\input{metadata/msc2010.tex}
\input{metadata/keywords.tex}
\input{metadata/hypersetup.tex}
\address{DevOps Engineer}
\email{kolosovp94@gmail.com}
\urladdr{https://kolosovpetro.github.io}

\begin{document}

\begin{abstract}
  \input{sections/01_abstract}
\end{abstract}

\maketitle

\freefootnote{DOI: \url{https://doi.org/10.5281/zenodo.18040979}}

\tableofcontents


\section{Introduction} \label{sec:introduction}
\input{sections/02_introduction}


\section*{Conclusions}
\input{sections/03_conclusions}


\section*{Acknowledgements}
\input{sections/04_acknowledgements}

\bibliographystyle{unsrt}
\bibliography{github-latex-template}

\clearpage

\section*{Mathematica}
\input{sections/05_mathematica.tex}

\clearpage

\input{metadata/footer}

\end{document}
Preview
Github preview
Github LaTeX Template | Bibby | Bibby AI