Re: [NTG-context] right to left direction for itemize columns

2016-02-23 Thread Mohammad Hossein Bateni
Hans, will this work right-to-left as well?

On Tue, Feb 23, 2016 at 6:49 AM, Jeong Dal  wrote:

> Dear  Hans,
>
> It is nice to have this feature in the next beta.
> It will help us to make multiple-choice problems.
>
> Thank you.
>
> Best regards,
>
> Dalyoung
>
> >
> > \starttext
> >
> > \startitemize[horizontal,a,three]
> > \startitem first \stopitem \startitem second \stopitem
> > \startitem third \stopitem \startitem fourth \stopitem
> > \startitem fifth \stopitem
> > \stopitemize
> >
> > \startitemize[horizontal,n,four]
> > \startitem first \stopitem \startitem second \stopitem
> > \startitem third \stopitem \startitem fourth \stopitem
> > \startitem fifth \stopitem \startitem sixth \stopitem
> > \startitem seventh \stopitem
> > \stopitemize
> >
> > \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
>
> ___
>
___
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
___

Re: [NTG-context] right to left direction for itemize columns

2016-02-23 Thread Jeong Dal
Dear  Hans,

It is nice to have this feature in the next beta.
It will help us to make multiple-choice problems.

Thank you.

Best regards,

Dalyoung

> 
> \starttext
> 
> \startitemize[horizontal,a,three]
> \startitem first \stopitem \startitem second \stopitem
> \startitem third \stopitem \startitem fourth \stopitem
> \startitem fifth \stopitem
> \stopitemize
> 
> \startitemize[horizontal,n,four]
> \startitem first \stopitem \startitem second \stopitem
> \startitem third \stopitem \startitem fourth \stopitem
> \startitem fifth \stopitem \startitem sixth \stopitem
> \startitem seventh \stopitem
> \stopitemize
> 
> \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
___

Re: [NTG-context] right to left direction for itemize columns

2016-02-23 Thread Hans Hagen

On 2/23/2016 12:48 AM, Jeong Dal wrote:

Dear Hans,


Is there any simpler way to achieve this?


how is that supposed to work with multi-line items ?



I am sorry, I should explain more carefully.

This type of itemization usually needed to list the short answers of the
multiple-choice questions.
Some problems are not well-composed, but you can see an example at the
end of the following page.

http://dugod1.tistory.com/archive/20120826
http://blog.daum.net/_blog/BlogTypeView.do?blogid=0dl2J=153


the next beta will support this (but only for simple items that fit in 
the available space)


\starttext

\startitemize[horizontal,a,three]
\startitem first \stopitem \startitem second \stopitem
\startitem third \stopitem \startitem fourth \stopitem
\startitem fifth \stopitem
\stopitemize

\startitemize[horizontal,n,four]
\startitem first \stopitem \startitem second \stopitem
\startitem third \stopitem \startitem fourth \stopitem
\startitem fifth \stopitem \startitem sixth \stopitem
\startitem seventh \stopitem
\stopitemize

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] right to left direction for itemize columns

2016-02-22 Thread Jeong Dal
Dear Hans,

>> Is there any simpler way to achieve this?
> 
> how is that supposed to work with multi-line items ?
> 

I am sorry, I should explain more carefully.

This type of itemization usually needed to list the short answers of the 
multiple-choice questions.
Some problems are not well-composed, but you can see an example at the end of 
the following page. 

http://dugod1.tistory.com/archive/20120826 
 
http://blog.daum.net/_blog/BlogTypeView.do?blogid=0dl2J=153 


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

Re: [NTG-context] right to left direction for itemize columns

2016-02-22 Thread Hans Hagen

On 2/22/2016 3:42 PM, Jeong Dal wrote:

Dear Wolfgang,

  I’d like to ask one thing related with the itemize columns.

In my country, the items are listed from left to right first and then go down 
to the next line.
For example, to get the following output,

1. first2. second   3. third
4. fourth   5. fifth6. sixth

I use the code as below.

\starttext

\startitemize[n, columns,three, ]
\item first
\item second
\item third
\stopitemize

\startitemize[continue]
\item fourth
\item fifth
\item sixth
\stopitemize

\stoptext

Is there any simpler way to achieve this?


how is that supposed to work with multi-line items ?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] right to left direction for itemize columns

2016-02-22 Thread Jeong Dal
Dear Wolfgang,

 I’d like to ask one thing related with the itemize columns.

In my country, the items are listed from left to right first and then go down 
to the next line.
For example, to get the following output, 

1. first2. second   3. third
4. fourth   5. fifth6. sixth

I use the code as below.

\starttext

\startitemize[n, columns,three, ]
\item first
\item second
\item third
\stopitemize

\startitemize[continue]
\item fourth
\item fifth
\item sixth
\stopitemize

\stoptext

Is there any simpler way to achieve this?

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

Re: [NTG-context] right to left direction for itemize columns

2016-02-22 Thread Wolfgang Schuster

Bou Salim 
21. Februar 2016 um 13:26
I have posted  a question in tex stack exchange


  Customize right to left list in context
  


My aim is to obtain right to left  items arranged  in  multi-column, 
if I use

\startitemize[s,columns,three][margin=1em]
the result is three column where first column start from left side of 
page, but I want it to start from right side of page.


I can use \startcolumns[direction=left]\startitemize \item First \item 
Second \item Third \stopitemize \stopcolumns
but I think it look better if there is a key direction=left for 
the\startitemize environment such as used in columns environment.
The underlying columns mechanism has a reverse option for the direction 
key. I sent a patch to the dev list which allows a direst setting of the 
direction value with the \startitemize command.


\starttext

\startitemize[columns,three]
\dorecurse{9}{\item Entry \recurselevel}
\stopitemize

\blank[3*line]

\setupmixedcolumns[itemgroupcolumns][direction=reverse]

\startitemize[columns,three]
\dorecurse{9}{\item Entry \recurselevel}
\stopitemize

\stoptext

Wolfgang
___
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
___

[NTG-context] right to left direction for itemize columns

2016-02-22 Thread Bou Salim
I have posted  a question in tex stack exchangeCustomize right to left list
in context

My aim is to obtain right to left  items arranged  in  multi-column, if I
use
\startitemize [s,columns,three] [margin=1em]
the result is three column where first column start from left side of page,
but I want it to start from right side of page.

I can use \startcolumns[direction=left]\startitemize \item First \item
Second \item Third \stopitemize \stopcolumns
but I think it look better if there is a key direction=left for the
\startitemize environment such as used in columns environment.
___
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
___

[NTG-context] RTL columns for itemize

2016-01-20 Thread Mohammad Hossein Bateni
Hi,

Is there a way to typeset \startitemize with columns options, such that
columns go from right to left?  In the underlying structure
\startstopcolumns, there is an option "direction" which can be set to
"left" to achieve this.  I couldn't figure out how to do this within
\startitemize though.


\setupalign[r2l]
\starttext

Hello!

\startitemize[columns,three,packed,n]
\item One
\item Two
\item Three
\item Four
\item Five
\item Six
\item Seven
\stopitemize

\stoptext

The result looks like the following:

!olleH
   enO .1 ruoF .4 neveS .7
   owT .2 eviF .5
eerhT .3   xiS .6


How about \startcombination?  Can I use RTL ordering with that, too?  This
is less important than the above since the labels are usually set manually
and one can just use the visual ordering rather than the logical one.
 (That is, except one tries to get automatic numbering for the figures
inside the combination but that's not common at all.)

Best,
—MHB
___
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
___

[NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
The list spacing parameters (fit) is not right for numbered
itemizations when using the dejavu fonts.

MWE:

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n]
\dorecurse{10}{\startitem X\stopitem}
\stoptext


(switching to 100 items is even worse!)

Alan
___
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
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 11:14 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 The list spacing parameters (fit) is not right for numbered
 itemizations when using the dejavu fonts.
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)

You missed the \stopitemize after the last item.

Wolfgang
___
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
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 11:46:06 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

  MWE:
  
  \setupbodyfont [dejavu,10pt]
  \starttext
  \startitemize [n]
  \dorecurse{10}{\startitem X\stopitem}
  \stoptext
  
  (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.

Just in the email (and so-called MWE)
but not in the test (and my applications).

Adding the missing \stopitemize in the MWE above
does not change the problem.

Alan
___
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
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 11:46:06 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.
 
 Just in the email (and so-called MWE)
 but not in the test (and my applications).
 
 Adding the missing \stopitemize in the MWE above
 does not change the problem.

When I add \stopitemize to your example and use the fit option which is missing 
in your example
there are no problems in the output but you have to use the distance key to put 
a space between
the last item number and the content.

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
\dorecurse{100}{\startitem X\stopitem}
\stopitemize
\stoptext

Wolfgang
___
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
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 12:39:08 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
  Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
  
  On Tue, 7 Apr 2015 11:46:06 +0200
  Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
  
  MWE:
  
  \setupbodyfont [dejavu,10pt]
  \starttext
  \startitemize [n]
  \dorecurse{10}{\startitem X\stopitem}
  \stoptext
  
  (switching to 100 items is even worse!)  
  
  You missed the \stopitemize after the last item.
  
  Just in the email (and so-called MWE)
  but not in the test (and my applications).
  
  Adding the missing \stopitemize in the MWE above
  does not change the problem.
 
 When I add \stopitemize to your example and use the fit option which
 is missing in your example there are no problems in the output but
 you have to use the distance key to put a space between the last item
 number and the content.
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
 \dorecurse{100}{\startitem X\stopitem}
 \stopitemize
 \stoptext

fit is without effect,
so it is distance= that does not have a reasonable default.

Other fonts are not so bad, but dejavu (which is a bit larger)
looks really bad, by default.

Ala
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 13:31 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 12:39:08 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com 
 mailto:schuster.wolfg...@gmail.com wrote:
 
 
 Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 11:46:06 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.
 
 Just in the email (and so-called MWE)
 but not in the test (and my applications).
 
 Adding the missing \stopitemize in the MWE above
 does not change the problem.
 
 When I add \stopitemize to your example and use the fit option which
 is missing in your example there are no problems in the output but
 you have to use the distance key to put a space between the last item
 number and the content.
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
 \dorecurse{100}{\startitem X\stopitem}
 \stopitemize
 \stoptext
 
 fit is without effect,
 so it is distance= that does not have a reasonable default.
 
 Other fonts are not so bad, but dejavu (which is a bit larger)
 looks really bad, by default.

Can you show your output from the example and tell what you expect from the fit 
option.

Wolfgang___
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
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 13:37:54 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Can you show your output from the example and tell what you expect
 from the fit option.

For example:

\setupbodyfont [scola,10pt]
\startitemize [n]
...

yields a reasonable output:
10. X

\setupbodyfont [dejavu,10pt]
\startitemize [n]
...

the output is ugly:
10.X
where the period and the X almost touch.

AND if one goes to 100 items, then result is
100.X
where the 0 and the X overlap
(the period is in the right foot of the X).

Using the scola font, the result with 100 is similar to the result with
10 in dejavu, so going to a fourth digit would be just as horrible as
with three digits and dejavu.

\setupbodyfont [whatever]
\startitemize[n,fit]
yields
10.X
with no spacing in all fonts, and this is pretty ugly unless one also
specifies [distance=\spaceamount]. Perhaps this correct (with
distance=, by default) as fit should then fit with no spacing.

HOWEVER,
\startitemize [n]
with no other options should simply work correctly out of the box for
all fonts and not give such horrible results.

I understand now: the default is a fixed offset to the list body that
works OK for small itemizations (i.e. one digit) with most fonts and
more-or-less well with two digits, but not with dejavu. Choosing the
option fit and setting a distance gives a reasonable result, so we
cannot call this a bug, but the result by default is rather surprising.
Notice that \startitemize[R] works poorly with even less than 10 items.

May I suggest that the default spacing (i.e. the list setup) that is
used be enlarged a little bit, as two digit numbered itemizations are
not rare and dejavu is such a useful font. Indeed, this is obtained
with the option broad. Indeed, in the manual, broad (and
2*broad) is used in such examples. Perhaps the fixed spacing that is
presently tuned works well with simple symbol item lists and passably
with single digit numbered lists, which probably explains why this is
the default. Also, I suppose that there is some aesthetic value in
having item lists take a fixed, uniform distance by default in a
document which is why fit is not a default option. Thus, a design
choice (or compromise).

Moral: read the manual!

Alan
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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
___

Re: [NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-23 Thread Fabrice


Hi Wolfgang,
Thank you for these three solutions. One thing I'm missing is the role 
of grid  I did not know.

Fabrice
___
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
___

Re: [NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Wolfgang Schuster

 Am 22.03.2015 um 13:10 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:
 
 The alignment of the second item on the baseline is not correct if I use the 
 command \dfrac{}{}.
 How to solve this problem without using the command \framed ?
 Best regards,
 Fabrice
 
 \starttext
 \startitemize[columns,A,joinedup,three][stopper={)},style=bold]
 \item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
 \item  $f^{\prime}(x) = 1$
 \item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
 \stopitemize
 \stoptext

1. You change your formulas.

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold,grid=line]
\item  $f^{\prime}(x) = - 1 / (x + 1)^2$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = 1 / (x + 1)$
\stopitemize
\stoptext


2. You enable grid snapping for the columns in the itemize environment with the 
grid key.

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold,grid=line]
\item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
\stopitemize
\stoptext


