ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "honyk" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Side-by-side framed text blocks
Date: Fri, 7 Jun 2013 20:21:08 +0200	[thread overview]
Message-ID: <4751.32881333611$1370629293@news.gmane.org> (raw)
In-Reply-To: <20130606225606.GD13190@homerow>

> On 2013-06-07 Marco wrote:	
>> On 2013–06–07 honyk wrote:
>> 
>> > thanks for this. I removed that framed=off option and it turned out
>> to be sligthly different from what I'd like to achieve.
>> >
>> > My goal is to have two blocks with a vertical gap between them and to
>> have these blocks framed (or with the colored background) at the text
>> area - without the cell spans - to show differences between the
>> standard and 'hanging' alignments (that right border should cross the
>> punctuation in the hanging mode).
>> >
>> > Below each 'column' I'd like to place a short description (centered)
>> - exactly as on the referenced examples.
>> 
>> Use a combination for that:
>> 
>> \setuptolerance
>>   [verytolerant]
>> 
>> \setupframed
>>   [offset=none,
>>    width=8cm,
>>    frame=off,
>>    background=screen]
>> 
>> \definefontfeature
>>   [default]
>>   [default]
>>   [protrusion=pure]
>> 
>> \starttext
>> 
>> \startcombination
>>   \startcontent
>>     \startframed [align=normal]
>>       \input knuth
>>     \stopframed
>>   \stopcontent
>>   \startcaption
>>     Some description
>>   \stopcaption
>>   \startcontent
>>     \startframed [align={normal,hanging}]
>>       \input knuth
>>     \stopframed
>>   \stopcontent
>>   \startcaption
>>     Some description
>>   \stopcaption
>> \stopcombination
>> 
>> \stoptext

Thanks, it helped a lot!

I've added this to control the gap (width) between text blocks:
\startcombination[distance=2cm]

And placed following commands inline to suppress the first whitespace character. I like your indentation, but on my Windows (CR+LF) it is suboptimal. Or is there any option for this?

\startframed [align=normal]\input knuth

Thanks, Jan

___________________________________________________________________________________
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-06-07 18:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01ab01ce62fa$8173a970$845afc50$@tosovsky@email.cz>
2013-06-06 21:54 ` Marco Patzer
2013-06-06 22:26   ` honyk
     [not found]   ` <01c001ce6304$de1db170$9a591450$@tosovsky@email.cz>
2013-06-06 22:39     ` Aditya Mahajan
2013-06-06 22:56     ` Marco Patzer
2013-06-07 18:21       ` honyk [this message]
2013-06-06 21:12 honyk

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='4751.32881333611$1370629293@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).