Re: \let\activatestep=\blau\let\hidestepcontents=\displayidentical + complex arguments to step

2001-06-11 Thread Stephan Lehmke

On Sat, 09 Jun 2001 23:52:29 +0200, Stefan Müller wrote:
> When I give a complex command to step having activatestep and
> hidestepcontents defined, I get:
> 
> [152]
> ! Argument of \ibox has an extra }.
>  
> \par 
> l.4327 }
> 
> 

The problem seems to be in the definition of \blau:

> \newcommand{\blau}[1]{{\textcolor{blaucolor} #1}}

\textcolor takes two arguments. With your definition,
the first token in #1 (which is \ibox for the first
\bstep) will be taken as the second argument of 
\textcolor, leading to considerable confusion...

Changing the definition to

\newcommand{\blau}[1]{{\textcolor{blaucolor}{#1}}}

remedies this. The resulting file compiles well, with
some `control problems'. When several \step commands
are executed at the same time using the optional
argument of \step, texpower's simplistic timing
mechanism for steps gets confused.

Changing the second \bstep to \rebstep and the first
\step to \restep seems to remedy this.

regards
Stephan

-- 
  Stephan Lehmke [EMAIL PROTECTED]
  Fachbereich Informatik, LS I   Tel. +49 231 755 6434 
  Universitaet Dortmund  FAX  6555
  D-44221 Dortmund, Germany 




Re: \let\activatestep=\blau\let\hidestepcontents=\displayidentical +complex arguments to step

2001-06-10 Thread Stefan Müller

Hi,

Ross Moore wrote:
> Your examples as given are not complete:
> Would you please provide a complete, self-contained example;
> preferably cut-down to the minimum possible that still exhibits
> the bad behaviour.
> 


Okay, sorry. Here it is:

\documentclass[landscape,KOMA,display,letterpaper]{powersem}

\usepackage[bookmarks,
ps2pdf=true]{hyperref}
\usepackage{fixseminar}

\usepackage[usenames]{pstcol}
\usepackage{pst-node}

\usepackage[display]{texpower}

\def\ibox#1{\mbox{}\setbox2=\hbox{$\scriptstyle
#1$}\lower.2ex\vbox{\hrule
\hbox{\vrule\kern1.25pt 
\vbox{\kern1.25pt\box2\kern1.25pt}\kern1.25pt\vrule}\hrule}}

\definecolor{blaucolor}{rgb}{0,0,.6}
\newcommand{\blau}[1]{{\textcolor{blaucolor} #1}}

\begin{document}

\begin{slide}


\stepwise{%[\let\activatestep=\blau\let\hidestepcontents=\displayidentical]{
\begin{tabular}{ll}
 head$|$subj & \bstep[\value{step}=1]{\ibox{1}} \\
 subcat  & \ibox{2} \\
 vcomp   & \bstep[\value{step}=1]{\ibox{1}} \\
\end{tabular}
\begin{itemize}
\item new selection feature {\sc vcomp}
\step[\value{step}=1]{
\item subject of the embedded verb and the subject of the auxiliary are
identical
}
\step{
\item complements of the embedded verb get complements of the auxiliary
\item the auxiliary takes the verb + its complements
}
\end{itemize}
}
\end{slide}
\end{document}

-- 
Institut für Germanistische Sprachwissenschaft
Friedrich Schiller Universität Jena
Fürstengraben 30
D-07743 Jena

Tel: (+49) (+3641) 9 44 320 http://www.dfki.de/~stefan/
Fax: (+49) (+3641) 9 44 322
http://www.dfki.de/~stefan/Babel/Interaktiv/Babajava/