Override starttyping environment
Hans et al, I have in my preamble: \definetyping[matlab] \setuptyping[matlab] [before={\startframedtext[width=\makeupwidth, background=screen, backgroundscreen=0.9]}, after={\stopframedtext}, color=darkred] Later in my document, I tried to center one of these environments: \startalignment[middle] \switchtobodyfont[big] \startmatlab y = x.^2 -2*x - 3 \stopmatlab \stopalignment But it comes out left justified, not centered. Any ideas how I can center one of these environments, one time only?
Hello David,
[before={\startframedtext[width=\makeupwidth, ^^^^^^^^^^^^^^^^ and
\startalignment[middle]
don't work together. Perhaps you can put your \startmatlab in a framed box with specific width and frame=off. P. -- ConTeXt wiki: http://contextgarden.net
participants (2)
-
Arnold, David
-
Patrick Gundlach