From mboxrd@z Thu Jan 1 00:00:00 1970 From: beckonsmorbid Subject: Re: 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:50:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f4N5O-0003Ci-DS for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 04:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f4N5K-0003du-FI for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 04:51:06 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:43877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f4N5K-0003dD-7u for emacs-orgmode@gnu.org; Fri, 06 Apr 2018 04:51:02 -0400 Received: by mail-wr0-x22c.google.com with SMTP id p53so741724wrc.10 for ; Fri, 06 Apr 2018 01:51:02 -0700 (PDT) In-Reply-To: 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 So I just searched the org sources and stumbled upon org-latex-prefer-user-labels, which needs to be t for this to work in newer emacs versions. Sorry for the noise On Fri, Apr 6, 2018 at 10:28 AM, beckonsmorbid wrote: > 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