Skip to content

Instantly share code, notes, and snippets.

@igorbrigadir
Created October 25, 2015 14:25
Show Gist options
  • Save igorbrigadir/41735f09044683f71d25 to your computer and use it in GitHub Desktop.
Save igorbrigadir/41735f09044683f71d25 to your computer and use it in GitHub Desktop.
Better Website Screenshots for LaTeX Documents

High Resolution Webpage Screenshots in LaTeX:

If you need to include a screenshot of a webpage in a LaTeX document in high resolution suitable for print: jpg & png images are not the best format. Here's one way to do it:

java -jar webvector.jar http://example.com/ example_com.svg svg
  • Cleanup / Edit SVG with Inkscape
  • Use svg2tikz to export SVG to TikZ / PGF drawing.
  • Include generated TikZ in your document.

Issues:

  • TikZ export fails for some types of SVG effects, either ignoring them, or failing to export entirely. Sometimes SVGs are easier to edit directly in a good text editor.
  • Generated TikZ path code can get pretty big, better to export path only, and use \include in TeX doc to load.
  • Bunch of other stuff can go wrong (todo: add examples)
Copy link

ghost commented Oct 25, 2015

The specificity of your identification will depend on the nature of the work you believe has been infringed. If you have published your work, you might be able to just link back to a web page where it lives. If it is proprietary and not published, you might describe it and explain that it is proprietary. If you have registered it with the Copyright Office,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment