ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \startcolumns and \startcolumnset
@ 2024-02-09  1:22 Jeong Dal via ntg-context
  2024-02-09  4:37 ` [NTG-context] " Otared Kavian
  0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal via ntg-context @ 2024-02-09  1:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeong Dal


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

Dear all,

I have a little problem to use “columns” in the following example.

If I use “\startcolumnset”, then I have the following problems:
	1. The figures is aligned left even though I use \startplacefigure[].
	2. In the second column, the first item located at the end of the page.
However, \vfill works, so I managed the items evenly spaced vertically.

If I use “\startcolumns”, then I have the following problems:
	1. \vfill doesn’t works, but \blank[] works. So, it isn’t easy to locate the items evenly spaced vertically.

Here are sample code and its outputs of two cases for comparison.

Any suggestions are welcomed.

Tomorrow is the New Years day in Lunar calendar.
Happy new year, again.

Best regards,

Dalyoung

%%%%%%%
\startuseMPgraphic{mark}
path p;
p := unitsquare scaled 3cm;
draw p;
draw (point 0 of p)--(point 2 of p);
draw (point 1 of p)--(point 3 of p);
\stopuseMPgraphic
\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
\stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\setuppagenumbering[state=stop]
\setupexternalfigures[location={local,defalut}]
\definecolumnset
  [quiz]
  [n=2,background=verticalrule]

\setupbodyfont[bonum, rm, 11pt]

\starttext 

%\startcolumns[n=2,background=verticalrule]
\startcolumnset[quiz]

\startitemize[n]
  \item Solve the following linear equations.

  \startitemize[r]
    \item equation
%    \blank[3.5cm]
    \vfill
    \item equation
%    \blank[3.5cm]
    \vfill
    \item equation
    \blank[3.5cm]
    \item equation
    \blank[3.5cm]
    \item equation
    \blank[3.5cm]
  \stopitemize
  \hrule
\column
  \item Draw the graph of the following linear function.
    \startitemize[r]
    \item $2x +3y = 6$

    \startplacefigure[location={here,none},]
    \useMPgraphic{mark}
    \stopplacefigure
  
    \item $y = 2x - 1$
  
    \startplacefigure[location={here,none}]
    \useMPgraphic{mark}
    \stopplacefigure
    \stopitemize

  \item Find the formula of the line 1:
  \vfill
  \item Find the formula of the line 2:
  \vfill
\stopitemize
\stopcolumnset

\stoptext
%%%%%%%%%%





[-- Attachment #1.2.1: Type: text/html, Size: 11460 bytes --]

[-- Attachment #1.2.2: testColumns.pdf --]
[-- Type: application/pdf, Size: 11036 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 208 bytes --]

[-- Attachment #1.2.4: testColumnset.pdf --]
[-- Type: application/pdf, Size: 11016 bytes --]

[-- Attachment #1.2.5: Type: text/html, Size: 259 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: \startcolumns and \startcolumnset
  2024-02-09  1:22 [NTG-context] \startcolumns and \startcolumnset Jeong Dal via ntg-context
@ 2024-02-09  4:37 ` Otared Kavian
  2024-02-09 11:22   ` Jeong Dal via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2024-02-09  4:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear Dalyoung,

Have you tried 
\startsimplecolumns

\stopsimplecolumns
 instead of the columnset mechanism?

In your example I put the above commands and I got the attached PDF: is this what you want to obtain?

Best regards: Otared



> On 9 Feb 2024, at 02:22, Jeong Dal via ntg-context <ntg-context@ntg.nl> wrote:
> 
> Dear all,
> 
> I have a little problem to use “columns” in the following example.
> 
> If I use “\startcolumnset”, then I have the following problems:
> 	1. The figures is aligned left even though I use \startplacefigure[].
> 	2. In the second column, the first item located at the end of the page.
> However, \vfill works, so I managed the items evenly spaced vertically.
> 
> If I use “\startcolumns”, then I have the following problems:
> 	1. \vfill doesn’t works, but \blank[] works. So, it isn’t easy to locate the items evenly spaced vertically.
> 
> Here are sample code and its outputs of two cases for comparison.
> 
> Any suggestions are welcomed.
> 
> Tomorrow is the New Years day in Lunar calendar.
> Happy new year, again.
> 
> Best regards,
> 
> Dalyoung
> 
> %%%%%%%
> \startuseMPgraphic{mark}
> path p;
> p := unitsquare scaled 3cm;
> draw p;
> draw (point 0 of p)--(point 2 of p);
> draw (point 1 of p)--(point 3 of p);
> \stopuseMPgraphic
> \startuseMPgraphic{verticalrule3}
>    draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;
>    draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ;  
>    draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
>    draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
> \stopuseMPgraphic
> 
> \defineoverlay
>   [verticalrule]
>   [\useMPgraphic{verticalrule3}]
> 
> \setuppagenumbering[state=stop]
> \setupexternalfigures[location={local,defalut}]
> \definecolumnset
>   [quiz]
>   [n=2,background=verticalrule]
> 
> \setupbodyfont[bonum, rm, 11pt]
> 
> \starttext 
> 
> %\startcolumns[n=2,background=verticalrule]
> \startcolumnset[quiz]
> 
> \startitemize[n]
>   \item Solve the following linear equations.
> 
>   \startitemize[r]
>     \item equation
> %    \blank[3.5cm]
>     \vfill
>     \item equation
> %    \blank[3.5cm]
>     \vfill
>     \item equation
>     \blank[3.5cm]
>     \item equation
>     \blank[3.5cm]
>     \item equation
>     \blank[3.5cm]
>   \stopitemize
>   \hrule
> \column
>   \item Draw the graph of the following linear function.
>     \startitemize[r]
>     \item $2x +3y = 6$
> 
>     \startplacefigure[location={here,none},]
>     \useMPgraphic{mark}
>     \stopplacefigure
>   
>     \item $y = 2x - 1$
>   
>     \startplacefigure[location={here,none}]
>     \useMPgraphic{mark}
>     \stopplacefigure
>     \stopitemize
> 
>   \item Find the formula of the line 1:
>   \vfill
>   \item Find the formula of the line 2:
>   \vfill
> \stopitemize
> \stopcolumnset
> 
> \stoptext
> %%%%%%%%%%
> 
> 
> <testColumns.pdf>
> <testColumnset.pdf>
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________

Otared Kavian
e-mail: otared@gmail.com
Phone: +33 6 88 26 70 95





[-- Attachment #1.2.1: Type: text/html, Size: 744 bytes --]

[-- Attachment #1.2.2: columns-figures.pdf --]
[-- Type: application/pdf, Size: 10979 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 14201 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: \startcolumns and \startcolumnset
  2024-02-09  4:37 ` [NTG-context] " Otared Kavian
