ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* columns vs. paragraphs, and a question about fillinrule
@ 2013-09-12 21:31 Pavneet Arora
  2013-09-14 21:44 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Pavneet Arora @ 2013-09-12 21:31 UTC (permalink / raw)
  To: ConTeXt Mailing list

As part of this legal document set that I have been working to put 
together, I needed side-by-side text.  Looking at the wiki, I noticed 
that there are at least 3 methods:  columns, paragraphs, columnsets.

I only attempted two, but they seem to have quite different results.  I 
understood that columns were for simple cases.  However, in my MWE 
below, the \column command breaks the "columns" in unusual way.

One can also swap out the order of the paragraphs and columns methods; 
the results are similar.  Also, one can adjust the dorecurse command 
with additional lorems to see where the "columns" land on the page.  
Again results are similar.

Any suggestions?

Another question:  I am trying to have the numbers in the \fillinrule 
command to be hanging so that the rules are lined up.  Is this possible, 
and if so how best to do it?

advTHANKSance.

MWE:

\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,height=9.5in,backspace=1.25in,width=6in]
\setuppagenumbering[location=]
\usemodule[simplefonts]
\setmainfont[gentiumalt]
\setupbodyfont[11pt]
\setupinterlinespace[line=3.2ex]
\setupwhitespace[big]

\starttext
\startalignment[middle]
{\tfc AN IMPORTANT LEGAL DOCUMENT}
\stopalignment
\blank[2*big]

\dorecurse{1}{\input lorem\par}

\blank[2*big]

{\tt paragraphs} method:

\defineparagraphs[mypar][n=3,before={\blank},after={\blank}]
\setupparagraphs[mypar][1][width=.5\textwidth]
\setupparagraphs[mypar][2][width=.1\textwidth]
\setupparagraphs[mypar][3][width=.4\textwidth]

\startmypar
WITNESSES:
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{2.}
\mypar
\mypar
(TESTATOR)\crlf
Ms. B.E. Def\crlf
\stopmypar

{\tt columns} method:

\startcolumns[n=2]
WITNESSES:
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{2.}
\column
(TESTATOR)\crlf
Mr. B.E. Def\crlf
\stopcolumns

\stoptext

-- 
----
Pavneet Arora           m: 647.406.6843
Waroc Informatik        t: 416.937.9276
___________________________________________________________________________________
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] 3+ messages in thread

* Re: columns vs. paragraphs, and a question about fillinrule
  2013-09-12 21:31 columns vs. paragraphs, and a question about fillinrule Pavneet Arora
@ 2013-09-14 21:44 ` Aditya Mahajan
  2013-09-15 10:23   ` Pavneet Arora
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2013-09-14 21:44 UTC (permalink / raw)
  To: Pavneet Arora, mailing list for ConTeXt users

On Thu, 12 Sep 2013, Pavneet Arora wrote:

> As part of this legal document set that I have been working to put
> together, I needed side-by-side text.  Looking at the wiki, I noticed
> that there are at least 3 methods:  columns, paragraphs, columnsets.
>
> I only attempted two, but they seem to have quite different results.  I
> understood that columns were for simple cases.  However, in my MWE
> below, the \column command breaks the "columns" in unusual way.
>
> One can also swap out the order of the paragraphs and columns methods;
> the results are similar.  Also, one can adjust the dorecurse command
> with additional lorems to see where the "columns" land on the page.
> Again results are similar.
>
> Any suggestions?

What is the desired output? Do you want the left "column" to continue on 
to the next page? Is so, you could use the tabulate environment.

\setuppaper[A5, landscape]
\starttext
\startalignment[middle]
{\tfc AN IMPORTANT LEGAL DOCUMENT}
\stopalignment

\starttabulate[|p(0.5\textwidth)|p(0.1\textwidth)|p(0.4\textwidth)|]
   \NC WITNESSES:
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
   \NC
   \NC
       (TESTATOR)\crlf
       Ms. B.E. Def
   \NC
   \NR
   \NC WITNESSES:
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
   \NC
   \NC
       (TESTATOR)\crlf
       Ms. B.E. Def
   \NC
   \NR
\stoptabulate

\stoptext
___________________________________________________________________________________
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] 3+ messages in thread

* Re: columns vs. paragraphs, and a question about fillinrule
  2013-09-14 21:44 ` Aditya Mahajan
@ 2013-09-15 10:23   ` Pavneet Arora
  0 siblings, 0 replies; 3+ messages in thread
From: Pavneet Arora @ 2013-09-15 10:23 UTC (permalink / raw)
  To: Aditya Mahajan, ConTeXt Mailing list

Sorry, I should have been more clear about the intended output.

In the most common case, I simply wanted side by side output:  witnesses 
in the left column, and testator in the right column.  Rarely, is it 
expected to traverse a page.  The paragraph method does this; \paragraph 
goes to the top of the next column.  The columns method does not:  
\column, at least for this combination of input, does not go to the top 
of the next column, but rather pushes the subsequent input to the top of 
the next page, which is not the intention.

So, the paragraph method produces the expected "two-column layour" 
output while the columns method does not.

However, your tabulate method is perfect fine especially if one needs 
the output to cross page boundaries.

Any idea to make fillinrules behave like a list, i.e., with the indices 
hanging to the left of equal sized rules?

Thanks for your help.

On 14Sep13, Aditya Mahajan wrote:
> On Thu, 12 Sep 2013, Pavneet Arora wrote:
> 
> >As part of this legal document set that I have been working to put
> >together, I needed side-by-side text.  Looking at the wiki, I noticed
> >that there are at least 3 methods:  columns, paragraphs, columnsets.
> >
> >I only attempted two, but they seem to have quite different results.  I
> >understood that columns were for simple cases.  However, in my MWE
> >below, the \column command breaks the "columns" in unusual way.
> >
> >One can also swap out the order of the paragraphs and columns methods;
> >the results are similar.  Also, one can adjust the dorecurse command
> >with additional lorems to see where the "columns" land on the page.
> >Again results are similar.
> >
> >Any suggestions?
> 
> What is the desired output? Do you want the left "column" to
> continue on to the next page? Is so, you could use the tabulate
> environment.
> 
> \setuppaper[A5, landscape]
> \starttext
> \startalignment[middle]
> {\tfc AN IMPORTANT LEGAL DOCUMENT}
> \stopalignment
> 
> \starttabulate[|p(0.5\textwidth)|p(0.1\textwidth)|p(0.4\textwidth)|]
>   \NC WITNESSES:
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
>   \NC
>   \NC
>       (TESTATOR)\crlf
>       Ms. B.E. Def
>   \NC
>   \NR
>   \NC WITNESSES:
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
>     \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
>   \NC
>   \NC
>       (TESTATOR)\crlf
>       Ms. B.E. Def
>   \NC
>   \NR
> \stoptabulate
> 
> \stoptext

-- 
----
Pavneet Arora           m: 647.406.6843
Waroc Informatik        t: 416.937.9276
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2013-09-15 10:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-12 21:31 columns vs. paragraphs, and a question about fillinrule Pavneet Arora
2013-09-14 21:44 ` Aditya Mahajan
2013-09-15 10:23   ` Pavneet Arora

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