emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: beckonsmorbid <beckonsmorbid@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <CAMewSNvWRYpj4A_iMuL+r5Wsg8az39Ag3uK-fL7jE36g_Oo9ew@mail.gmail.com> (raw)

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

             reply	other threads:[~2018-04-06  8:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-06  8:28 beckonsmorbid [this message]
2018-04-06  8:50 ` 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/)] beckonsmorbid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMewSNvWRYpj4A_iMuL+r5Wsg8az39Ag3uK-fL7jE36g_Oo9ew@mail.gmail.com \
    --to=beckonsmorbid@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).