Verzeichnis macros/latex/contrib/docshots
Nicely Rendered LaTeX Examples for Your .dtx File
This LaTeX package helps you show TeX code next to its PDF snapshot, in two-column formatting. You can use it either in .dtx documentation or in a .tex file.
First, install it from CTAN and then use it like this:
\documentclass{article} \usepackage{docshots} \begin{document} Here is how you can use \LaTeX: \begin{docshot} \documentclass{article} \pagestyle{empty} \begin{document} Hello, \LaTeX! \end{document} \end{docshot} For more information, read \TeX{} Book by Donald Knuth. \end{document}
Otherwise, you can download docshots.sty and add it to your project.
If you want to contribute yourself, make a fork, then create a branch, then run l3build ctan in the root directory. It should compile everything without errors. If not, submit an issue and wait. Otherwise, make your changes and then run l3build ctan again. If the build is still clean, submit a pull request.
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (431.3k).
docshots – TeX samples next to their PDF snapshots
This package helps you render TeX examples from your DTX documentation and then embed PDF snapshots into it, next to the source TeX code.
| Paket | docshots |
| Repository | |
| Version | 0.5.0 2026-07-15 |
| Lizenzen | MIT License |
| Copyright | 2021–2026 Yegor Bugayenko |
| Betreuer | Yegor Bugayenko |
| Enthalten in | TeX Live als docshots MiKTeX als docshots |
| Themen | Dokumentation |