diff options
Diffstat (limited to 'article')
-rw-r--r-- | article/article-1.png | bin | 0 -> 6011 bytes | |||
-rw-r--r-- | article/article-2.png | bin | 0 -> 4691 bytes | |||
-rw-r--r-- | article/article-3.png | bin | 0 -> 47968 bytes | |||
-rw-r--r-- | article/article.pdf | bin | 0 -> 125429 bytes | |||
-rw-r--r-- | article/article.tex | 85 | ||||
-rw-r--r-- | article/commands.tex | 76 | ||||
-rw-r--r-- | article/packages.tex | 19 |
7 files changed, 180 insertions, 0 deletions
diff --git a/article/article-1.png b/article/article-1.png Binary files differnew file mode 100644 index 0000000..681a58b --- /dev/null +++ b/article/article-1.png diff --git a/article/article-2.png b/article/article-2.png Binary files differnew file mode 100644 index 0000000..bcb566e --- /dev/null +++ b/article/article-2.png diff --git a/article/article-3.png b/article/article-3.png Binary files differnew file mode 100644 index 0000000..f2179ed --- /dev/null +++ b/article/article-3.png diff --git a/article/article.pdf b/article/article.pdf Binary files differnew file mode 100644 index 0000000..61fc4c0 --- /dev/null +++ b/article/article.pdf diff --git a/article/article.tex b/article/article.tex new file mode 100644 index 0000000..8660070 --- /dev/null +++ b/article/article.tex @@ -0,0 +1,85 @@ +\documentclass[english]{article} +\usepackage{titling} +\title{LaTeX Article Template} %Name the document between the brackets +\author{Your Name} %Put your name between the brackets +\date{\today} %Leave this alone and it will automatically use today's date. Change to a specific date if you don't want the date to update automatically. + +\input{packages} +\input{commands} + +\hypersetup{ +colorlinks=true, +linkcolor=black, +filecolor=magenta, +urlcolor=cyan, +pdftitle={\thetitle}, %this displays in the web browser window +pdfauthor={\theauthor}, +pdfsubject={This is a template for making modern-looking LaTex documents}, +pdfkeywords={LaTeX, template, article}, +} + + +\begin{document} +\maketitle +%Begin Document + +\section{Introduction} + +This is a basic article document. +This is my standard document that I like to use that doesn't look too \LaTeX-ey. +The table of contents (TOC) for this document updates automatically as long as you use the proper section labels. + +\subsection{A subsection} + +This is a subsection. +This template currently features sections, subsections, and subsubsections (H1, H2, and H3). + +\subsubsection{A subsubsection} + +This is a subsubsection; this is the third level heading. + +This is an example of a basic table. + +\begin{center} +\begin{tabular}{lll} + \large{\textbf{A}} & \large{\textbf{Header}} & \large{\textbf{Row}} \\ \hline + A & normal & row \\ + A & normal & row \\ + A & normal & row \\ +\end{tabular} +\end{center} + + +\section{This is another section} + +I like to put each sentence of a document on its own line. +I think it makes it easier to edit the document later. +\LaTeX ignores single line breaks and puts the sentences together into paragraphs. + +Include an empty line between sentences to start a new paragraph. +Here are some examples of other writing elements you might want to use in a document. + +This is a bulleted list. + +\begin{itemize} + \item This + \item is + \item a + \item bulleted + \item list +\end{itemize} + +This is a numbered list. + +\begin{enumerate} + \item This + \item is + \item a + \item numbered + \item list +\end{enumerate} + +This is \textbf{bold} and this is \textit{italic} text. +This is a \href{https://www.gitlab.com/jakevandervaate/latex-templates}{hyperlink to the repository that has this template}. + +\end{document} diff --git a/article/commands.tex b/article/commands.tex new file mode 100644 index 0000000..3ab9dbb --- /dev/null +++ b/article/commands.tex @@ -0,0 +1,76 @@ +%%%%%%%%%%%%%%%%%%%%%%%%% +% Non-numbered sections % +%%%%%%%%%%%%%%%%%%%%%%%%% +\titleformat{\section} +[block] %shape of the text (options are hang, block, display, runin, leftmargin, rightmargin, drop, wrap and frame) +{\LARGE\bfseries} %formatting for the text +{} %section label. Any text placed in these brackets will precede the section title. +{0em} %space between the labe and the text +{} %code that precedes the text +[\vspace{-.5em}] %code after the text + +\titleformat{\subsection} +[block] +{\Large\bfseries} +{} %section label +{0em} +{} +[\vspace{-.5em}] + +\titleformat{\subsubsection} +[block] +{\normalsize\bfseries} +{} %section label +{0em} +{} +[\vspace{-.5em}] + +%%%%%%%%%%%%%%%%%%%%% +% Numbered sections % +%%%%%%%%%%%%%%%%%%%%% +%\titleformat{\section} +%[block] +%{\LARGE\bfseries} +%{\thesection} +%{1em} +%{} +%[\vspace{-.5em}] + +%\titleformat{\subsection}[block] +%{\Large\bfseries} +%{\thesubsection} +%{1em} +%{} +%[\vspace{-.5em}] + +%\titleformat{\subsubsection}[block] +%{\normalsize\bfseries} +%{\thesubsubsection} %section label +%{1em} +%{} +%[\vspace{-.5em}] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% End of section numbering commands % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\setlength{\parskip}{1em} %The spacing between paragraphs +\setlist{nosep} %Single-spacing in lists + +% Define the \maketitle command that creates the title page and TOC +\renewcommand{\maketitle}{ +\sffamily %Set san serif font for body text +{\Huge\bfseries +\thetitle} + +{\huge\theauthor} + +{\Large\thedate} +\newpage +\setcounter{tocdepth}{3} +\setcounter{secnumdepth}{0} %Change 0 to 3 to number the TOC +\tableofcontents +\newpage +\raggedright +} diff --git a/article/packages.tex b/article/packages.tex new file mode 100644 index 0000000..6a89ad6 --- /dev/null +++ b/article/packages.tex @@ -0,0 +1,19 @@ +\usepackage[margin=1.00in]{geometry} %Set page margins +\usepackage{tabularx} %Enable more advanced tables than tabular +\usepackage[T1]{fontenc} %Encode font for screen readers +\usepackage{titlesec} +\usepackage{hyperref} +\usepackage[useregional]{datetime2} +\usepackage{longtable,booktabs,array} +\usepackage{calc} +\usepackage{enumitem} +\usepackage{graphicx} + +\input{glyphtounicode} +\pdfgentounicode=1 + +\usepackage{fancyhdr} %Page numbers, headers, and footers +\pagestyle{fancy} +\fancyhf{} %Clear all default header and footer +\fancyfoot[R]{\thepage} %right aling the page number in the footer +\renewcommand{\headrulewidth}{0pt} %Remove the package's default rule at the top of the page |