Printing from the command line formatting issue.

Discussion in 'Mac Basics and Help' started by williamnova, Feb 14, 2011.

  1. williamnova macrumors newbie

    Joined:
    Feb 14, 2011
    #1
    Hi, I'm using a simple pipe to send my command line output to my printer, like so:

    $ man re_format | lp

    However, the bold and underlined text in the man pages are not being formatted properly by the printer; bold text is printed doubled and underlined text is printed with underscores between the letters, so something like:

    NAME prints as NNAAMMEE and something like bracket expression is printing as _b_r_a_c_k_e_t _e_x_p_r_e_s_s_i_o_n

    How can I fix this?

    Thanks in advance; and if this isn't the proper forum for this sort of question please let me know, I wasn't sure which forum this sort of topic went under really.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    If your printer supports postscript you could use the -t switch to man to use gtroff to output as postscript.
     
  3. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #3
    Give this a try even if you don't have a PostScript printer. CUPS should interpret the PostScript on behalf of the printer and send the necessary printer-specific graphics commands.
     

Share This Page