### Markdown Link Example Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/title-page-logo/document.md Demonstrates a basic Markdown link. This is standard Markdown syntax and requires no special setup. ```markdown [rursus](http://example.com#rursus) ``` -------------------------------- ### Install Texlive Full Distribution Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Installs the complete Texlive distribution, which includes all necessary packages. This is a large installation. ```sh apt-get install texlive-full ``` -------------------------------- ### Install Missing Texlive Packages Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Installs a list of specific LaTeX packages required by the Eisvogel template when using a smaller Texlive distribution. ```sh tlmgr install soul adjustbox babel-german background bidi collectbox csquotes everypage filehook footmisc footnotebackref framed fvextra letltxmacro ly1 mdframed mweights needspace pagecolor sourcecodepro sourcesans titling ucharcat unicode-math upquote xecjk xurl zref draftwatermark ``` -------------------------------- ### Simple Markdown Alerts Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/github-alerts/document.md These examples demonstrate basic GitHub-style alerts using Markdown syntax. They are unstyled by default but can be styled using the `alerts.lua` filter. ```markdown > [!NOTE] > Useful information that users should know, even when skimming content. ``` ```markdown > [!TIP] > Helpful advice for doing things better or more easily. ``` ```markdown > [!IMPORTANT] > Key information users need to know to achieve their goal. ``` ```markdown > [!WARNING] > Urgent info that needs immediate user attention to avoid problems. ``` ```markdown > [!CAUTION] > Advises about risks or negative outcomes of certain actions. ``` -------------------------------- ### LaTeX Equation Example Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/columns/document.md A LaTeX equation for calculating neighbor probability, labeled as 'eq:neighbor-propability'. ```latex \begin{equation}\label{eq:neighbor-propability} p_{ij}(t) = \frac{\ell_j(t) - \ell_i(t)}{\sum_{k \in N_i(t)}^{} \ell_k(t) - \ell_i(t)} \end{equation} ``` -------------------------------- ### Java Main Class Example Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/code-blocks-listings/document.md A basic Java class implementing an interface with a main method that checks command-line arguments. ```java public class Example implements LoremIpsum { public static void main(String[] args) { if(args.length < 2) { System.out.println("Lorem ipsum dolor sit amet"); } } // Obscura atque coniuge, per de coniunx } ``` -------------------------------- ### Markdown Inline Math Example Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/title-page-logo/document.md Shows inline math notation using '$' delimiters in Markdown. Requires a Markdown processor that supports MathJax or similar. ```markdown $\pi r^2$ ``` -------------------------------- ### Handle LaTeX Package Errors Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Example of a LaTeX error message indicating a missing package ('footnotebackref.sty') and the prompt to resolve it. ```sh ! LaTeX Error: File `footnotebackref.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop. ``` -------------------------------- ### Use Pandoc Alias for Document Generation Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Invoke the pandoc/extra Docker image using the previously defined 'pandock' alias for generating PDFs with the Eisvogel template. This command processes an example Markdown file into a PDF. ```bash pandock example.md -o example.pdf --template eisvogel --syntax-highlighting idiomatic ``` -------------------------------- ### Markdown Table Example Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/beamer-theme-moloch/document.md A Markdown table representing truncated Iris flower data, including flower type and measurements. Note the alignment specified for numerical columns. ```markdown Table: Truncated Iris flower data set |Flower | Sepal Length | Sepal Width | Petal Length | Petal Width | |---------------|-------------:|------------:|-------------:|------------:| |Iris-setosa | 5.1 | 3.5 | 1.4 | 0.2 | |Iris-setosa | 4.9 | 3 | 1.4 | 0.2 | |Iris-versicolor| 4.9 | 2.4 | 3.3 | 1 | |Iris-versicolor| 6.6 | 2.9 | 4.6 | 1.3 | |Iris-virginica | 6.3 | 3.3 | 6 | 2.5 | |Iris-virginica | 5.8 | 2.7 | 5.1 | 1.9 | ``` -------------------------------- ### Define YAML Metadata for Pandoc Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/basic-example/document.md Use this block at the start of a Markdown file to configure PDF output properties. ```yaml --- title: "Example PDF" author: [Author] date: "2017-02-20" subject: "Markdown" keywords: [Markdown, Example] lang: "en" ... ``` -------------------------------- ### Enable Syntax Highlighting without Listings (Espresso) Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use `--syntax-highlighting espresso` for syntax highlighting without the LaTeX listings package. ```bash pandoc example.md -o example.pdf --template eisvogel --syntax-highlighting espresso ``` -------------------------------- ### Typeset a Book Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use `-V book` and `--top-level-division=chapter` to typeset a book with correct chapter headings. Add `-V classoption=oneside` to avoid blank pages between chapters. ```bash pandoc example.md -o example.pdf --template eisvogel -V book --top-level-division=chapter -V classoption=oneside ``` -------------------------------- ### Enable Syntax Highlighting without Listings (Kate) Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use `--syntax-highlighting kate` for syntax highlighting without the LaTeX listings package. ```bash pandoc example.md -o example.pdf --template eisvogel --syntax-highlighting kate ``` -------------------------------- ### Create custom boxes with HTML tags Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.md Use raw HTML div tags to trigger the custom environments. ```markdown
Lorem ipsum dolor ...
``` -------------------------------- ### Enable Syntax Highlighting without Listings (Tango) Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use `--syntax-highlighting tango` for syntax highlighting without the LaTeX listings package. ```bash pandoc example.md -o example.pdf --template eisvogel --syntax-highlighting tango ``` -------------------------------- ### Run Pandoc with Eisvogel via Docker Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use the pandoc/extra Docker image to process Markdown files and generate PDFs using the Eisvogel template. Mount the current directory to /data within the container and specify user/group IDs for correct file permissions. ```bash docker run --rm \ --volume "$(pwd):/data" \ --user $(id -u):$(id -g) \ pandoc/extra example.md -o example.pdf --template eisvogel --syntax-highlighting idiomatic ``` -------------------------------- ### Enable Syntax Highlighting with Listings Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use the `--syntax-highlighting idiomatic` option with the LaTeX package listings for syntax highlighting of code blocks. ```bash pandoc example.md -o example.pdf --template eisvogel --syntax-highlighting idiomatic ``` -------------------------------- ### Enable Syntax Highlighting without Listings (Pygments) Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use `--syntax-highlighting pygments` for syntax highlighting without the LaTeX listings package. ```bash pandoc example.md -o example.pdf --template eisvogel --syntax-highlighting pygments ``` -------------------------------- ### Convert Markdown to PDF with Pandoc Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use this command to convert a markdown file to a PDF using the 'eisvogel' template and syntax highlighting. ```bash pandoc example.md -o example.pdf --from markdown --template eisvogel --syntax-highlighting idiomatic ``` -------------------------------- ### Configure YAML header for landscape support Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/landscape-pdflscape/document.md Include the pdflscape package and define the landscape environment in the document YAML metadata. ```yaml --- title: "Landscape with pandoc-latex-environment and pdflscape" author: [Pascal Wagler] date: "2025-11-29" subject: "Markdown" keywords: [Markdown, Example] lang: "en" colorlinks: true header-includes: - | ```{=latex} \usepackage{pdflscape} ``` pandoc-latex-environment: landscape: [landscape] ... ``` -------------------------------- ### Enable GitHub Alerts in Pandoc Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/github-alerts/document.md To use GitHub-style alerts, enable the `alerts` extension and pass the `alerts.lua` filter to your pandoc command. The filter automatically includes necessary LaTeX packages. ```bash --lua-filter="alerts.lua" ``` -------------------------------- ### Define LaTeX environments in header-includes Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/document.md Use the header-includes variable to define custom tcolorbox environments in the document preamble. ```latex \usepackage{tcolorbox} \newtcolorbox{info-box}{colback=cyan!5!white,arc=0pt,outer arc=0pt,colframe=cyan!60!black} \newtcolorbox{warning-box}{colback=orange!5!white,arc=0pt,outer arc=0pt,colframe=orange!80!black} \newtcolorbox{error-box}{colback=red!5!white,arc=0pt,outer arc=0pt,colframe=red!75!black} ``` -------------------------------- ### Configure OpenMoji as fallback font in YAML Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/font-emoji-openmoji/document.md Set the main font and define OpenMoji as a fallback font in the YAML header. LuaTeX must be used as the PDF engine for this configuration to function. ```yaml --- title: "Font: Emoji with OpenMoji" author: [Pascal Wagler] date: "2025-06-15" subject: "Markdown" keywords: [Markdown, Example, Unicode, Emoji, Font, Pandoc] lang: "en" mainfont: "Source Sans 3" mainfontfallback: - "OpenMoji:mode=harf" ... ``` -------------------------------- ### Generate Standalone LaTeX Document Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use `.tex` as the output file extension to produce a standalone LaTeX document for compilation with any LaTeX editor. ```bash pandoc example.md -o example.tex --template eisvogel ``` -------------------------------- ### Include code blocks inside environments Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.md Markdown formatting and code blocks are supported within the custom environment divs. ```markdown ::: important **Lorem ipsum dolor** sit amet, `consectetur adipiscing` elit. ``` if(args.length < 2) { System.out.println("Lorem ipsum dolor sit amet"); } ``` *Nam aliquet libero quis lectus elementum fermentum.* ::: ``` -------------------------------- ### LaTeX Error: Missing \begin{document} Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md This fatal error indicates that the input file is not a valid LaTeX document or the Eisvogel template is not correctly applied. Ensure you are using the latest Eisvogel template. ```latex ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.7 < !DOCTYPE html> ! ==> Fatal error occurred, no output PDF file produced! ``` -------------------------------- ### Define Shell Alias for Pandoc Docker Image Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Create a shell alias 'pandock' for the pandoc/extra Docker command to simplify frequent usage. This alias automatically mounts the current directory and sets the user/group IDs. ```bash alias pandock='docker run --rm -v "$(pwd):/data" -u $(id -u):$(id -g) pandoc/extra' ``` -------------------------------- ### YAML Configuration for Titlepage Background with Underscores Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md A workaround for LaTeX errors caused by underscores in image filenames. By wrapping the filename in backticks and specifying `{=latex}`, pandoc interprets it as raw LaTeX. ```yaml titlepage-background: "background_image.pdf" ``` ```yaml titlepage-background: "`background_image.pdf`{=latex}" ``` -------------------------------- ### Enable Numbered Sections Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use the `--number-sections` or `-N` option to enable numbered sections in the output PDF. ```bash pandoc example.md -o example.pdf --template eisvogel --number-sections ``` -------------------------------- ### YAML Configuration for Logo with Underscores Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Similar to titlepage backgrounds, this configures a logo image with an underscore in its filename for LaTeX processing. ```yaml logo: "`logo_image.pdf`{=latex}" ``` -------------------------------- ### SQL CREATE TYPE and FUNCTION Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/code-blocks-without-listings/document.md SQL code defining a custom type 'person_t' and a function 'getFormattedName' that formats a person's first name. ```sql CREATE TYPE person_t AS ( firstName VARCHAR(50) NOT NULL, ); CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS $$ SELECT 'P: ' || initcap($1.firstName); $$ LANGUAGE SQL; ``` -------------------------------- ### Configure LaTeX header for awesomebox Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.md Include the awesomebox package in the YAML header of your Pandoc document. ```latex ```{=latex} \usepackage{awesomebox} ``` ``` -------------------------------- ### Apply landscape environment in Markdown Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/landscape-pdflscape/document.md Use the landscape div container to wrap content that should be rendered in landscape orientation. ```markdown ::: landscape This page will be in landscape format. It is usually used for large images or tables. ![Nam liber tempor cum soluta nobis mazim placerat facer.](image.png) ::: ``` -------------------------------- ### Change Document Language to German Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use the `-V lang=de` option to set the document language to German. ```bash pandoc example.md -o example.pdf --template eisvogel -V lang=de ``` -------------------------------- ### Change Document Language to British English Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Use the `-V lang=en-GB` option to set the document language to British English. ```bash pandoc example.md -o example.pdf --template eisvogel -V lang=en-GB ``` -------------------------------- ### HTML Document Structure Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/beamer/document.md A standard HTML5 boilerplate structure containing a title and an image tag. ```html This is the title of the page. This is an image. ``` -------------------------------- ### Configure Emoji Fallback in Pandoc YAML Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/font-emoji-noto-color-emoji/document.md Set the main font and define Noto Color Emoji as a fallback font in the YAML header to enable emoji support in PDF outputs. ```yaml --- title: "Font: Emoji with Noto Color Emoji" author: [Pascal Wagler] date: "2025-06-15" subject: "Markdown" keywords: [Markdown, Example, Unicode, Emoji, Font, Pandoc] lang: "en" mainfont: "Source Sans 3" mainfontfallback: - "Noto Color Emoji:mode=harf" ... ``` -------------------------------- ### Create custom boxes in Markdown Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-awesomebox/document.md Use Pandoc div syntax to generate specific box types defined in the filter configuration. ```markdown ::: note Lorem ipsum dolor ... ::: ``` ```markdown ::: tip Lorem ipsum dolor ... ::: ``` ```markdown ::: warning Lorem ipsum dolor ... ::: ``` ```markdown ::: caution Lorem ipsum dolor ... ::: ``` ```markdown ::: important Lorem ipsum dolor ... ::: ``` -------------------------------- ### SQL Type and Function Definition Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/beamer/document.md Defines a custom SQL type and a function to format a name string. ```sql CREATE TYPE person_t AS ( firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL ); CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS $$ SELECT 'P: ' || initcap($1.firstName); $$ LANGUAGE SQL; ``` -------------------------------- ### HTML Document Structure Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/code-blocks-without-listings/document.md A standard HTML5 document structure including head and body sections, with a link and an image element. ```html This is the title of the page. This is a link. This is an image. ``` -------------------------------- ### LaTeX Error: cannot find image file Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md This error signifies that LaTeX cannot locate an included image file. Verify all image references and filenames for accuracy. Ensure your Eisvogel and LaTeX distribution are up-to-date. ```latex Error producing PDF. ! error: (file "/tmp/tex2pdf.-be734e802ef6d0c3/""fdcfc29edcf252186f1b0a52f18f50 43abaeb2d0".png) (pdf backend): cannot find image file '"/tmp/tex2pdf.-be734e802 2ef6d0c3/""fdcfc29edcf252186f1b0a52f18f5043abaeb2d0".png' ! ==> Fatal error occurred, no output PDF file produced! ``` -------------------------------- ### Fixing MiKTeX Font Expansion Error on Windows Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md A command to resolve the 'auto expansion is only possible with scalable fonts' LaTeX error on Windows by updating MiKTeX's font map. ```shell C:\Program Files\MiKTeX 2.9\miktex\bin\x64\updmap.exe ``` -------------------------------- ### LaTeX Error: File not found when using titlepage-background or logo Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Occurs when LaTeX cannot find an image file, often due to underscores in the filename. Ensure the file path is correct and consider replacing underscores with hyphens. ```latex ! Package pdftex.def Error: File `logo\T1\textunderscoreimage.pdf' not found: using draft setting. See the pdftex.def package documentation for explanation. Type H for immediate help. ``` -------------------------------- ### YAML Metadata Block for Document Information Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md Define document metadata like title, author, date, and keywords using a YAML block at the beginning of your markdown file. ```markdown --- title: "The Document Title" author: [Example Author, Another Author] date: "2017-02-20" keywords: [Markdown, Example] ... Here is the actual document text... ``` -------------------------------- ### LaTeX Error: auto expansion is only possible with scalable fonts Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md This error typically occurs on Windows with MiKTeX and indicates an issue with font expansion. Running `updmap.exe` from the MiKTeX bin directory can resolve this. ```latex Error producing PDF. ! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox \fi \fi l.643 \begin{lstlisting} ``` -------------------------------- ### Markdown Inside Alerts Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/github-alerts/document.md Demonstrates using Markdown formatting, including code blocks, within GitHub-style alerts. The `alerts.lua` filter processes this Markdown. ```markdown > [!NOTE] > Lorem ipsum **dolor** sit amet, `consectetur adipiscing` elit. > > ``` > if(args.length < 2) { > System.out.println("Lorem ipsum dolor sit amet"); > } > ``` ``` ```markdown > [!TIP] > Lorem ipsum **dolor** sit amet, `consectetur adipiscing` elit. > > ``` > if(args.length < 2) { > System.out.println("Lorem ipsum dolor sit amet"); > } > ``` ``` ```markdown > [!IMPORTANT] > Lorem ipsum **dolor** sit amet, `consectetur adipiscing` elit. > > ``` > if(args.length < 2) { > System.out.println("Lorem ipsum dolor sit amet"); > } > ``` ``` ```markdown > [!WARNING] > Lorem ipsum **dolor** sit amet, `consectetur adipiscing` elit. > > ``` > if(args.length < 2) { > System.out.println("Lorem ipsum dolor sit amet"); > } > ``` ``` ```markdown > [!CAUTION] > Lorem ipsum **dolor** sit amet, `consectetur adipiscing` elit. > > ``` > if(args.length < 2) { > System.out.println("Lorem ipsum dolor sit amet"); > } > ``` ``` -------------------------------- ### Inline LaTeX Math Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/table-of-contents/document.md Inline mathematical notation using LaTeX. This is useful for embedding simple mathematical expressions directly within text. ```latex \pi r^2 ``` -------------------------------- ### SQL Type and Function Definition Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/code-blocks-listings/document.md Defines a custom composite type and a SQL function to format the first name of a person. ```sql CREATE TYPE person_t AS ( firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL ); CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS $$ SELECT 'P: ' || initcap($1.firstName); $$ LANGUAGE SQL; ``` -------------------------------- ### Include code blocks inside a box Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/boxes-with-pandoc-latex-environment-and-tcolorbox/document.md Markdown-based boxes support nested code blocks for formatted output. ```markdown if(args.length < 2) { System.out.println("Lorem ipsum dolor sit amet"); } ``` -------------------------------- ### Markdown for Landscape Content Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/landscape-lscape/document.md Use this Markdown syntax with the pandoc-latex-environments filter to render content in landscape mode. Ensure the 'lscape' LaTeX package is included in your document's header. ```markdown ::: landscape This content will be in landscape format. It is usually used for large images or tables. ![Nam liber tempor cum soluta nobis mazim placerat facer.](image.png) ::: ``` -------------------------------- ### Markdown Image Inclusion Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/beamer-theme-moloch/document.md Includes an image in a Markdown document. The alt text provides a description for accessibility. ```markdown ![Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming.](image.png) ``` -------------------------------- ### Java Class Definition Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/code-blocks-without-listings/document.md A basic Java class implementing an interface with a static map method. It includes error handling for null inputs. ```java public class Example implements LoremIpsum { public static void map(String[] sortedLeft, Long[] sortedRight, int splitIndex) { if(sortedLeft == null || sortedRight == null) { System.err.println("Lorem ipsum dolor sit amet"); } } // Obscura atque coniuge, per de coniunx } ``` -------------------------------- ### Sum Leaves in a Tree (Scala) Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/book/document.md This Scala function recursively calculates the sum of all leaf values in a given tree structure. It uses pattern matching to distinguish between branches and leaves. ```scala def sumLeaves(t: Tree): Int = t match { case Branch(l, r) => sumLeaves(l) + sumLeaves(r) case Leaf(x) => x } ``` -------------------------------- ### LaTeX Error: Missing endcsname inserted Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/README.md This error occurs when including images with underscores in their filenames for title page backgrounds or logos. Replace underscores with hyphens in the filename. ```latex ! Missing endcsname inserted. protect ``` -------------------------------- ### Mathematical Formula (LaTeX) Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/book/document.md This is a mathematical formula expressed in LaTeX, likely used for scientific or technical documentation. It represents a recursive update rule for a variable r_d. ```latex $$r_d^i(t+1) = \min\{r_s,\max\{0, r_d^i(t) + \beta(n_t - \lvert N_i(t)\rvert)\}\}$$ ``` -------------------------------- ### LaTeX Header Inclusion for Beamer Theme Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/beamer-theme-moloch/document.md Includes custom LaTeX commands in the Beamer document header, specifically to disable frame title continuation counts for single frames. ```latex % remove the continuation count for single frames \setbeamertemplate{frametitle continuation}[from second] ``` -------------------------------- ### TypeScript Result Verification Function Source: https://github.com/wandmalfarbe/pandoc-latex-template/blob/master/examples/columns/document.md A TypeScript function to verify a result, logging 'Passed' or 'Failed'. It includes a comment for 'Lorem Ipsum dolor sit amet'. ```typescript type Result = "pass" | "fail" function verify(result: Result) { if (result === "pass") { console.log("Passed") } else { // Lorem Ipsum dolor sit amet console.log("Failed") } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.