# LaTeXScreenshooter

## Description

**LaTeXScreenshooter** is a Java-based application designed to capture screenshots of web pages specified within LaTeX documents. It supports both X11 and Wayland display servers, ensuring compatibility across different Linux environments and windows. The project includes several components to validate paths, read LaTeX files, and capture screenshots.

## Location

In the `Code/src-compiled` folder, you can find the `.jar` file, the `.sty` file, and a `.tex` test file that you can use. The `.sty` file is the package that you need to include in your LaTeX document. The `.jar` file is the application that you need to run to take the screenshots.

In the `Code/src` folder, you can find the source code of the project.

## Command .jar

To execute the .jar file directly, open a shell and enter: 

`java -jar  latexscreenshooter.jar <URL> <WIDTH> <HEIGHT>  <NAME> <PATH>`

## License

The project is licensed under the The LaTeX Project Public License 1.3c.

## Futur works

- Allow "!" as in the LaTeX \resizebox command
- Allow the indication of a path for latexscreenshooter.jar
- Allow choice of the browser (instead of the system default)
- Capture only the browser window rather than the entire screen
- Send the LaTeX-PDF-viewer window to the front of the window stack

## Authors

The authors of the project are Quentin Vaney and Xavier Freléchoz. You can contact us by mail at `quentin.vaney@gmail.com` & `Xavier.freléchoz@gmail.com`
