Is it possible to create a document with embedded objects like so?
2 Answers
The media9 package allows to embed video or sound files. Beamer also has a multimedia package, which allows for inclusion of animations or sound files.
Images are no problem with graphicx. Supported formats are .eps for LaTeX, .pdf, .png and .jpg for pdfLaTeX. The svg package allows further to include .svg images.
As to ‘blocks of code’, it can be done through the listings package.
- 271,350
If you're specifically looking for code to help get you started, there are some short examples on Overleaf (full disclosure - I'm one of the founders) which show you how you can set this up for e.g. media9:
https://www.overleaf.com/latex/examples/using-media9-to-include-videos-files/yvdwwvpknjkk
and listings:
For positioning the embedded items with wrapped text, you might also want to check out the wrapfig package:
https://www.overleaf.com/latex/examples/package-example-wrapfig/hmdrphhbxmjp
- 1,654

media9package allows to embed video or sound files. Images are no problem withgraphicx. As to ‘block of code’, I'm unsure of what you mean, but I supposelistingsshould do it. – Bernard Sep 20 '16 at 22:02