ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Creating two-column enumeration inside a frame
@ 2006-12-16 12:15 Vyatcheslav Yatskovsky
  2006-12-17 10:47 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Vyatcheslav Yatskovsky @ 2006-12-16 12:15 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 769 bytes --]

Hello,

I have a problem with creating two-column enumeration inside a frame.

If I don't use framed text command (commented here), everything goes well - in two columns. But once I uncomment those lines, the list appears pretty framed but not in columns. Since I have a lot of math formulas indeed, that's bothers me.

Thank you in advance.


\defineframedtext[assignment][rulethickness=2pt, corner=round, width=\textwidth]

\starttext

%\startassignment
\startitemize[packed, columns, two]
\item\math{(c + 4*d - 123) \over (1 - a/2)}
\item\math{(2*c + d - 52) \over (a/4 + 1)}
\item\math{(c/4 - d*62) \over (a*a + 1)}
\item\math{(-2*c - d + 53) \over (a/4 - 1) }
\item\math{(2*c - d/4) \over (a*a + 1) }
\stopitemize
%\stopassignment

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 3911 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Creating two-column enumeration inside a frame
  2006-12-16 12:15 Creating two-column enumeration inside a frame Vyatcheslav Yatskovsky
@ 2006-12-17 10:47 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-12-17 10:47 UTC (permalink / raw)


Vyatcheslav Yatskovsky wrote:
> If I don't use framed text command (commented here), everything goes
> well - in two columns. But once I uncomment those lines, the list
> appears pretty framed but not in columns. Since I have a lot of math
> formulas indeed, that's bothers me.

> Thank you in advance.

This is because the framedtext creates its own box, that is confusing 
the startitemize command. you had better use the (more modern)
textbackgrounds instead. This bit of code is roughly equivalent
to the \defineframedtext:

   \definetextbackground[assignment]
     [rulethickness=2pt,
      location=paragraph,
      corner=round,
      width=\textwidth,
      background=none,
      topoffset=10pt,
      bottomoffset=10pt,
      leftoffset=10pt,
      rightoffset=10pt]


Best, Taco


Side note: Hans, it would be neat if textbackgrounds would understand
a singular offset= option that sets all four offsets in one sweep.
The definition above is overly verbose, IMO.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-17 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-16 12:15 Creating two-column enumeration inside a frame Vyatcheslav Yatskovsky
2006-12-17 10:47 ` Taco Hoekwater

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).