Debian Codegraph @

texmf-dist/doc/latex/picture/picture-example.tex

raw
1 %%
2 %% This is file `picture-example.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% picture.dtx (with options: `example')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: picture
12 %% Version: 2026-03-07 v2.0
13 %% Copyright (C)
14 %% 2006-2009 Heiko Oberdiek
15 %% 2016-2026 Oberdiek Package Support Group
16 %%
17 %% This work may be distributed and/or modified under the
18 %% conditions of the LaTeX Project Public License, either
19 %% version 1.3c of this license or (at your option) any later
20 %% version. This version of this license is in
21 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
22 %% and the latest version of this license is in
23 %% https://www.latex-project.org/lppl.txt
24 %% and version 1.3 or later is part of all distributions of
25 %% LaTeX version 2005/12/01 or later.
26 %%
27 %% This work has the LPPL maintenance status "maintained".
28 %%
29 %% The Current Maintainers of this work are
30 %% Heiko Oberdiek and the Oberdiek Package Support Group
31 %% https://github.com/ho-tex/picture/issues
32 %%
33 %%
34 %% This work consists of the main source file picture.dtx
35 %% and the derived files
36 %% picture.sty, picture.pdf, picture.ins, picture.drv,
37 %% picture-example.tex.
38 %%
39 \documentclass{article}
40
41 \usepackage[calc]{picture}
42
43 \begin{document}
44
45 \setlength{\unitlength}{1pt}
46
47 \begin{picture}(\widthof{Hello World}, 10mm)
48 \put(0, 0){\makebox(0,0)[lb]{Hello World}}%
49 \put(0, \heightof{Hello World} + \fboxsep){%
50 \line(1, 0){\widthof{Hello World}}%
51 }%
52 \put(\widthof{Hello World}, 10mm){%
53 \line(0, -1){10mm}%
54 }%
55 \end{picture}
56
57 \end{document}
58 \endinput
59 %%
60 %% End of file `picture-example.tex'.