[NTG-context] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Hi,
I find that there is too much space between the text and the beginning of
the paragraph.

\defineenumeration[ex]
[text={\sc\bf Exercice},
location=left,
stopper={\bf.}]

For example, I use the \topset with LuaLaTeX order.
Thank 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Peter Münster
On Tue, Feb 25 2014, Fabrice Couvreur wrote:

 I find that there is too much space between the text and the beginning of the
 paragraph. 

 \defineenumeration[ex]
 [text={\sc\bf Exercice},
 location=left,
 stopper={\bf.}]

stopper={\bf.}, inbetween=]


 For example, I use the \topset with LuaLaTeX order.

???

-- 
   Peter
___
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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Wolfgang Schuster

Am 25.02.2014 um 19:41 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 Hi, 
 I find that there is too much space between the text and the beginning of the 
 paragraph. 
 
 \defineenumeration[ex]
 [text={\sc\bf Exercice},
 location=left,
 stopper={\bf.}]

\defineenumeration
  [ex]
  [text={Exercice},
   headstyle={\bf\feature[+][f:smallcaps]},
   width=fit,
  %distance=2em,
   alternative=left,
   stopper={.}]

\setupbodyfont[pagella]

\starttext

\startex
\input knuth
\stopex

\stoptext

 For example, I use the \topset with LuaLaTeX order. 

???

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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Sorry, but my question is unclear.
In fact, I created a new environment with the package amsthm in LuaLaTeX like
this :

\newtheoremstyle{exa}
  {\topsep}{\topsep}
  {}
  {0pt}
  {\strut\bfseries}
  {}
  {\newline}
  {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup
  {#2}}\thmnote{ \textnormal{(#3)}}}
\theoremstyle{exa}
\newtheorem{ex}{Exercice}

I try to do the same with ConteXt.


 
correctiondm7_seconde.pdfhttps://docs.google.com/file/d/0B-mkD83s36jbYTJhVFpUdGw3SjQ/edit?usp=drive_web

@Wolfgang The paragraph should find the following line, and not on the
same line
of text.

@Peter I do not see what changes adding inbetween = .

Thank 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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Wolfgang Schuster

Am 25.02.2014 um 23:48 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 Sorry, but my question is unclear. 
 In fact, I created a new environment with the package amsthm in LuaLaTeX like 
 this :
 
 \newtheoremstyle{exa}
   {\topsep}{\topsep}
   {}
   {0pt}
   {\strut\bfseries}
   {}
   {\newline}
   {\rule[0pt]{1mm}{1mm} \thmname{#1}\thmnumber{ \textup
   {#2}}\thmnote{ \textnormal{(#3)}}}
 \theoremstyle{exa}
 \newtheorem{ex}{Exercice}
 
 I try to do the same with ConteXt. 
 
 
  correctiondm7_seconde.pdf
 
 @Wolfgang The paragraph should find the following line, and not on the same 
 line of text.

And why had you “location=left” in your code snippet.

 @Peter I do not see what changes adding inbetween = „.

To avoid such problems it is always recommended to make a minimal example which 
demonstrates the problem.

\defineenumeration
  [ex]
  [text={Exercice},
   headstyle={\bf\feature[+][f:smallcaps]},
   inbetween={\blank[small]},
   stopper={.}]

\setupbodyfont[pagella]

\starttext

\startex
\input knuth
\stopex

\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] Too much space between the text and the beginning of the paragraph with the command \defineenumeration

2014-02-25 Thread Fabrice Couvreur
Because I'm really starting with ConteXt, and if I compile with location =
left or not, the result is the same (with minimal ConteXt).
For cons, I understand better the role of the option alternative = left,
right or top.
___
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
___