ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Patzer <lists@homerow.info>
To: ntg-context@ntg.nl
Subject: Re: Distance between two Columns
Date: Thu, 28 Feb 2019 12:04:41 +0100	[thread overview]
Message-ID: <20190228120441.044084ba@homerow> (raw)
In-Reply-To: <20fa6f5c7ca84accbedbd2f054dc8caa@univie.ac.at>

On Thu, 28 Feb 2019 10:43:48 +0000
Ursula Hermann <ursula.hermann@univie.ac.at> wrote:

> I have the following example. I would like to have two columns that
> are in the distance small.

I'm not sure if I understand you correctly. You want to change the
distance between the columns? That can be done with:

  \setupcolumns
    [distance=2cm]

> So I have tried:
> 
> \setuppapersize[A5]
> \startcolumns
> \defineframed
>    [tightframed][width=5cm,width.1\textwidth,align=right]

1. Usually you don't define stuff in the main text. That's what the
   setup area (before \starttext) if for.
2. width is specified twice
3. width.1\textwidth is not valid, an = sign is missing

> \tightframed{Small}
> \column
> \tightframed{A really really long line that is split at 5cm}

\stopcolumns is missing.

Furthermore, \start/stoptext is missing. That results in the
monospaced font. I'd write your example as follows:

\setuppapersize
  [A5]

\defineframed
  [tightframed]
  [width=5cm,
   %% width=.1\textwidth,
   align=right]

\setupcolumns
  [distance=.5cm]

\starttext

\startcolumns
  \tightframed{Small}
\column
  \tightframed{A really really long line that is split at 5cm}
\stopcolumns

\stoptext

Marco
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-02-28 11:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-28 10:43 Ursula Hermann
2019-02-28 11:04 ` Marco Patzer [this message]
2019-02-28 17:26 ` Wolfgang Schuster

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=20190228120441.044084ba@homerow \
    --to=lists@homerow.info \
    --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).