I am working on literate programming in LaTeX. Actually, I am coding a lot of
dtx files, which contain both the code and its documentation.
When working in Emacs, it uses AUCTeX and switches into TeXDoc-mode.
Quite often, I have to insert docstrip options or tags, which look like this:
%<*option> ... %</option>
(That is: a percent sign in the first column and than the tag which is enclosed in less/greater brackets
<>. The opening tag begins with a asteriks
*, the closing tag has a slash
/. Of course, the name of the tag (here: option) has to be spelled identically.)
I would love to have some kind of Emacs function, which inserts this special kind of enviroment. Using the classical
LaTeX-environment is not suited, as it inserts
\begin and '\end`, which is not what I need.
I didn't find a hint in the manual.
Edit: I had a second question related to this theme.