From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibault Marin Subject: Re: plantuml export (unable to resolve link: nil) Date: Fri, 30 Dec 2016 08:26:41 -0600 Message-ID: <87vau1xzku.fsf@dell-desktop.WORKGROUP> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMy8y-0002Ox-NM for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 09:26:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMy8v-0001Wm-Kq for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 09:26:52 -0500 Received: from mout.gmx.net ([212.227.17.20]:50345) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMy8v-0001WF-BV for emacs-orgmode@gnu.org; Fri, 30 Dec 2016 09:26:49 -0500 In-Reply-To: (Prabhakaran Kasinathan's message of "Fri, 30 Dec 2016 14:42:12 +0100") 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: Prabhakaran Kasinathan Cc: emacs-orgmode@gnu.org Prabhakaran Kasinathan writes: > PlantUML src when exported to latex, has problems with link reference. > > export in latex : C-x C-e l l > Error: Unable to resolve link: nil > > Fix: #+OPTION: broken-links:mark > > Everything works very well with org 8.2.3. How to fix this problem in new > versions of ORG? > > Org src: > > #+OPTION: broken-links:mark > > * TEST Figure > Figure [[fig:plantuml]]. > > #+BEGIN_SRC plantuml :file test.png > A -> B : request > B -> A : response > #+END_SRC > > #+NAME: fig:plantuml > #+CAPTION: Plantuml Test Figure > #+RESULTS: > > Output in ORG v 8.2.3 > > > > Latex output: > > > > > #+BEGIN_SRC latex > > > \section{TEST figure} > > > \label{sec-1} > > > > > > > Figure \ref{fig:plantuml}. > > > > > > > \begin{figure}[htb] > > > \centering > > > \includegraphics{test.png} > > > \caption{\label{fig:plantuml}Plantuml Test Figure} > > > \end{figure} > > > \end{document} > > > #+END_SRC > > Output in ORG 9.0.3 > > > > Latex output: > > > > #+BEGIN_SRC latex > > \section{TEST figure} > > \label{sec:org3dff397} > > > > > Figure [BROKEN LINK: nil]. > > > > > \begin{center} > > \includegraphics{test.png} > > \end{center} > > #+END_SRC > > > Thanks in advance. It works (for me) if I execute the source block before exporting, which inserts a [[file:]] line (I also find it useful to name the source block and the #+RESULTS line). The information in (info "(org) Exporting code blocks") may be of some help. thibault