Debian Codegraph @

texmf-dist/doc/latex/docshots/README.md

raw
1 [![l3build](https://github.com/yegor256/docshots/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/docshots/actions/workflows/l3build.yml)
2 [![CTAN](https://img.shields.io/ctan/v/docshots)](https://ctan.org/pkg/docshots)
3 [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/docshots/blob/master/LICENSE.txt)
4
5 This LaTeX package helps you show TeX code next to their PDF snapshots,
6 in two-column formatting. You can use it either in `.dtx` documentation
7 or in `.tex` file.
8
9 First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
10 from [CTAN](https://ctan.org/pkg/docshots)
11 and then use like this:
12
13 ```tex
14 \documentclass{article}
15 \usepackage{docshots}
16 \begin{document}
17 Here is how you can use \LaTeX:
18
19 \begin{docshot}
20 \documentclass{article}
21 \pagestyle{empty}
22 \begin{document}
23 Hello, \LaTeX!
24 \end{document}
25 \end{docshot}
26
27 For more informaiton, read \TeX{} Book by Donald Knuth.
28 \end{document}
29 ```
30
31 Otherwise, you can download [`docshots.sty`](https://yegor256.github.io/docshots/docshots.sty) and add to your project.
32
33 If you want to contribute yourself, make a fork, then create a branch,
34 then run `l3build ctan` in the root directory.
35 It should compile everything without errors. If not, submit an issue and wait.
36 Otherwise, make your changes and then run `l3build ctan` again. If the build is
37 still clean, submit a pull request.