* plantuml export (unable to resolve link: nil)
@ 2016-12-30 13:42 Prabhakaran Kasinathan
2016-12-30 14:26 ` Thibault Marin
2016-12-30 15:31 ` Nicolas Goaziou
0 siblings, 2 replies; 4+ messages in thread
From: Prabhakaran Kasinathan @ 2016-12-30 13:42 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 980 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 2593 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: plantuml export (unable to resolve link: nil)
2016-12-30 13:42 plantuml export (unable to resolve link: nil) Prabhakaran Kasinathan
@ 2016-12-30 14:26 ` Thibault Marin
2016-12-30 15:31 ` Nicolas Goaziou
1 sibling, 0 replies; 4+ messages in thread
From: Thibault Marin @ 2016-12-30 14:26 UTC (permalink / raw)
To: Prabhakaran Kasinathan; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: plantuml export (unable to resolve link: nil)
2016-12-30 13:42 plantuml export (unable to resolve link: nil) Prabhakaran Kasinathan
2016-12-30 14:26 ` Thibault Marin
@ 2016-12-30 15:31 ` Nicolas Goaziou
2016-12-30 15:36 ` Prabhakaran Kasinathan
1 sibling, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2016-12-30 15:31 UTC (permalink / raw)
To: Prabhakaran Kasinathan; +Cc: emacs-orgmode
Hello,
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:
You should try "M-x org-lint" on this document. Basically, you are using
affiliated keywords (name, caption, results) that apply to nothing.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: plantuml export (unable to resolve link: nil)
2016-12-30 15:31 ` Nicolas Goaziou
@ 2016-12-30 15:36 ` Prabhakaran Kasinathan
0 siblings, 0 replies; 4+ messages in thread
From: Prabhakaran Kasinathan @ 2016-12-30 15:36 UTC (permalink / raw)
To: Nicolas Goaziou, Thibault Marin; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1361 bytes --]
Hi everyone,
@thanks to Thibault Marin.
I fixed the problem, try the following:
* TEST figure
Figure [[fig-plantuml]].
#+BEGIN_SRC plantuml :file test.png :exports results
A -> B : request
B -> A : response
#+END_SRC
#+NAME: fig-plantuml
#+CAPTION: Plantuml Test Figure
#+RESULTS:
[[file:test.png]]
running "M-x org-lint" , shows no error on the above org content.
Thanks for your help.
Best Regards,
Prabhakaran Kasinathan
On Fri, Dec 30, 2016 at 4:31 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> 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:
>
> You should try "M-x org-lint" on this document. Basically, you are using
> affiliated keywords (name, caption, results) that apply to nothing.
>
> Regards,
>
> --
> Nicolas Goaziou
>
[-- Attachment #2: Type: text/html, Size: 3937 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-12-30 15:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-30 13:42 plantuml export (unable to resolve link: nil) Prabhakaran Kasinathan
2016-12-30 14:26 ` Thibault Marin
2016-12-30 15:31 ` Nicolas Goaziou
2016-12-30 15:36 ` Prabhakaran Kasinathan
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.