Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: using non-acroread viewer for pdf docs


From   Hiroyuki Kawakatsu <hkawakat@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: using non-acroread viewer for pdf docs
Date   Wed, 11 Nov 2009 09:51:42 +0000

Hi,

I've managed to change the pdf viewer in stata from acroread
to xpdf on linux by modifying the stata_pdf script. I would
really like to have an option to select an alternative pdf
viewer during installation.

For those who prefer xpdf, the modified part of the
stata_pdf script (in your stata installation dir) follows:

#---begin
case "$PDFVIEWER" in
"")     cmd="xpdf"
        ;;
*)      cmd="$PDFVIEWER"
        ;;
esac

case "$1" in
"-page")        pagenum=$2
                fname=$3
                wharg="$pagenum"
                ;;
"-section")     section=$2
                fname=$3
                wharg="+$section"
                ;;
*)              fname="$1"
                wharg=""
                ;;
esac

exec $cmd "$fname" $wharg
#---end of script

h.


-- 
+---
| Hiroyuki Kawakatsu
| Business School, Dublin City University
| Dublin 9, Ireland. Tel +353 (0)1 700 7496
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index