Tasks

Update Web Refs List

Follow these steps (formerly in README.myrefs) for updating the reference list for the PSRCAT web interface:

1. cd to /pulsar/psr/dev/cvshome/pulsar/soft_atnf/psrcat/updates

2. psrcat -bibliography | uniq > myrefs.tex

  • (this should list all the unique references in the catalogue and store them in LaTeX form in myrefs.tex. Note: we don't want to sort the listing so we don't use sort -u.)

3. If the glitch table has been modified:

   glitchRefs glitch.db > glrefs.tex
  • Then insert glrefs.tex (except first line) into myrefs.tex

4. Make sure that mylistall.bst is in the current directory

5. rm myrefs.bbl

6. latex myrefs.tex

7. bibtex myrefs | grep find > badrefs

  • This produces a file called badrefs which consists of references that don't exist in psrrefs or modrefs. These need to be fixed or added and the procedure repeated.

8. cat header myrefs.bbl footer | sed s/~/" "/g | sed s/"\\it"/""/g | sed s/"\\"/""/g | sed s/"--"/"-"/g | sed s/"{"/""/g | sed s/"}"/""/g | tr -d $ > psrcat_ref.html

9. cp psrcat_ref.html /u/pulsar/public_html/psrcat/

-- Added 03/12/2013 --

10. Format the .bbl file for Latex: cat myrefs.bbl | sed s/~/" "/g | sed s/"\\it"/""/g | sed s/"\\"/""/g | sed s/"--"/"-"/g | sed s/"{"/""/g | sed s/"}"/""/g | tr -d $ | sed s/"<tr>"/"***"/g | sed s/"<td valign=top><a NAME="/""/g | sed s/"><\/a><b>"/" "/g | sed s/"<\/b>"/""/g | sed s/"<\/td><td>"/" "/g | sed s/"<i>"/""/g | sed s/"<\/i>"/""/g | sed s/"<\/td><\/tr>"/""/g > psrcat_ref

11. Copy the ref file to the run directory:

    cp psrcat_ref $PSRCAT_RUNDIR/.

12. Edit myrefs.tex:

  • change \bibliographystyle{mylistall} to \bibliographystyle{apj}

13. rm myrefs.bbl

14. latex myrefs.tex

15. bibtex myrefs

16. Copy the .bbl file:

    cp myrefs.bbl /u/pulsar/public_html/psrcat/