emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] plantuml export (unable to resolve link: nil)


From: Thibault Marin
Subject: Re: [O] plantuml export (unable to resolve link: nil)
Date: Fri, 30 Dec 2016 08:26:41 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Prabhakaran Kasinathan <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]