Juan Manuel Macías <maciasch...@posteo.net> writes: >> Do you mean section in LaTeX sense or in Org sense? > > In Org sense, I think. If an author adds an 'anonymous' break (through > some customary symbol) and continues writing, the content that follows > belongs (for Org) to the current section. By using an inlenitask, you > can have control over the inlinetask content, for any purpose, for > example with some export filter, etc. > > On the other hand, for my own writing I usually use this: > > #+begin_src emacs-lisp > (defun my-org-latex-format-inlinetask-default-function > (todo _todo-type priority title tags contents _info) > (if (string-match-p "anonsec" title) > (concat > "\n\\begin{anonsection}\n" > (org-string-nw-p contents) > "\n\\end{anonsection}\n") > (org-string-nw-p contents)))
Why not simply #+begin_anonsection ... #+end_anonsection ? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>