Jonathan Leech-Pepin <jonathan.leechpe...@gmail.com> writes:

>  For @xref{} I would need to know if it was at the start of a sentence and
> followed
> by a comma or period.
> For @pxref{} I would need to determine if it was at end of sentence,
> mid sentence followed by a comma or within parentheses, and not preceeded by
> "see" or "see".  Although even this would not suffice, since there are
> contexts where
> @ref{} is the better choice.

FWIW, from `org-texinfo-link',

  (org-export-data (org-export-get-previous-element link info t) info)

will give you the exported string so far in the container element and 

  (org-export-data (org-export-get-next-element link info t) info)

will return the string that will follow your link.

You need to upgrade Org for the first snippet, as order for `o-e-g-p-e'
return value has changed.


Regards,

-- 
Nicolas Goaziou

Reply via email to