* Side-by-side framed text blocks
@ 2013-06-06 21:12 honyk
0 siblings, 0 replies; 6+ messages in thread
From: honyk @ 2013-06-06 21:12 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
Dear All,
I'd like to type two blocks of text with different 'align' settings side by
side.
A desired output can be found e.g. in examples 1.9-1.10 in
http://www.pragma-ade.com/general/manuals/style.pdf
Here blocks have a background instead of frames though. Both variants are
acceptable for me.
I am lost in various text box, framing or columns switches and unable to
create something similar.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Side-by-side framed text blocks
2013-06-06 22:56 ` Marco Patzer
@ 2013-06-07 18:21 ` honyk
0 siblings, 0 replies; 6+ messages in thread
From: honyk @ 2013-06-07 18:21 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Side-by-side framed text blocks
[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
1 sibling, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-06-06 22:56 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1218 bytes --]
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
Marco
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Side-by-side framed text blocks
[not found] ` <01c001ce6304$de1db170$9a591450$@tosovsky@email.cz>
@ 2013-06-06 22:39 ` Aditya Mahajan
2013-06-06 22:56 ` Marco Patzer
1 sibling, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2013-06-06 22:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 7 Jun 2013, honyk wrote:
> Dear Marco,
>
>>> I'd like to type two blocks of text with different 'align' settings
>> side by
>>> side.
>>
>> Here's one way to do it:
>>
>> \setupframed
>> [offset=1ex,
>> width=8cm,
>> frame=off]
>>
>> \starttext
>> \placesidebyside
>> {\startframed[align={normal,left}] \input knuth\par\stopframed}
>> {\startframed[align={normal,right}] \input knuth\par\stopframed}
>> \stoptext
>>
>> Marco
>
> 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.
\startcombination?
http://wiki.contextgarden.net/Command/startcombination
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Side-by-side framed text blocks
2013-06-06 21:54 ` Marco Patzer
@ 2013-06-06 22:26 ` honyk
[not found] ` <01c001ce6304$de1db170$9a591450$@tosovsky@email.cz>
1 sibling, 0 replies; 6+ messages in thread
From: honyk @ 2013-06-06 22:26 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
Dear Marco,
> > I'd like to type two blocks of text with different 'align' settings
> side by
> > side.
>
> Here's one way to do it:
>
> \setupframed
> [offset=1ex,
> width=8cm,
> frame=off]
>
> \starttext
> \placesidebyside
> {\startframed[align={normal,left}] \input knuth\par\stopframed}
> {\startframed[align={normal,right}] \input knuth\par\stopframed}
> \stoptext
>
> Marco
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.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Side-by-side framed text blocks
[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>
0 siblings, 2 replies; 6+ messages in thread
From: Marco Patzer @ 2013-06-06 21:54 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 406 bytes --]
On 2013–06–06 honyk wrote:
> I'd like to type two blocks of text with different 'align' settings side by
> side.
Here's one way to do it:
\setupframed
[offset=1ex,
width=8cm,
frame=off]
\starttext
\placesidebyside
{\startframed[align={normal,left}] \input knuth\par\stopframed}
{\startframed[align={normal,right}] \input knuth\par\stopframed}
\stoptext
Marco
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-06-07 18:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-06 21:12 Side-by-side framed text blocks honyk
[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 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).