Debian Codegraph @

texmf-dist/doc/latex/bardiag/bardiag2.tex

raw
1 \documentclass[12pt]{article}
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 \usepackage{barddoc}
4
5 \title{The \bard package: documentation part 3
6 \thanks{This file has version number \barvers and describes \bard ver.\barvers}
7 }
8
9 \usepackage{xr}
10 \externaldocument{bardiag}
11
12
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14 \begin{document}
15 \maketitle
16
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
18
19
20 %#########################################
21 \appendix \section*{\appendixname}
22
23 \mysection{\label{app1}Source file for the example \figref{fig:9} from \texttt{bardiag.tex|.ps}}
24 \lstinputlisting{figs/examp5.tex}
25
26 %\section{\label{app2}Source of the \bard}
27 %{\small
28 %\verbatiminput{bardiag.sty}
29 %}
30
31 \clearpage
32 \mysection{\label{app2}Examples of alternative shapes,
33 defined in \texttt{bardiag.cfg}}
34 As mentioned above, file \texttt{bardiag.cfg} is automatically loaded.
35 One can define colors or parameters there, or, say, some new shapes.
36 To demonstrate a couple of ``alternative'' shapes, we redraw the
37 \figref{fig:8a} as shown below [\figref{fig:a2:1}].
38 Use, e.g.,\\
39 \verb+\renewcommand{\ActiveBarPrimitive}{\barArrowRect}+\\
40 and the provided \texttt{bardiag.cfg} to draw \figref{fig:a2:1:a}.
41
42 \renewcommand{\shownumbers}{0}
43 \begin{figure}[!ht]
44 \renewcommand{\betweenticks}{50}
45 \renewcommand{\tdx}{0.4}
46 \renewcommand{\tdy}{15}
47 \subfigure[Using \texttt{barArrowRect}]{\label{fig:a2:1:a}
48 \centering
49 \renewcommand{\frameTD}{0}
50 \renewcommand{\ActiveBarPrimitive}{\barArrowRect}
51 \renewcommand{\arrowheight}{5\dbar}
52 \renewcommand{\placenumber}{\bottom}
53 \input{figs/examp4.tex}
54 }
55 \subfigure[Using \texttt{barGradRect}]{\label{fig:a2:1:b}
56 \renewcommand{\frameTD}{0}
57 \renewcommand{\ActiveBarPrimitive}{\barGradRect}
58 \input{figs/examp4.tex}
59 }\\
60 \subfigure[Using \texttt{barGradMidRect}]{\label{fig:a2:1:c}
61 \centering
62 \renewcommand{\frameTD}{0}
63 \renewcommand{\ActiveBarPrimitive}{\barGradMidRect}
64 \input{figs/examp4.tex}
65 }
66 \subfigure[Using \texttt{barGradCylinder}]{\label{fig:a2:1:d}
67 \renewcommand{\frameTD}{0}
68 \renewcommand{\ActiveBarPrimitive}{\barGradCylinder}
69 \renewcommand{\tdx}{0.5} % depth of 3d
70 \renewcommand{\tdy}{15}
71 \input{figs/examp4.tex}
72 }
73 \caption{\label{fig:a2:1}Alternative shapes}
74 \end{figure}
75 %----------------------------------------
76 \printindex
77
78 \end{document}