From a6165b1fff21e4e53541fe569b17df2b206d63a0 Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sun, 25 Aug 2024 14:01:28 -0400 Subject: [PATCH] =?UTF-8?q?Added=20LaTeX=20information=20to=20=C2=ABImpres?= =?UTF-8?q?sum=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git-primer.tex | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/git-primer.tex b/git-primer.tex index 593599d..16ff1df 100644 --- a/git-primer.tex +++ b/git-primer.tex @@ -155,10 +155,10 @@ %% Document Information %%%%%%%%%%%%%%%%%%%%% \author{Kenneth John Odle\\kenneth.odle@tutanota.com} \title{ - {\fontsize{36}{0}\selectfont A Git Primer}\\ - {\fontsize{14}{0}\selectfont for Coders and Creatives}\\ - {\fontsize{12}{0}\selectfont Typeset in \LaTeX{}}\\ - {\fontsize{12}{0}\selectfont v. 0.1.0} + {\fontsize{28}{0}\selectfont A Git Primer}\\ + {\fontsize{12}{0}\selectfont for Coders and Creatives}\\ + {\fontsize{10}{0}\selectfont Typeset in \LaTeX{}}\\ + {\fontsize{10}{0}\selectfont v. 0.2.0} } @@ -179,8 +179,15 @@ All contents \copyright\the\year{} Kenneth John Odle \noindent{}This document is formatted to print well on both letter and A4 size paper. Printing on A4 paper will result in slightly wider top and bottom margins than you see in the digital document, and printing on letter-size paper will result in slightly wider left and right margins than you see in the digital document. \vspace{20mm} -\noindent{}This document is typeset in \LaTeX{}. -\todo[inline]{Talk about some of the major packages: titlesec, verbatim, tabularray} +\noindent{}This document is typeset in \LaTeX{} using the \texttt{report} class to allow the use of chapters. + +Three of the more important packages in this document are \texttt{titlesec}, \texttt{fancyvrb}, and \texttt{tabularray}. + +The \texttt{titlesec} package proves a large number of options for formatting items such as chapter and section headings. The layout of the chapter titles (including the green rules that separate the chapter title from the following content) have been created with this package. + +The \texttt{fancyvrb} package provides the best environment for code samples, including the ability to add line numbers, placing frames and titles around code snippets (as seen in the ``doc\_a.txt Initial Contents'' snippet on \pageref{doc-aIC}), and breaking long lines. + +The \texttt{tabularray} package is, hands-down, the best package for creating tables on \LaTeX{} that is currently available. It provides a large number of easy to understand formatting options. \tableofcontents @@ -285,6 +292,7 @@ In reality, things are rarely going to be this simple, unless you are only makin To get a basic understanding of how branching works in Git, let's start with a simple example. We'll assume that we have a single document called \texttt{doc\_a.txt}. It only contains two lines: +\label{doc-aIC} \begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\fbox{doc\_a.txt Initial Contents}] This is line A1. This is line A2.