This is what I want to do:
In some-file.org
:
* Table 1
#+NAME: table-1-title
Characteristcs of Data
#+BEGIN_SRC R :file table-1.svg :results output graphics file
(
ggplot(mtcars, aes(mpg, cyl))
+ geom_point()
)
#+END_SRC
#+caption: > HERE I WANT TO USE THE table-1-title VAR DEFINED ABOVE <
#+attr_latex: :width 375px :placement [H]
#+RESULTS:
I want to use the table-1-title
variable to set the caption. Any ideas?
:var
) to do that. You will likely need to use an Emacs Lisp variable, e.g.(set (make-local-variable 'foo) "value")
. I would define these in a separate:noexport:
section within an elisp source block. The difficulty is how to eval the variable on export. What have you tried? – Lorem Ipsum Apr 7 '20 at 12:42