# What the heck is going on * Fundamental Setup (Encoding, Fonts, Language) :ignore_heading: #+LaTeX_HEADER: \usepackage[utf8]{inputenc} % Set input encoding to UTF-8 #+LaTeX_HEADER: \usepackage[T1]{fontenc} % Use modern 8-bit font encoding #+LaTeX_HEADER: \usepackage{textcomp} % Provides extra symbols #+LaTeX_HEADER: \usepackage{mathptmx} % Use Times-like fonts for text and math #+LaTeX_HEADER: \usepackage{slantsc} % Provides slanted small caps font shape #+LaTeX_HEADER: \usepackage[english]{babel} % Language-specific settings and hyphenation #+LaTeX_HEADER: \usepackage{csquotes} % Context-sensitive quotation marks (works well with babel) # What the heck is going on * Page Layout & Geometry :ignore_heading: #+LaTeX_HEADER: % \usepackage[left=4cm, right=2cm, top=2cm, bottom=2cm]{geometry} % Example geometry settings #+LaTeX_HEADER: \usepackage{fancyhdr} % For custom headers and footers #+LaTeX_HEADER: \pagestyle{fancy} % Apply the fancy page style #+LaTeX_HEADER: \usepackage{setspace} % For adjusting line spacing (e.g., \onehalfspacing) #+LaTeX_HEADER: \usepackage{titlesec} % For customizing section and chapter titles #+LaTeX_HEADER: \usepackage{pdflscape} % For creating landscape pages #+LaTeX_HEADER: \usepackage{afterpage} % Execute commands after the current page is shipped out # What the heck is going on * Mathematics :ignore_heading: #+LaTeX_HEADER: \usepackage{amsmath} % Core package for math environments and commands #+LaTeX_HEADER: \usepackage{amssymb} % Provides additional math symbols #+LaTeX_HEADER: \usepackage{mathtools} % Extends amsmath with fixes and more tools #+LaTeX_HEADER: \usepackage{calc} % Allows for arithmetic in LaTeX commands # What the heck is going on * Graphics, Figures, and Floats :ignore_heading: #+LaTeX_HEADER: \usepackage{graphicx} % For including images # #+LaTeX_HEADER: \graphicspath{{expt/}} % Set path for graphics files #+LaTeX_HEADER: \usepackage{subcaption} % For subfigures within a figure environment #+LaTeX_HEADER: \usepackage{wrapfig} % To wrap text around figures #+LaTeX_HEADER: \usepackage{rotating} % To rotate elements, like figures and tables #+LaTeX_HEADER: \usepackage{float} % Improves float control (e.g., [H] placement) # What the heck is going on * Tables :ignore_heading: #+LaTeX_HEADER: \usepackage{booktabs} % For professional-quality table rules #+LaTeX_HEADER: \usepackage{longtable} % For tables that span multiple pages #+LaTeX_HEADER: \usepackage{multirow} % Create table cells that span multiple rows #+LaTeX_HEADER: \usepackage{makecell} % For line breaks and advanced formatting within table cells #+LaTeX_HEADER: \usepackage[flushleft]{threeparttablex} % For tables with notes # What the heck is going on * Captions & Typography :ignore_heading: #+LaTeX_HEADER: \usepackage{subcaption} % Advanced control over subcaptions #+LaTeX_HEADER: \usepackage{caption} % Advanced control over caption appearance #+LaTeX_HEADER: \usepackage{capt-of} % To use \captionof for captions outside floats #+LaTeX_HEADER: % (often not needed if `caption` package is used) #+LaTeX_HEADER: % required by Org #+LaTeX_HEADER: \usepackage[normalem]{ulem} % For underlining, striking out text, etc. #+LaTeX_HEADER: \usepackage{mfirstuc} % For capitalizing the first letter of a word # What the heck is going on * Document Structure & References :ignore_heading: # # Elsevier insists on using natbib for somereason. # #+LaTeX_HEADER: \usepackage{natbib} #+LaTeX_HEADER: \biboptions{square,numbers,sort&compress,longnamesfirst,angle,semicolon} #+LaTeX_HEADER: \usepackage[acronym, nonumberlist]{glossaries} % For creating glossaries and lists of acronyms #+LaTeX_HEADER: \usepackage{minitoc} % To create mini tables of contents for each chapter/section #+LaTeX_HEADER: \usepackage{pdfpages} % To include external PDF documents # What the heck is going on * Hyperlinks (LOAD LAST) :ignore_heading: #+LaTeX_HEADER: % For clickable links, bookmarks, and document metadata # #+LaTeX_HEADER: \usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref} # What the hackety heck is going on? #