ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Arnold, David" <David-Arnold@Redwoods.edu>
Subject: Override starttyping environment
Date: Tue, 2 Nov 2004 11:35:57 -0800	[thread overview]
Message-ID: <BBCF5DCC0534D741B1C778DBC0C661F103A25E82@001-250.redwoods.cc.ca.us> (raw)

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?

             reply	other threads:[~2004-11-02 19:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-02 19:35 Arnold, David [this message]
2004-11-04 22:07 ` Patrick Gundlach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BBCF5DCC0534D741B1C778DBC0C661F103A25E82@001-250.redwoods.cc.ca.us \
    --to=david-arnold@redwoods.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).