John Levon <[EMAIL PROTECTED]> writes:

> On Wed, Dec 11, 2002 at 10:13:33AM +0100, David Kastrup wrote:
> 
> > be appreciated by people.  Or even a manual way which asks the user a
> > lot of questions.  Or some interactive tool which you call and which
> > let's you browse/change a layout with a menu-like structure.  You
> 
> Actually I've wanted such for a while. The idea that this could be
> semi-automated is intriguing, though I must admit I don't understand.

Well, stupid example: let's say the user has some document exercising
all the sectioning structures in his documents.  We can then do
something like

\makeatletter
\let\@savestartsection\@startsection
\renewcommand\@startsection[6]{\toks@{{#1}{#2}{#3}{#4}{#5}{#6}}
  \errmessage{Sectioncall: \the\toks@}\@savestartsection}
\makeatother

And every section command when called will tell the name under which
it was called (the error message gives the error context, which will
give the responsible command) and all its arguments.  If any of those
are counters or whatever (don't know the 6 arguments' meaning by
heart), one can output their definitions and \thecountername and so
on as well.

Then one would have to parse the log file for those special error
messages or other diagnostics.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

Reply via email to