Index: trunk/doc/release.2015/Makefile.Common
===================================================================
--- trunk/doc/release.2015/Makefile.Common	(revision 39973)
+++ trunk/doc/release.2015/Makefile.Common	(revision 39974)
@@ -14,7 +14,11 @@
 
 %.pdf: %.tex
-	$(MY_LATEX) $*.tex 
+	$(MY_LATEX) $*.tex
+
+#	$(MY_LATEX) $*.tex; if [ $? -eq 1 ]; then rm $*.pdf; exit 1; fi
+
+junk:
 	if [ $(DO_BIBTEX) -eq 1 ]; then $(BIBTEX) $*; fi
-	$(MY_LATEX) $*.tex 
+	$(MY_LATEX) $*.tex; if [ $? -eq 1 ]; then rm $*.pdf; exit 1; fi
 	if [ $(DO_BIBTEX) -eq 1  ]; then $(MY_LATEX) $*.tex; fi
 #	thumbpdf --modes=dvips $*.pdf
Index: trunk/doc/release.2015/inputs/code.sty
===================================================================
--- trunk/doc/release.2015/inputs/code.sty	(revision 39973)
+++ trunk/doc/release.2015/inputs/code.sty	(revision 39974)
@@ -3,5 +3,5 @@
                                       % ligatures ?` and !` of \tt font
 \def\setupc@de % see TeX Book, p. 381
