ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Meer H. van der" <H.vanderMeer@uva.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: noalign hassles
Date: Sun, 17 Mar 2013 09:12:51 +0100	[thread overview]
Message-ID: <F9C35E5F-6896-4EFB-8CB2-5CEB8513C1C6@uva.nl> (raw)
In-Reply-To: <alpine.DEB.2.02.1303161848020.2086@nqv-guvaxcnq>


On 16 mrt. 2013, at 23:50, Aditya Mahajan <adityam@umich.edu>
 wrote:

> On Sat, 16 Mar 2013, H. van der Meer wrote:
> 
>> I am stuck with the following problem.
>> 
>> Inside an \halign (table) I can insert a colored rule with:
>> \noalign{\color[red]{\hrule height#1 depth\zeropoint}}
>> 
>> Now I want something more involved like:
>> \color[red]{\hrule height#1 width2mm}% fixed length colored block
>> \color[black]{\hrule height#1}% filling the width left
>> \color[red]{\hrule height#1 width2mm}% fixed length colored block
>> producing
>> [red][black black black …][red]
>> 
>> However, this doesn't work. I tried various options as: enclosing in \vbox, \hbox, box with leaders. Nothing worked out.
> 
> IIUC, you want the frame at the bottom of the first and last column to be red, and rest of the columns to be black.
> 
> \noalign is the wrong construct for this. You want aligned rules. So, create a new row (of approrpriate height) and set the rule in each column.

Yes, I guess that is the way to go. I awoke with that thought this morning.

> 
>> Is there some guru who knows how to accomplish this?
> 
> Why are using inserting color rule manually. Both the table and the TABLE mechanisms allow you to easily adjust the color of the rules. Why not use those for creating tables.
> 

Because since a long time I have my own table macro with which I am quite comfortable: I can make it do exactly as I wish.


Hans van der Meer


___________________________________________________________________________________
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
___________________________________________________________________________________


      reply	other threads:[~2013-03-17  8:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-16 22:02 H. van der Meer
2013-03-16 22:50 ` Aditya Mahajan
2013-03-17  8:12   ` Meer H. van der [this message]

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=F9C35E5F-6896-4EFB-8CB2-5CEB8513C1C6@uva.nl \
    --to=h.vandermeer@uva.nl \
    --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).