I can't understand why \zsavepos (\pdfsavepos) doesn't return the
same result.
What's the effect of \leavevmode on the current position ?
It's not visible in the pdf...
% ---------------------------------------------
\documentclass{article}
\usepackage{etex}
\usepackage{zref,zref-savepos,zref-user}
\begin{document}\makeatletter
\begin{itemize}
\item \zsavepos{HERE}HERE
\item Something \loggingall strange \\
\zsavepos{STRANGE}STRANGE \tracingnone
\item \leavevmode\zsavepos{EXPLAIN}EXPLAIN
\end{itemize}
HERE: \zposx{HERE}
STRANGE: \zposx{STRANGE}
EXPLAIN: \zposx{EXPLAIN}
\end{document}\endinput
% ---------------------------------------------
Thanks if you have a "solution" ;-)
\item doesn't actually print anything, nor does it start a new line.
It saves
the box containing the bullet, and arranges for \everypar to print it
whenever
the next paragrapg starts, which is _after_ \zsavepos has marked the
current
position (which is then just above the coming new line and at the left
margin.
> \item Something \loggingall strange \\
> \zsavepos{STRANGE}STRANGE \tracingnone
> \item \leavevmode\zsavepos{EXPLAIN}EXPLAIN
Here, \leavevmode starts a new paragraph, causing the bullet to be
printed
and only after that is the position saved. Thus, it will align with
the one above
it, indented by the amount of the list indentation.
Dan
> I can't understand why \zsavepos (\pdfsavepos) doesn't return the
> same result.
>
> What's the effect of \leavevmode on the current position ?
> \begin{itemize}
> \item \zsavepos{HERE}HERE
> \item Something \loggingall strange \\
> \zsavepos{STRANGE}STRANGE \tracingnone
> \item \leavevmode\zsavepos{EXPLAIN}EXPLAIN
> \end{itemize}
\item does not set its bullet immediately. This is
deferred by \everypar.
--
Heiko Oberdiek