Debian Codegraph @

texmf-dist/doc/latex/tikz-dimline/README

raw
1 # Technical dimension lines in Tikz
2
3
4 Dimension lines are drawn segments that indicate the measurement of a
5 feature. The line has an arrow at both ends to show that the dimension
6 displayed covers the entire span of that line. The direction of the line
7 (vertical, horizontal or diagonal) shows the direction of the
8 measurement. Dimension lines are kept outside of the object illustrated,
9 typically connected to other lines that display the area where that
10 measurement applies. This keeps the illustration clear.
11
12
13
14 ## Installation
15
16 To install the `tkiz-dimline` package copy its directory to either to:
17
18 - `$TEXHOME/tex/latex/`
19 - `$TEXMFHOME/tex/latex/`
20 - `~/texmf/tex/latex/`
21 - `~/Library/texmf/tex/latex/`
22
23 ## Usage
24
25
26 ````Tex
27 \begin{tikzpicture}[scale=2]
28 \draw[line width=1pt] (0,0) -- (0,4) -- (.5,4) -- (.5,5) -- (1.,5)
29 -- (1.,4) -- (1.5,4) -- (1.5,0) -- cycle;
30
31 \draw node (A) at (2.5,0) {};
32
33 \dimline[line style = {line width=0.7},
34 extension start length=-0.24,
35 extension end length=-0.24] {(A)}{($ (A) + (0,4) $)}{$4.0$};
36
37 \dimline[line style = {red, line width=0.7},
38 extension start length=0,
39 extension end length=0] {(0,2)}{(1.5, 2)}{ $\diameter 1.5$};
40
41 \dimline[label style={above=0.5ex,},
42 extension start path = {(0,6) (0,5.7) (0.5,5.4) (0.5,5.05)},
43 extension end path = {(1.5,6) (1.5,5.7) (1,5.4) (1,5.05)},]
44 {(0,6)}{(1.5,6)}{$\diameter 0.5$};
45 \end{tikzpicture}
46 ````
47
48 See [tikz-dimline-doc.pdf](tikz-dimline-doc.pdf) for further help.
49
50
51 ## Example
52
53 Global dimension line
54
55 ![Dimension line example 1](dimline1.png)
56
57 Normal arrow details
58
59 ![Dimension line example 2](dimline2.png)
60
61 Reversed arrow details
62
63 ![Dimension line example 3](dimline3.png)
64
65
66
67 ## License
68
69 This program is free software. It comes without any warranty, to the extent
70 permitted by applicable law. You can redistribute it and/or modify it under
71 the terms of the Do What The Fuck You Want To Public License, Version 2, as
72 published by Sam Hocevar. See http://sam.zoy.org/wtfpl/COPYING for more
73 details.