Numerous changes to page layout and format, including title
This commit is contained in:
parent
caa596ed73
commit
baa48cdd3d
@ -1,4 +1,4 @@
|
||||
\documentclass[twoside,11pt]{report}
|
||||
\documentclass[twoside,11pt,anypage]{report}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
@ -29,6 +29,7 @@
|
||||
\usepackage{tabularray} % Easy tables
|
||||
\usepackage[]{FiraSans} % sans-serif font; https://tug.org/FontCatalogue/firasansregular
|
||||
\usepackage[]{footmisc}
|
||||
\usepackage{ninecolors}
|
||||
\usepackage{setspace}
|
||||
|
||||
%\usepackage{showframe}
|
||||
@ -79,21 +80,30 @@
|
||||
\usepackage{fancyhdr}
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\fancyhead[LE,RO]{A Git Primer}
|
||||
\fancyhead[RE,LO]{Part 1}
|
||||
\cfoot{Page \thepage}
|
||||
\renewcommand{\footrulewidth}{0.5pt}
|
||||
\fancyhead[LE,RO]{Page \thepage}
|
||||
\fancyhead[RE,LO]{A Git Primer}
|
||||
% \cfoot{Page \thepage}
|
||||
% \renewcommand{\footrulewidth}{0.5pt}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%% Chapter Title Spacing %%%%%%%%%%%%%%%%%%%%
|
||||
\usepackage{titlesec}
|
||||
\titleformat{\chapter}[display]
|
||||
{\normalfont\huge\bfseries}
|
||||
{\chaptertitlename\ \thechapter}
|
||||
{20pt}
|
||||
{\Huge}
|
||||
\titlespacing*{\chapter}{0pt}{0pt}{40pt}
|
||||
\titleformat
|
||||
{\chapter} % command
|
||||
[display] % shape
|
||||
{\normalfont\huge\bfseries} % format
|
||||
{\chaptertitlename\ \thechapter} % label
|
||||
{20pt} % sep
|
||||
{\Huge} % before code
|
||||
[{\color{green6} \hrule height 1pt width \textwidth}{\color{green8} \hrule height 4pt width 0.5\textwidth}] % after code
|
||||
\titlespacing*
|
||||
{\chapter} % command
|
||||
{0pt} % left margin
|
||||
{0pt} % before sep - vertical space before title
|
||||
{50pt} % after sep - separation between title and text
|
||||
% [] % right sep
|
||||
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
@ -141,13 +151,11 @@
|
||||
%% Document Information %%%%%%%%%%%%%%%%%%%%%
|
||||
\author{Kenneth John Odle}
|
||||
\title{
|
||||
{\fontsize{36}{40}\selectfont A Git Primer}\\
|
||||
\vspace{10mm}
|
||||
{\fontsize{12}{16}\selectfont Typeset in \LaTeX{}}\\
|
||||
\vspace{10mm}
|
||||
{\fontsize{12}{16}\selectfont v. 0.1.0}
|
||||
{\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}
|
||||
}
|
||||
\date{\begin{small}\today{}\end{small}}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
@ -157,13 +165,21 @@
|
||||
\maketitle
|
||||
|
||||
\section*{Impressum}
|
||||
\pagestyle{plain}
|
||||
\pagenumbering{gobble} % turn off page numbers
|
||||
|
||||
All contents \copyright\the\year{} Kenneth John Odle
|
||||
|
||||
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\thispagestyle{empty} % hide page numbers on TOC
|
||||
|
||||
\pagenumbering{arabic} % turn page numbers back on
|
||||
|
||||
\chapter{Introduction}
|
||||
\setcounter{page}{1}
|
||||
|
||||
Git is version control software. That is, it allows you to record and track changes to a set of files over time. You can then compare different revisions or even revert some files or the entire project back to a previous version.
|
||||
|
||||
@ -429,8 +445,8 @@ Command & Purpose {\& Example, if applicable} \\
|
||||
|
||||
\begin{longtblr}
|
||||
[
|
||||
caption = {},
|
||||
label = {tb:},
|
||||
% caption = {},
|
||||
label = none,
|
||||
% theme = {custom1}
|
||||
]{
|
||||
width = {\textwidth},
|
||||
|
Loading…
Reference in New Issue
Block a user