ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* multiple columns inside \framed
@ 2006-04-13 10:42 Mojca Miklavec
  2006-04-13 11:18 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2006-04-13 10:42 UTC (permalink / raw)


Hello,

I would like to typeset two columns of names inside one frame
(centered horizontally). \startcolumns inside \framed doesn't work; is
there any simple alternative? (Otherwise I'll manually split the
content into two subframes.)

I would appreciate any hints,
    Mojca


\def\student#1#2{{#1 \sc#2}\par}

% room number, number of students, students
\def\room#1#2#3{#1:
	\framed[width=4.4cm,height=2cm]{%
		\ifnum#2<4 #3\else
		\startcolumns[n=2,distance=0pt]#3\stopcolumns
		\fi
	}\par
}


\starttext

\room{1}{2}{%
	\student{Abc}{Def}
	\student{Abc}{Def}
}
\room{2}{5}{%
	\student{Abc}{Def}
	\student{Abc}{Def}
	\student{Abc}{Def}
	\student{Abc}{Def}
	\student{Abc}{Def}
}

\stoptext

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

end of thread, other threads:[~2006-04-14  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-13 10:42 multiple columns inside \framed Mojca Miklavec
2006-04-13 11:18 ` Hans Hagen
2006-04-14  1:22   ` Mojca Miklavec
2006-04-14  8:14     ` Hans Hagen

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