Index: trunk/doc/release.2015/ps1.analysis/Makefile
===================================================================
--- trunk/doc/release.2015/ps1.analysis/Makefile	(revision 40718)
+++ trunk/doc/release.2015/ps1.analysis/Makefile	(revision 40719)
@@ -4,5 +4,5 @@
 # 
 DO_PDFLATEX = 1
-DO_BIBTEX = 1
+DO_BIBTEX = 0
 
 help:
@@ -14,13 +14,35 @@
 all: pdf tgz 
 pdf: analysis.pdf
-tgz: analysis.tgz
+
+journal: analysis.journal.tgz
+arxiv: analysis.arxiv.tgz
 
 quick: analysis.quick.pdf
 
+BIBLIB = ../inputs/lib.bib
+
 PDFPICS = \
 pics/peaks.pdf \
+pics/FWHM.smooth.trend.ps1.pdf \
+pics/radial.profiles.pdf \
+pics/moment.class.pdf \
+pics/mag.resid.psf.pdf \
+pics/mag.resid.aper.pdf \
+pics/galaxy.exp.complete.pdf \
+pics/galaxy.dev.complete.pdf \
+pics/galaxy.exp.params.pdf \
+pics/galaxy.dev.params.pdf
+
+PNGPICS = \
+pics/peaks.pdf \
 pics/FWHM.smooth.trend.ps1.png \
-pics/moment.class.pdf \
-pics/radial.profiles.pdf 
+pics/radial.profiles.png \
+pics/moment.class.png \
+pics/mag.resid.psf.png \
+pics/mag.resid.aper.png \
+pics/galaxy.exp.complete.png \
+pics/galaxy.dev.complete.png \
+pics/galaxy.exp.params.png \
+pics/galaxy.dev.params.png
 
 FILES = \
@@ -28,6 +50,4 @@
 ../inputs/code.sty \
 ../inputs/apj.bst \
-../inputs/lib.bib \
-$(PDFPICS) \
 analysis.tex
 
@@ -40,6 +60,42 @@
 
 pdfpics: $(PDFPICS)
-analysis.pdf: $(FILES)
-analysis.tgz: $(FILES)
+
+analysis.pdf: $(FILES) $(BIBLIB) $(PDFPICS)
+
+analysis.journal.tgz: $(FILES) $(PDFPICS) analysis.bbl
+analysis.arxiv.tgz: $(FILES) $(PNGPICS) analysis.bbl
 
 include ../Makefile.Common
+
+# generate PDF for editing
+# ** set DO_BIBTEX to 1 above
+# ** set \picdir to pics in latex file
+# ** set \plotext to pdf or png as desired
+# ** make pdf (or make quick)
+
+# generate PDF for arxiv
+# ** set DO_BIBTEX to 0 above (make sure bbl file was generated earlier)
+# ** swap from biblograph{lib} to input bbl in latex file
+# ** set \plotext to png
+# ** make pdf (confirm PDF file succeeds)
+
+# generate TGZ for arxiv
+# ** follow steps above for PDF
+# ** set \picdir to . in latex file
+# ** make arxiv
+# ** test by extracting into local directory 
+# ** ltx -pdf analysis
+
+# generate PDF for journal
+# ** set DO_BIBTEX to 0 above (make sure bbl file was generated earlier)
+# ** swap from biblograph{lib} to input bbl in latex file
+# ** set \plotext to pdf
+# ** make pdf (confirm PDF file succeeds)
+
+# generate TGZ for journal
+# ** follow steps above for PDF
+# ** set \picdir to . in latex file
+# ** make journal
+# ** test by extracting into local directory 
+# ** ltx -pdf analysis
+
Index: trunk/doc/release.2015/ps1.analysis/analysis.tex
===================================================================
--- trunk/doc/release.2015/ps1.analysis/analysis.tex	(revision 40718)
+++ trunk/doc/release.2015/ps1.analysis/analysis.tex	(revision 40719)
@@ -29,5 +29,6 @@
 
 %\def\picdir{/home/eugene/chipresid.20140404}
-\def\picdir{pics}
+%\def\picdir{pics}
+\def\picdir{.}
 
 % Pick a terse version of the title here;
@@ -873,7 +874,8 @@
 are calculated as discussed below.
 
+% uses plots.sh in this directory
 \begin{figure}[htbp]
   \begin{center}
