| 1 |
% !TeX encoding = UTF-8 |
| 2 |
% !TeX spellcheck = en_US |
| 3 |
% !TEX TS-program = lualatex |
| 4 |
\documentclass{article} |
| 5 |
\usepackage[nostamp,tikz]{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 |
\begin{document} |
| 13 |
|
| 14 |
\section*{Introduction} |
| 15 |
|
| 16 |
This document is intended to experiment the support of picture inclusion using |
| 17 |
\verb|\includegraphics| via \texttt{tikz}. All options are supported. The file |
| 18 |
name or path may include spaces. The file path can be specified with |
| 19 |
\verb|\graphicspath|. File extensions can be omitted. |
| 20 |
|
| 21 |
\begin{quiz}{Includegraphics with TikZ} |
| 22 |
|
| 23 |
\begin{multi}{Picture} |
| 24 |
\includegraphics[width=2em,angle=90]{fig/1 1.PNG} |
| 25 |
%\includegraphics{fig/1.png} |
| 26 |
\item* \includegraphics[scale=.5]{fig/2 2.pdf} |
| 27 |
\item \includegraphics{fig/3.gif} |
| 28 |
\end{multi} |
| 29 |
|
| 30 |
\graphicspath{{./fig/}} |
| 31 |
\begin{matching}[dd]{Picture} |
| 32 |
\includegraphics{1 1} |
| 33 |
\item \includegraphics[angle=45]{2 2} \answer \includegraphics{3} |
| 34 |
\item \includegraphics[angle=-45]{4} \answer \includegraphics{5} |
| 35 |
\item \includegraphics[scale=2]{3} \answer |
| 36 |
\includegraphics[angle=-180,scale=2]{2 2} |
| 37 |
\end{matching} |
| 38 |
|
| 39 |
\end{quiz} |
| 40 |
|
| 41 |
\end{document} |