diff --git a/content/formatting-paragraphs.tex b/content/formatting-paragraphs.tex deleted file mode 100644 index 2c067ff..0000000 --- a/content/formatting-paragraphs.tex +++ /dev/null @@ -1,32 +0,0 @@ -\chapter{Formatting Paragraphs} % (fold) -\label{sec:formatting-paragraphs} - -\section*{Ragged alignment} -\label{sec:ragged-alignment} -By default, \LaTeX{} sets continuous text in full justification. -However, we can also switch to ragged alignment by using the commands -\code{latex}{\textbackslash raggedright}, \code{latex}{\textbackslash raggedleft}, and -\code{latex}{\textbackslash centering}. -These commands influence the environment that they are used in, e.\,g., the -\mono{document} environment. Correspondingly, the text within the whole -document is affected. -Alternatively, we can use dedicated environments in order to influence the -formatting -of certain paragraphs (\cref{lst:ragged-alignment}). - -\example{lst:ragged-alignment}{formatting-paragraphs/ragged-alignment}{Ragged -alignment} - -\section*{Indentation and spacing} -\label{sec:indents-and-parskips} -Usually, we illustrate a new paragraph by indenting the first line of it -(\code{latex}{\textbackslash parindent}). -Alternatively, paragraph spacing, i.\,e., vertical space between paragraphs, -can be used (\code{latex}{\textbackslash parskip}). -For both variants, there are adjustable parameters: -\codeblock{latex}{listings/formatting-paragraphs/indentation.tex} - -\noindent We can use \code{latex}{\textbackslash noindent} to turn off the indentation for only one -paragraph. -For the first paragraph after a heading, there is usually no indentation. - diff --git a/content/text-markup.tex b/content/text-markup.tex index e75bc2a..564a077 100644 --- a/content/text-markup.tex +++ b/content/text-markup.tex @@ -1,5 +1,7 @@ \chapter{Text markup} +\section*{Text highlighting} + Text markup can be done in two ways: semantically or visually. We recommend that you use semantic markup whenever possible. In contrast to visual markup, it only states \emph{why} something is special and entrusts to \LaTeX{} \emph{how} it is going to look. @@ -66,4 +68,35 @@ For the rest, you can trust the default settings and avoid the visual clutter. \label{tbl:type-sizes} \end{table} +\newpage + +\section*{Paragraph alignment} +\label{sec:ragged-alignment} +By default, \LaTeX{} sets continuous text in full justification. +However, we can also switch to ragged alignment by using the commands +\code{latex}{\textbackslash raggedright}, \code{latex}{\textbackslash raggedleft}, and +\code{latex}{\textbackslash centering}. +These commands influence the environment that they are used in, e.\,g., the +\mono{document} environment. Correspondingly, the text within the whole +document is affected. +Alternatively, we can use dedicated environments in order to influence the +formatting +of certain paragraphs (\cref{lst:ragged-alignment}). + +\example{lst:ragged-alignment}{formatting-paragraphs/ragged-alignment}{Ragged +alignment} + +\section*{Indentation and spacing} +\label{sec:indents-and-parskips} +Usually, we illustrate a new paragraph by indenting the first line of it +(\code{latex}{\textbackslash parindent}). +Alternatively, paragraph spacing, i.\,e., vertical space between paragraphs, +can be used (\code{latex}{\textbackslash parskip}). +For both variants, there are adjustable parameters: +\codeblock{latex}{listings/formatting-paragraphs/indentation.tex} + +\noindent We can use \code{latex}{\textbackslash noindent} to turn off the indentation for only one +paragraph. +For the first paragraph after a heading, there is usually no indentation. + diff --git a/main.tex b/main.tex index c57ea34..6ff134d 100644 --- a/main.tex +++ b/main.tex @@ -31,7 +31,6 @@ \exercise{special-characters} \input{content/text-markup.tex} \exercise{text-markup} -\input{content/formatting-paragraphs.tex} \input{content/lists.tex} \exercise{lists} \input{content/maths.tex}