From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Drawing rectangles
Date: Thu, 12 Nov 2009 15:55:24 +0100 [thread overview]
Message-ID: <4AFC21DC.2060706@elvenkind.com> (raw)
In-Reply-To: <bb8b59590911120433q4131af43u2f32fc48d3588b37@mail.gmail.com>
Cecil Westerhof wrote:
> I would like to make something like the folowing in ConTeXt (you need
> a monospaced font to see it correctly):
\starttyping
> +------------------------------+
> | |
> | |
> | |
> +------------------------------+------------------------------+
> | | |
> | | |
> | | |
> +--------------+---------------+--------------+---------------+--------------+---------------+
> | | |
> |
> | | |
> |
> | | |
> |
> +------------------------------+---------+----------+---------+------------------------------+
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> | |
> +__________+
>
\stoptyping
> How could I do this?
But that is just a joke. Try this:
\startTEXpage
\setupalign[middle]\offinterlineskip
\noindent \framed[width=4cm,height=2cm,offset=none]{}
\noindent \dorecurse{2}{\framed[width=4cm,height=2cm,offset=none]{}}
\noindent \dorecurse{3}{\framed[width=4cm,height=2cm,offset=none]{}}
\noindent \framed[width=2cm,height=4cm,offset=none]{}
\stopTEXpage
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-11-12 14:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 12:33 Cecil Westerhof
2009-11-12 14:45 ` Cecil Westerhof
2009-11-12 14:55 ` Taco Hoekwater [this message]
2009-11-12 16:07 ` Cecil Westerhof
2009-11-12 16:13 ` luigi scarso
2009-11-13 7:47 ` Cecil Westerhof
2009-11-13 15:06 ` Willi Egger
2009-11-13 16:12 ` CLDWesterhof
2009-11-13 8:51 ` luigi scarso
2009-11-13 10:00 ` Cecil Westerhof
2009-11-14 7:50 ` Aditya Mahajan
2009-11-14 15:48 ` luigi scarso
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=4AFC21DC.2060706@elvenkind.com \
--to=taco@elvenkind.com \
--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).