<commit_before>\documentclass[a4paper,oneside]{book}
\usepackage{graphicx}
\usepackage[colorlinks=true,citecolor=blue]{hyperref}
\usepackage{url}
\usepackage{gensymb}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{textcomp}
\usepackage{caption}
\usepackage[labelformat=simple]{subcaption}
\usepackage{float}
\usepackage[absolute,overlay]{textpos}
\usepackage[strict]{changepage}
\usepackage{tabularx}
\usepackage{array}
\usepackage{wrapfig}
\usepackage{fancyhdr}

%\setlength{\oddsidemargin}{-0.5in} 
%\setlength{\evensidemargin}{0in}
%\setlength{\marginparwidth}{0in}
%\setlength{\marginparsep}{0in}
%\pagestyle{empty}
%\usepackage[top=0.15in, bottom=0.2in, left=0.5in, right=0in]{geometry}
\setlength{\TPHorizModule}{1in}
\setlength{\TPVertModule}{1in}

%% \usepackage{etoolbox}
%% \makeatletter
%% \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
%% \makeatother

\newcommand{\circdegree}{\ensuremath{^\circ}}
\renewcommand\chaptername{}
\renewcommand{\thesubfigure}{\relax}

\renewcommand{\topfraction}{0.95}
\renewcommand{\textfraction}{0.05}
\renewcommand{\floatpagefraction}{0.75}

\fancyfoot[C]{This content is protected by Copyrights. See the~\nameref{Legal} chapter of this document for details.}
\fancyfoot[RO, LE]{\thepage}
\pagestyle{fancy}

\newif\ifletterpaper

\begin{document}

\author{The Astronomy Logbook Project}

\input{build/FrontMatter.tex}

\chapter{Legal}
\label{Legal}

\input{Legal}

\chapter{Acknowledgements}

\input{Acknowledgements}

\chapter{Credits}

\input{Credits}

\mainmatter

\chapter{Glossary of Technical Terms}

\input{Glossary}

\chapter{Understanding and Using the Log Form}

\input{LogFormDescription}

\setlength{\hangindent}{0cm}
\setlength{\parindent}{0cm}

\twocolumn
\chapter{List of Objects by Constellation}
NOTE: Numbers in parantheses are page numbers \\

\input{build/ObjectsByConstellation}

\chapter{List of Objects by Type}
NOTE: Numbers in parantheses are page numbers \\

\input{build/ObjectsByType}
\onecolumn

\chapter{Checklist of Objects}
\setlength{\marginparwidth}{0.1in}
\setlength{\marginparsep}{0in}
\setlength{\leftmargin}{-0.5in}

\input{build/Checklist}

\chapter{Logging Forms}

This section contains the actual logging forms.

Note that the page numbers for each chart are listed in the Checklist
section.

%\setlength{\oddsidemargin}{0.2in} 
%\setlength{\evensidemargin}{0.2in}
\setlength{\marginparwidth}{0.2in}
\setlength{\marginparsep}{0in}
%\usepackage[top=0.15in, bottom=0.2in, left=0.5in, right=0in]{geometry}
\setlength{\topmargin}{0.0in}
\addtolength{\voffset}{-0.3in}
%\setlength{\bottommargin}{0.2in}
\setlength{\leftmargin}{-0.5in}
%\setlength{\rightmargin}{-0.3in}
\addtolength{\textwidth}{0.7in}

\letterpaperfalse

\input{build/Objects}

\end{document}<commit_msg>Merging improvements from Letter version to A4 version<commit_after>\documentclass[a4paper,oneside]{book}
\usepackage{graphicx}
\usepackage[colorlinks=true,citecolor=blue]{hyperref}
\usepackage{url}
\usepackage{gensymb}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{textcomp}
\usepackage{caption}
\usepackage[labelformat=simple]{subcaption}
\usepackage{float}
\usepackage[absolute,overlay]{textpos}
\usepackage[strict]{changepage}
\usepackage{tabularx}
\usepackage{array}
\usepackage{wrapfig}
\usepackage{fancyhdr}
% \usepackage[compact]{titlesec}
\usepackage{lscape} % Replace with pdflscape if usability on the computer is desired.
\usepackage{longtable}
\usepackage{parskip}
\usepackage[table,usenames,dvipsnames]{xcolor}
\usepackage{booktabs}

