blob: 0e5b6bdf6fd73d0d4dc64b036953b4cdd6765c9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
% !TeX encoding = UTF-8
% !TeX spellcheck = en_US
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage[nostamp]{moodle}
\ifPDFTeX % FOR LATEX and PDFLATEX
\usepackage[utf8]{inputenc} % necessary
\usepackage[T1]{fontenc} % necessary
\else % assuming XELATEX or LUALATEX
\usepackage{fontspec}
\fi
\usepackage{amsmath}% for \:, \medspace, \; and \thickspace
\begin{document}
\section*{Introduction}
This document is intended to check the support of some \LaTeX\ commands for
horizontal spacing.
The list of horizontal spacings is inspired from
\texttt{https://tex.stackexchange.com/a/74354/228515}.
\begin{quiz}[points=1]{Horizontal spacing}
\begin{multi}[shuffle=false]{LaTeX Commands}
Find the nut.
\item mnnm \quad $mnnm$
\item mn\space nm \quad $mn\space nm$
\item mn nm \quad $mn nm$
\item mn\,nm \quad $mn\,nm$
\item mn\thinspace nm \quad $ mn\thinspace nm$
\item mn~nm \quad $mn~nm$
\item mn\ nm \quad $mn\ nm$
\item $mn\>nm$ % defined only in math-mode
\item mn\:nm \quad $mn\:nm$
\item mn\medspace nm \quad $mn\medspace nm$
\item mn\;nm \quad $mn\;nm$
\item mn\thickspace nm \quad $mn\thickspace nm$
\item* mn\enspace nm \quad $mn\enspace nm$
\item mn\quad nm \quad $mn\quad nm$
\item mn\qquad nm \quad $mn\qquad nm$
\item mn\textvisiblespace nm
\item mn\\nm
\item mn\newline nm
\item mn%
nm
\item mn\par nm
\end{multi}
\begin{multi}[shuffle=false]{Math spacing}
Dummy text{}
\item $a+$
\item $a+b$
\item* $a+{}$
\item $a\ +$
\end{multi}
\end{quiz}
\end{document}
|