- \includegraphics[width=\hsize,clip]{pics/peaks}
+ \includegraphics[width=\hsize,clip]{\picdir/peaks.pdf}
   \caption{\label{fig:peaks} Illustration of peak finding and culling peaks within a
     footprint.  Insignificant peaks within the footprint of a brighter
@@ -932,8 +934,8 @@
 \label{sec:moments}
 
+% /data/kukui.3/eugene/psphot.20161214/mana.sh
 \begin{figure}[htbp]
   \begin{center}
-% \includegraphics[width=0.6\hsize]{{pics/FWHM.smooth.trend.ps1}.\plotext}
-  \includegraphics[width=0.95\hsize]{{pics/FWHM.smooth.trend.ps1}.png}
+  \includegraphics[width=0.95\hsize]{{\picdir/FWHM.smooth.trend.ps1}.\plotext}
   \caption{\label{fig:moments.window} Example of the biases
     encountered when measuring the second moments.  A simulated image
@@ -1215,7 +1217,8 @@
 % buonanno : 1983A&AS...51...83B
 
+% /data/kukui.3/eugene/psphot.20161214/mana.sh
 \begin{figure}[htbp]
   \begin{center}
-  \includegraphics[width=\hsize]{{pics/radial.profiles}.\plotext}
+  \includegraphics[width=\hsize]{{\picdir/radial.profiles}.\plotext}
   \caption{\label{fig:radial.profiles} Radial profiles of stellar images from PS1.  These two
     profiles illustrate the radial trend of the PS1 PSFs for a star
@@ -1313,7 +1316,8 @@
 \code{PM_SOURCE_MODE_SATURATED}.
 
+% /data/kukui.3/eugene/psphot.20161214/mana.sh
 \begin{figure}[htbp]
   \begin{center}
-  \includegraphics[width=\hsize]{{pics/moment.class}.\plotext}
+  \includegraphics[width=\hsize]{{\picdir/moment.class}.\plotext}
   \caption{\label{fig:moment.class} Illustration of PSF star selection
     using the second moments in $X_{\rm ccd}$ and $Y_{\rm ccd}$
@@ -1332,5 +1336,4 @@
 % Madsen:
 %% http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/3215/pdf/imm3215.pdf
-% Press
 
 All candidate PSF sources are then fitted with the selected source
@@ -1990,7 +1993,8 @@
 saturation.  
 
+% /data/kukui.1/eugene/psphot.examples.20190423/compare.sh
 \begin{figure*}[htbp]
   \begin{center}
- \includegraphics[width=\hsize,clip]{pics/{mag.resid.psf}.png}
+ \includegraphics[width=\hsize,clip]{\picdir/{mag.resid.psf}.\plotext}
   \caption{\label{fig:mag.resid.psf} PSF Photometry demonstration.
     The bottom panel shows the difference of the measured PSF
@@ -2011,7 +2015,8 @@
 \end{figure*}
 
+% /data/kukui.1/eugene/psphot.examples.20190423/compare.sh
 \begin{figure*}[htbp]
   \begin{center}
- \includegraphics[width=\hsize,clip]{pics/{mag.resid.aper}.png}
+ \includegraphics[width=\hsize,clip]{\picdir/{mag.resid.aper}.\plotext}
   \caption{\label{fig:mag.resid.aper} Aperture Photometry
     demonstration.  The plots show identical measurements to those in
@@ -2116,5 +2121,5 @@
 set of 18 images obtained by PS1 19 February 2010.  These images were
 obtained for the stellar transit survey ``Pan-Planets''
-\citep{2016A&A...587A..49O} and thus target a relatively dense
+\citep{2016AA...587A..49O} and thus target a relatively dense
 Galactic plane field.  The observations were obtained with
 approximately consistent pointing, reducing our sensitivity to
@@ -2675,8 +2680,9 @@
 magnitude than DeVaucouleur profile galaxies.  
 
+% /data/kukui.1/eugene/galaxies.20190425/tap_psphot_galaxies.pro : go.bigtest.ckgalaxy
 \begin{figure}[htbp]
   \begin{center}
- \includegraphics[width=\hsize,clip]{pics/{galaxy.exp.complete}.png}
- \includegraphics[width=\hsize,clip]{pics/{galaxy.dev.complete}.png}
+ \includegraphics[width=\hsize,clip]{\picdir/{galaxy.exp.complete}.\plotext}
+ \includegraphics[width=\hsize,clip]{\picdir/{galaxy.dev.complete}.\plotext}
   \caption{\label{fig:galaxy.complete} Top: Completeness curves for
     simulated galaxies with Exponential profiles.  Bottom:
@@ -2715,7 +2721,8 @@
 accurate for the larger galaxies.
 
+% /data/kukui.1/eugene/galaxies.20190425/tap_psphot_galaxies.pro : go.bigtest.ckgalaxy
 \begin{figure*}[htbp]
   \begin{center}
- \includegraphics[width=\hsize,clip]{pics/{galaxy.exp.params}.png}
+ \includegraphics[width=\hsize,clip]{\picdir/{galaxy.exp.params}.\plotext}
   \caption{\label{fig:exp.params} Parameter recovery for simulated
     galaxies with Exponential profiles.  }
@@ -2723,7 +2730,8 @@
 \end{figure*}
 
+% /data/kukui.1/eugene/galaxies.20190425/tap_psphot_galaxies.pro : go.bigtest.ckgalaxy
 \begin{figure*}[htbp]
   \begin{center}
- \includegraphics[width=\hsize,clip]{pics/{galaxy.dev.params}.png}
+ \includegraphics[width=\hsize,clip]{\picdir/{galaxy.dev.params}.\plotext}
   \caption{\label{fig:dev.params} Parameter recovery for simulated
     galaxies with DeVaucouleur profiles.  } 
@@ -3215,6 +3223,6 @@
 
 \bibliographystyle{apj}
-\bibliography{lib}{}
-%\input{analysis.bbl}
+%\bibliography{lib}{}
+\input{analysis.bbl}
 
 \end{document}
