AMADEUS html plain
Any sketchy LATEX text is described in the first branch
of an outer sketch.
The type of the outer sketch and its other elements
(comment, head(s), additional branches) are insignificant.
For better structuring, bigger LATEX constructs, such as commands
with parameters, and environments, may be represented as subsketches
(instead of plain-text bracing).
environments (general)
Module sketches are used to represent environments:
environment
the sketch above is textualized to
\begin{environment}
textulized module body
\end{enviromnent}
blocks
Branches (in simple sketches) are used to represent LATEX text blocks:
simple sketch
branch 1; type "module" indicates the block enclosed between { }
branch 2; type "loop" indicates the block enclosed between [ ]
* head of branch 2
branch 3; type "simple" indicates the open block
the scheme above is textualized to
%simple sketch
{
branch 1; type "module" indicates the block enclosed between { }
textulized body of branch 1
}
[
branch 2; type "loop" indicates the block enclosed between [ ]
head of branch 2
textualized body of branch 2
]
branch 3; type "simple" indicates the open block
textualized body of branch 3
Note that the branch comment (as well as the branch head text)
belongs to the corresponding block.
In this special case, the comment of the outer simple sketch is considered
as a LATEX comment.
commands
There is no special sketchy representation for the commands
without parameters.
A command with parameters may be represented as a simple
sketch with comment "\command", every branch representing a
parameter. Consider the following trivial example:
\usepackage
english,
babel
the skecth above represents the text
\usepackage[english, german, estonian]{babel}.
Note that in this case the sketch comment begins with '\',
and therefore is not considered as a LATEX comment.
repetitions
Loop and module sketches with head may be used to avoid
some repetitions: during textualization of such schemes,
the primitive head text is inserted in front of every non-simple
branch comment. For branches of type "module", a separating blank is
added to the text inserted, otherwise (for branches of type "loop")
the inserted text immediately precedes the branch comment.
The type of primitive head is insignificant. Also, the primitive head
comment is insignificant.
A module sketch with head is used to describe repetition inside
the environment, otherwise a loop sketch with head should be used.
For instance, the section structure of a LATEX document may be
expressed as follows:
sections
* \section
repeated for branches
*
{Abstract}
not numbered
{Previous work}
A lot of . . .
* \subsection
repeated
{Future work}
*
{Acknowledgements}
not numbered
More samples can be found in the following section.
environments (special)
Caption and label commands may be abbreviated, using
primitive-arrows. By textualization, the arrow text is
enclosed into braces and prefixed by "\caption"; the arrow
comment is enclosed into braces and prefixed by "\label".
figure
[tbp]
<======caption-text
label-text
table
[tbp]
<======caption-text
label-text
For some typical environments with repetitions, certain default
primitive heads are assumed.Therefore, module sketch heads
for these environments may be omitted. The following sketches
are equivalent to the corresponding headless sketches:
thebibliography
* /bibitem
default
{99}
{Alb}
{Ber}
tabbing
* \\
default
. . .\quad \= . . . \quad \= \kill
tabular
* \\
default
{|rl|}
\hline
\hline
\hline
itemize [or enumrate]
* \item
default
. . .
. . .
description
\item
default
[Object:]
[Instance:]