Debian Codegraph @

texmf-dist/doc/latex/tikz-sections/examples/style-customization.tex

raw
1 \documentclass[11pt]{article}
2
3 \usepackage[a4paper,landscape,margin=14mm]{geometry}
4 \usepackage{array}
5 \usepackage{tikz-sections}
6
7 \pagestyle{empty}
8 \setlength{\parindent}{0pt}
9 \renewcommand{\arraystretch}{1.15}
10
11 \newcommand{\ExampleRow}[3]{%
12 \begin{tabular}{@{}m{0.22\linewidth}m{0.74\linewidth}@{}}
13 \begin{tikzpicture}[baseline=(current bounding box.center)]
14 #3
15 \end{tikzpicture}
16 &
17 \textbf{#1}\par
18 \vspace{2pt}
19 {\raggedright\ttfamily\scriptsize\detokenize{#2}\par}
20 \end{tabular}
21 \par\vspace{8mm}
22 }
23
24 \begin{document}
25
26 \TikZSectionsSetup{
27 tikzSections/straight/.style={tikzSections/default, black},
28 tikzSections/round/.style={tikzSections/default, gray},
29 tikzSections/dimension/.style={tikzSections/default, gray, <->},
30 tikzSections/dimension legend/.style={draw=gray, fill=white, inner sep=2pt, align=left},
31 tikzSections/label/.style={font=\small}
32 }
33
34 \ExampleRow
35 {Lipped channel with centerlines, dimension legend, and label}
36 {\TikZSectionsChannel[depth=180, flange=55, lip=18, thickness=2, radius=4, centerline=true, dimensions=true, label=CFS, scale=0.025]}
37 {\TikZSectionsChannel[depth=180, flange=55, lip=18, thickness=2, radius=4, centerline=true, dimensions=true, label=CFS, scale=0.025]}
38
39 \ExampleRow
40 {Monochrome universal beam with label}
41 {\TikZSectionsUniversalBeam[depth=61.2, width=22.9, flange thickness=1.96, web thickness=1.19, root radius=1.4, monochrome=true, label=UB, label x=12, label y=68, scale=0.12]}
42 {\TikZSectionsUniversalBeam[depth=61.2, width=22.9, flange thickness=1.96, web thickness=1.19, root radius=1.4, monochrome=true, label=UB, label x=12, label y=68, scale=0.12]}
43
44 \ExampleRow
45 {Filled rectangular hollow section}
46 {\TikZSectionsRHS[depth=80, width=50, thickness=3, radius=5, filled=true, scale=0.04]}
47 {\TikZSectionsRHS[depth=80, width=50, thickness=3, radius=5, filled=true, scale=0.04]}
48
49 \end{document}