[pstricks] legends
Denis Girou
Denis.Girou at idris.fr
Tue Jan 9 10:47:10 CET 2001
>>>>> "Richard.Hensh" == Richard Hensh <hensh at math.msu.edu> writes:
Richard.Hensh> Can someone tell me how the entries were created in Table 4.3 on page 103 of
Richard.Hensh> the Latex Graphics Companion? For example, I would like to create a legend
Richard.Hensh> in a document that I am working on. In it I use -->> to indicate a
Richard.Hensh> "control"...so I would like to
Richard.Hensh> do something like this:
Richard.Hensh> ------------------
Richard.Hensh> | Legend |
Richard.Hensh> | |
Richard.Hensh> | -->> Control |
Richard.Hensh> | |
Richard.Hensh> | <--> Transfer |
Richard.Hensh> | |
Richard.Hensh> -------------------
I would have done it as something like:
\documentclass[a4paper]{article}
\usepackage{pstricks}
\newcommand{\Connector}[1]{%
\begin{pspicture}[0.3](0,-0.25)(1,0.25)
\psline{#1}(1,0)
\end{pspicture}}
\pagestyle{empty}
\begin{document}
\begin{table}[htbp]
\centering
\begin{tabular}{|cc|}
\hline
& \textbf{Legend} \\
\Connector{->>} & Control \\
\Connector{<->} & Transfer \\
\hline
\end{tabular}
\caption{Connectors}
\label{tab:Connectors}
\end{table}
\end{document}
D.G.
More information about the PSTricks
mailing list