\chapter{Document Authoring Guide} \ChapterLabel{DocumentGuide} \index{LaTeX} \index{document conventions} \index{Appendix!Document Authoring Guide} \section{How to Use This Appendix} Use this appendix to maintain the template's file conventions, build process, and review rules. Update it when the document structure or toolchain changes. \section{Template Provenance} This template was developed by \textbf{Darian Muresan, Ph.D.}, in conjunction with \textbf{OpenAI Codex} and \textbf{Anthropic Claude Code}. Keep this attribution distinct from the assignment-specific instructor metadata. \section{File Naming and Responsibilities} Chapter files use the lowercase \texttt{devops} namespace and one clear responsibility: \texttt{devopsActivityBrief.tex}, \texttt{devopsWorkflow.tex}, \texttt{devopsEvidence.tex}, and \texttt{devopsRetrospective.tex}. Do not add requirements or architecture-design chapters; this template records a DevOps learning activity and its operational evidence. \section{Synonyms and Controlled Terms} \index{synonyms} Use one preferred term for each important concept. If an assignment uses equivalent terms, record them here before release. For example, state whether ``continuous delivery'' refers to \gls{cd} generally or specifically excludes automatic production deployment. Add important terms to \texttt{devopsGlossary.tex} and index them where used. \section{Building the PDF} The template requires a LaTeX distribution with \texttt{pdflatex}, \texttt{bibtex}, \texttt{makeglossaries}, and \texttt{makeindex}. Install the tools using the platform instructions below, then run one of the following platform builds. \subsection{macOS and Linux Build} \begin{verbatim} make -f makefileMacLinux pdf \end{verbatim} \subsection{Windows PowerShell Build} \begin{verbatim} .\makefilePowerShell.ps1 -Action pdf \end{verbatim} The completed build regenerates references, bibliography, glossary, and index. Review the log and visually inspect affected PDF pages. Do not edit generated auxiliary files or the PDF directly. \section{Install LaTeX Tools on macOS} \index{macOS} \index{MacTeX} \subsection{Recommended Installation} Install the current full \href{https://www.tug.org/mactex/}{MacTeX} distribution. It includes TeX Live, \texttt{pdflatex}, \texttt{bibtex}, \texttt{latexmk}, \texttt{makeglossaries}, \texttt{makeindex}, and useful applications such as TeXShop and TeX Live Utility. The full distribution is the least troublesome choice for this template because it includes the packages used by the glossary, table, listing, color, and hyperlink features. Either download the signed installer from the MacTeX web site and complete the macOS installation dialog, or, if Homebrew is already installed, run: \begin{verbatim} brew install --cask mactex \end{verbatim} Close and reopen Terminal after installation. If the TeX commands are not found, add the MacTeX binary directory to the current shell session: \begin{verbatim} export PATH="/Library/TeX/texbin:$PATH" \end{verbatim} Do not place this command in a shell profile until it has been verified on the local computer. \subsection{Verification and Compilation} From the template directory, verify the tools: \begin{verbatim} command -v pdflatex bibtex latexmk makeglossaries makeindex \end{verbatim} Each command should print a path. Then create the PDF: \begin{verbatim} make -f makefileMacLinux pdf \end{verbatim} To remove generated intermediate files while keeping the PDF, run: \begin{verbatim} make -f makefileMacLinux clean \end{verbatim} \section{Install LaTeX Tools on Windows} \index{Windows} \index{MiKTeX} \index{TinyTeX} \subsection{Recommended Installation} Use TinyTeX as the primary Windows distribution for this project. Follow the installation and package procedure in \ChapterRef{AIAgentGuide}. Its normal per-user location is valid; a \path{Documents\Projects\Tools} layout is an optional organizational convention rather than a requirement. On an organization-managed computer, obtain approval before installing software or changing execution policy. An existing working MiKTeX installation may be retained as a fallback. MiKTeX Console is used to configure and update that installation; it does not need to remain open during command-line compilation. A compiler that runs in the signed-in user's terminal can still be unavailable to an AI agent running in a restricted sandbox. Resolve that situation by granting narrowly scoped access to the existing tool directory or selecting an approved accessible toolchain, not by assuming that the distribution is broken. \subsection{Verification and Compilation} Open a new PowerShell window in the template directory and verify: \begin{verbatim} Get-Command pdflatex,bibtex,makeindex \end{verbatim} Each command should display a command record. Build the PDF with: \begin{verbatim} .\makefilePowerShell.ps1 -Action pdf \end{verbatim} If PowerShell blocks the script under a managed execution policy, ask the system administrator for the approved procedure. Do not bypass institutional security policy. To remove intermediate build files, run: \begin{verbatim} .\makefilePowerShell.ps1 -Action clean \end{verbatim} \section{Common Build Problems} \begin{tabularx}{\linewidth}{L{3.0cm}Y} \toprule \textbf{Symptom} & \textbf{Resolution}\\ \midrule Command not found & Close and reopen the terminal. On macOS, verify the TeX binary path; on Windows, verify TinyTeX completed installation and either its binary directory is on the user PATH or \texttt{DEVOPS\_LATEX\_BIN} identifies it.\\ Access denied in an AI session & Verify the compiler in the user's terminal, then authorize only the compiler directory for the agent. Installation location affects sandbox access and path handling but does not determine compiler correctness.\\ Missing LaTeX package & Use \texttt{tlmgr search} and \texttt{tlmgr install} for TinyTeX. For an existing MiKTeX fallback, use MiKTeX Console or its approved on-the-fly package installation prompt. On macOS, use TeX Live Utility.\\ References or glossary incomplete & Run the supplied platform build instead of a single \texttt{pdflatex} command; it runs BibTeX, the glossary tool, and the index tool in the required order.\\ Script is blocked & Follow the institution's approved PowerShell policy or run the documented build commands with an approved administrator.\\ \bottomrule \end{tabularx} \section{Authoring and Review Rules} Replace bracketed placeholders with assignment facts. Keep operational examples safe, bounded, and free of credentials. Link activities to evidence, retain history, and state unknowns or instructor decisions explicitly. Rebuild after structural, cross-reference, table, glossary, or index changes.