Closed kpe closed 1 year ago
I suggest you try adding :rest "-n"
like this:
#+transclude: [[file:hello.py]] src: python :rest "-n"
I was hoping that this section of the user manual was clear enough. Please let me know if you have some suggestion for improvement.
Use ‘:rest’ property to define additional properties you would like to add for the src-block. The double quotation marks are mandatory for the ‘:rest’ property.
#+transclude: [[file:../../test/python-3.py]] :src python :rest ":session :results value"
ohh... sorry, my fault. And thanks! I must have missed that, while reading the docu. It is clearly explained, I just haven't found it.
Please do not worry. I'm genuinely interested in improving discoverability of manual and features available.
Not sure, if that's the right place to ask this, but:
I cannot figure out, how to enable line numbering (
#+begin_src: lang -n
) when exporting a transclusion (to PDF). Line numbering without#+trasclude:
works for me if I append-n
after the#+begin_src:
, i.e.However, if I try something like:
the
-n
will not be preserved in the#+begin_src:
header.Is there are way to enforce the line numbering, when a transclusion is exported, or to specify additional arguments (i.e.
-n
) for the#+begin_src:
line.