From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Bug: LaTeX export: internal target + \autoref{} broken [8.3.2 (8.3.2-elpaplus @ /home/myq/.emacs.d/elpa/org-plus-contrib-20150929/)] Date: Wed, 21 Oct 2015 21:05:49 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZozeB-0003Q5-6P for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 16:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zoze6-00069w-0j for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 16:06:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:37214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zoze5-00069k-QO for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 16:06:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zoze3-0003V5-2S for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 22:05:59 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Oct 2015 22:05:59 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Oct 2015 22:05:59 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi ☕◦m̰̱̐y̿q̟̽, ☕◦m̰̱̐y̿q̟̽ writes: > > Given the following Org document: > > ,---- > | #+MACRO: refp \autoref{$1}, \autopageref{$1} > | > | > | * section > | > | Please see the results in {{{refp(sec:info)}}}. > | > | * info<> > | > | The results are here. > `---- > > When exporting to LaTex, I expect `autoref' and `autopageref' to > correctly refer to the target `sec:info'. However, recent versions of > Org do not do that. I now get the following when exporting to LaTeX: > > ,---- > | % Created 2015-10-21 Wed 03:25 > | \documentclass[11pt]{article} > | % [...] > | \begin{document} > | % [...] > | \section{section} > | \label{sec:orgheadline1} > | > | Please see the results in \autoref{sec:info}, \autopageref{sec:info}. > | > | \section{info\label{orgtarget1}} > | \label{sec:orgheadline2} > | > | The results are here. > | \end{document} > `---- > > When compiled, the following warning is issued: > > ,---- > | Latex failed to resolve 2 reference(s) > `---- > > > This did not occur in Org Mode 8.3beta. > Please see `org-latex-prefer-user-labels'. Best, Andreas