Ihor,
> Dear All, may we should provide a normal header arg as an equivalent of
> switches? Honestly, this whole switch syntax sounds unnecessary and only
> over-complicates things.
i'm a fan.
Ihor Radchenko writes:
> AFAIU, source block switches are never inherited.
>
> Dear All, may we should provide a normal header arg as an equivalent of
> switches? Honestly, this whole switch syntax sounds unnecessary and only
> over-complicates things.
I think that web pages or documents that con
On Wednesday, 20 Jul 2022 at 11:58, Ihor Radchenko wrote:
> AFAIU, source block switches are never inherited.
Thank you for confirming. It's easy enough for me to change all of my
src blocks with a single Emacs command. And that's why "it's all text"
is so important! :-)
> may we should provide
"Fraga, Eric" writes:
> Followup question, if I may: how can I make -n be default behaviour for
> export? I have tried, for instance,
>
> #+property: header-args:julia -n 1
>
> to have all Julia src blocks show line numbers but it doesn't work.
AFAIU, source block switches are never inherited.
Followup question, if I may: how can I make -n be default behaviour for
export? I have tried, for instance,
#+property: header-args:julia -n 1
to have all Julia src blocks show line numbers but it doesn't work.
Thanks again,
eric
--
: Eric S Fraga, with org release_9.5.4-643-g057df6 in Emacs
On Tuesday, 19 Jul 2022 at 15:28, Juan Manuel Macías wrote:
> I usually do it this way:
>
> #+begin_src sh -n :exports code
Thank you. Obvious (in hindsight).
I now found the section in the info manual on this (under Markup for
Rich Contents, which is I guess not where I expected it... but did
Fraga, Eric writes:
> I really do not understand the last paragraph although it implies that
> org already supports adding the line numbers. My elisp-fu is not up to
> scratch to figure this out from the code unfortunately. Would somebody
> explain what to do? Or should I simply add the CSS cod
Hello,
a quick and hopefully easy question: how do I get lines in src blocks
numbered in HTML export? I have looked at the code and the first thing
I did was set org-html-wrap-src-lines to t. This wraps each line in
"...".
I know how to use CSS to add line numbers to lines with these tags but,