@ 2024-02-09 11:22   ` Jeong Dal via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal via ntg-context @ 2024-02-09 11:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeong Dal


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

Dear Otared,

Thank you for testing.

I run the sample after changing the column command to ‘\startsimplecolumns … \stopsimplecolumns’.

I got the same result as  your output. And it is same as the result using \startcolumns … \stopcolumns.

If ‘\vfill’ works, then it is OK for me, but it isn’t.

It works under the command “\startcolumnset … \stopcolumnset”.
But there are another problem under the ‘columnist’ command.

I’ll read the manual of columnset carefully.

Best regards,

Dalyoung


> 2024. 2. 9. 오후 1:37, Otared Kavian <otared@gmail.com> 작성:
> 
> Dear Dalyoung,
> 
> Have you tried 
> \startsimplecolumns
> 
> \stopsimplecolumns
>  instead of the columnset mechanism?
> 
> In your example I put the above commands and I got the attached PDF: is this what you want to obtain?
> 
> Best regards: Otared
> 
> <columns-figures.pdf>

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

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-02-09 11:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-09  1:22 [NTG-context] \startcolumns and \startcolumnset Jeong Dal via ntg-context
2024-02-09  4:37 ` [NTG-context] " Otared Kavian
2024-02-09 11:22   ` Jeong Dal via ntg-context

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