Printing italics, bold, underline to UNIX printing for Windows

Printing italics, bold, underline to UNIX printing for Windows

Post by Tom Dyes » Wed, 24 Oct 2001 07:06:46



All,

    I was able to connect to a Windows 2000 printer, but I get the wrong
characters when printing italics and other special formatting. Here is what
I have. What applied / unapplied filter is causing this?

Thanks,
Tom

Specify a networked printer
# lpsystem -t bsd servername
(example: lpsystem -t bsd winlaser
Register the server with the client lp service
# lpadmin -p printername -s servername
(example: lpadmin -p winlaser -s winserver
Set the PostScript filters
# cd /etc/lp/fd
# lpfilter -f download -F download.fd
# lpfilter -f dpost -F dpost.fd
# lpfilter -f postio -F postio.fd
# lpfilter -f postior -F postior.fd
# lpfilter -f postprint -F postprint.fd
# lpfilter -f postreverse -F postreverse.fd
Set the printer as default (if desired)
# lpadmin -d printername
Verify the printer is online and registered
# lpstat -t
Print to printer
# lp -d printername filename

 
 
 

Printing italics, bold, underline to UNIX printing for Windows

Post by Greg Andre » Wed, 24 Oct 2001 07:19:49



>    I was able to connect to a Windows 2000 printer, but I get the wrong
>characters when printing italics and other special formatting. Here is what
>I have. What applied / unapplied filter is causing this?

What format is the file that you're printing?  Text?  Postscript?  PCL?

Are you selecting the italics and other formatting with command-line
options to the lp command?  Some other method (e.g. doing it in a
word processor application)?

  -Greg
--

I have a map of the United States that's actual size
                 -- Steven Wright

 
 
 

Printing italics, bold, underline to UNIX printing for Windows

Post by Tom Dyes » Wed, 24 Oct 2001 07:28:16


I was doing something like this

man filesystem > lp

Tom



> >    I was able to connect to a Windows 2000 printer, but I get the wrong
> >characters when printing italics and other special formatting. Here is
what
> >I have. What applied / unapplied filter is causing this?

> What format is the file that you're printing?  Text?  Postscript?  PCL?

> Are you selecting the italics and other formatting with command-line
> options to the lp command?  Some other method (e.g. doing it in a
> word processor application)?

>   -Greg
> --

> I have a map of the United States that's actual size
> -- Steven Wright

 
 
 

Printing italics, bold, underline to UNIX printing for Windows

Post by Logan Sh » Wed, 24 Oct 2001 12:42:20




>#   I was doing something like this
>#  
>#   man filesystem > lp

>...everyone slowly backs away, turns to run...

Technical thug, administrative fascist, maniac, or idiot?
You make the call...

Actually, I don't really think that any of them fit.
It's just an excuse to remind everyone of
http://www.gnu.org/fun/jokes/know.your.sysadmin.html .

  - Logan
--
"In order to be prepared to hope in what does not deceive,
 we must first lose hope in everything that deceives."

                                          Georges Bernanos

 
 
 

Printing italics, bold, underline to UNIX printing for Windows

Post by Greg Andre » Thu, 25 Oct 2001 02:14:57



>I was doing something like this

>man filesystem > lp

That means the man page utilities are going to format the output
so it's correct for your terminal, but not for your printer.

Your terminal uses different command sequences than your printer
to control the layout on the screen, select underlining, bold,
and so on.

If your printer supports Postscript, then the command that's
more likely to work is:

  If your shell is sh, bash, or ksh:

    TCAT=/usr/lib/lp/postscript/dpost  man -t filesystem  |  lp

  If your shell is csh or tcsh:

    env TCAT=/usr/lib/lp/postscript/dpost  man -t filesystem  |  lp    

If your printer doesn't support Postscript, then you'll need to find
a utility that converts directly from the man page format (troff or
SGML) to the printer's format.  Perhaps Ghostscript.

  -Greg
--

I have a map of the United States that's actual size
                 -- Steven Wright

 
 
 

1. Printing bold and italic with 'a2ps'?

Hello,
        I'm using a2ps v4.2 on a Dec alpha.  I'm trying to figure out how to
tell it to print bold and italic font (I know there is a flag to print
the whole file in a bold font, but I want to be able to print just a
couple words bolded or italicized).
        I've figured out how to underline words ('a^H_b^h_' is 'ab'
underlined), but have gotten nowhere with bolding and italicizing.  Any
suggestions would be most welcome.  Thank you.
        Charles Plager
p.s. Please respond via email.
--
------------------------------------------------------------------

Dept of Physics, UIUC         http://www.physics.uiuc.edu/~cplager
office: (1) 607-255-0682                     fax: (1) 607-255-8062
------------------------------------------------------------------

2. How to check if my comuter is infected?

3. Printing bold and underline with a2ps

4. comp.unix.sco.misc Administrative FAQ

5. Anyone found fixed italic or bold italic?

6. Getting SATAN 1.1.1 to work under RedHat 5.1?

7. Xemacs italic & bold-italic fonts after upgrade to Solaris-2.8

8. ANSI C lint

9. How to print bold letters in unix

10. getting bold *and* italic from `man'

11. troff -- bold italics

12. bold, underline, inverse, etc.

13. Bold/underlined characters