[LON-CAPA-dev] New libraries, etc - need to install for CVS Head
Gerd Kortemeyer
lon-capa-dev@mail.lon-capa.org
Fri, 3 Apr 2009 12:36:24 -0400
Hi,
This is forwarded on behalf of Thomas Onken:
Enable PDF-Forms in LON-CAPA
First you need to install the AcroTeX-education bundle from ctan.
Get the package and unzip it:
[root@loncapa ]# wget http://tug.ctan.org/get/macros/latex/contrib/acrotex.zip
[root@loncapa ]# unzip acrotex.zip
go into the acrotex-folder and install
[root@loncapa ]# cd acrotex
[root@loncapa acrotex]# latex acrotex.ins
Now move the folder acrotex file into the latex path. You can easly
find it by searching for "cite.sty" or some other tex-packages.
[root@loncapa /]# locate cite.sty
/usr/share/texmf/tex/latex/cite/cite.sty
/usr/share/texmf/tex/latex/cite/drftcite.sty
/usr/share/texmf/tex/latex/cite/overcite.sty
On CentOS5 the latex path is: /usr/share/texmf/tex/latex/
[root@loncapa acrotex]# cd ..
[root@loncapa ]# mv acrotex /usr/share/texmf/tex/latex/
Remove the acrotex.zip
[root@loncapa]# rm acrotex.zip
After that you must rehash tex:
[root@loncapa ]# texhash
Now you are able to print PDF with Forms (Radiobutton-, Comboboxes-,
Textfield based problems).
The second thing to do is to enable the Upload-script lonpdfupload.pm.
Before you can use it you have to install CAM::PDF for perl. It is
available on CPAN so you can use the perl –MCPAN -eshell.
[root@loncapa ~]# perl -MCPAN -eshell
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled
cpan>install CAM::PDF
(…follow installation and also install the dependencies)
cpan>exit
Next you need to copy the upload-script from CVS to the LON-CAPA
Apache folder.
[root@loncapa ~]# cp [your-cvs-folder]/loncom/interface/
lonpdfupload.pm /home/httpd/lib/perl/Apache/
Now restart httpd:
[root@loncapa ~]# /etc/init.d/httpd restart