Re: numbering src blocks in HTML export

2022-07-22 Thread Greg Minshall
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.

Re: numbering src blocks in HTML export

2022-07-20 Thread Juan Manuel Macías
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

Re: numbering src blocks in HTML export

2022-07-20 Thread Fraga, Eric
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

Re: numbering src blocks in HTML export

2022-07-19 Thread Ihor Radchenko
"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.

Re: numbering src blocks in HTML export

2022-07-19 Thread Fraga, Eric
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

Re: numbering src blocks in HTML export

2022-07-19 Thread Fraga, Eric
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

Re: numbering src blocks in HTML export

2022-07-19 Thread Juan Manuel Macías
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

numbering src blocks in HTML export

2022-07-19 Thread Fraga, Eric
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,