diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-05 22:05:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-05 22:05:39 +0000 |
commit | 17b165bb23c1130b25b0d82e6eb22e9323e2a5a4 (patch) | |
tree | 043e9a925408b6b8c9efb46366957a57b3a17941 /Master/texmf-dist/doc/latex/moodle/test/test_includegraphics_via_tikz.tex | |
parent | c835c59abef4c26ab3c03d6e9a0bc1a0f4d1c202 (diff) |
moodle (5jan21)
git-svn-id: svn://tug.org/texlive/trunk@57334 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/moodle/test/test_includegraphics_via_tikz.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/moodle/test/test_includegraphics_via_tikz.tex | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/moodle/test/test_includegraphics_via_tikz.tex b/Master/texmf-dist/doc/latex/moodle/test/test_includegraphics_via_tikz.tex new file mode 100644 index 00000000000..64fac8816ea --- /dev/null +++ b/Master/texmf-dist/doc/latex/moodle/test/test_includegraphics_via_tikz.tex @@ -0,0 +1,41 @@ +% !TeX encoding = UTF-8 +% !TeX spellcheck = en_US +% !TEX TS-program = lualatex +\documentclass{article} +\usepackage[nostamp,tikz]{moodle} +\ifPDFTeX % FOR LATEX and PDFLATEX + \usepackage[utf8]{inputenc} % necessary + \usepackage[T1]{fontenc} % necessary +\else % assuming XELATEX or LUALATEX + \usepackage{fontspec} +\fi +\begin{document} + +\section*{Introduction} + +This document is intended to experiment the support of picture inclusion using +\verb|\includegraphics| via \texttt{tikz}. All options are supported. The file +name or path may include spaces. The file path can be specified with +\verb|\graphicspath|. File extensions can be omitted. + +\begin{quiz}{Includegraphics with TikZ} + +\begin{multi}{Picture} +\includegraphics[width=2em,angle=90]{fig/1 1.PNG} +%\includegraphics{fig/1.png} +\item* \includegraphics[scale=.5]{fig/2 2.pdf} +\item \includegraphics{fig/3.gif} +\end{multi} + +\graphicspath{{./fig/}} +\begin{matching}[dd]{Picture} +\includegraphics{1 1} +\item \includegraphics[angle=45]{2 2} \answer \includegraphics{3} +\item \includegraphics[angle=-45]{4} \answer \includegraphics{5} +\item \includegraphics[scale=2]{3} \answer +\includegraphics[angle=-180,scale=2]{2 2} +\end{matching} + +\end{quiz} + +\end{document} |