From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-mode 9.0 LaTeX export figure labels do not work Date: Wed, 23 Nov 2016 18:08:39 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9gel-0005EJ-GF for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 18:08:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9geg-0006Er-IQ for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 18:08:47 -0500 Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]:35156) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9geg-0006Db-CK for emacs-orgmode@gnu.org; Wed, 23 Nov 2016 18:08:42 -0500 Received: by mail-qt0-x22e.google.com with SMTP id c47so25653735qtc.2 for ; Wed, 23 Nov 2016 15:08:41 -0800 (PST) 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: Arkady Grudzinsky Cc: emacs-orgmode@gnu.org 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