Re: [O] Passing an image reference to source code block

2016-12-27 Thread Nick Dokos
shripad sinari writes: > Thanks for the suggestion. The proposed solution does not work since > the recent org versions generate their own labels and the label > value cannot be predetermined. C-h v org-latex-prefer-user-labels RET -- Nick

Re: [O] Passing an image reference to source code block

2016-12-27 Thread shripad sinari
Hello John, Thanks for the suggestion. The proposed solution does not work since the recent org versions generate their own labels and the label value cannot be predetermined. See the LaTeX code generated by the above example with your suggestion included: x-x \section{Sec

Re: [O] Passing an image reference to source code block

2016-12-27 Thread John Kitchin
Can you pass \ref{fig:image} in? I think that is what you would do in Latex. On Mon, Dec 26, 2016 at 7:00 PM shripad sinari wrote: > Hello all, > I would like to know if there is a way to pass a reference for a figure to > a source block as in the following example: > > x---x--- > >

[O] Passing an image reference to source code block

2016-12-26 Thread shripad sinari
Hello all, I would like to know if there is a way to pass a reference for a figure to a source block as in the following example: x---x--- * Section name some text #+CAPTION: Fig Caption #+NAME: fig:image [[file:img.jpg]] some reference to figure [[fig:image]] * other section refere