Women in Technology

Hear us Roar



Article:
  In Praise of Pic
Subject:   Not working for me
Date:   2007-06-22 13:37:30
From:   MatthewDoar
I ran the examples you gave, and the .ps file looks ok but ps2epsi claims that the page is blank, and gs shows nothing. Perhaps the .pic file has to be embedded in a troff file? There's no troubleshooting section in the documents you referenced.
Full Threads Newest First

Showing messages 1 through 3 of 3.

  • Philipp Janert photo Not working for me
    2007-06-22 20:27:09  Philipp Janert | O'Reilly AuthorO'Reilly Blogger [View]


    That's very strange. I just tried it again - the very first "Hello"-box example. No problem.

    Step 1) Put this in a file called hello.pic
    .PS
    box "Hello"
    .PE

    Step 2) Run this line:
    pic hello.pic | groff > hello.ps

    Note that the picture is small - at the very top of the page. Since gv will center the displayed page, you may have to scroll to view the box. (Or try a different viewer, eg. display from ImageMagick.)
  • Not working for me
    2007-07-10 14:54:46  LakerNetman [View]

    Try running dos2unix on the example file and see if that fixes it.
    If you created the example file on a windows box and copied it over to linux you'll get the symptoms you're seeing because the end-of-line terminators are different between the OSes.

    Laker
  • Not working for me
    2007-07-16 05:56:23  ralph@inputplus.co.uk [View]

    I expect troff's idea of you paper size and ps2epsi's don't agree.

    Insert ".sp 2i" at the start of the file before ".PS" to insert two inches of space, forcing the diagram down the page into the visible area they both agree on.