-    {\bf %
+    {\tt %
      \spaceskip=0pt \xspaceskip=0pt % just in case...
      \catcode`\`=\active
@@ -10,5 +10,5 @@
     }%
 \def\SETUPC@DE % see TeX Book, p. 381
-    {\textsc %
+    {\tt %
      \spaceskip=0pt \xspaceskip=0pt % just in case...
      \catcode`\`=\active
@@ -21,4 +21,5 @@
 \def\code{\begingroup\setupc@de\d@code}%
 \def\CODE{\begingroup\SETUPC@DE\D@CODE}%
+\def\nocode#1{#1}
 
 \def\setupIPPstage %
Index: trunk/doc/release.2015/ps1.analysis/Makefile
===================================================================
--- trunk/doc/release.2015/ps1.analysis/Makefile	(revision 39973)
+++ trunk/doc/release.2015/ps1.analysis/Makefile	(revision 39974)
@@ -4,5 +4,5 @@
 # 
 DO_PDFLATEX = 1
-DO_BIBTEX = 0
+DO_BIBTEX = 1
 
 help:
Index: trunk/doc/release.2015/ps1.analysis/analysis.tex
===================================================================
--- trunk/doc/release.2015/ps1.analysis/analysis.tex	(revision 39973)
+++ trunk/doc/release.2015/ps1.analysis/analysis.tex	(revision 39974)
@@ -5,5 +5,8 @@
 \RequirePackage{color}
 \RequirePackage{code}
+\RequirePackage{url}
 \input{astro.sty}
+
+\DeclareUrlCommand\email{\urlstyle{rm}}
 
 % online version may use color, but print version needs b/w
@@ -111,9 +114,8 @@
   * find a brighter-fatter reference
 * define more tests and generate examples
-  * simulation example of background subtraction at different densities
+  * simulation example of background subtraction
+    at different densities
   * real example of oversubtracted galaxy
 * check all references
-* fix the \code macro to work with alternate concepts
-  * DONE : the use of \textbf style formats was a problem : expects \textbf{foobar}
 \end{verbatim}
 
@@ -124,4 +126,8 @@
 extended source model fitting, and the techniques for ``forced''
 photometry measurements.
+
+\url{http://eugene@ifa.hawaii.edu}
+
+\end{document}
 
 %Chambers et al. 2017 (Paper I)
@@ -178,6 +184,4 @@
     from early users of the data products are welcome during the
     submission and refereeing process.}}
-
-\end{document}
 
 \section{Background}
@@ -295,5 +299,5 @@
 supplied guess model.  
 
-\section{\code{psphot} Design Goals}
+\section{\nocode{psphot} Design Goals}
 
 \code{psphot} has a number of important requirements that it must meet, and a
@@ -369,5 +373,5 @@
 \end{itemize}
 
-\section{\code{psphot} Analysis Process}
+\section{\nocode{psphot} Analysis Process}
 
 \subsection{Overview}
@@ -447,5 +451,5 @@
 PV3).  3) Pixels which lie outside of a user-defined coordinate window
 are considered non-data pixels (eg, overscan) and are marked as
-invalid.  (psphot recipe keywords \code{XMIN}, \code{XMAX},
+invalid.  (\code{psphot} recipe keywords \code{XMIN}, \code{XMAX},
 \code{YMIN}, \code{YMAX}, all set to 0 for PS1 PV3 -- invalid pixels
 were specified for PS1 PV3 with a supplied mask image, see
@@ -465,5 +469,5 @@
 
 \begin{table*}
-\caption{\label{tab:mask_values} \code{psphot} / GPC1 Mask Image Pixel Values}\vspace{-0.5cm}
+\caption{\label{tab:mask_values} \nocode{psphot} / GPC1 Mask Image Pixel Values}\vspace{-0.5cm}
 \begin{center}
 \begin{tabular}{lcl}
@@ -524,5 +528,5 @@
 Before sources are detected in the image, a model of the background is
 subtracted.  The image is divided into a grid of background points
-with a spacing defined by the psphot recipe values
+with a spacing defined by the \code{psphot} recipe values
 \code{BACKGROUND.XBIN, BACKGROUND.YBIN}, set to 400 pixels for PS1
 PV3.  Superpixels of size \code{BACKGROUND.XSAMPLE,
@@ -1090,5 +1094,5 @@
   for a given order of the PSF 2D variations.}\vspace{-0.5cm}
 \begin{center}
-\begin{tabular}{lcl}
+\begin{tabular}{llll}
 \hline
 \hline
@@ -1209,5 +1213,5 @@
 because of the highly diagonal matrix with small off-diagonal terms:
 the dot product of source $i$ and source $j$ is 1 where $i = j$ and
-much less than 1 where $i \noteq j$.
+much less than 1 where $i \neq j$.
 
 Once a solution set for $A_i$ is found, all of the sources are
@@ -1229,5 +1233,5 @@
 subtracted as discussed above.
 
-\node{code review for the next bit}
+\note{code review for the next bit}
 
 Once a solution has been achieved for a source, \code{psphot} attempts to
@@ -1617,5 +1621,5 @@
 analysis, $b_0 = $20\degree, $r_b = $15\degree, $\sigma_b = $50\degree.
 
-%  \note{need a discussion of the detector saturation behavior
+% \note{need a discussion of the detector saturation behavior
 
 % \note{more detail below?}  
@@ -1956,6 +1960,6 @@
 
 \bibliographystyle{apj}
-% \bibliography{lib}{}
-\input{analysis.bbl}
+\bibliography{lib}{}
+%\input{analysis.bbl}
 
 \end{document}
Index: trunk/doc/release.2015/ps1.analysis/test.tex
===================================================================
--- trunk/doc/release.2015/ps1.analysis/test.tex	(revision 39973)
+++ trunk/doc/release.2015/ps1.analysis/test.tex	(revision 39974)
@@ -2,9 +2,17 @@
 \RequirePackage{color} % this is required for {code}
 \RequirePackage{code}
+% \RequirePackage{url}
 \input{astro.sty}
+
+% \usepackage{lmodern} % (1) choose a font that is available as T1
+\usepackage[T1]{fontenc}% (2) specify encoding
+% \usepackage{textcomp}% (3) load symbol definitions
+\usepackage{ae}
+\usepackage{aecompl}
 
 % Pick a terse version of the title here;
 \shorttitle{Pixel Analysis in PS1}
 \shortauthors{E.A. Magnier et al}
+
 \begin{document}
 \title{Pan-STARRS Pixel Analysis : Source Detection and Characterization}
@@ -32,13 +40,26 @@
 \section{INTRODUCTION}\label{sec:intro}
 
+% \def\url@bfstyle{\@ifundefined{selectfont}{\def\UrlFont{\bf}}{\def\UrlFont{\bffamily}}}
+
+%% 
+%% \DeclareUrlCommand\foocode{\urlstyle{my}}
+
 Big test here.
 
-Testing \code{code}.
+Testing \code{code_foo}.
 
-Testing \IPPstage{chip stage}.
+Testing \IPPstage{chip stage_test}.
 
-Testing \IPPdbtable{rawImage}.
+Testing \IPPdbtable{rawImage_test}.
 
-Testing \IPPdbcolumn{rawImage.datetime}.
+Testing \IPPdbcolumn{rawImage.datetime_test}.
+
+% Testing \url{http://by.source}
+
+% Testing \foocode{http://eugene@ifa.source}
+
+\section{FOOBAR}\label{sec:intro}
+
+% Testing \foocode{AM_I_GOOD}
 
 \end{document}
