How to embed an HTML page with javascript code in Beamer LaTeX?

How to embed an HTML page with javascript code (exactly a D3 library with some freezes depending on features) in Beamer LaTeX?

The idea is to have a slide with an embedded HTML page, and during the presentation I can hang over certain elements, that is, this is not just a screenshot, but I can also have javascript functions.

+4
source share
2 answers

One of the options:

  • save the HTML page with javascript as is,
  • convert the rest of the Beamer latex presentation to pdf, and pdf in turn to HTML
  • tie them together.

pdf2htmlEX - PDF html, . , , Beamer.

+2

http://manuels.imtqy.com/texlive.js/ . LaTeX javascript javascript-.

var pdftex = new PDFTeX();
var latex_code = "" + 
  "\\documentclass{article}" + 
  "\\begin{document}" + 
  "\\LaTeX is great!" + 
  "$E = mc^2$" + 
  "\\end{document}"; 

pdftex.compile(latex_code) // now you have it in a javascript object.

, --, Beamer LaTeX.

, ​​ D3, Greensock, jQuery - javascript.

0

Source: https://habr.com/ru/post/1541461/


All Articles