emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thibault Marin <thibault.marin@gmx.com>
To: Prabhakaran Kasinathan <prabhakaran1989@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: plantuml export (unable to resolve link: nil)
Date: Fri, 30 Dec 2016 08:26:41 -0600	[thread overview]
Message-ID: <87vau1xzku.fsf@dell-desktop.WORKGROUP> (raw)
In-Reply-To: <CAFH0ppZFnHvica2VRLAFkG9VKOFSvmMx0hnb7_vHnFW-TbRp3Q@mail.gmail.com> (Prabhakaran Kasinathan's message of "Fri, 30 Dec 2016 14:42:12 +0100")

Prabhakaran Kasinathan <prabhakaran1989@gmail.com> 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

  reply	other threads:[~2016-12-30 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-30 13:42 plantuml export (unable to resolve link: nil) Prabhakaran Kasinathan
2016-12-30 14:26 ` Thibault Marin [this message]
2016-12-30 15:31 ` Nicolas Goaziou
2016-12-30 15:36   ` Prabhakaran Kasinathan

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=87vau1xzku.fsf@dell-desktop.WORKGROUP \
    --to=thibault.marin@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=prabhakaran1989@gmail.com \
    /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).