Hi Ulrich,
I'm very interested in your code, but I can't get it to work and even
the examples you gave me don't compile very well. Maybe there's
seomthing wrong with my system? I'm using TeXnicCenter under WinXP.
This is what I get for the first example (the errors for the final code
look similar):
This is pdfeTeX, Version 3.141592-1.20a-rc7.2-2.2 (MiKTeX 2.4)
(preloaded format=latex 2005.10.6) 2 DEC 2005 09:44
entering extended mode
**C:/Documents*and*Settings/pieterp/Desktop/LaTeX1.tex
(C:/Documents and Settings/pieterp/Desktop/LaTeX1.tex
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german,
ngerman, dumylang, nohyphenation, loaded.
(C:\texmf\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\texmf\tex\latex\base\size10.clo
File: size10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\***@part=\count79
\***@section=\count80
\***@subsection=\count81
\***@subsubsection=\count82
\***@paragraph=\count83
\***@subparagraph=\count84
\***@figure=\count85
\***@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (C:\texmf\tex\latex\tools\verbatim.sty
Package: verbatim 2003/08/22 v1.5q LaTeX2e package for verbatim
enhancements
\***@verbatim=\toks14
\***@line=\toks15
\***@in@stream=\read1
) (C:\texmf\tex\latex\ltxmisc\framed.sty
Package: framed 2003/07/21 v 0.8a: framed or shaded text with page
breaks
\FrameRule=\dimen103
\FrameSep=\dimen104
)
(C:\texmf\tex\latex\graphics\color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)
(C:\texmf\tex\latex\00miktex\color.cfg
File: color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
)
Package color Info: Driver file: pdftex.def on input line 125.
(C:\texmf\tex\latex\graphics\pdftex.def
File: pdftex.def 2002/06/19 v0.03k graphics/color for pdftex
\***@gobject=\count87
)
(C:\texmf\tex\latex\graphics\dvipsnam.def
File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
! Missing } inserted.
<inserted text>
}
l.17 \endverbatim
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
! Extra \endgroup.
<recently read> \endgroup
l.17 \endverbatim
Things are pretty mixed up, but I think the worst is over.
! Too many }'s.
\endMakeFramed ...\kern \z@ \penalty -100 \egroup
\begingroup
\***@frame \en...
l.18 \endshaded
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
! Undefined control sequence.
\***@frame ...ageshrink \advance \dimen@ -\***@frh
\relax \expandafter
\endgr...
l.18 \endshaded
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Missing number, treated as zero.
<to be read again>
\relax
l.18 \endshaded
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Illegal unit of measure (pt inserted).
<to be read again>
\relax
l.18 \endshaded
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)
! Too many }'s.
l.20 }
%
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
(LaTeX1.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line
22.
LaTeX Font Info: ... okay on input line 22.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 22.
LaTeX Font Info: ... okay on input line 22.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 22.
LaTeX Font Info: ... okay on input line 22.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line
22.
LaTeX Font Info: ... okay on input line 22.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line
22.
LaTeX Font Info: ... okay on input line 22.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 22.
LaTeX Font Info: ... okay on input line 22.
(C:\texmf\tex\context\base\supp-pdf.tex
(C:\texmf\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous
\protectiondepth=\count88
\scratchcounter=\count89
\scratchtoks=\toks16
\scratchdimen=\dimen105
\scratchskip=\skip43
\scratchmuskip=\muskip10
\scratchbox=\box26
\scratchread=\read2
\scratchwrite=\write3
\zeropoint=\dimen106
\onepoint=\dimen107
\onebasepoint=\dimen108
\minusone=\count90
\thousandpoint=\dimen109
\onerealpoint=\dimen110
\emptytoks=\toks17
\nextbox=\box27
\nextdepth=\dimen111
\everyline=\toks18
\!!counta=\count91
\!!countb=\count92
\recursecounter=\count93
)
loading : Context Support Macros / PDF (2004.03.26)
\nofMPsegments=\count94
\nofMParguments=\count95
\everyMPtoPDFconversion=\toks19
)
Package color Info: Redefining color shadecolor on input line 29.
! LaTeX Error: \begin{colorverbatim} on input line 29 ended by
\end{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.34 \end{document}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
(LaTeX1.aux)
! You can't use `\end' in internal vertical mode.
\enddocument ... \endgroup \deadcycles \z@ \@@end
l.34 \end{document}
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.
! LaTeX Error: \begin{colorverbatim} on input line 29 ended by
\end{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.34 \end{document}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
! Missing } inserted.
<inserted text>
}
l.34 \end{document}
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
)
! Emergency stop.
<*> ...nts*and*Settings/pieterp/Desktop/LaTeX1.tex
*** (job aborted, no legal \end found)