Re: [NTG-context] Parameter first of \setupindenting works?

2014-12-06 Thread Pablo Rodriguez
On 12/02/2014 04:12 PM, 19cat wrote:
 Well, I understood that:
  - indent first paragraph after heads is configured with indentnext of 
 \setuphead .
  - first/next option of \setupindenting refers only first paragraf of 
 document before heads.
 
 That is correct?

Sorry for the delay in replying.

Yes, indentnext indents next paragraph after element (not only used with
heads).

With trial and error, the next option from \setupindeting seems to
indent the paragraphs other than the first. First indents all
paragraphs, which seems to be the default behaviour.

Just in case 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] Parameter first of \setupindenting works?

2014-12-06 Thread 19cat
Thanks,

I test it, with trial and error, from yours comments.


19cat

El 06/12/2014, a les 11:29 a.m., Pablo Rodriguez oi...@gmx.es va escriure:
 On 12/02/2014 04:12 PM, 19cat wrote:
 Well, I understood that:
 - indent first paragraph after heads is configured with indentnext of 
 \setuphead .
 - first/next option of \setupindenting refers only first paragraf of 
 document before heads.
 
 That is correct?
 
 Sorry for the delay in replying.
 
 Yes, indentnext indents next paragraph after element (not only used with
 heads).
 
 With trial and error, the next option from \setupindeting seems to
 indent the paragraphs other than the first. First indents all
 paragraphs, which seems to be the default behaviour.
 
 Just in case 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
 ___
___
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] two issues with new hyphenator

2014-12-06 Thread Pablo Rodriguez
On 12/06/2014 12:20 AM, Hans Hagen wrote:
 On 12/5/2014 8:11 PM, Pablo Rodriguez wrote:
 I’m afraid that I get a zero in the next line after the underscore.
 
 i'll fix it

Many thanks for the fix, Hans.

 BTW, in your sample below, how can I get the underscore under the
 previous character? (Otherwise, the underscore has no use.)
 
 Hm, that was the idea of the example i sent earlier.

Excuse me, if I’m plainly mistaken, but from what I understand from the
sample below, I’m afraid I cannot find the code to get the underscore
under the previous character.

Many thanks for your help,


Pablo


 \definetype
 [TeXcode]
 [option=TEX,
  compact=absolute,
  lines=hyphenated]

 \definehyphenationfeatures
 [whatever]
 [righthyphenchar=_]

 \setuphyphenation
 [method=traditional]

 \unexpanded\def\TexC#1%
 {\dontleavehmode\begingroup
  \sethyphenationfeatures[whatever]%
  \normalexpanded{\TeXcode{\letterbackslash#1}}%
  \endgroup}

 \starttext
   \input tufte
   \dorecurse{100}{\TexC{definebodyfont} }
   \input tufte
 \stoptext

 i'll upload a beta (making one now)


-- 
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] two issues with new hyphenator

2014-12-06 Thread Hans Hagen

On 12/6/2014 12:40 PM, Pablo Rodriguez wrote:

On 12/06/2014 12:20 AM, Hans Hagen wrote:

On 12/5/2014 8:11 PM, Pablo Rodriguez wrote:

I’m afraid that I get a zero in the next line after the underscore.


i'll fix it


Many thanks for the fix, Hans.


BTW, in your sample below, how can I get the underscore under the
previous character? (Otherwise, the underscore has no use.)


Hm, that was the idea of the example i sent earlier.


Excuse me, if I’m plainly mistaken, but from what I understand from the
sample below, I’m afraid I cannot find the code to get the underscore
under the previous character.



\startluacode

local function addfunnyhyphen(tfmdata)
local exheight = tfmdata.parameters.xheight
local emwidth  = tfmdata.parameters.quad
local width= emwidth
local height   = exheight / 10
local depth= exheight / 2
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ right, -width },
{ down, depth },
{ rule, height, width },
}
}
end

fonts.constructors.newfeatures(otf).register {
name= funnyhyphen,
description = funny hyphen,
manipulators = {
base = addfunnyhyphen,
node = addfunnyhyphen,
}
}

\stopluacode

\definefontfeature[default][default][funnyhyphen=yes]

\starttext

\prehyphencharFE000

\hsize 1mm

averylongword

\stoptext


Many thanks for your help,


Pablo



\definetype
 [TeXcode]
 [option=TEX,
  compact=absolute,
  lines=hyphenated]

\definehyphenationfeatures
 [whatever]
 [righthyphenchar=_]

\setuphyphenation
 [method=traditional]

\unexpanded\def\TexC#1%
 {\dontleavehmode\begingroup
  \sethyphenationfeatures[whatever]%
  \normalexpanded{\TeXcode{\letterbackslash#1}}%
  \endgroup}

\starttext
   \input tufte
   \dorecurse{100}{\TexC{definebodyfont} }
   \input tufte
\stoptext

i'll upload a beta (making one now)






--

-
  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] Parameter first of \setupindenting works?

2014-12-06 Thread Aditya Mahajan

On Sat, 6 Dec 2014, Pablo Rodriguez wrote:


With trial and error,


Was the explanation on the wiki not clear on this?

http://wiki.contextgarden.net/Indentation


the next option from \setupindeting seems to
indent the paragraphs other than the first. First indents all
paragraphs, which seems to be the default behaviour.


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