3. You increase the line height for the columns in the itemize environment.

\setupmixedcolumns[itemgroupcolumns][before={\setupinterlinespace[big]}]

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold]
\item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
\stopitemize
\stoptext

Wolfgang
___
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
___

[NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Fabrice Couvreur
The alignment of the second item on the baseline is not correct if I use the
command \dfrac{}{}.
How to solve this problem without using the command \framed ?
Best regards,
Fabrice

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold]
\item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
\stopitemize
\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
___

Re: [NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Norbert Melzer
2015-03-21 14:33 GMT+01:00 Mikael P. Sundqvist mic...@gmail.com:

\startitemize[columns]
   \item a
   \item b
   \item c
   \item d
   \item e
   \item f
 \stopitemize
 \stoptext


This one works. Thank you!

 Is there a way to have other column count than 2?
___
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
___

Re: [NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Mikael P. Sundqvist
On Sat, Mar 21, 2015 at 2:54 PM, Norbert Melzer timmel...@gmail.com wrote:
 This one works. Thank you!

  Is there a way to have other column count than 2?

\startitemize[columns,three]

seems to give three columns.

/Mikael
___
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
___

[NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Norbert Melzer
The MWE at the end of this mail typesets something like this:

* a  * e
* b  * f
* c
* d

But I'd expect something like this:

* a  * d
* b  * e
* c  * f

How can I get expected output?

```tex
\starttext
  \startcolumns[n=2]
\startitemize
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
  \stopcolumns
\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
___

Re: [NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Mikael P. Sundqvist
On Sat, Mar 21, 2015 at 1:38 PM, Norbert Melzer timmel...@gmail.com wrote:
   \startcolumns[n=2]
 \startitemize
   \item a
   \item b
   \item c
   \item d
   \item e
   \item f
 \stopitemize
   \stopcolumns


Try

\starttext
  \startcolumns[n=2]
\startitemize
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
  \stopcolumns

   \startitemize[columns]
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
\stoptext

/Mikael
___
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
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-19 Thread Keith Schultz
Hi Hans,

I have been playing with the on using LaTeX and later LuaLaTeX
for create epub or ebook. Though I have not got around to.


The idea was to set enviorments, macros and commands that would depending
on a switch that would output the need HTML and epub structure or
call the normal *TeX ones.

In ConTeXt maybe the mode-system could be used.
Like I said I have not investigated deeply, yet.

regards
Keith.
 
 Am 18.02.2015 um 17:54 schrieb Hans Hagen pra...@wxs.nl:
 
 On 2/17/2015 10:01 PM, Keith Schultz wrote:
 
 
 Context outputs three varants: regular xml, xhtml, and stupified xhtml
 with div/class tagging. The last one is supposed to work on all
 devices as it doesn't demands anything beyond css.
 If that is the case it is not very useful for a decent workflow. There
 would be to much to
 tweak to make good looking output.
 
 i'm not sure what you have in mind but context is a typesetting system and as 
 such cannot produce an epub simply because epub is a blob of xml (html) with 
 a css packages in a zip
 

___
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
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Henning Hraban Ramm

Am 2015-02-18 um 04:37 schrieb Aditya Mahajan adit...@umich.edu:

 On Tue, 17 Feb 2015, Hans Hagen wrote:
 
 Context outputs three varants: regular xml, xhtml, and stupified xhtml with 
 div/class tagging. The last one is supposed to work on all devices as it 
 doesn't demands anything beyond css.
 
 The XML generated by ConTeXt is very well structured. So, an option is to 
 simply provide XLST stylesheets that transform ConTeXT-XML to 
 XHTML/HTML5/whatever.
 
 Such XLST transformation will be better than have ConTeXt chase a moving 
 target.

See e.g. http://wiki.contextgarden.net/Epub_Sample

I’ll try to update the pages about ConTeXt’s current export soon, since I have 
a new book in the pipeline.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Hans Hagen

On 2/17/2015 10:01 PM, Keith Schultz wrote:



Am 17.02.2015 um 21:16 schrieb Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl:

On 2/17/2015 8:24 AM, Keith J. Schultz wrote:

Hi Axel, All,



[snip, snip]

IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
Yes, yes, I know XHMTL is part of HMTL5.


And html 5 is just html with some extras (and assuming javascript i
guess) ... marketing.

The html 5 standard is far more. For one is makes flash, java and more
obsolete. Far more than a marketing gag!


well, if javascript is used instead it's still fluent ... every time i 
played with e.g. jquery or libraries i had to make sure i used the 
latest and had to adapt code .. there will be something new (and maybe 
even different) every decade (if only because that generates money)



Another question for me is if ConTeXt should also output code for
the iBooks epub format, (Basicaly epub, but some extras).


Isn't a book supposed to be independent and kind of portable + long
term visible? So no way that a context epub will be specific for a
device. (I probably can't even get it on / test it on my outdated ipad
1 anyway.)

I was thinking more along the line of the spine.


ah, direct neural injection ...


There are thing you can do in/with ConTeXt that would work with iBooks
that do not in „ordinary“ epub books.

Then, there is the Kindle format one might want to consider!


Another lock-in device.


Another, question which needs investigation is if the ConTeXt output for
epub,
also, implementing the fallbacks for missing features which is required?


Context outputs three varants: regular xml, xhtml, and stupified xhtml
with div/class tagging. The last one is supposed to work on all
devices as it doesn't demands anything beyond css.

If that is the case it is not very useful for a decent workflow. There
would be to much to
tweak to make good looking output.


i'm not sure what you have in mind but context is a typesetting system 
and as such cannot produce an epub simply because epub is a blob of xml 
(html) with a css packages in a zip



I have not investigated how it handles dimensions, widths, font sizes,
spacing, etc.


structure normally doesn't carry that information


These are important in order to create output that adjust proper to the
 devices capabilities.
One should avoid absolute values.


there are hardly any values output ... but one can of course extend the 
css with font and color directives, probably different from the ones 
used in the pdf



Of course if we want to emulate the printed output then we could simply
create a pdf or very page as pdf and put in an epub wrapper.


i've seen impressive examples of pdf turned html (huge html files btw)

(fyi: i see pdf and html as independent things)

(and i don't believe in reflow of pdf: it's either a design for made up 
pages or a flexible adaptive one as in html; and till now i never wished 
a paper book to reflow itself anyway but maybe if i really would use an 
epub device ... who knows ... i don't own ebooks currently as i cannot 
share docs freely then like i share books and i consider ebooks to be 
way too expensive for fun)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Hans Hagen

On 2/17/2015 11:37 PM, Aditya Mahajan wrote:

On Tue, 17 Feb 2015, Hans Hagen wrote:


Context outputs three varants: regular xml, xhtml, and stupified xhtml
with div/class tagging. The last one is supposed to work on all
devices as it doesn't demands anything beyond css.


The XML generated by ConTeXt is very well structured. So, an option is
to simply provide XLST stylesheets that transform ConTeXT-XML to
XHTML/HTML5/whatever.

Such XLST transformation will be better than have ConTeXt chase a moving
target.


indeed, and the context wiki can provide useful examples

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Keith J. Schultz
Hi Hraban,

Good to know. I will investigate at another time and give feed back.
I am in the middle of moving, so I do not have much time.

We ought to think of making a export specific to epub in the long run!
 
regards
Keith.
 Am 18.02.2015 um 09:14 schrieb Henning Hraban Ramm te...@fiee.net:
 
 
 Am 2015-02-18 um 04:37 schrieb Aditya Mahajan adit...@umich.edu:
 
 On Tue, 17 Feb 2015, Hans Hagen wrote:
 
 Context outputs three varants: regular xml, xhtml, and stupified xhtml with 
 div/class tagging. The last one is supposed to work on all devices as it 
 doesn't demands anything beyond css.
 
 The XML generated by ConTeXt is very well structured. So, an option is to 
 simply provide XLST stylesheets that transform ConTeXT-XML to 
 XHTML/HTML5/whatever.
 
 Such XLST transformation will be better than have ConTeXt chase a moving 
 target.
 
 See e.g. http://wiki.contextgarden.net/Epub_Sample
 
 I’ll try to update the pages about ConTeXt’s current export soon, since I 
 have a new book in the pipeline.
 
 Greetlings, Hraban
 ---
 http://www.fiee.net
 http://wiki.contextgarden.net
 https://www.cacert.org (I'm an assurer)
 
 ___
 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
 ___

___
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
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Henning Hraban Ramm

Am 2015-02-18 um 20:10 schrieb Keith J. Schultz keithjschu...@web.de:

 Hi Hraban,
 
 Good to know. I will investigate at another time and give feed back.
 I am in the middle of moving, so I do not have much time.
 
 We ought to think of making a export specific to epub in the long run!

For me, the regular export XML plus XSL conversion is the way to go; the „HTML“ 
is rather unusable.
The epub script is nice and all, it was important for me to get me running, but 
I guess I won’t use it in my final workflow.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-18 Thread Hans Hagen

On 2/18/2015 3:10 PM, Keith J. Schultz wrote:

Hi Hraban,

Good to know. I will investigate at another time and give feed back.
I am in the middle of moving, so I do not have much time.

We ought to think of making a export specific to epub in the long run!


The export is not really geared at that, as it's a representation of the 
rendering (although structured). The additional html output can be used 
for previewing and to what extend it's okay depends on the intended use.


Normally one starts from a neutral source (xml or tex) and then produces 
different output. So, for specific epub (or whatever) one can either 
start with the original code (xml) or manipulate what comes out of the 
export. The export is kind of standard so one can build all kind of 
scripts to convert it. There is no universal epub (rendering) solution, 
just as there is no universal pdf layout.


Of course the idea is that the default export is good enough for simple 
documents. What more gets provided depends on needs (and currently at 
least I have no need for epub other than a dedicated pdf suitable for 
displays).


Hans



regards
Keith.

Am 18.02.2015 um 09:14 schrieb Henning Hraban Ramm te...@fiee.net:


Am 2015-02-18 um 04:37 schrieb Aditya Mahajan adit...@umich.edu:


On Tue, 17 Feb 2015, Hans Hagen wrote:


Context outputs three varants: regular xml, xhtml, and stupified xhtml with 
div/class tagging. The last one is supposed to work on all devices as it 
doesn't demands anything beyond css.


The XML generated by ConTeXt is very well structured. So, an option is to 
simply provide XLST stylesheets that transform ConTeXT-XML to 
XHTML/HTML5/whatever.

Such XLST transformation will be better than have ConTeXt chase a moving target.


See e.g. http://wiki.contextgarden.net/Epub_Sample

I’ll try to update the pages about ConTeXt’s current export soon, since I have 
a new book in the pipeline.

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___


___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Hans Hagen

On 2/17/2015 8:24 AM, Keith J. Schultz wrote:

Hi Axel, All,

You have mentioned that most current ebook readers can not display MathML.

Well, the problem lies in the epub guidelines for the readers.

The problem is even worse. many readers do not even implement the full HTML5
standard. though that is the standard used in the latest epub stadnard.
The fact is to be considered epub readers the do not have to, it is a
problem
of the epub reader definition.

The problem is what should ConTeXt output?
Should it output code that implements according to the full epub standard
OR JUST
what is handled by most epub readers!

IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
Yes, yes, I know XHMTL is part of HMTL5.


And html 5 is just html with some extras (and assuming javascript i 
guess) ... marketing.



Another question for me is if ConTeXt should also output code for
the iBooks epub format, (Basicaly epub, but some extras).


Isn't a book supposed to be independent and kind of portable + long term 
visible? So no way that a context epub will be specific for a device. (I 
probably can't even get it on / test it on my outdated ipad 1 anyway.)



There are thing you can do in/with ConTeXt that would work with iBooks
that do not in „ordinary“ epub books.

Then, there is the Kindle format one might want to consider!


Another lock-in device.


Another, question which needs investigation is if the ConTeXt output for
epub,
also, implementing the fallbacks for missing features which is required?


Context outputs three varants: regular xml, xhtml, and stupified xhtml 
with div/class tagging. The last one is supposed to work on all devices 
as it doesn't demands anything beyond css.



Just some added thoughts.

Basically, you can only expect ConTeXts epub output to be a starting
point that
then has to be tweak.


Indeed, as it's all xml one can process it into something 'better'. 
There is no way we can adapt to every change in specs, so the best we 
can do is something generic.


Hans


regards
Keith.


Am 17.02.2015 um 07:11 schrieb Axel Kielhorn t...@axelkielhorn.de
mailto:t...@axelkielhorn.de:

[...]
Yes I know.
Let me rephrase the question:

Should the symbols used in epub be identical to those used in the pdf
or should the css determine the look of the symbols?
Especially when one considers that most current ebook readers can't
display MathML.

Even if I substitute the Symbols:

\definesymbol[uni1][•]
\definesymbol[uni2][–]
\definesymbol[uni3][*]
\definesymbol[uni4][·]

\setupitemgroup [itemize] [1] [symbol=uni1]
\setupitemgroup [itemize] [2] [symbol=uni2]
\setupitemgroup [itemize] [3] [symbol=uni3]
\setupitemgroup [itemize] [4] [symbol=uni4]

I get a result that neither ADE nor Calibre interprets as a list.
(Wrapping it in ul /ul doesn't help.)





___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Keith Schultz

 Am 17.02.2015 um 21:16 schrieb Hans Hagen pra...@wxs.nl:
 
 On 2/17/2015 8:24 AM, Keith J. Schultz wrote:
 Hi Axel, All,
 
 
[snip, snip]
 IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
 Yes, yes, I know XHMTL is part of HMTL5.
 
 And html 5 is just html with some extras (and assuming javascript i guess) 
 ... marketing.
The html 5 standard is far more. For one is makes flash, java and more 
obsolete. Far more than a marketing gag! 
 
 Another question for me is if ConTeXt should also output code for
 the iBooks epub format, (Basicaly epub, but some extras).
 
 Isn't a book supposed to be independent and kind of portable + long term 
 visible? So no way that a context epub will be specific for a device. (I 
 probably can't even get it on / test it on my outdated ipad 1 anyway.)
I was thinking more along the line of the spine.
 
 There are thing you can do in/with ConTeXt that would work with iBooks
 that do not in „ordinary“ epub books.
 
 Then, there is the Kindle format one might want to consider!
 
 Another lock-in device.
 
 Another, question which needs investigation is if the ConTeXt output for
 epub,
 also, implementing the fallbacks for missing features which is required?
 
 Context outputs three varants: regular xml, xhtml, and stupified xhtml with 
 div/class tagging. The last one is supposed to work on all devices as it 
 doesn't demands anything beyond css.
If that is the case it is not very useful for a decent workflow. There 
would be to much to
tweak to make good looking output.

I have not investigated how it handles dimensions, widths, font sizes, 
spacing, etc.
These are important in order to create output that adjust proper to the
devices capabilities. 
One should avoid absolute values.

Of course if we want to emulate the printed output then we could simply
create a pdf or very page as pdf and put in an epub wrapper.


Not asking for anything, just mentioning it.

reagrds
Keith.

___
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
___

Re: [NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-17 Thread Aditya Mahajan

On Tue, 17 Feb 2015, Hans Hagen wrote:

Context outputs three varants: regular xml, xhtml, and stupified xhtml 
with div/class tagging. The last one is supposed to work on all devices 
as it doesn't demands anything beyond css.


The XML generated by ConTeXt is very well structured. So, an option is to 
simply provide XLST stylesheets that transform ConTeXT-XML to 
XHTML/HTML5/whatever.


Such XLST transformation will be better than have ConTeXt chase a moving 
target.


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
___

[NTG-context] Context to epub: itemize

2015-02-16 Thread Axel Kielhorn
Hi,

I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
environment to work.

I follow http://wiki.contextgarden.net/ePub and get the structure described but 
when I look into the xhtml, there is no itemize environment. (At least no with 
Safari, Firefox or Calibre.) When use vi I see something that looks like my 
items in a very complex form.

I was expecting something like

ul
  li   /li
  li   /li
/ul

but i see

div class=itemgroup itemize level-1 symbol-1
  div class=item
div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
div class=itemcontentListenpunkt 1/div
  /div
  div class=item
div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
div class=itemcontentListenpunkt 2 
  div class=itemgroup itemize level-2 symbol-2
  div class=item
  div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
div class=itemcontentListenpunkt 2.1/div/div 
div class=item
div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
div class=itemcontentListenpunkt 2.2/div/div/div/div
/div

Shouldn't the itemtag definition come from the default.css instead of using 
MathML?

itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; }

I’m using: mtx-context | current version: 2015.02.03 23:55

and

context --script epub --make epub_mwe

to create the epub.

Axel



epub_mwe.tex
Description: Binary data



___
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
___

Re: [NTG-context] Context to epub: itemize

2015-02-16 Thread Hans Hagen

On 2/16/2015 5:17 PM, Axel Kielhorn wrote:

Hi,

I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
environment to work.

I follow http://wiki.contextgarden.net/ePub and get the structure described but 
when I look into the xhtml, there is no itemize environment. (At least no with 
Safari, Firefox or Calibre.) When use vi I see something that looks like my 
items in a very complex form.

I was expecting something like

ul
   li   /li
   li   /li
/ul

but i see

div class=itemgroup itemize level-1 symbol-1
   div class=item
 div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
 div class=itemcontentListenpunkt 1/div
   /div
   div class=item
 div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
 div class=itemcontentListenpunkt 2
   div class=itemgroup itemize level-2 symbol-2
   div class=item
   div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
 div class=itemcontentListenpunkt 2.1/div/div
 div class=item
 div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
 div class=itemcontentListenpunkt 2.2/div/div/div/div
 /div

Shouldn't the itemtag definition come from the default.css instead of using 
MathML?

itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; }

I’m using: mtx-context | current version: 2015.02.03 23:55

and

context --script epub --make epub_mwe

to create the epub.


the bullets come from math fonts (currently, awaiting additional symbols 
in the text fonts)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Epub format Was: Re: Context to epub: itemize

2015-02-16 Thread Keith J. Schultz
Hi Axel, All,

You have mentioned that most current ebook readers can not display MathML.

Well, the problem lies in the epub guidelines for the readers.

The problem is even worse. many readers do not even implement the full HTML5
standard. though that is the standard used in the latest epub stadnard.
The fact is to be considered epub readers the do not have to, it is a problem
of the epub reader definition.

The problem is what should ConTeXt output?
Should it output code that implements according to the full epub standard 
OR JUST 
what is handled by most epub readers!

IMHO : ConTeXt should not output XHMTL for epub, but HMTL5.
Yes, yes, I know XHMTL is part of HMTL5.

Another question for me is if ConTeXt should also output code for
the iBooks epub format, (Basicaly epub, but some extras).
There are thing you can do in/with ConTeXt that would work with iBooks
that do not in „ordinary“ epub books.

Then, there is the Kindle format one might want to consider!

Another, question which needs investigation is if the ConTeXt output for epub,
also, implementing the fallbacks for missing features which is required?

Just some added thoughts.

Basically, you can only expect ConTeXts epub output to be a starting point that
then has to be tweak.

regards
Keith.

 Am 17.02.2015 um 07:11 schrieb Axel Kielhorn t...@axelkielhorn.de:
 
 [...]
 Yes I know.
 Let me rephrase the question:
 
 Should the symbols used in epub be identical to those used in the pdf or 
 should the css determine the look of the symbols?
 Especially when one considers that most current ebook readers can't display 
 MathML.
 
 Even if I substitute the Symbols:
 
 \definesymbol[uni1][•]
 \definesymbol[uni2][–]
 \definesymbol[uni3][*]
 \definesymbol[uni4][·]
 
 \setupitemgroup [itemize] [1] [symbol=uni1]
 \setupitemgroup [itemize] [2] [symbol=uni2]
 \setupitemgroup [itemize] [3] [symbol=uni3]
 \setupitemgroup [itemize] [4] [symbol=uni4]
 
 I get a result that neither ADE nor Calibre interprets as a list.
 (Wrapping it in ul /ul doesn't help.) 
 

___
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
___

Re: [NTG-context] Context to epub: itemize

2015-02-16 Thread Axel Kielhorn

Am 16.02.2015 um 19:55 schrieb Hans Hagen pra...@wxs.nl:

 On 2/16/2015 5:17 PM, Axel Kielhorn wrote:
 Hi,
 
 I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
 environment to work.
 
 I follow http://wiki.contextgarden.net/ePub and get the structure described 
 but when I look into the xhtml, there is no itemize environment. (At least 
 no with Safari, Firefox or Calibre.) When use vi I see something that looks 
 like my items in a very complex form.
 
 I was expecting something like
 
 ul
   li   /li
   li   /li
 /ul
 
 but i see
 
 div class=itemgroup itemize level-1 symbol-1
   div class=item
 div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
 div class=itemcontentListenpunkt 1/div
   /div
   div class=item
 div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
 div class=itemcontentListenpunkt 2
   div class=itemgroup itemize level-2 symbol-2
   div class=item
   div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
 div class=itemcontentListenpunkt 2.1/div/div
 div class=item
 div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
 div class=itemcontentListenpunkt 2.2/div/div/div/div
 /div
 
 Shouldn't the itemtag definition come from the default.css instead of using 
 MathML?
 
 itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; }
 
 I’m using: mtx-context | current version: 2015.02.03 23:55
 
 and
 
 context --script epub --make epub_mwe
 
 to create the epub.
 
 the bullets come from math fonts (currently, awaiting additional symbols in 
 the text fonts)


Yes I know.
Let me rephrase the question:

Should the symbols used in epub be identical to those used in the pdf or should 
the css determine the look of the symbols?
Especially when one considers that most current ebook readers can't display 
MathML.

Even if I substitute the Symbols:

\definesymbol[uni1][•]
\definesymbol[uni2][–]
\definesymbol[uni3][*]
\definesymbol[uni4][·]

\setupitemgroup [itemize] [1] [symbol=uni1]
\setupitemgroup [itemize] [2] [symbol=uni2]
\setupitemgroup [itemize] [3] [symbol=uni3]
\setupitemgroup [itemize] [4] [symbol=uni4]

I get a result that neither ADE nor Calibre interprets as a list.
(Wrapping it in ul /ul doesn't help.) 

Axel

___
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
___

Re: [NTG-context] Strange behavior with itemize

2014-12-07 Thread Otared Kavian
Hi,

The output is correct here: 
ConTeXt  ver: 2014.12.03 18:26 MKIV beta  fmt: 2014.12.4  int: 
english/english

Maybe you should update your ConTeXt installation.
Best regards: OK



itemize-subitems.pdf
Description: Adobe PDF document


 On 06 Dec 2014, at 23:10, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi,
 Why the first two items are not there ?
 Best regards,
 Fabrice
 
 \starttext
 \startitemize[n][stopper={.},style=bold]
 \item \startitemize[a][stopper={.},style=bold]
 \item Étudier le signe de $B^{\prime}(x)$ sur l'intervalle 
 $\left[0\,;40\right]$.
 \item Dresser le tableau de variation de la fonction $B$ sur l'intervalle 
 $\left[0\,;40\right]$.
 \item En déduire combien de matelas l'entreprise doit produire et vendre 
 chaque jour pour que le bénéfice réalisé soit maximal. Que vaut alors ce 
 bénéfice maximal ? 
 \item Expliquer comment retrouver graphiquement ce résultat. Faire apparaître 
 les traits de constructions utiles à la lecture graphique.
 \stopitemize
 \stopitemize
 \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
 ___

___
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
___

Re: [NTG-context] Strange behavior with itemize

2014-12-07 Thread Pablo Rodriguez
On 12/06/2014 11:10 PM, Fabrice Couvreur wrote:
 Hi,
 Why the first two items are not there?

Hi Fabrice,

output is fine with beta from 2014.12.06 14:20.(latest beta), with beta
from 2013.05.28 00:36 (the one that came with TeX Live 2013), with beta
from 2014.01.03 00:40 (latest stable [AFAIK]), and betas from 2014.03.07
11:42 and 2014.07.14 19:25 (two random ones I kept).

Output is wrong with beta from 2014.11.26 21:43. (I don’t have other
betas available.)

As Otared suggested, updating your ConTeXt Suite will solve the issue.

I hope it helps,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Strange behavior with itemize

2014-12-07 Thread Fabrice

Hi,
I updated it works perfectly.
thank you,
Fabrice
___
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
___

[NTG-context] Strange behavior with itemize

2014-12-06 Thread Fabrice Couvreur
 Hi,
Why the first two items are not there ?
Best regards,
Fabrice

\starttext
\startitemize[n][stopper={.},style=bold]
\item \startitemize[a][stopper={.},style=bold]
\item Étudier le signe de $B^{\prime}(x)$ sur l'intervalle
$\left[0\,;40\right]$.
\item Dresser le tableau de variation de la fonction $B$ sur l'intervalle
$\left[0\,;40\right]$.
\item En déduire combien de matelas l'entreprise doit produire et vendre
chaque jour pour que le bénéfice réalisé soit maximal. Que vaut alors ce
bénéfice maximal ?
\item Expliquer comment retrouver graphiquement ce résultat. Faire
apparaître les traits de constructions utiles à la lecture graphique.
\stopitemize
\stopitemize
\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
___

Re: [NTG-context] nested itemize

2014-11-30 Thread Otared Kavian
On 29 Nov 2014, at 11:43, Mikael P. Sundqvist mic...@gmail.com wrote:
 
 On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen pra...@wxs.nl wrote:
 […]
 a bug indeed ... very nasty code (kind of fight between mechanisms deep down
 in luatex) ... i'll try to fix it
 […]
 
 Thank you, I hope it is fixable :)
 
 To Otared: Thank you also for replying. Your code indeed compiles, but
 the nested itemize starts on a new line, i.e.
 
 1
   a
 
 instead of
 
 1 a
 
 as expected.
 
 /Mikael


Hi Mikael,

I didn’t know it were possible to have a nested itemize producing something 
like:

%% begin expected example
1.a: bla-bla, bla-bla

1.b: bla-bla, bla-bla

1.c: bla-bla, bla-bla

2.a: bla-bla, bla-bla

2.b: bla-bla, bla-bla
%% end expected example

How this would be achieved with nested itemization?

Best regards: OK___
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
___

Re: [NTG-context] nested itemize

2014-11-30 Thread Otared Kavian

 On 29 Nov 2014, at 11:43, Mikael P. Sundqvist mic...@gmail.com wrote:
 […]
 
 To Otared: Thank you also for replying. Your code indeed compiles, but
 the nested itemize starts on a new line, i.e.
 
 1
   a
 
 instead of
 
 1 a
 
 as expected.
 
 /Mikael

Hi again, answering partly to myself, I found the following example (which, as 
you may guess, was given somtime ago by… Wolfgang S.…), where one can construct 
itemizations with different levels of subitems: however it doesn’t give exactly 
what you suggest.

%%% begin subitems.tex
\setupitemgroup[itemize][1][n,repeat][width=1em]
\setupitemgroup[itemize][2][a,repeat][width=2em]
\setupitemgroup[itemize][3][n]   [width=3em]

\starttext

\startitemize
\item Item one
\startitemize
\item subitem one of item one
\startitemize
\item sub-subitem one of subitem one
\item sub-subitem two of subitem one
\stopitemize
\item subitem two of item one
\startitemize
\item sub-subitem one of subitem two
\item sub-subitem two of subitem two
\stopitemize
\stopitemize
\item Item two
\startitemize
\item subitem one of item two
\startitemize
\item sub-subitem one of subitem one
\item sub-subitem two of subitem one
\stopitemize
\stopitemize
\stopitemize

\stoptext 
%%% end subitems.tex
___
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
___

Re: [NTG-context] nested itemize

2014-11-30 Thread Mikael P. Sundqvist
On Sun, Nov 30, 2014 at 9:58 PM, Otared Kavian ota...@gmail.com wrote:

 On 29 Nov 2014, at 11:43, Mikael P. Sundqvist mic...@gmail.com wrote:
 […]

 To Otared: Thank you also for replying. Your code indeed compiles, but
 the nested itemize starts on a new line, i.e.

 1
   a

 instead of

 1 a

 as expected.

 /Mikael

 Hi again, answering partly to myself, I found the following example (which, 
 as you may guess, was given somtime ago by… Wolfgang S.…), where one can 
 construct itemizations with different levels of subitems: however it doesn’t 
 give exactly what you suggest.

 %%% begin subitems.tex
 \setupitemgroup[itemize][1][n,repeat][width=1em]
 \setupitemgroup[itemize][2][a,repeat][width=2em]
 \setupitemgroup[itemize][3][n]   [width=3em]

 \starttext

 \startitemize
 \item Item one
 \startitemize
 \item subitem one of item one
 \startitemize
 \item sub-subitem one of subitem one
 \item sub-subitem two of subitem one
 \stopitemize
 \item subitem two of item one
 \startitemize
 \item sub-subitem one of subitem two
 \item sub-subitem two of subitem two
 \stopitemize
 \stopitemize
 \item Item two
 \startitemize
 \item subitem one of item two
 \startitemize
 \item sub-subitem one of subitem one
 \item sub-subitem two of subitem one
 \stopitemize
 \stopitemize
 \stopitemize

 \stoptext
 %%% end subitems.tex
 ___
 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
 ___


Thank you Otared. Just for clarification, I don't want
%% begin expected example
1.a: bla-bla, bla-bla

1.b: bla-bla, bla-bla

1.c: bla-bla, bla-bla

2.a: bla-bla, bla-bla

2.b: bla-bla, bla-bla
%% end expected example
but
%% begin expected example
1.a: bla-bla, bla-bla

  b: bla-bla, bla-bla

  c: bla-bla, bla-bla

2.a: bla-bla, bla-bla

  b: bla-bla, bla-bla
%% end expected example
and the problem is that the nested items a. fall one line below the
figure on the previous level. I think Hans works on it(?).

Best regards, Mikael

PS At work I have ConTeXt  ver: 2014.11.04 11:02 MKIV beta  fmt:
2014.11.4  int: english/english, and the bug is not present there.
___
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
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Otared Kavian
Hi Mickael,

If you put a blank line after \item, or an empty grouping everything works 
fine. I think the reason for the behavior may be that \item expects something  
after you invok eit and it doesn’t know what to do with the scond \startitemize.

%%% begin example
\starttext
\startitemize[n]
\item {}
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize

\startitemize[n]
\item

\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize
\stoptext
%%% end example

Best regards: OK

 On 28 Nov 2014, at 19:01, Mikael P. Sundqvist mic...@gmail.com wrote:
 
 The following code (using latest minimals)
 
 \starttext
 \startitemize[n]
 \item FOO
 \startitemize[a]
 \item Hello
 \item Good bye
 \stopitemize
 \stopitemize
 
 \startitemize[n]
 \item
 \startitemize[a]
 \item Hello
 \item Good bye
 \stopitemize
 \stopitemize
 \stoptext
 
 gives the attached pdf file, i.e. the second nested list is cut. Has
 something changed (I've been able to use nested lists before without
 having to use FOO or something inbetwen (as in the first example)? I
 tried to reinstall, but the same problem appeared again.
 
 Best regards, Mikael
 listor.pdflistor.log___
 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
 ___

___
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
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Hans Hagen

On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:

The following code (using latest minimals)

\starttext
\startitemize[n]
\item FOO
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize

\startitemize[n]
\item
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize
\stoptext

gives the attached pdf file, i.e. the second nested list is cut. Has
something changed (I've been able to use nested lists before without
having to use FOO or something inbetwen (as in the first example)? I
tried to reinstall, but the same problem appeared again.


a bug indeed ... very nasty code (kind of fight between mechanisms deep 
down in luatex) ... i'll try to fix it



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Mikael P. Sundqvist
On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen pra...@wxs.nl wrote:
 On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:

 The following code (using latest minimals)

 \starttext
 \startitemize[n]
 \item FOO
 \startitemize[a]
 \item Hello
 \item Good bye
 \stopitemize
 \stopitemize

 \startitemize[n]
 \item
 \startitemize[a]
 \item Hello
 \item Good bye
 \stopitemize
 \stopitemize
 \stoptext

 gives the attached pdf file, i.e. the second nested list is cut. Has
 something changed (I've been able to use nested lists before without
 having to use FOO or something inbetwen (as in the first example)? I
 tried to reinstall, but the same problem appeared again.


 a bug indeed ... very nasty code (kind of fight between mechanisms deep down
 in luatex) ... i'll try to fix it


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

Thank you, I hope it is fixable :)

To Otared: Thank you also for replying. Your code indeed compiles, but
the nested itemize starts on a new line, i.e.

1
   a

instead of

1 a

as expected.

/Mikael
___
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
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Hans Hagen

On 11/29/2014 11:43 AM, Mikael P. Sundqvist wrote:

On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen pra...@wxs.nl wrote:

On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:


The following code (using latest minimals)

\starttext
\startitemize[n]
\item FOO
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize

\startitemize[n]
\item
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize
\stoptext

gives the attached pdf file, i.e. the second nested list is cut. Has
something changed (I've been able to use nested lists before without
having to use FOO or something inbetwen (as in the first example)? I
tried to reinstall, but the same problem appeared again.



a bug indeed ... very nasty code (kind of fight between mechanisms deep down
in luatex) ... i'll try to fix it


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Thank you, I hope it is fixable :)


lots of trial and error .. it should work ok for non standard 
lineheights too





--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] nested itemize

2014-11-28 Thread Mikael P. Sundqvist
The following code (using latest minimals)

\starttext
\startitemize[n]
\item FOO
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize

\startitemize[n]
\item
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize
\stoptext

gives the attached pdf file, i.e. the second nested list is cut. Has
something changed (I've been able to use nested lists before without
having to use FOO or something inbetwen (as in the first example)? I
tried to reinstall, but the same problem appeared again.

Best regards, Mikael


listor.pdf
Description: Adobe PDF document
open source  1  1  /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.11.26 21:43 MKIV beta  fmt: 2014.11.28  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
close source 2  2  /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv

system   files  jobname 'listor', input './listor', result 'listor'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  /home/mickep/tmp/listor.tex
fontspreloading latin modern fonts (second stage)
fonts'fallback modern-designsize rm 12pt' is loaded
backend  xmp  using file '/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
close source 2  3  /home/mickep/tmp/listor.tex
close source 1  3  /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

system   structure  start used structure

used structure   text: listor

system   structure  stop used structure


system   files  start used files

used file   1: filename=cont-yes.mkiv filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file   2: filename=publ-imp-apa.lua filetype=scripts foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/publ-imp-apa.lua usedmethod=database
used file   3: filename=cont-new.mkiv filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file   4: filename=lang-us.lua filetype=scripts foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file   5: filename=/home/mickep/tmp/listor.tex foundname=/home/mickep/tmp/listor.tex usedmethod=direct
used file   6: filename=lm.lfg filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file   7: filename=lmroman12-regular filetype=otf format=otf foundname=/home/mickep/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file   8: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/mickep/ConTeXt/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file   9: filename=lpdf-pdx.xml filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system   files  stop used files


system   options  start commandline options

used option  batchmode=true
used option  currentrun=1
used option  directives=logs.target=file
used option  fulljobname=./listor.tex
used option  input=./listor.tex
used option  kindofrun=1
used option  maxnofruns=8
used option  no-parse-first-line=true
used option  noconsole=true
used option  synctex=true

system   options  stop commandline options

system   options  start commandline files

used file   1: ./listor.tex

system   options  stop commandline files


mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path: /home/mickep/ConTeXt/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats   synctex tracing: synctex has been enabled (extra log file generated)
mkiv lua stats   resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 9 found files, scanned paths: none
mkiv lua stats   stored bytecode data: 359 modules (0.118 sec), 72 tables (0.002 sec), 431 chunks (0.120 sec)
mkiv lua stats   running in nuts mode: yes
mkiv lua stats   cleaned up reserved nodes: 44 nodes, 442 lists of 441
mkiv lua stats   node memory usage: 13 hlist, 22 glue, 4 kern, 7 penalty, 16 glyph, 64 attribute, 38 glue_spec, 20 attribute_list, 2 temp, 2 local_par, 2 dir
mkiv lua stats   node list callback tasks: 6 unique task lists, 5 instances (re)created, 81 calls
mkiv lua stats   used backend: pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns: en::2, load time: 0.000
mkiv lua stats   jobdata time: 0.001 seconds saving, 0.000 

[NTG-context] Moving hairline in itemize environment

2014-11-21 Thread Jaroslav Hajtmar

Hello ConTeXist.
Is there possibility move hairline in itemize environment to the leftto 
start from the beginning of the line independently indentation environment?


Thanx Jaroslav Hajtmar

Here is minimal example:

\starttext

\startitemize[n]
\item \input ward
\hairline %this line move to the left to start from the very 
beginning of the line

\item \input ward
\hairline %this line move to the left to start from the very 
beginning of the line

\item \input ward
\hairline%this line move to the left to start from the very 
beginning of the line


\stopitemize
\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
___

Re: [NTG-context] Stopper and itemize

2014-10-15 Thread Fabrice

Hi Mikael,
Thank you, but I should have known!!
___
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
___

Re: [NTG-context] Stopper and itemize

2014-10-14 Thread Fabrice

Hi,
My English is not perfect !
I mean bracket, that is to say, 1) instead of 1.
Best regards,
Fabrice
___
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
___

Re: [NTG-context] Stopper and itemize

2014-10-14 Thread Mikael P. Sundqvist
On Tue, Oct 14, 2014 at 6:54 PM, Fabrice couvreur.fabr...@wanadoo.fr wrote:
 Hi,
 My English is not perfect !
 I mean bracket, that is to say, 1) instead of 1.

 Best regards,
 Fabrice
 ___
 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
 ___


Hi,

what about

\starttext
\startitemize[columns,a,joinedup][stopper=)]
\item $f(0)$
\item $g(0,3)$
\item $f(\sqrt 2)$
\item $g(-4)$
\stopitemize
\stoptext

/Mikael
___
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
___

Re: [NTG-context] Stopper and itemize

2014-10-13 Thread Fabrice


___
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
___

[NTG-context] Stopper and itemize

2014-10-13 Thread Fabrice Couvreur
hi,
In the following code, the default stopper is the point.

\starttext
\startitemize[columns,a,joinedup]
\item $f(0)$
\item $g(0,3)$
\item $f(\sqrt 2)$
\item $g(-4)$
\stopitemize
\stoptext

How to have a break ?
Best regards,
Fabrice
___
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
___

Re: [NTG-context] Stopper and itemize

2014-10-13 Thread Otared Kavian
What do you mean by a « break »?

On 14 Oct 2014, at 02:24, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote:

 hi,
 In the following code, the default stopper is the point.
 
 \starttext
 \startitemize[columns,a,joinedup]
 \item $f(0)$
 \item $g(0,3)$
 \item $f(\sqrt 2)$
 \item $g(-4)$
 \stopitemize
 \stoptext
 
 How to have a break ?
 Best regards,
 Fabrice
 ___
 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
 ___

___
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
___

[NTG-context] Itemize and framed

2014-08-29 Thread Fabrice Couvreur
Hi,
Is this the best way to insert a list in a frame ?
thank you,
Fabrice

\setupcolors[state=start]
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\starttext
\framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{%
\rbox{
\startitemize[1]
 \item planter le piquet 1 à côté de l'arbre 1 ;
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les
piquets 3 et 4 ;
\item se placer de manière à être aligné avec l'arbre 2 et le piquet 3
d'une part ;

 et avec l'arbre 1 et le piquet 4 d'autre part.
\item mesurer sa distance à l'arbre 1 ;
\item rechercher, dans le tableau, la distance correspondante entre les
deux arbres.
\stopitemize}}
\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
___

Re: [NTG-context] Itemize and framed

2014-08-29 Thread Otared Kavian
Hi,

It looks fine, but you can as well use \startframedtext, as in:

\starttext
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\starttext
\startframedtext[
width=\textwidth,
corner=06,
frame=on,
framecolor=H1prime,
location=middle,
background=color,
backgroundcolor=H4]

\startitemize[1] 
 \item planter le piquet 1 à côté de l'arbre 1 ; 
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
piquets 3 et 4 ;
\item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
part ;

 et avec l'arbre 1 et le piquet 4 d'autre part.
\item mesurer sa distance à l'arbre 1 ; 
\item rechercher, dans le tableau, la distance correspondante entre les deux 
arbres. 
\stopitemize

\stopframedtext

\stoptext

Best regards: OK


On 29 Aug 2014, at 15:19, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote:

 
 Hi, 
 Is this the best way to insert a list in a frame ? 
 thank you,
 Fabrice
 
 \setupcolors[state=start]
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
 \starttext
 \framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{%
 \rbox{
 \startitemize[1] 
  \item planter le piquet 1 à côté de l'arbre 1 ; 
  \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
 piquets 3 et 4 ;
 \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
 part ;
 
  et avec l'arbre 1 et le piquet 4 d'autre part.
 \item mesurer sa distance à l'arbre 1 ; 
 \item rechercher, dans le tableau, la distance correspondante entre les deux 
 arbres. 
 \stopitemize}}
 \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
 ___

___
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
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Wolfgang Schuster

Am 29.08.2014 um 15:55 schrieb Otared Kavian ota...@gmail.com:

 Hi,
 
 It looks fine, but you can as well use \startframedtext, as in:
 
 \starttext
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
 \starttext
 \startframedtext[
   width=\textwidth,
   corner=06,
   frame=on,
   framecolor=H1prime,
   location=middle,
   background=color,
   backgroundcolor=H4]
 
 \startitemize[1] 
 \item planter le piquet 1 à côté de l'arbre 1 ; 
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
 piquets 3 et 4 ;
 \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
 part ;
 
 et avec l'arbre 1 et le piquet 4 d'autre part.
 \item mesurer sa distance à l'arbre 1 ; 
 \item rechercher, dans le tableau, la distance correspondante entre les deux 
 arbres. 
 \stopitemize
 
 \stopframedtext
 
 \stoptext

In this case framedtext is the better choice but it can be done with framed as 
well
but one has to set values for align and disable the strut, e.g.

\framed
  [align=right,strut=no]
  {\startitemize
   …
   \stopitemize}

and when you use MkIV replace \framed with \startframed, i.e.

\startframed[align=right,strut=no]
  \startitemize
  …
  \stopitemize
\stopframed

Wolfgang
___
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
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Fabrice

Thank you for your answers, I continue to learn.
However, the solution should Otared me better because the numbering is 
less near the edge of the frame.

___
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
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Otared Kavian
Hi Fabrice,

Actually with both solutions you can control the distance of the framed 
material to the frame by the key 
« offset=SomeMeasure »
For instance you can say:

\startframedtext[
width=\textwidth,
offset=.5em,
corner=06,
frame=on,
framecolor=H1prime,
location=middle,
background=color,
backgroundcolor=H4]

and changing .5em to another value you cans choose what you find better.

Best regards: OK

On 29 Aug 2014, at 19:30, Fabrice couvreur.fabr...@wanadoo.fr wrote:

 Thank you for your answers, I continue to learn.
 However, the solution should Otared me better because the numbering is less 
 near the edge of the frame.
 ___
 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
 ___

___
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
___


[NTG-context] Heading followed by itemize: how to keep them together?

2014-08-20 Thread Gerben Wierda
When I have:

\subsubsection{Foo}
\startitemize[joinedup,packed]
\item Bar
\item Bar
\item Bar
\stopitemize

TeX may put a page break between the heading and the paragraph. Is there a way 
to prevent this? I tried

\subsubsection{Foo}\page[no]
\startitemize[joinedup,packed]
\item Bar
\item Bar
\item Bar
\stopitemize

and 

\subsubsection{Foo}
\startitemize[joinedup,packed]\page[no]
\item Bar
\item Bar
\item Bar
\stopitemize

but both did not work. I can of course force with

\page[yes]\subsubsection{Foo}
\startitemize[joinedup,packed]
\item Bar
\item Bar
\item Bar
\stopitemize

but that is not ribust under change in the document.

G___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda
On 20 Aug 2014, at 01:22, Aditya Mahajan adit...@umich.edu wrote:

 
 
 On Wed, 20 Aug 2014, Gerben Wierda wrote:
 
 On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?
 
 \setupindenting[yes,medium]
 
 \starttext
 
 \input knuth
 
 \startitemize[margin=standard]
 
 Does the margin thing, but incapacitates packed and joinedup, which are 
 ignored if the margin statement is there. So, I get indented items, but at 
 the price of losing joinedup and packed.
 
 \setupindenting[yes,medium]
 
 \starttext
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 \startitemize[joinedup,packed]
 \item Foo bar
 \item Foo bar
 \stopitemize
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 \startitemize[joinedup,packed,margin=standard]
 
 You need to separate keywords with assignments:
 
 \startitemize[joinedup, packed][margin=standard]

Thanks. I used

\setupitemize[each][margin=standard]

and this works. However, I've noticed that the normal pararaph indent is just a 
little bit more than the itemize margin. The bullets of the list are not 
aligned perfectly with the indented line. They are indented slightly less. 
Anything I can do about that?

G


 
 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
 ___

___
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
___

Re: [NTG-context] Heading followed by itemize: how to keep them together?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 16:01 schrieb Gerben Wierda gerben.wie...@rna.nl:

 When I have:
 
 \subsubsection{Foo}
 \startitemize[joinedup,packed]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 TeX may put a page break between the heading and the paragraph. Is there a 
 way to prevent this? I tried
 
 \subsubsection{Foo}\page[no]
 \startitemize[joinedup,packed]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 and 
 
 \subsubsection{Foo}
 \startitemize[joinedup,packed]\page[no]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 but both did not work. I can of course force with
 
 \page[yes]\subsubsection{Foo}
 \startitemize[joinedup,packed]
 \item Bar
 \item Bar
 \item Bar
 \stopitemize
 
 but that is not ribust under change in the document.

\startitemize[…,intro]

Wolfgang

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is just 
 a little bit more than the itemize margin. The bullets of the list are not 
 aligned perfectly with the indented line. They are indented slightly less. 
 Anything I can do about that?

Are you sure?

\setupindenting[yes,medium]

\definelayer[check][width=\paperwidth,height=\paperheight]

\setlayer[check][x=\dimexpr\backspace+1.5em\relax]{\blackrule[width=\linewidth,height=\paperheight]}

\setupbackgrounds[page][background=check]

\starttext

\input knuth

\startitemize[margin=standard]
\item \input ward
\stopitemize

\input tufte

\stoptext

Wolfgang

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list are 
 not aligned perfectly with the indented line. They are indented slightly 
 less. Anything I can do about that?
 
 Are you sure?

Yes:

https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png

Your example works out fine.

G

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list are 
 not aligned perfectly with the indented line. They are indented slightly 
 less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png

Make a *working* minimal example.

Wolfgang

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.

Having that part in a smaller bodyfont is what triggers it:

\starttext
\setupbodyfont[12pt]

\setupindenting[small]
\indenting[yes]
\setupitemize[each][margin=standard]

\start
\switchtobodyfont[8pt]

Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar.
(PSA) becomes the Project Architecture (PA). As of that moment:
\startitemize[joinedup,packed]
\item Foo
\item Foo
\item Foo
\item Foo
\stopitemize

Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.

\stop
\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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:53 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.
 
 Having that part in a smaller bodyfont is what triggers it:
 
 \starttext
 \setupbodyfont[12pt]
 
 \setupindenting[small]
 \indenting[yes]

Don’t use \indenting, it’s a old command with the same meaning as 
\setupindenting.

 \setupitemize[each][margin=standard]

You ned absolute values for indentation and margin, e.g.

\setupindenting[yes,5mm]
\setupitemize[each][margin=5mm]

Wolfgang

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 18:01, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:53 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.
 
 Having that part in a smaller bodyfont is what triggers it:
 
 \starttext
 \setupbodyfont[12pt]
 
 \setupindenting[small]
 \indenting[yes]
 
 Don’t use \indenting, it’s a old command with the same meaning as 
 \setupindenting.
 
 \setupitemize[each][margin=standard]
 
 You ned absolute values for indentation and margin, e.g.
 
 \setupindenting[yes,5mm]
 \setupitemize[each][margin=5mm]

Works ok at first level. Second level doesn't exactly align. But there is some 
startstopnarrower in play too. I'l try to create a minimal example.

 
 Wolfgang
 
 ___
 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
 ___

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 19:01 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Works ok at first level. Second level doesn't exactly align. But there is 
 some startstopnarrower in play too. I'l try to create a minimal example.

The narrower environment does also use font dependent values for the left and 
right margins.

A good method to set a global value for all environments is to set the 
dimension with the
\definemeasure command and access it with the \measure command.

% engine=pdftex

\definemeasure[myindent][12pt]

\setupindenting[yes,\measure{myindent}]

\setupnarrower
  [  left=\measure{myindent},
right=\measure{myindent},
   middle=\measure{myindent}]

\setupitemize[each][margin=\measure{myindent}]%,width=\measure{myindent}]

\starttext

\input knuth

\startitemize
\item \input ward
\stopitemize

\startnarrower
\input zapf
\stopnarrower

\stoptext

Wolfgang___
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
___

[NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Gerben Wierda
I’d like to get \startitemize\stopitemize to indent the first level items 
already with the equal amount of indentation as the start of a paragraph (which 
is indented). Is there a way to do that?

mkii

G
___
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
___


Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Wolfgang Schuster

Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:

 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?

\setupindenting[yes,medium]

\starttext

\input knuth

\startitemize[margin=standard]
\item \input ward
\stopitemize

\input tufte

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Gerben Wierda
On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?
 
 \setupindenting[yes,medium]
 
 \starttext
 
 \input knuth
 
 \startitemize[margin=standard]

Does the margin thing, but incapacitates packed and joinedup, which are ignored 
if the margin statement is there. So, I get indented items, but at the price of 
losing joinedup and packed.

\setupindenting[yes,medium]

\starttext
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 
\startitemize[joinedup,packed]
\item Foo bar
\item Foo bar
\stopitemize
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 

Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 
\startitemize[joinedup,packed,margin=standard]
\item Foo bar
\item Foo bar
\stopitemize
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 
\stoptext


G

 \item \input ward
 \stopitemize
 
 \input tufte
 
 \stoptext
 
 Wolfgang
 ___
 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
 ___

___
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
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Aditya Mahajan



On Wed, 20 Aug 2014, Gerben Wierda wrote:


On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:



Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:


I’d like to get \startitemize\stopitemize to indent the first level items 
already with the equal amount of indentation as the start of a paragraph (which 
is indented). Is there a way to do that?


\setupindenting[yes,medium]

\starttext

\input knuth

\startitemize[margin=standard]


Does the margin thing, but incapacitates packed and joinedup, which are ignored 
if the margin statement is there. So, I get indented items, but at the price of 
losing joinedup and packed.

\setupindenting[yes,medium]

\starttext
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
\startitemize[joinedup,packed]
\item Foo bar
\item Foo bar
\stopitemize
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.

Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
\startitemize[joinedup,packed,margin=standard]


You need to separate keywords with assignments:

\startitemize[joinedup, packed][margin=standard]

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
___

[NTG-context] framedtext and itemize

2014-07-22 Thread Meer, H. van der
I have a question regarding the interplay between framedtext and itemize.

Example
\startitemize[n]\startitem
\startframedtext[left][width=0.5\textwidth]\leavevmode
   some text
\stopframedtext
\stopitem\stopitemize

The framedtext is put on the next line instead of on the first of the item.
[cid:3B8394EB-ADB8-4DA9-9E09-6ACFB9389BB4]
How do I get here the top frameline of the framedtext aligned with the 1. of 
the itemnumber? Playing with the location-parameter on the \startframedtext 
doesn't seem to make any difference. Especially I would like the baseline of 
the  first line inside the framed text to be at the same level as the itemlabel.

Hans van der Meer



___
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
___

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Otared Kavian
Hi,

Maybe you want something like this:

\starttext
\startitemize[n]
\setlocalhsize
\item \framed[width=\localhsize,align=right]{Some text.}
\item \startframed[width=\localhsize,align=right] Some text. \stopframed
\stopitemize
\stoptext

Best regards: OK

On 22 Jul 2014, at 12:05, Meer, H. van der h.vanderm...@uva.nl wrote:

 I have a question regarding the interplay between framedtext and itemize.
 
 Example
 \startitemize[n]\startitem
 \startframedtext[left][width=0.5\textwidth]\leavevmode
some text
 \stopframedtext
 \stopitem\stopitemize
 
 The framedtext is put on the next line instead of on the first of the item.
 notframed.jpg
 How do I get here the top frameline of the framedtext aligned with the 1. of 
 the itemnumber? Playing with the location-parameter on the \startframedtext 
 doesn't seem to make any difference. Especially I would like the baseline of 
 the  first line inside the framed text to be at the same level as the 
 itemlabel.
 
 Hans van der Meer
 
 
 
 ___
 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
 ___

___
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
___

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Herbert Voss
Am 22.07.2014 16:12, schrieb Otared Kavian:

 Maybe you want something like this:
 
 \starttext
 \startitemize[n]
 \setlocalhsize
 \item \framed[width=\localhsize,align=right]{Some text.}
 \item \startframed[width=\localhsize,align=right] Some text. \stopframed
 \stopitemize
 \stoptext

or

\item \inframed[width=\localhsize,align=right]{Some text.}


Herbert


___
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
___


Re: [NTG-context] textbackground inside itemize

2014-07-09 Thread Hans Hagen

On 7/9/2014 5:55 AM, Troy Henderson wrote:

The following code produces a textbackground whose background color
enters into the itemize label area on the second (and succeeding)
lines of the paragraph.  I would appreciate advice on fixing this.


i'll send you a (simple one line) patch to test



Thanks,

Troy Henderson

---

\setuppapersize[letter,landscape][letter,landscape]

\definetextbackground[foo][
 state=start,
 location=paragraph,
 background=color,
 backgroundcolor={0.875,0.875,0.875},
 frame=off
]

\starttext
 \startcolumns[n=2,rule=on]
 \startitemize[n,2*broad]
 \item Here is my first item
 \starttextbackground[foo]
 Here is some long text that demonstrates how the
background color is wrong on the second line and all successive lines of
this paragraph.
 \stoptextbackground
 \item Here is my second item
 \stopitemize
 \stopcolumns
\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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] textbackground inside itemize

2014-07-08 Thread Troy Henderson
The following code produces a textbackground whose background color enters
into the itemize label area on the second (and succeeding) lines of the
paragraph.  I would appreciate advice on fixing this.

Thanks,

Troy Henderson

---

\setuppapersize[letter,landscape][letter,landscape]

\definetextbackground[foo][
state=start,
location=paragraph,
background=color,
backgroundcolor={0.875,0.875,0.875},
frame=off
]

\starttext
\startcolumns[n=2,rule=on]
\startitemize[n,2*broad]
\item Here is my first item
\starttextbackground[foo]
Here is some long text that demonstrates how the
background color is wrong on the second line and all successive lines of
this paragraph.
\stoptextbackground
\item Here is my second item
\stopitemize
\stopcolumns
\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
___

Re: [NTG-context] joinedup in itemize changed?

2014-05-02 Thread Mikael P. Sundqvist
On Wed, Apr 30, 2014 at 8:38 PM, Mikael P. Sundqvist mic...@gmail.com wrote:
 Hi,

 has joinedup changed? At the moment it gives no white space before
 first item and last item _and_ pack it. See example.

 Best regards, Mikael

 \starttext
 Bla
 \startitemize[3]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,joinedup]% Not as expected
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,packed]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,packed,joinedup]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \stoptext

I hate to bump, but can someone confirm that this is a problem in
ConTeXt or show me the right way of doing this?

/Mikael
___
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
___


Re: [NTG-context] joinedup in itemize changed?

2014-05-02 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I've never used joinedup option so I cannot confirm its behavior has changed.

Anyway, I'm getting the same result with the last Ctx beta and Ctx ver: 
2012.11.26; see attachs.

It seems joindeup implies packed, too; I don't know if it is an 
intention/feature.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t.pdf
Description: Adobe PDF document


t1.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] joinedup in itemize changed?

2014-05-02 Thread Rogers, Michael K
The keys packed and joinedup seem to control the keys before, after, and 
inbetween.  You can use these keys directly to get whatever style you like.  
The setting packed is equivalent to

\startitemize[3][before=\blank,after=\blank,inbetween=]

The setting joinedup is equivalent to

\startitemize[3][before=,after=,inbetween=]

If you want the first and last items joined to the text with whitespace between 
the items, then try this:

\starttext
\startitemize[3][before=,after=,inbetween=\blank]
\item One
\item Two
\item Three
\stopitemize
\stoptext

On May 2, 2014, at 3:17 AM, Mikael P. Sundqvist mic...@gmail.com
 wrote:

 On Wed, Apr 30, 2014 at 8:38 PM, Mikael P. Sundqvist mic...@gmail.com wrote:
 Hi,
 
 has joinedup changed? At the moment it gives no white space before
 first item and last item _and_ pack it. See example.
 
 Best regards, Mikael
 
 \starttext
 Bla
 \startitemize[3]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,joinedup]% Not as expected
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,packed]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,packed,joinedup]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \stoptext
 
 I hate to bump, but can someone confirm that this is a problem in
 ConTeXt or show me the right way of doing this?
 
 /Mikael
 ___
 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
 ___
 

___
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
___


Re: [NTG-context] joinedup in itemize changed?

2014-05-02 Thread Mikael P. Sundqvist
On Fri, May 2, 2014 at 1:37 PM, Rogers, Michael K mrog...@emory.edu wrote:
 The keys packed and joinedup seem to control the keys before, after, and 
 inbetween.  You can use these keys directly to get whatever style you like.  
 The setting packed is equivalent to

 \startitemize[3][before=\blank,after=\blank,inbetween=]

 The setting joinedup is equivalent to

 \startitemize[3][before=,after=,inbetween=]

 If you want the first and last items joined to the text with whitespace 
 between the items, then try this:

 \starttext
 \startitemize[3][before=,after=,inbetween=\blank]
 \item One
 \item Two
 \item Three
 \stopitemize
 \stoptext

 On May 2, 2014, at 3:17 AM, Mikael P. Sundqvist mic...@gmail.com
  wrote:

 On Wed, Apr 30, 2014 at 8:38 PM, Mikael P. Sundqvist mic...@gmail.com 
 wrote:
 Hi,

 has joinedup changed? At the moment it gives no white space before
 first item and last item _and_ pack it. See example.

 Best regards, Mikael

 \starttext
 Bla
 \startitemize[3]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,joinedup]% Not as expected
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,packed]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \startitemize[3,packed,joinedup]%OK
 \item One
 \item Two
 \item Three
 \stopitemize
 Bla
 \stoptext

 I hate to bump, but can someone confirm that this is a problem in
 ConTeXt or show me the right way of doing this?

 /Mikael
 ___
 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
 ___


 ___
 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
 ___


Thank you very much, that solves my problem (now I simply use before,
inbetween and after).

And thank you Lukas for trying the example.

I still believe that joinedup has changed? Is it meant to be as it is now?

/Mikael
___
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
___


Re: [NTG-context] joinedup in itemize changed?

2014-05-02 Thread Wolfgang Schuster

Am 02.05.2014 um 13:43 schrieb Mikael P. Sundqvist mic...@gmail.com:

 Thank you very much, that solves my problem (now I simply use before,
 inbetween and after).
 
 And thank you Lukas for trying the example.
 
 I still believe that joinedup has changed? Is it meant to be as it is now?

Your example behaved the same in MkIV and MkII, so nothing has changed.

Wolfgang
___
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
___


[NTG-context] joinedup in itemize changed?

2014-04-30 Thread Mikael P. Sundqvist
Hi,

has joinedup changed? At the moment it gives no white space before
first item and last item _and_ pack it. See example.

Best regards, Mikael

\starttext
Bla
\startitemize[3]%OK
\item One
\item Two
\item Three
\stopitemize
Bla
\startitemize[3,joinedup]% Not as expected
\item One
\item Two
\item Three
\stopitemize
Bla
\startitemize[3,packed]%OK
\item One
\item Two
\item Three
\stopitemize
Bla
\startitemize[3,packed,joinedup]%OK
\item One
\item Two
\item Three
\stopitemize
Bla
\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
___


[NTG-context] A problem with itemize in columns - once again, now with an MWE

2014-01-17 Thread Marcin Borkowski
Hi all,

once again I have a problem with itemization in columns.  This time, I
finally managed to isolate the problem and prepare an MWE.  The
problem does not appear with Latin Modern fonts, but does with Pagella
(I didn't test other fonts).  It seems that the height of the square
root sign is too high.  \smash-ing helps, but I'd prefer not to have
to \smash things manually.  Can anything be done about this?  (Note:
I'm using the latest beta.  In some earlier versions, \smash-ing
didn't help, so it's not something of high priority for me now.  But
if it's something easy to fix, I'd be thankful.)


\setupbodyfont[pagella]
\starttext
\startitemize[columns,two,packed]% with packed, it's also wrong, but in 
another way
\item abc
\item $a^2$
\item xyz
\item $\frac12$
\item foo
\item bar
\item baz
\item $\sqrt{2}$% \smash-ing helps, but I'd prefer not to have to smash...
\item asdf
\item qwerty
\stopitemize
\stoptext


Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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
___


Re: [NTG-context] A problem with itemize in columns - once again, now with an MWE

2014-01-17 Thread Wolfgang Schuster

Am 17.01.2014 um 16:05 schrieb Marcin Borkowski mb...@wmi.amu.edu.pl:

 Hi all,
 
 once again I have a problem with itemization in columns.  This time, I
 finally managed to isolate the problem and prepare an MWE.  The
 problem does not appear with Latin Modern fonts, but does with Pagella
 (I didn't test other fonts).  It seems that the height of the square
 root sign is too high.  \smash-ing helps, but I'd prefer not to have
 to \smash things manually.  Can anything be done about this?  (Note:
 I'm using the latest beta.  In some earlier versions, \smash-ing
 didn't help, so it's not something of high priority for me now.  But
 if it's something easy to fix, I'd be thankful.)

You can increase the linespacing in the itemize.

\setupbodyfont[pagella]

\startsetups[itemize:before]
  \blank
  \begingroup
  \setupinterlinespace[medium]
\stopsetups

\startsetups[itemize:after]
  \endgroup
  \blank
\stopsetups

\starttext

\startitemize[columns,two,packed][before=\directsetup{itemize:before},after=\directsetup{itemize:after}]
\item abc
\item \math{a^2}
\item xyz
\item \math{\frac{1}{2}}
\item foo
\item bar
\item baz
\item \math{\sqrt{2}}
\item asdf
\item qwerty
\stopitemize

\stoptext

Wolfgang
___
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
___


Re: [NTG-context] A problem with itemize in columns - once again, now with an MWE

2014-01-17 Thread Marcin Borkowski
Dnia 2014-01-17, o godz. 16:19:48
Wolfgang Schuster schuster.wolfg...@gmail.com napisał(a):

 
 Am 17.01.2014 um 16:05 schrieb Marcin Borkowski
 mb...@wmi.amu.edu.pl:
 
  Hi all,
  
  once again I have a problem with itemization in columns.  This
  time, I finally managed to isolate the problem and prepare an MWE.
  The problem does not appear with Latin Modern fonts, but does with
  Pagella (I didn't test other fonts).  It seems that the height of
  the square root sign is too high.  \smash-ing helps, but I'd prefer
  not to have to \smash things manually.  Can anything be done about
  this?  (Note: I'm using the latest beta.  In some earlier versions,
  \smash-ing didn't help, so it's not something of high priority for
  me now.  But if it's something easy to fix, I'd be thankful.)
 
 You can increase the linespacing in the itemize.
 
 \setupbodyfont[pagella]
 
 \startsetups[itemize:before]
   \blank
   \begingroup
   \setupinterlinespace[medium]
 \stopsetups
 
 \startsetups[itemize:after]
   \endgroup
   \blank
 \stopsetups
 
 \starttext
 
 \startitemize[columns,two,packed][before=\directsetup{itemize:before},after=\directsetup{itemize:after}]
 \item abc
 \item \math{a^2}
 \item xyz
 \item \math{\frac{1}{2}}
 \item foo
 \item bar
 \item baz
 \item \math{\sqrt{2}}
 \item asdf
 \item qwerty
 \stopitemize
 
 \stoptext

Thanks a lot!  It did help (but only partially, see below).  (I've also
put it into \setupitemize.)

One problem remains, however: it won't work with [joinedup].  (The same
problem as before seems to appear again.)

 Wolfgang

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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
___

Re: [NTG-context] Space problem after formulas inside itemize environments

2013-11-21 Thread Géry Ogam
Could you correct this space problem Hans?


\startitemize
\item Eeny, meeny, miny, moe
\placeformula
\startformula
\text{Numbered formula: the space after is correct.}
\stopformula
\item Eeny, meeny, miny, moe
\placeformula[-]
\startformula
\text{Unumbered formula: the space after is too big.}
\stopformula
\item Eeny, meeny, miny, moe
\stopitemize
___
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
___

Re: [NTG-context] Space problem after formulas inside itemize environments

2013-11-21 Thread Géry Ogam
 What’s wrong with the second formula, both have the same space before and
after the content?

Then maybe Hans has corrected it recently. I am using ConTeXt version
2013.04.20, and you?
___
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
___

Re: [NTG-context] Space problem after formulas inside itemize environments

2013-11-21 Thread Wolfgang Schuster

Am 21.11.2013 um 16:31 schrieb Géry Ogam maggy...@gmail.com:

 Could you correct this space problem Hans?
 
 \startitemize
 \item Eeny, meeny, miny, moe
 \placeformula
 \startformula
 \text{Numbered formula: the space after is correct.}
 \stopformula
 \item Eeny, meeny, miny, moe
 \placeformula[-]
 \startformula
 \text{Unumbered formula: the space after is too big.}
 \stopformula
 \item Eeny, meeny, miny, moe
 \stopitemize

What’s wrong with the second formula, both have the same space before and after 
the content?

Wolfgang
___
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
___


Re: [NTG-context] Space problem after formulas inside itemize environments

2013-11-21 Thread Wolfgang Schuster

Am 21.11.2013 um 18:23 schrieb Géry Ogam maggy...@gmail.com:

  What’s wrong with the second formula, both have the same space before and 
  after the content?
 
 Then maybe Hans has corrected it recently. I am using ConTeXt version 
 2013.04.20, and you?

ConTeXt  ver: 2013.11.16 12:43 MKIV beta  fmt: 2013.11.21  int: english/english

Wolfgang

___
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
___


[NTG-context] Space problem after formulas inside itemize environments

2013-11-04 Thread Géry Ogam
Hello,


I think there is a space problem after formulas inside itemize environments.

E.g.:

\starttext

\startitemize
\item Eeny, meeny, miny, moe
\placeformula
\startformula
\text{Numbered formula: the space after is correct.}
\stopformula
\item Eeny, meeny, miny, moe
\placeformula[-]
\startformula
\text{Unumbered formula: the space after is too big.}
\stopformula
\item Eeny, meeny, miny, moe
\stopitemize

\stoptext


Best regards.
___
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
___

[NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Jaroslav Hajtmar

Hello ConTeXist.

I tried convert plainTeX source code into ConTeXt  source code so that 
the output PDF gave the same (or approximately the same) result. I did 
it for one of plainTEX developers (Mr. Olšák), which compared results of 
PlainTeX, LaTeX and ConTeXt. However, I encountered the following problem.


Is there a way to adjust the spacing before internal itemize environment 
when the external itemize environment is set as PACKED?


Thanx JaroslavHajtmar

Here is my minimal example:


\setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}]
\setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}]

\starttext

This is normal text before itemize list.

\startitemize
\item First 1 level
\item Second 1 level
  \startitemize
  \item First 2 level (before this line should be big space)
  \item Second 2 level
  \item Third  2 level (after this line should be big space)
  \stopitemize
\item Third 1 level
\item Fourth 1 level
\stopitemize

This is normal text after itemize list.


\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
___


Re: [NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Tomas Hala
Hi Jarda and all,

I tested it on my computer using CTX from TL 2010 and 2013 and I have got
the same result in both cases. It seems that the content of the option before 
is completely ignored. I tested another values for this option
(\page,\vskip,\godown...), no result.

The only one way which works is the manual addition of \blank before and
after the nested itemize environment, unfortunatelly.

---

Another interesting thing is that the compiler of CTX in TL 2013 does not
report an error when I forgot the opening \starttext, or the closing
\stoptext, or both, whereas in TL 2010 it does. Is this expected behaviour?

Best regards,

Tomas Hala


Thu, Oct 24, 2013 ve 12:45:01PM +0200 Jaroslav Hajtmar napsal(a):
# Hello ConTeXist.
# 
# I tried convert plainTeX source code into ConTeXt  source code so
# that the output PDF gave the same (or approximately the same)
# result. I did it for one of plainTEX developers (Mr. Olšák), which
# compared results of PlainTeX, LaTeX and ConTeXt. However, I
# encountered the following problem.
# 
# Is there a way to adjust the spacing before internal itemize
# environment when the external itemize environment is set as PACKED?
# 
# Thanx JaroslavHajtmar
# 
# Here is my minimal example:
# 
# 
# 
\setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}]
# 
\setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}]
# 
# \starttext
# 
# This is normal text before itemize list.
# 
# \startitemize
# \item First 1 level
# \item Second 1 level
#   \startitemize
#   \item First 2 level (before this line should be big space)
#   \item Second 2 level
#   \item Third  2 level (after this line should be big space)
#   \stopitemize
# \item Third 1 level
# \item Fourth 1 level
# \stopitemize
# 
# This is normal text after itemize list.
# 
# 
# \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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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
___


Re: [NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Jaroslav Hajtmar

Thanx Tomas.

Of course I know about the possibility of solving the problem by 
directly entering a space before internal environment. However, I prefer 
setting off the source text, so I wonder how it can be solved.


Jarda Hajtmar

Dne 24.10.2013 14:21, Tomas Hala napsal(a):

Hi Jarda and all,

I tested it on my computer using CTX from TL 2010 and 2013 and I have got
the same result in both cases. It seems that the content of the option before
is completely ignored. I tested another values for this option
(\page,\vskip,\godown...), no result.

The only one way which works is the manual addition of \blank before and
after the nested itemize environment, unfortunatelly.

---

Another interesting thing is that the compiler of CTX in TL 2013 does not
report an error when I forgot the opening \starttext, or the closing
\stoptext, or both, whereas in TL 2010 it does. Is this expected behaviour?

Best regards,

Tomas Hala


Thu, Oct 24, 2013 ve 12:45:01PM +0200 Jaroslav Hajtmar napsal(a):
# Hello ConTeXist.
#
# I tried convert plainTeX source code into ConTeXt  source code so
# that the output PDF gave the same (or approximately the same)
# result. I did it for one of plainTEX developers (Mr. Olšák), which
# compared results of PlainTeX, LaTeX and ConTeXt. However, I
# encountered the following problem.
#
# Is there a way to adjust the spacing before internal itemize
# environment when the external itemize environment is set as PACKED?
#
# Thanx JaroslavHajtmar
#
# Here is my minimal example:
#
#
# 
\setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}]
# 
\setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}]
#
# \starttext
#
# This is normal text before itemize list.
#
# \startitemize
# \item First 1 level
# \item Second 1 level
#   \startitemize
#   \item First 2 level (before this line should be big space)
#   \item Second 2 level
#   \item Third  2 level (after this line should be big space)
#   \stopitemize
# \item Third 1 level
# \item Fourth 1 level
# \stopitemize
#
# This is normal text after itemize list.
#
#
# \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
# 
___

  Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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
___



___
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
___


Re: [NTG-context] \simplealignedbox (was: itemize)

2013-03-07 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

kind request - \simplealignedbox is not known to me - could anyone familar add 
some info to wiki?

Best regards,

Lukas



\setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}]


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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
___

Re: [NTG-context] \simplealignedbox (was: itemize)

2013-03-07 Thread Wolfgang Schuster

Am 07.03.2013 um 14:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 kind request - \simplealignedbox is not known to me - could anyone familar 
 add some info to wiki?

With the \simplealignedbox command you can align a given text in a box with a 
given width,
the width of the box is set with the first argument, the alignment with the 
second and the content
with the third argument of the command.

Example with all possible alignments:

\starttext
\ruledhbox{\simplealignedbox{3cm}{flushleft}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{flushright}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{middle}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{left}{TEXT}}
\ruledhbox{\simplealignedbox{3cm}{right}{TEXT}}
\stoptext

Wolfgang
___
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
___


Re: [NTG-context] \simplealignedbox (was: itemize)

2013-03-07 Thread Marco Patzer
On 2013–03–07 Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 kind request - \simplealignedbox is not known to me - could anyone
 familar add some info to wiki?

It's a simple wrapper around \hbox with a fixed width and the
possibility to align the content either to the left, right or
centred within the box.

\simplealignedbox{width}{left|right|flushleft|flushright|middle}{content}

translates to

\hbox to width{content\hss} %% left alignment
\hbox to width{\hsscontent} %% right alignment
\hbox to width{\hsscontent\hss}

\hss pushes the content to the left or right, respectively.


Marco


signature.asc
Description: Digital signature
___
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
___

<    1   2   3   4   5   6   7   8   9   >