emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode 9.0 LaTeX export figure labels do not work
@ 2016-11-23 21:44 Arkady Grudzinsky
  2016-11-23 21:49 ` Arkady Grudzinsky
  2016-11-23 23:08 ` John Kitchin
  0 siblings, 2 replies; 3+ messages in thread
From: Arkady Grudzinsky @ 2016-11-23 21:44 UTC (permalink / raw)
  To: emacs-orgmode


org-mode 9.0 seems to generate random figure labels instead of
the ones specified in #+NAME:, so the cross-references do not work.

.org source:
,----
| Temperature profile is shown in Fig. \ref{fig:tcprofile}.
| 
| #+NAME: fig:tcprofile
| #+CAPTION: Temperature Cycling Profile
| [[./tc_profile.png]]
`----

.tex output:
,----
| Temperature profile is shown in Fig. \ref{fig:tcprofile}.
| 
| \begin{figure}[htbp]
| \centering
| \includegraphics[width=.9\linewidth]{./tc_profile.png}
| \caption{\label{fig:orgceb3fa6}
| Temperature Cycling Profile}
| \end{figure}
`----

PDF output:

,----
| Temperature profile is shown in Fig. ??.
`----

Is this a new feature or a bug?


-- 
Arkady

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

* Re: org-mode 9.0 LaTeX export figure labels do not work
  2016-11-23 21:44 org-mode 9.0 LaTeX export figure labels do not work Arkady Grudzinsky
@ 2016-11-23 21:49 ` Arkady Grudzinsky
  2016-11-23 23:08 ` John Kitchin
  1 sibling, 0 replies; 3+ messages in thread
From: Arkady Grudzinsky @ 2016-11-23 21:49 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Nov 23 2016, Arkady Grudzinsky wrote:

> org-mode 9.0 seems to generate random figure labels instead of
> the ones specified in #+NAME:, so the cross-references do not work.

Figured out that the LaTeX reference syntax does not work
anymore.  But the org-mode reference [[fig:tcprofile]] does.  OK.
Makes sense.

>
> .org source:
> ,----
> | Temperature profile is shown in Fig. \ref{fig:tcprofile}.
> | 
> | #+NAME: fig:tcprofile
> | #+CAPTION: Temperature Cycling Profile
> | [[./tc_profile.png]]
> `----
>
> .tex output:
> ,----
> | Temperature profile is shown in Fig. \ref{fig:tcprofile}.
> | 
> | \begin{figure}[htbp]
> | \centering
> | \includegraphics[width=.9\linewidth]{./tc_profile.png}
> | \caption{\label{fig:orgceb3fa6}
> | Temperature Cycling Profile}
> | \end{figure}
> `----
>
> PDF output:
>
> ,----
> | Temperature profile is shown in Fig. ??.
> `----
>
> Is this a new feature or a bug?

-- 
Arkady

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

* Re: org-mode 9.0 LaTeX export figure labels do not work
  2016-11-23 21:44 org-mode 9.0 LaTeX export figure labels do not work Arkady Grudzinsky
  2016-11-23 21:49 ` Arkady Grudzinsky
@ 2016-11-23 23:08 ` John Kitchin
  1 sibling, 0 replies; 3+ messages in thread
From: John Kitchin @ 2016-11-23 23:08 UTC (permalink / raw)
  To: Arkady Grudzinsky; +Cc: emacs-orgmode

you might want to try:

(setq org-latex-prefer-user-labels t)


Arkady Grudzinsky writes:

> org-mode 9.0 seems to generate random figure labels instead of
> the ones specified in #+NAME:, so the cross-references do not work.
>
> .org source:
> ,----
> | Temperature profile is shown in Fig. \ref{fig:tcprofile}.
> | 
> | #+NAME: fig:tcprofile
> | #+CAPTION: Temperature Cycling Profile
> | [[./tc_profile.png]]
> `----
>
> .tex output:
> ,----
> | Temperature profile is shown in Fig. \ref{fig:tcprofile}.
> | 
> | \begin{figure}[htbp]
> | \centering
> | \includegraphics[width=.9\linewidth]{./tc_profile.png}
> | \caption{\label{fig:orgceb3fa6}
> | Temperature Cycling Profile}
> | \end{figure}
> `----
>
> PDF output:
>
> ,----
> | Temperature profile is shown in Fig. ??.
> `----
>
> Is this a new feature or a bug?


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

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

end of thread, other threads:[~2016-11-23 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-23 21:44 org-mode 9.0 LaTeX export figure labels do not work Arkady Grudzinsky
2016-11-23 21:49 ` Arkady Grudzinsky
2016-11-23 23:08 ` John Kitchin

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).