ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Column Width
@ 2014-04-16 16:59 Thangalin
  2014-04-16 21:29 ` Thangalin
  0 siblings, 1 reply; 2+ messages in thread
From: Thangalin @ 2014-04-16 16:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

According to the columns manual, the following should produce a
two-column layout with the first column being 1/3 and the second
column being 2/3 the makeupwidth:

\definecolumnset[example][n=2]
\setupcolumnset[example][1][width=.33\makeupwidth]
\starttext
  \startcolumnset[example]
    \dorecurse{25}{\input knuth\column[local]}
  \stopcolumnset
\stoptext

Using: mtx-context     | current version: 2014.01.03 00:40

What is the simplest example to achieve two different column widths
for a columnset?

(The Paragraphs example on the wiki --
http://wiki.contextgarden.net/Columns#Paragraphs -- works, but I need
the flexibility of column sets.)

Thank you!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Column Width
  2014-04-16 16:59 Column Width Thangalin
@ 2014-04-16 21:29 ` Thangalin
  0 siblings, 0 replies; 2+ messages in thread
From: Thangalin @ 2014-04-16 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

It seems a few examples from the columns manual --
http://www.pragma-ade.com/general/manuals/columns.pdf -- are broken.
Here is another (from page 34):

\definecolumnset[example][n=3]
\definecolumnset[therest][n=4]
\setupcolumnset[example]
\setupcolumnset[therest] [distance=.5cm] [distance=.5cm]
\setupcolumnset[example]
\setupcolumnset[therest]
   [width=\dimexpr((\makeupwidth-1.5cm)/4)]
  [width=\dimexpr((\makeupwidth-1.5cm)/4)]
\setupcolumnset[example][1]
  [width=\dimexpr(\makeupwidth-1.0cm-2\dimexpr((\makeupwidth-1.5cm)/4))]
\starttext
  \startcolumnset[example,therest]
    \startcolumnmakeup
    \vfill \input knuth
    \stopcolumnmakeup
    \column[local]
    \dorecurse{25}{\input knuth\par}
  \stopcolumnset
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2014-04-16 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16 16:59 Column Width Thangalin
2014-04-16 21:29 ` Thangalin

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