emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2018-04-06  8:28 beckonsmorbid
  2018-04-06  8:50 ` beckonsmorbid
  0 siblings, 1 reply; 2+ messages in thread
From: beckonsmorbid @ 2018-04-06  8:28 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 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/)]
  2018-04-06  8:28 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
@ 2018-04-06  8:50 ` beckonsmorbid
  0 siblings, 0 replies; 2+ messages in thread
From: beckonsmorbid @ 2018-04-06  8:50 UTC (permalink / raw)
  To: emacs-orgmode

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 <beckonsmorbid@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-06  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06  8:28 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
2018-04-06  8:50 ` beckonsmorbid

Code repositories for project(s) associated with this 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).