On Mon, Dec 19, 2022 at 10:30:04PM +0100, Patrice Dumas wrote: > Hello, > > With @inline* commands, it is rather easy to mix raw output with Texinfo > within paragraphs. With output format block commands such as @html, it > is also possible to mix blocks without starting paragraphs. However, > there is no way to mix raw output with Texinfo outside of paragraph and > blocks. There is a use case, as reported by Arnold Robbins, to put > some DocBook output from Texinfo with <title> </title>. This cannot be > done because any Texinfo content starts a paragraph.
I did not think it was true that any Texinfo content started a paragraph. There were problems with the @image command in the past. From the manual: If an image is the first thing in a paragraph and followed by more text, then you should precede the ‘@image’ command with ‘@indent’ or ‘@noindent’ to indicate the beginning of paragraph formatting. This is especially important for TeX output to get correct paragraph indentation. If this still true, then it is possible to treat the raw block commands in a similar way to @image so that they do not start paragraphs? So the following would not start a paragraph: aaa @docbook <title>etc.</title> @end docbook whereas the following would: aaa @indent @docbook <title>etc.</title> @end docbook Does that sound ok?