Ihor Radchenko writes: > Juan Manuel Macías <maciasch...@posteo.net> writes:
>> I think that would not be expected, since an anonymous section is just a >> break in the text that has neither a title nor a section number. >> ... Anonymous breaks using asterisks or other symbols is usually the applied >> remedy. The advantage of enclosing the content of the anonymous section >> in an inlinetask is that we have a 'true' section with content (over >> which you have control). That would not happen if the author explicitly >> added a break symbol and continue writing. > > 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))) (defun mi-org-odt-format-inlinetask-default-function (todo todo-type priority name tags contents) (if (string-match-p "anonsec" name) (concat contents "<text:p text:style-name=\"OrgCenter\">* * *</text:p>"))) #+end_src And for LaTeX I have defined this: #+begin_src latex \newcommand\dinkus{\mbox{\textasteriskcentered\space\textasteriskcentered\space\textasteriskcentered}} \newcommand\anonsectionmark{\dinkus} %% require the needspace package \newcommand\anonsectionbreak{% \nopagebreak[4] \bigskip% {\centering \anonsectionmark\par} \Needspace*{2\bigskipamount} \bigskip} \newenvironment{anonsection}{% \anonsectionbreak% } {% \par} #+end_src >> Anonymous breaks are also widely used in essay or narrative texts. An >> essay text, published as a blog entry or as an article, can be perfectly >> structured into anonymous sections: >> ... >> https://en.wikipedia.org/wiki/Section_(typography)#Section_form_and_numbering >> >> https://en.wikipedia.org/wiki/Section_(typography)#Flourished_section_breaks > > This one I know. But it can work fine with normal headings, because such > texts are nothing but a sequence of "scenes" - nothing "inline" when we > have one scene, interrupted by other, then coming back to the first one. Actually, I think any anonymous text break or sectioning can be accomplished using Org headings and some trickery to ignore the heading on export, but I think inlinetasks lends itself quite well to this constructions and others I've seen discussed in this thread. In general, for any 'piece' (section = something that is sectioned) of text that needs to be separated in some way from the main text, without a hierarchy of levels, inlinetasks are a great, versatile and simple tool (IMHO). -- Juan Manuel Macías https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com