LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2014, 02:04 PM   #1
terence
LQ Newbie
 
Registered: Feb 2004
Location: Edinburgh UK
Distribution: CentOS
Posts: 19

Rep: Reputation: 0
dvips does not print anything


Hello,

I'm having problems printing a .dvi file directly using dvips - it
does nothing and no job appears in the printer queue. If I first
generate a .ps file using dvips -o, I can use lpr to print the .ps
file without any problems. Simiarly, I can also generate a .pdf
file and print it from acroread. How can I get dvips to print the .dvi
file directly?

I'm running CentOS 6.5 and dvips is part of the texlive-dvips pacakge.

Thanks for any help.
Terence
 
Old 11-10-2014, 07:41 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,

the default behaviour of recent versions of dvips is to make a ps file even if the -o option is not given. I had a quick look at the info page and it seems that it needs to be specifically configured to make it send the output to a printer. It wasn't immediately clear to me how to set this up. I think you'll have to dig through the documentation.

Evo2.
 
Old 11-10-2014, 09:06 PM   #3
terence
LQ Newbie
 
Registered: Feb 2004
Location: Edinburgh UK
Distribution: CentOS
Posts: 19

Original Poster
Rep: Reputation: 0
Aha! I didn't know that. Having dug around the various configuration files, I've finally found how to do that.

Step 1: edit the file /usr/share/texmf/dvips/config/config.ps - there is a line in there as follows:

% How to print, maybe with lp instead lpr, etc. If commented-out, output
% will go into a file by default.
o |lpr

(Uncomment the 'o |lpr' line.)

Step 2: You must now get dvips to search for this config.ps file (if it's not already set up to do this). This can be done in one of 2 ways:

1. Set the environment variable TEXCONFIG to /usr/share/texmf/dvips// for an individual user.
2. Do this system wide by putting the following line in the file /etc/texmf/texmf.cnf (create the file if it
doesn't exist already):

TEXCONFIG = /usr/share/texmf/dvips//
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Latex Kile: dvips: ! Bad DVI file: first byte not preamble olliody Linux - Software 2 12-07-2009 05:11 AM
[SOLVED] Problem with dvips at slackware mfduqued Slackware 13 07-09-2009 04:14 AM
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 05:15 PM
dvipdf not picking up fonts, but dvips is? f0rmula Linux - Software 5 12-13-2004 12:00 PM
dvips/apsfilter problem bass Slackware 6 09-22-2002 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration