Skip to content

Reference: Environments & commands

This page lists the user-facing commands that ModernDoc provides (or standardizes).


Semantic markup helpers

Prefer these over manual formatting:

Command Meaning
\foreign{...} foreign words (italic)
\term{...} technical terms (emphasis; optionally indexed)
\acronym{...} acronyms (small caps if available)
\software{...} software names
\bookref{...} book titles
\email{...} email addresses

Quotes

paperquote

\begin{paperquote}
Quoted text.
\end{paperquote}

chapterquote

\begin{chapterquote}{Author}{Year}
A quote.
\end{chapterquote}

Note boxes

notebox

\begin{notebox}
Important note.
\end{notebox}

warningbox

\begin{warningbox}
A warning.
\end{warningbox}

Code

Inline:

Use \code{curl -sSL ...}.

Block:

\begin{codeblock}[python]
print("hello")
\end{codeblock}

Abstract + keywords

Article/paper typically support:

\begin{abstract}
Text.
\begin{keywords}
k1, k2, k3
\end{keywords}
\end{abstract}

Thesis often uses:

\begin{thesisabstract}
Text.
\end{thesisabstract}