From fa4f63aedba7acc419cfb13a3f84f37cdb9c97c0 Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Sat, 8 Jan 2022 14:15:29 +0100 Subject: [PATCH] Remove remaining \mintinline calls --- content/basic-document-structure.tex | 5 ++--- content/special-characters.tex | 3 +-- exercises/project-structure/tasks.raw.tex | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/content/basic-document-structure.tex b/content/basic-document-structure.tex index f5accc4..3cde43f 100644 --- a/content/basic-document-structure.tex +++ b/content/basic-document-structure.tex @@ -13,10 +13,9 @@ Let's take a closer look at the preamble. A minimal preamble should contain the following specifications: \subsection{Document class}\label{sec:document-class} -We can define a document class by using the command \mintinline[breaklines,breakafter=-,breakaftersymbolpre={}]{latex}|\documentclass[]{}|. -\todo{Wie sollen wir das abbilden?} +We can define a document class by using the command \code{latex}{\textbackslash documentclass[]\{\}}. The most commonly used document classes that are supported by default are \pkg{article} for short documents, and \pkg{report} for longer ones. -Furthermore, you can use \pkg{book} for books, \pkg{beamer}\footnote{We do not cover making presentations in \LaTeX{} in this tutorial. However, if you are interested in the topic, we recommend this introduction on Overleaf: \url{https://www.overleaf.com/learn/latex/Beamer}} for presentations, and \mintinline{latex}{letter}\footnote{We also do not cover letters in this script. An introduction can be found on WikiBooks: \url{https://en.wikibooks.org/wiki/LaTeX/Letters}} for letters. +Furthermore, you can use \pkg{book} for books, \pkg{beamer}\footnote{We do not cover making presentations in \LaTeX{} in this tutorial. However, if you are interested in the topic, we recommend this introduction on Overleaf: \url{https://www.overleaf.com/learn/latex/Beamer}} for presentations, and \pkg{letter}\footnote{We also do not cover letters in this script. An introduction can be found on WikiBooks: \url{https://en.wikibooks.org/wiki/LaTeX/Letters}} for letters. In addition to the standard document classes, the \acro{KOMA} script classes have been developed. They provide alternatives to the document classes mentioned above: diff --git a/content/special-characters.tex b/content/special-characters.tex index e28e1d4..800cc16 100644 --- a/content/special-characters.tex +++ b/content/special-characters.tex @@ -16,8 +16,7 @@ In documents written in English, \LaTeX{} uses traditional English Spacing by de We can prevent this by using the command \code{tex}{\textbackslash frenchspacing} above the first paragraph. With \code{latex}{\textbackslash nonfrenchspacing}, we can reset the behavior. When using English Spacing, \LaTeX{} tries to recognize abbreviations and to use normal spaces after those. -We should still check this and\,---\,where necessary\,---\,enforce word spaces (\mintinline[showspaces]{tex}{.\ }) or sentence spaces (\mintinline[showspaces]{tex}{\@. }). -\todo{Wie setzen wir showspaces um?} +We should still check this and\,---\,where necessary\,---\,enforce word spaces (\mono{.\textbackslash␣}) or sentence spaces (\mono{\textbackslash @.␣}). \section{Hyphens and dashes} There are different kinds of horizontal lines being used as punctuation, diff --git a/exercises/project-structure/tasks.raw.tex b/exercises/project-structure/tasks.raw.tex index db2b9ad..9c3dd8c 100644 --- a/exercises/project-structure/tasks.raw.tex +++ b/exercises/project-structure/tasks.raw.tex @@ -1,12 +1,12 @@ \begin{enumerate} \item \textbf{Put the sections of the file into separate files, named \texttt{section1.tex}, \texttt{section2.tex}, and \texttt{section3.tex}. - Include them using the \mintinline{latex}{\include} command.} + Include them using the \code{\textbackslash include} command.} \item \textbf{Which command becomes superfluous when you use - \mintinline{latex}{\include}} + \code{\textbackslash include}} \item \textbf{Can the preamble also be excluded? If no, why? If yes, why can outsourcing the preamble be useful?} - \item \textbf{Add the command \mintinline{latex}{\includeonly{section2}} to + \item \textbf{Add the command \code{\textbackslash includeonly\{section2\}} to the preamble. Compile the document again, and check what has changed. What does the command do and why can it be helpful in a larger project? }