| 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 |
\begin{document} |
| 14 |
|
| 15 |
\section*{Introduction} |
| 16 |
|
| 17 |
This document is intended to check the support of the command |
| 18 |
\verb|\htmlonly{...}|. |
| 19 |
|
| 20 |
\begin{quiz}{HTML Only} |
| 21 |
|
| 22 |
\begin{multi}{HTML code} |
| 23 |
A \htmlonly[place holder]{<a href="www.com">$_`'</a>} %%,#,\ breaking |
| 24 |
%compilation |
| 25 |
\item \htmlonly[\fbox{PDF contents}]{<div style="border: 1px solid green; |
| 26 |
display: inline-block;">HTML contents</div>} |
| 27 |
\item C |
| 28 |
\item* D |
| 29 |
\end{multi} |
| 30 |
|
| 31 |
\end{quiz} |
| 32 |
|
| 33 |
\end{document} |
| 34 |
|
| 35 |
|