Skip to content

Instantly share code, notes, and snippets.

@fperez
Last active June 15, 2023 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fperez/f5ac12281607927d420f3d28b474718d to your computer and use it in GitHub Desktop.
Save fperez/f5ac12281607927d420f3d28b474718d to your computer and use it in GitHub Desktop.
A simple tex file to test the fontawesome5 package as a replacement for ifsym
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% LaPreprint: PREPRINT TEMPLATE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[9pt,arxiv]{lapreprint}
% Import packages
\usepackage[version=4]{mhchem} % For chemical notation
\usepackage{siunitx} % For SI units
\usepackage{pdflscape} % For putting pages in landscape mode
\usepackage{rotating} % For rotating specific elements
\usepackage{textgreek} % Greek symbols
\usepackage{gensymb} % Symbols
\usepackage{fontawesome5} % For the \faEnvelope symbol
\faStyle{regular} % Default fontawesome icons style to outline
\usepackage{orcidlink} % For the \orcidlink
\usepackage{listings} % For inserting code chunks
\usepackage{colortbl} % For Knitr table colouring
\usepackage{tabularx} % For making Knitr tables compatible
\usepackage{longtable} % For multi-page tables
\usepackage{subcaption}
\usepackage{multirow}
\usepackage{snotez} % For sidenote environments. enotez for endnotes
\usepackage{csquotes} % For language-based quote rules (helps BiBLaTeX)
\usepackage{url}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Make declarations
\DeclareSIUnit\Molar{M}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% BIBLIOGRAPHY
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{hyperref}
\usepackage[ % use biblatex for bibliography
backend=biber, % use biber or bibtex backend
style=authoryear, % choose style
natbib=true, % allow natbib commands
hyperref=true, % activate hyperref support
alldates=year, % only show year (not month)
]{biblatex}
% Just avoiding some rogue fields that cause issues with certain styles
\AtEveryBibitem{
\clearfield{urlyear}
\clearfield{urlmonth}
\clearlist{language}
}
% Update to your bibliography file
\addbibresource{main.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% ARTICLE SETUP
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Paper title
\title{A modest idea}
% Authors - you can use \orcidlink{} and \authfn{} - see contribution note
\author[ \orcidlink{0000-1234-5678-9012} 1, 2 \faEnvelope]{Jane Doe}
% Affiliations
\affil[1]{Earth}
\affil[2]{The Moon}
% Other metadata. Feel free to add your own
\metadata[]{\faEnvelope\hspace{.5ex} For correspondence}{jdoe@earth.com}
\metadata[]{Keywords}{markdown; open-science}
% Surname of the lead author(s) for the running footer
\leadauthor{Jane Doe}
\shorttitle{Modestly}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% ARTICLE START
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\begin{abstract}
We introduce a simple idea.
\end{abstract}
\subsection*{Background}
Why is this important?
\begin{enumerate}
\item Not sure
\item Will figure it out later
\end{enumerate}
Some math might help us here?
\begin{equation}
x+\gamma + \alpha
\end{equation}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment