At present in LyX there is no environment that can embrace paragraph
environments. Insets can, but they clog up and become unusable once the
included text reaches a certain size. What I would like to have
available is something like \begin_body ... \end_body only smaller,
encompassing only part of the document, yet far more than an inset can
handle comfortably.
What prompts this is a (first version of a) module and converter I've
written that enable export to dtx format for use with the doc.sty
package and docstrip.tex utility. I want to extend this to the LaTeX3
versions, l3doc.cls and l3docstrip.tex, but whereas doc/docstrip use
switches like %<*documentation> and % to mark the start
and end of parts of the document, in LaTeX3 this is done with
environments: "Use \begin{documentation}...\end{documentation} around
the documentation, and \begin{implementation}...\end{implementation}
around the implementation". In LyX "documentation" and "implementation"
would correspond exactly to the kind of environment mentioned,
containing standard and other paragraphs, section headings, and insets.
In the meantime I will probably tinker a solution. Inserting an appendix
containing the implementation code and its discussion is one
possibility, child documents are another, but really there is a gap in
LyX's capabilities here.
Andrew
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus