Debian Codegraph @

texmf-dist/doc/latex/moodle/test/test_expandnewcommands.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
13 \moodleregisternewcommands
14
15 %%%% Defining Sets
16 \providecommand{\N}{\mathbb{N}}
17 \newcommand{\K}{\mathbb{K}}
18 \newcommand{\C}{\mathcal{C}}
19 \renewcommand{\C}{\mathbb{C}}
20 \newcommand{\Z}{\mathbb{Z}}
21 \newcommand*{\R}{\mathbb{R}}
22 \newcommand{\Q}{\mathbb{Q}}
23 \newcommand{\prepostbb}[3]{#1\mathbb{#2}#3}
24
25 \begin{document}
26
27 \section*{Introduction}
28
29 This document is intended to check the support of automatic recording of
30 \LaTeX\ new commands for expansion when converting to HTML.
31
32 \begin{quiz}{Recording New Commands for Expansion}
33
34 \begin{multi}{Sets}
35 Standard notation for the set of natural integers:
36 \item* $\N$
37 \item $\Z$
38 \item $\Q$
39 \item $\C$
40 \item $\R$
41 \item $\prepostbb{}{V}{}$
42 \item $\prepostbb{\vphantom{K}^\dagger}{K}{^*_2}$
43 \end{multi}
44
45 \end{quiz}
46
47 \end{document}
48
49