Re: back-end - access to :mode attribute for section and symbol-name

2024-01-16 Thread Ihor Radchenko
Garulfo writes: > For "ox-mycontext-section", I try to access the attribute ":mode" of the > section > in order to make the difference between "first-section" and "section". > > I had to use "symbol-name" : > >    (let* >   ((section_mode (symbol-name (org-element-property :mode section)))

Fwd: back-end - access to :mode attribute for section and symbol-name

2024-01-15 Thread Garulfo
fixed version of the attachment;; open this file with command ;; emacs --no-splash -q -mm how_to_write_a_context_export_backend_v01.el ;; In "emacs-lisp" dropdown menu above, select "evaluate buffer" ;; then, a first Ctrl-c Ctrl-c will compile ;; finally, a second Ctrl-c Ctrl-c will bring you a

back-end - access to :mode attribute for section and symbol-name

2024-01-15 Thread Garulfo
Hi all, I try to learn how to start a new back-end for ConTeXt (https://wiki.contextgarden.net). There is already a version based on ox-latex.el (https://github.com/Jason-S-Ross/ox-context/) but in order to contribute I wanted to learn the basics. I started a first elisp script (attached). F