ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco.hoekwater@wkap.nl>
Subject: Re: Columns and different sizes
Date: Tue, 17 Nov 1998 15:27:40 +0100 (W. Europe Standard Time)	[thread overview]
Message-ID: <13905.34780.780000.875925@PC709> (raw)

>>>>> "GvdD" == Gilbert van den Dobbelsteen <GILBERT@login.iaf.nl> writes:

 GvdD> Hi there,
 GvdD> I am creating a flyer with a 3 column layout. Now I need to adapt the 
 GvdD> column-widths for the different columns. Something like this:

 GvdD> \setupcolumns  % setup width for column 1
 GvdD>   [1]
 GvdD>   [width=0.4\hsize]

etc...

If you don't mind calculating where the columns end yourself, you
might try something like the code below. It's a really nasty hack, but
it looks like what you had in mind:

- the first \rightskip is needed because the intercolumn space is
  breaking down on this hack. 

- The size values may need some adjustment, since .4 + .4 + (a quarter
  of .4) = .9\hsize, not 1. Too lazy to redo the calcs.

- \startverysmall and \stopverysmall were inserted in two iterative
  passes, one after the other.

- This hack is basically plain text only, I think.

Greetings, Taco

%%%%%%%%%%%%%%%%%%%%%% begin
\stelkorpsin[10pt]
\stelkolommenin[n=3,balanceren=nee]

\def\setcolumnhsize% change an internal
  {\localcolumnwidth=.4\hsize
   \usercolumnwidth=\localcolumnwidth
   \hsize=\localcolumnwidth}

\def\startverysmall{% starts .1\hsize
  \begingroup
  {\parfillskip0pt\par}% this breaks the last par of column 2
  \noindent \rightskip = .75\hsize
  \hbadness = 10000
  \emergencystretch=3em}

\def\stopverysmall{% stops .1\hsize
  {\parfillskip0pt\par}% this breaks the last par of column 3
  \endgroup
  }

\starttekst  
\startkolommen
\rightskip=1em 
Hi there,

I am creating a flyer with a 3 column layout. Now I need to adapt the 
column-widths for the different columns. Something like this:

...My fantastic flyer text...

I can't find anything that looks like this. In fact I do not want 3 
columns, but only 2, and a small column look-alike-thing in the right 
margin. So a solution could be to create a two-column layout on a page 
with lot's of right-margin, and provide the text in the right-margin 
seperatly? Don't know how to do that either, but I can find that out 
myself (I hope).

%............... text between "I am" and "hope); repeated 5 more times,
% cut out of the email message for brevity.....

I am creating a flyer with a 3 column layout. Now I need to adapt the 
column-widths for the different columns. Something like this:

...My fantastic flyer text...

I can't find anything that looks like this. In fact I do not want 3 
columns,\startverysmall but only 2, and a small column look-alike-thing in the right 
margin. So a solution could be to create a two-column layout on a page 
with lot's of right-margin, and provide the text in the right-margin 
seperatly? Don't know how to do that either, but I can find that out 
myself (I hope).

I am creating a flyer with a 3 column layout. Now I need to adapt the 
column-widths for the different columns.\stopverysmall Something like this:

...My fantastic flyer text...

I can't find anything that looks like this. In fact I do not want 3 
columns, but only 2, and a small column look-alike-thing in the right 
margin. So a solution could be to create a two-column layout on a page 
with lot's of right-margin, and provide the text in the right-margin 
seperatly? Don't know how to do that either, but I can find that out 
myself (I hope).

Any ideas?

Gilbert.  

\stopkolommen
\stoptekst
%%%%%%EOF  


             reply	other threads:[~1998-11-17 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-17 14:27 Taco Hoekwater [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-23 16:38 Gilbert van den Dobbelsteen
1998-11-17 13:57 Hans Hagen

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=13905.34780.780000.875925@PC709 \
    --to=taco.hoekwater@wkap.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).