From mboxrd@z Thu Jan 1 00:00:00 1970 From: beckonsmorbid Subject: Bug: CUSTOM_ID property not used in LaTeX-Export [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/27.0.50/lisp/org/)] Date: Fri, 6 Apr 2018 10:28:59 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4Mkg-0003dE-8H for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 04:29:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4Mkf-0000Ps-Ej for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 04:29:42 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:39471) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4Mkf-0000O4-6W for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 04:29:41 -0400 Received: by mail-wm0-x230.google.com with SMTP id f125so1506671wme.4 for ; Fri, 06 Apr 2018 01:29:40 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.29) of 2018-04-05 Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/27.0.50/lisp/org/) ---------------------------------------------------------------------------------------------- Hi, It seems the CUSTOM_ID property isn't being used in the Latex-export, for example this org file: #+BEGIN_SRC org ,* foo :PROPERTIES: :CUSTOM_ID: sec:foo :END: ,* bar :PROPERTIES: :CUSTOM_ID: sec:bar :END: \ref{sec:foo} \ref{sec:bar} #+END_SRC gets exported to this Latex code: #+BEGIN_SRC latex % Created 2018-04-06 Fr 10:19 % Intended LaTeX compiler: pdflatex \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \date{\today} \title{} \hypersetup{ pdfauthor={}, pdftitle={}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 27.0.50 (Org mode 9.1.9)}, pdflang={English}} \begin{document} \tableofcontents \section{foo} \label{sec:org6f6b527} \section{bar} \label{sec:org9cbe09f} \ref{sec:foo} \ref{sec:bar} \end{document} #+END_SRC which breaks the \ref-links. This is in the default config with emacs -Q. Thanks for your help and all the work on org, Simon