ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* The best command for parallel texts
@ 2018-07-01 10:18 Martin Hasoň
  2018-07-02 20:41 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Hasoň @ 2018-07-01 10:18 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 856 bytes --]

Hi all,

I need to type parallel text on double columns. I've tried paragraphs,
tabulate, table and column environments. The best result of these options
gives the tabulate. Unfortunately, it does not respect alignment - many
\hbox errors in all environments except columns :(. What should I use and
set up?

\setuppapersize[A6][A6]
\defineparagraphs[TwoLang][n=2]
\setuptabulate[split=yes]
\setupalign[verytolerant,stretch]

\starttext

\startTwoLang
\input lorem
\nextTwoLang
\input davis
\stopTwoLang

\starttabulate[|p|p|]
\NC\input lorem
\NC\input davis
\NC\NR
\stoptabulate

\bTABLE[frame=off,align=yes,split=yes]
\bTR
\bTD[roffset=2mm]\input lorem\eTD
\bTD[loffset=2mm]\input davis\eTD
\eTR
\eTABLE

\startcolumns[n=2]
\input lorem
\column
\input davis
\stopcolumns

\stoptext

Best regards
Martin Hasoň

[-- Attachment #1.2: Type: text/html, Size: 1480 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: The best command for parallel texts
  2018-07-01 10:18 The best command for parallel texts Martin Hasoň
@ 2018-07-02 20:41 ` Wolfgang Schuster
  2018-07-03 21:30   ` Idris Samawi Hamid ادريس سماوي حامد
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2018-07-02 20:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 542 bytes --]


> Martin Hasoň <mailto:martin.hason@gmail.com>
> 1. Juli 2018 um 12:18
> Hi all,
>
> I need to type parallel text on double columns. I've tried paragraphs, 
> tabulate, table and column environments.The best result of these 
> options gives the tabulate.Unfortunately, it does not respect 
> alignment - many \hbox errors in all environments except columns 
> :(.What should I use and set up?

None of the table environments use the global alignment settings and
you have to set them again to get better results for the content.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1974 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: The best command for parallel texts
  2018-07-02 20:41 ` Wolfgang Schuster
@ 2018-07-03 21:30   ` Idris Samawi Hamid ادريس سماوي حامد
  2018-07-04  1:01     ` Idris Samawi Hamid ادريس سماوي حامد
  2018-07-04  7:30     ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-07-03 21:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Martin, Wolfgang,

On Mon, 02 Jul 2018 14:41:31 -0600, Wolfgang Schuster  
<schuster.wolfgang@gmail.com> wrote:

>> Martin Hasoň <mailto:martin.hason@gmail.com>
>> 1. Juli 2018 um 12:18
>> Hi all,
>>
>> I need to type parallel text on double columns. I've tried paragraphs,
>> tabulate, table and column environments.The best result of these
>> options gives the tabulate.Unfortunately, it does not respect
>> alignment - many \hbox errors in all environments except columns
>> :(.What should I use and set up?
>
> None of the table environments use the global alignment settings and
> you have to set them again to get better results for the content.

Martin, have you tried streams?

http://wiki.contextgarden.net/Columns#Streams

Under the examples you will find an example of a columnar, aligned streams  
setup - by Wolfgang.

Best wishes
Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: The best command for parallel texts
  2018-07-03 21:30   ` Idris Samawi Hamid ادريس سماوي حامد
@ 2018-07-04  1:01     ` Idris Samawi Hamid ادريس سماوي حامد
  2018-07-04  7:30     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2018-07-04  1:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

On Tue, 03 Jul 2018 15:30:18 -0600, Idris Samawi Hamid ادريس سماوي حامد  
<Idris.Hamid@colostate.edu> wrote:

> Hi Martin, Wolfgang,
>
> On Mon, 02 Jul 2018 14:41:31 -0600, Wolfgang Schuster  
> <schuster.wolfgang@gmail.com> wrote:
>
>>> Martin Hasoň <mailto:martin.hason@gmail.com>
>>> 1. Juli 2018 um 12:18
>>> Hi all,
>>>
>>> I need to type parallel text on double columns. I've tried paragraphs,
>>> tabulate, table and column environments.The best result of these
>>> options gives the tabulate.Unfortunately, it does not respect
>>> alignment - many \hbox errors in all environments except columns
>>> :(.What should I use and set up?
>>
>> None of the table environments use the global alignment settings and
>> you have to set them again to get better results for the content.
>
> Martin, have you tried streams?
>
> http://wiki.contextgarden.net/Columns#Streams
>
> Under the examples you will find an example of a columnar, aligned  
> streams setup - by Wolfgang.

Ok, needed a break from work, so for fun and for learning something new:

==============
\setuppapersize[A4][A4]
\defineparagraphs[TwoLang][n=2]
\setuptabulate[split=yes]
\setupalign[verytolerant,stretch]

\starttext
\showframe

\startoutputstream[one]
    \setupalign[flushleft]
    \framedtext[width=17.4em,align=verytolerant,stretch,frame=on,offset=overlay]
    {\input lorem }
    \hfill
    \par
\stopoutputstream

\startoutputstream[two]
    \setupalign[flushright]
    \hfill
    \framedtext[width=17.4em,align=verytolerant,stretch,frame=on,offset=overlay]
    {\input davis }
    \par
\stopoutputstream

\synchronizestreams[one,two]

\startoverlay
    {\raise2\strutdp\outputstreambox[one]}
    {\raise0\strutdp\outputstreambox[two]}
\stopoverlay
\startTwoLang
\input lorem
\nextTwoLang
\input davis
\stopTwoLang

\starttabulate[|p|p|]
\NC\input lorem
\NC\input davis
\NC\NR
\stoptabulate

\bTABLE[frame=off,align=yes,split=yes]
\bTR
\bTD[roffset=2mm]\input lorem\eTD
\bTD[loffset=2mm]\input davis\eTD
\eTR
\eTABLE

\startcolumns[n=2]
\input lorem
\column
\input davis
\stopcolumns

\stoptext
==============

The \raise2\strutdp etc. feels like a hack, Wolfgang knows better why it's  
needed, as as how and why the value for one stream affects the other..

Idris
-- 
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512

[-- Attachment #2: scratch.pdf --]
[-- Type: application/pdf, Size: 25558 bytes --]

[-- Attachment #3: scratch.tex --]
[-- Type: application/x-tex, Size: 1395 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: The best command for parallel texts
  2018-07-03 21:30   ` Idris Samawi Hamid ادريس سماوي حامد
  2018-07-04  1:01     ` Idris Samawi Hamid ادريس سماوي حامد
@ 2018-07-04  7:30     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2018-07-04  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 7/3/2018 11:30 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Hi Martin, Wolfgang,
> 
> On Mon, 02 Jul 2018 14:41:31 -0600, Wolfgang Schuster 
> <schuster.wolfgang@gmail.com> wrote:
> 
>>> Martin Hasoň <mailto:martin.hason@gmail.com>
>>> 1. Juli 2018 um 12:18
>>> Hi all,
>>>
>>> I need to type parallel text on double columns. I've tried paragraphs,
>>> tabulate, table and column environments.The best result of these
>>> options gives the tabulate.Unfortunately, it does not respect
>>> alignment - many \hbox errors in all environments except columns
>>> :(.What should I use and set up?
>>
>> None of the table environments use the global alignment settings and
>> you have to set them again to get better results for the content.
> 
> Martin, have you tried streams?
> 
> http://wiki.contextgarden.net/Columns#Streams
> 
> Under the examples you will find an example of a columnar, aligned 
> streams setup - by Wolfgang.
There are a few half-finished mechanisms. There's also one based on 
parallel figures etc that Thomas and I still need to finish.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-04  7:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-01 10:18 The best command for parallel texts Martin Hasoň
2018-07-02 20:41 ` Wolfgang Schuster
2018-07-03 21:30   ` Idris Samawi Hamid ادريس سماوي حامد
2018-07-04  1:01     ` Idris Samawi Hamid ادريس سماوي حامد
2018-07-04  7:30     ` Hans Hagen

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).