Constant in logarithmic integral in prime counting Let $J(x)$ be Riemann's prime counting function given by $\frac{1}{2}w(x) + \sum_{n < x} w(n)$, where $w(p^k) = \frac{1}{k}$ when $p$ is a prime number and $k$ is a positive integer, and $w$ vanishes everywhere else.
Let the logarithmic integral $\newcommand{\li}{\mathrm{li}} \li(x)$ be some antiderivative of $\frac{1}{\log(x)}$.
I have often seen it asserted that for $x > 1$ or perhaps for $x > 2$, we have $J(x) = \li(x) - \sum_{\rho} \li(x^{\rho})$ or perhaps $J(x) = \li(x) - \sum_{\rho} \li(x^{\rho}) - \log(2)$, or some such variant. Here, the sum is over all zeros (trivial and nontrivial) of the Riemann zeta function, in some suitable order. The contribution over just the trivial zeros is some antiderivative of $\frac{1}{t (1 - t^2) \log(t)}$. I understand how to morally (non-rigorously) derive these formulas up to additive constants, but the additive constant specifics elude me.
I have written this without pinning down $\li$ beyond up to an additive constant. Clearly, adding any nonzero constant to $\li$ will destroy the convergence of any such series with infinitely many terms, so if there is some particular fixed choice of $\li$ to be used for all the terms which makes this converge, there is a unique such choice.
Is it indeed the case, as I often see suggested, that using the particular offset logarithmic integral with $\li(2) = 0$ makes these series converge? If so, I am very curious, what is so special about $2$ here?
If not, is there some other fixed choice of logarithmic integral I should be using for all these terms, or should I be using varying choices of $\li$, or in general, how should I interpret these often seen formulas?
 A: See Edwards' book Riemann's Zeta Function.  He introduces $J(x)$ on p. 22 (in fact Edwards created the notation $J(x)$, which Riemann had written as $f(x)$).  On p. 26 he defines ${\rm Li}(x)$ to be $\int_0^x dt/\log t$, with the integral defined across the point 1 using a Cauchy principal value.  On p. 33, equation (3) is the formula
$$
J(x) = {\rm Li}(x) - \sum_{{\rm Im}(\rho)> 0} ({\rm Li}(x^\rho) + {\rm Li}(x^{1-\rho})) + \int_x^\infty \frac{dt}{t(t^2-1)\log t} - \log 2
$$
for $x > 1$.  The terms in the sum over nontrivial zeros $\rho$ with positive imaginary part pair together $\rho$ and $1-\rho$, where the latter are nontrivial zeros with negative imaginary part.  These two terms never agree since $\rho = 1-\rho$ only when $\rho = 1/2$ and $\zeta(1/2) \not= 0$.
The sum counts each nontrivial zero with its multiplicity, and note $\rho$ and $1-\rho$ have the same multiplicity as zeros of the zeta-function.  The $-\log 2$ at the end is $\log(1/2) = \log(\xi(0))$ where
$\xi(s) = (s-1)\pi^{-s/2}\Gamma(s/2 + 1)\zeta(s)$, so $\xi(0) = -\zeta(0) = 1/2$.
