On 2010-08-20 13:00 +0100, Ralph Corderoy wrote:
> > I'd like to include a simple diagram in a man page,
>
> IIRC, some of the Sun OS man pages from the 80s used to have the odd
> diagram. It may be worth a grep through collections of man pages to see
> if you can find some that use tbl, or pic,
On Fri, Aug 20, 2010 at 7:13 AM, Andre Majorel wrote:
> OK, so pic is out (and so is tbl unless I kludge the arrows in).
> For the moment, I'm following the path of least resistance :
Have you considered graphviz? Here is graph.dot for your example.
digraph g {
rankdir=LR
X -> Y [label=
On 2010-08-20 13:55 +0200, Werner LEMBERG wrote:
> >>> `Must not depend on groff'? What does this mean?
> >>
> >> Simply that it must work with any nroff & troff, not just Groff.
>
> Then pic is not a general solution since, AFAIK, only groff pic
> produces TTY output.
OK, so pic is out (and so
Hi Andre,
> I'd like to include a simple diagram in a man page, something like
> this :
>
>_ __
> | | A | | C | |
> | X |>| Y |->| Z |
> | |<| |<-| |
>
>>> `Must not depend on groff'? What does this mean?
>>
>> Simply that it must work with any nroff & troff, not just Groff.
Then pic is not a general solution since, AFAIK, only groff pic
produces TTY output.
Werner
On 2010-08-20 11:09 +0200, Clemens Ladisch wrote:
> > > > I'd like to include a simple diagram in a man page,
>
> Runing "man -p p ./testfile" on this file:
>
> .TH a b c d e
> .PS
> box "X"
> arrow "A" ""
> box "Y"
> arrow "B" ""
> box "Z"
> .PE
>
> results in this output, which is better than
Ted Harding wrote:
"These problems would not arise with PostScript output, but I am
puzzled as to why they should occur with ASCII otuput to a terminal."
On my server I get a slightly different result. I use version 1.20.1 on
a debian server:
+--+ +--+ +--+
On 20-Aug-10 08:30:33, Andre Majorel wrote:
> On 2010-08-20 09:37 +0200, Werner LEMBERG wrote:
>>
>> > I'd like to include a simple diagram in a man page, something
>> > like this :
>> >
>> > _ __
>> >| | A | | C | |
>> >
Andre Majorel wrote:
> On 2010-08-20 09:37 +0200, Werner LEMBERG wrote:
> > > I'd like to include a simple diagram in a man page, something
> > > like this :
> > >
> > >_ __
> > > | | A | | C | |
> > > | X |>| Y |---
On 2010-08-20 09:37 +0200, Werner LEMBERG wrote:
>
> > I'd like to include a simple diagram in a man page, something
> > like this :
> >
> > _ __
> > | | A | | C | |
> > | X |>| Y |->| Z |
> >
> I'd like to include a simple diagram in a man page, something
> like this :
>
>_ __
> | | A | | C | |
> | X |>| Y |->| Z |
> | |<| |<-| |
> |_|
I'd like to include a simple diagram in a man page, something
like this :
_ __
| | A | | C | |
| X |>| Y |->| Z |
| |<| |<-| |
|_| B |
12 matches
Mail list logo