%\setlength{\oddsidemargin}{-0.5in} 
%\setlength{\evensidemargin}{0in}
%\setlength{\marginparwidth}{0in}
%\setlength{\marginparsep}{0in}
%\pagestyle{empty}
%\usepackage[top=0.15in, bottom=0.2in, left=0.5in, right=0in]{geometry}
\setlength{\TPHorizModule}{1in}
\setlength{\TPVertModule}{1in}

%% \usepackage{etoolbox}
%% \makeatletter
%% \patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
%% \makeatother

\newcommand{\circdegree}{\ensuremath{^\circ}}
\renewcommand\chaptername{}
\renewcommand{\thesubfigure}{\relax}

\renewcommand{\topfraction}{0.95}
\renewcommand{\textfraction}{0.05}
\renewcommand{\floatpagefraction}{0.75}

\fancyfoot[C]{This content is protected by Copyrights. See the~\nameref{Legal} chapter of this document for details.}
\fancyfoot[RO, LE]{\thepage}
\pagestyle{fancy}

\newif\ifletterpaper

\definecolor{tablealt}{rgb}{0.9,0.95,0.9}

\hypersetup{linkcolor=Blue}

\begin{document}

\author{The Astronomy Logbook Project}

\input{build/FrontMatter.tex}

\chapter{Legal}
\label{Legal}

\input{Legal}

\chapter{Acknowledgements}

\input{Acknowledgements}

\chapter{Credits}

\input{Credits}

\mainmatter

%% \setlength{\hangindent}{0cm}
%% \setlength{\parindent}{0cm}


\chapter{Glossary of Technical Terms}

\input{Glossary}

\chapter{Understanding and Using the Log Form}

\input{LogFormDescription}

\twocolumn
\chapter{List of Objects by Constellation}
NOTE: Numbers in square brackets are page numbers \\

\input{build/ObjectsByConstellation}

\chapter{List of Objects by Type}
NOTE: Numbers in square brackets are page numbers \\

\input{build/ObjectsByType}
\onecolumn

\chapter{List of Common Names}
The following table is ordered alphabetically by common name. \\
\input{build/TrivialNames}

\begin{landscape}
\chapter{Checklist of Objects}
{\small Use this checklist to look up page numbers, to look up
  essential information, and to make entries of the dates of your
  first and subsequent observations.}

%% \setlength{\marginparwidth}{0.1in}
%% \setlength{\marginparsep}{0in}
%% \setlength{\leftmargin}{-0.5in}

\input{build/Checklist}
\end{landscape}

\chapter{Logging Forms}

This section contains the actual logging forms.

Note that the page numbers for each chart are listed in the Checklist
section.

%\setlength{\oddsidemargin}{0.2in} 
%\setlength{\evensidemargin}{0.2in}
\setlength{\marginparwidth}{0.2in}
\setlength{\marginparsep}{0in}
%\usepackage[top=0.15in, bottom=0.2in, left=0.5in, right=0in]{geometry}
\setlength{\topmargin}{0.0in}
\addtolength{\voffset}{-0.3in}
%\setlength{\bottommargin}{0.2in}
\setlength{\leftmargin}{-0.5in}
%\setlength{\rightmargin}{-0.3in}
\addtolength{\textwidth}{0.7in}
\setlength{\parindent}{0cm}
\setlength{\hangindent}{0cm}

\letterpaperfalse

\ifletterpaper
\setlength{\headsep}{-13pt}
\titlespacing{\section}{0pt}{-5pt}{0pt}
\fi
\input{build/Objects}

\end{document}
{'fraction_non_alphanumeric': 0.15507358636715723, 'fraction_numerical': 0.021843532145623547, 'mean_word_length': 6.577464788732394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '577405', 'n_tokens_mistral': 2420, 'n_tokens_neox': 2175, 'n_words': 397}