Debian Codegraph @

texmf-dist/doc/latex/moodle/test/test_punctuation_and_symbols.tex

raw
1 % !TeX encoding = UTF-8
2 % !TeX spellcheck = en_US
3 % !TEX TS-program = lualatex
4 \documentclass{article}
5 \usepackage[nostamp]{moodle}
6 \ifPDFTeX % FOR LATEX and PDFLATEX
7 \usepackage[utf8]{inputenc} % necessary
8 \usepackage[T1]{fontenc} % necessary
9 \else % assuming XELATEX or LUALATEX
10 \usepackage{fontspec}
11 \fi
12 \usepackage[main=french,german]{babel}
13 \usepackage{eurosym}
14
15 \begin{document}
16
17 \section*{Introduction}
18
19 This document is intended to check the support of some \LaTeX\ commands for
20 punctuation and other symbols.
21
22 Note that Xe\LaTeX\ and Lua\LaTeX\ will typeset \verb|"| and \verb|\dq| as the
23 right double quote, while \verb|"| is what pdf\LaTeX\ typesets and is rendered
24 by Moodle.
25
26 The typesetting of \verb|\og| and \verb|\fg| depends on
27 \textsf{babel}'s current language (French or other). Regardless,
28 \textsf{moodle} passes the French \og \emph{guillemets}\fg\ to the XML.
29
30 \begin{quiz}[points=1,shuffle=false]{Punctuation and Other Symbols}
31 \ifPDFTeX
32 \NoAutoSpacing% this option preserves pdflatex compilation
33 \fi
34 \begin{multi}{Symbols}
35 Find the symbol standing for ``paragraph''.
36 \item \%
37 \item \#
38 \item \_
39 \item \textbackslash
40 \item \$
41 \item \&
42 \item* \S
43 \item \{
44 \item \}
45 \item \texteuro
46 \item \dots
47 \item \ldots
48 \item \textexclamdown
49 \item \textquestiondown
50 \item --
51 \item \euro
52 \item =
53 \end{multi}
54
55 \begin{multi}[multiple]{Quotation Marks}
56 Find the French quotes
57 \item `and'
58 \item \textquoteleft and\textquoteright
59 \item ``and''
60 \item \textquotedblleft and\textquotedblright
61 \item \textquotesingle
62 \item "
63 \item \textquotedbl
64 \item[feedback={le fameux chevron!}]* \guilsinglleft\,and\,\guilsinglright
65 \item[feedback={le fameux double chevron!}]*
66 \guillemotleft\,and\,\guillemotright
67 \item[feedback={these quotes are German!}] \quotesinglbase
68 \item[feedback={these are German!}] \quotedblbase
69 \item[feedback={le fameux chevron!}]* \flq\,and\,\frq
70 \item[feedback={le fameux double chevron!}]* \flqq\,and\,\frqq
71 \item[feedback={le fameux double chevron!}]* \og and\fg
72 \item[feedback={these quotes are German!}] \glq and\grq
73 \item[feedback={these quotes are German!}] \dq
74 \item[feedback={these quotes are German!}] \glqq and\grqq
75 \end{multi}
76
77 \begin{cloze}{The question}
78 Find the symbol ``equal''.
79 \begin{multi}
80 \item <
81 \item >
82 \item* =
83 \end{multi}
84 \begin{multi}[vertical]
85 \item $<$
86 \item $>$
87 \item* $=$
88 \end{multi}
89 \end{cloze}
90
91 \end{quiz}
92 \end{document}