ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: about \sym{} and n*broad
@ 2009-09-15 12:37 Dalyoung
  2009-09-15 14:23 ` Hans Hagen
  2009-09-15 14:31 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Dalyoung @ 2009-09-15 12:37 UTC (permalink / raw)
  To: ntg-context

Dear Jan-Erik,

I tested your suggestion.
Your method produce new line after Type 1, but I want to write "Type  
1" and "This is a test." in the same line.
And I have seen 4*broad in an example in the manual.
In the example, it is used to set the distance, I think.

Thank you.

Best regards,

Dalyoung
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
  2009-09-15 12:37 about \sym{} and n*broad Dalyoung
@ 2009-09-15 14:23 ` Hans Hagen
  2009-09-15 14:31 ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-09-15 14:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dalyoung wrote:
> Dear Jan-Erik,
> 
> I tested your suggestion.
> Your method produce new line after Type 1, but I want to write "Type 1" 
> and "This is a test." in the same line.
> And I have seen 4*broad in an example in the manual.
> In the example, it is used to set the distance, I think.

broad seems to be broken in mkiv

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
  2009-09-15 12:37 about \sym{} and n*broad Dalyoung
  2009-09-15 14:23 ` Hans Hagen
@ 2009-09-15 14:31 ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-09-15 14:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dalyoung wrote:

> I tested your suggestion.
> Your method produce new line after Type 1, but I want to write "Type 1" 
> and "This is a test." in the same line.
> And I have seen 4*broad in an example in the manual.
> In the example, it is used to set the distance, I think.

in strc-itm fix: (swap first and second split results)

\def\dodosetupitemgroupconstant#1%
   {\edef\itemgroupconstantvalue{#1}%
    \ifx\itemgroupconstantvalue\empty\else
       \splitstring\itemgroupconstantvalue\at*\to
          \itemgroupfirst\and\itemgroupsecond
       \ifcsname\??op:::\itemgroupsecond\endcsname\csname
          \??op:::\itemgroupsecond\endcsname\fi
    \fi}

\setvalue{\??op:::\v!broad}%
   {\ifx\itemgroupfirst\empty\def\itemgroupfirst{1}\fi
    \letitemparameter\currentitemlevel\c!factor\itemgroupfirst}

\setvalue{\??op:::\v!serried}%
   {\edef\itemgroupfirst
      {-\ifx\itemgroupfirst\empty1\else\itemgroupfirst\fi}%
    \letitemparameter\currentitemlevel\c!factor\itemgroupfirst}


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
@ 2009-09-16 13:27 dalyoung
  0 siblings, 0 replies; 9+ messages in thread
From: dalyoung @ 2009-09-16 13:27 UTC (permalink / raw)
  To: ntg-context

Dear Hans,

I downloaded a new beta and test your sample and mine.

It works perfectly.

Thank you for the prompt fix.

Best regards,

Dalyoung
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
  2009-09-16  4:54 Dalyoung
  2009-09-16  7:50 ` Hans Hagen
@ 2009-09-16  9:00 ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-09-16  9:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dalyoung wrote:
> Dear Hans,
> 
> Thank you for the correction.
> After swapping first and second as you told, I got the good result.
> 
> I have another question.
> 
> If I use 4*broad in the first level itemization, it seems to me that it 
> inherently applied to the second and third level too.
> Even though I set just serried or broad instead of 4*broad in the second 
> or the third level, it seems to be ignored.
> 
> Is it normal?

i uploaded a new beta (also fixed some of the reported formula ref 
problems)

can you test if itemize behaves as expected?

i jusy tested:

\setupitemgroup[itemize][2][color=blue]

\setupcolors[state=start]

\startitemize[4*broad][color=red]
\item test
     \startitemize % [standard]
     \item test
     \item test
     \stopitemize
\item test
\stopitemize


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
  2009-09-16  4:54 Dalyoung
@ 2009-09-16  7:50 ` Hans Hagen
  2009-09-16  9:00 ` Hans Hagen
  1 sibling, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-09-16  7:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dalyoung wrote:
> Dear Hans,
> 
> Thank you for the correction.
> After swapping first and second as you told, I got the good result.
> 
> I have another question.
> 
> If I use 4*broad in the first level itemization, it seems to me that it 
> inherently applied to the second and third level too.
> Even though I set just serried or broad instead of 4*broad in the second 
> or the third level, it seems to be ignored.
> 
> Is it normal?

no, it's an unwanted side effect of the new inheritance model; i'll look 
into it

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
@ 2009-09-16  4:54 Dalyoung
  2009-09-16  7:50 ` Hans Hagen
  2009-09-16  9:00 ` Hans Hagen
  0 siblings, 2 replies; 9+ messages in thread
From: Dalyoung @ 2009-09-16  4:54 UTC (permalink / raw)
  To: ntg-context

Dear Hans,

Thank you for the correction.
After swapping first and second as you told, I got the good result.

I have another question.

If I use 4*broad in the first level itemization, it seems to me that  
it inherently applied to the second and third level too.
Even though I set just serried or broad instead of 4*broad in the  
second or the third level, it seems to be ignored.

Is it normal?

Thank you again.

Best regards,

Dalyoung
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: about \sym{} and n*broad
  2009-09-14 22:48 dalyoung
@ 2009-09-15  8:11 ` Jan-Erik Hägglöf
  0 siblings, 0 replies; 9+ messages in thread
From: Jan-Erik Hägglöf @ 2009-09-15  8:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

dalyoung skrev:
> Dear all,
>
> I try next code to get the following form of text.
>
> \startitemize[4*broad]
> \sym{Type 1} This is a test. bla bla ...bla bla bla ...bla bla bla
> \sym{Type 2} This is the second item. bla bla bla ... bla bla bla
> \stopitemize
>
>
> Type 1   This is a test.
>         bla bla bla ...
>         bla bla bla
>
> Type 2   This is the second item
>         bla bla bla ...
>         bla bla bla
>
> however, I got the overlapped output such as "This is a test" started 
> from the position of p in Type. Chaing number 4 in 4*broad to another 
> number doesn't work.
>
> Is there a good way to do that?
>
> Thank you.
>
> Best regards,
>
> Dalyoung
> ___________________________________________________________________________________ 
>
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________ 
>
>
\startitemize[4,broad]
\sym{Type 1}
\item This is a test. bla bla ...bla bla bla ...bla bla bla
\sym{Type 2}
\item This is the second item. bla bla bla ... bla bla bla
\stopitemize

I've never seen using * in itemizing just comma separation between 
parameters.

/Janneman
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* about \sym{} and n*broad
@ 2009-09-14 22:48 dalyoung
  2009-09-15  8:11 ` Jan-Erik Hägglöf
  0 siblings, 1 reply; 9+ messages in thread
From: dalyoung @ 2009-09-14 22:48 UTC (permalink / raw)
  To: ntg-context

Dear all,

I try next code to get the following form of text.

\startitemize[4*broad]
\sym{Type 1} This is a test. bla bla ...bla bla bla ...bla bla bla
\sym{Type 2} This is the second item. bla bla bla ... bla bla bla
\stopitemize


Type 1   This is a test.
		bla bla bla ...
		bla bla bla

Type 2   This is the second item
		bla bla bla ...
		bla bla bla

however, I got the overlapped output such as "This is a test" started  
from the position of p in Type. Chaing number 4 in 4*broad to another  
number doesn't work.

Is there a good way to do that?

Thank you.

Best regards,

Dalyoung
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-09-16 13:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15 12:37 about \sym{} and n*broad Dalyoung
2009-09-15 14:23 ` Hans Hagen
2009-09-15 14:31 ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2009-09-16 13:27 dalyoung
2009-09-16  4:54 Dalyoung
2009-09-16  7:50 ` Hans Hagen
2009-09-16  9:00 ` Hans Hagen
2009-09-14 22:48 dalyoung
2009-09-15  8:11 ` Jan-Erik Hägglöf

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