Re: [NTG-context] \pm set too low in MkIV?

2014-05-06 Thread Otared Kavian
Hi Hans,

Thanks for your attention to the issue pointed out by Sanjoy.

On 6 mai 2014, at 20:14, Hans Hagen pra...@wxs.nl wrote:
 […]
 all minus' are below the baseline so consider it a feature

Yes this is the case in recent versions of mkiv, but in Plain TeX and mkii this 
is not the case: there the minus sign in \pm is aligned with the baseline.

I agree with Sanjoy and Mikael to say that it the minus sign in \pm should be 
aligned with the baseline: however I don’t know if this can be easily achieved.

Best regards: OK

 
 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
 ___

___
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] resize and center and clip image

2014-05-01 Thread Otared Kavian
Hi Mikael,

Out of curiosity I tried to typeset your example (after adding the usual 
\starttext, \stoptext), but using 
ConTeXt  ver: 2014.04.28 23:24 MKIV beta  fmt: 2014.4.29  int: 
english/english 
I obtained a TeX error:

tex errorerror on line 13 in file 
/Users/kavian/Context/essais/mkii/figures/resize-and-center.tex: ! Undefined 
control sequence


\startexternalfigurecollection ...igurecollection 
  {#1}\settrue \c_grph_inclu...
l.13 \clip[width=8cm,height=7cm]
  {%

 3 \startexternalfigurecollection[k.jpg]
 4 \useexternalfigure[k.jpg][k.jpg]
 5 \stopexternalfigurecollection

I did not understand what is the « Undefined control sequence », since I think 
\clip is a known control sequence.

Best regards: OK

On 1 mai 2014, at 15:38, Mikael P. Sundqvist mic...@gmail.com wrote:

 OK, sorry for the noise. I think I have the solution:
 
 \startexternalfigurecollection[k.jpg]
 \useexternalfigure[k.jpg][k.jpg]
 \stopexternalfigurecollection
 
 
 \externalfigurecollectionminwidth{k.jpg}
 \externalfigurecollectionmaxheight{k.jpg}
 
 \clip[width=8cm,height=7cm]{%
 \framed[width=8cm,height=7cm,align={middle,lohi},offset=overlay]{%
 \dimen0=\externalfigurecollectionminwidth{k.jpg}
 \dimen2=\externalfigurecollectionmaxheight{k.jpg}
 \dimen4=8cm
 \dimen6=7cm
 \startluacode
 if tex.dimen[0] / tex.dimen[2]  tex.dimen[4] / tex.dimen[6] then
  local skalning =
 -0.5*(tex.dimen[4]/tex.dimen[0]*tex.dimen[2]-tex.dimen[6])
  context(\\vskip%ssp, skalning)
  context.externalfigure({k.jpg},{width=8cm})
  context.sprint(foo)
 else
  local skalning =
 -0.5*(tex.dimen[6]/tex.dimen[2]*tex.dimen[0]-tex.dimen[4])
  context(\\hskip%ssp, skalning)
  context.externalfigure({k.jpg},{height=7cm})
  context.sprint(bar)
 end
 \stopluacode
 }}
 
 If there are any bad side effects of this or simplifications, please
 do not hesitate to tell me :)
 
 /Mikael
 
 On Thu, May 1, 2014 at 1:50 PM, Mikael P. Sundqvist mic...@gmail.com wrote:
 Hi!
 
 Assume that I want to fill in the text area with images, and I want to
 clip and scale them according to these rules:
 
 1) If the image is too wide (in sense of proportions), then scale it
 so that the height fits the text area height, center it, and clip it
 to the text area. (See the attached image, on top, where the blue area
 is supposed to show the text area and the red rectangle the image.)
 
 2) If the image is too high (in sense of proportions), then scale it
 so that the width fits the text area width, center it, and clip it to
 the text area. (See the attached image, on bottom.)
 
 The background why I want to do this is that I'm making a small
 template for presentations, and I'd like the users to insert images as
 background without really having to think about if their proportions
 fit or not.
 
 Best regards, 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] resize and center and clip image

2014-05-01 Thread Otared Kavian
Hi Mikael,

With your new definitions and lua code I could typeset and test a few examples: 
it is very nice, thanks for sharing!

Best regards: OK

On 1 mai 2014, at 17:07, Mikael P. Sundqvist mic...@gmail.com wrote:

 Interesting,
 
 I use ConTeXt  ver: 2014.04.28 23:24 MKIV beta  fmt: 2014.4.29  int:
 english/english
 
 and it works. I now defined this with argument:
 
 \startluacode
 userdata = userdata or {}
 function userdata.lundklippfyllbild(str, bredd, hojd)
 if tex.dimen[0] / tex.dimen[2]  tex.dimen[4] / tex.dimen[6] then
  local skalning =
 -0.5*(tex.dimen[4]/tex.dimen[0]*tex.dimen[2]-tex.dimen[6])
  context(\\vskip%ssp, skalning)
  context.externalfigure({str},{width=bredd})
  context.sprint(foo)
 else
  local skalning =
 -0.5*(tex.dimen[6]/tex.dimen[2]*tex.dimen[0]-tex.dimen[4])
  context(\\hskip%ssp, skalning)
  context.externalfigure({str},{height=hojd})
  context.sprint(bar)
 end
 end
 \stopluacode
 
 \unexpanded\def\lundklippfyllbild#1#2#3{%
 \startexternalfigurecollection[#1]%
 \useexternalfigure[#1][#1]%
 \stopexternalfigurecollection%
 \clip[
 width=#2,
 height=#3,
 hoffset=0mm,
 voffset=0mm,
 ]{%
 \framed[width=#2,height=#3,align={middle,lohi},offset=overlay,frame=off]{%
 \dimen0=\externalfigurecollectionminwidth{#1}%
 \dimen2=\externalfigurecollectionmaxheight{#1}%
 \dimen4=#2%
 \dimen6=#3%
 {\ctxlua{userdata.lundklippfyllbild([==[#1]==],[==[#2]==],[==[#3]==])}
 
 
 
 and then run
 
 
 \lundklippfyllbild{k.jpg}{\textwidth}{\textheight}
 
 
 it works well. Of course you should replace k.jpg with some other image 
 name...
 
 /Mikael
 
 PS And please, if someone has opinions about the code, don't hesitate
 to tell me. This is my first time using lua...
 
 
 On Thu, May 1, 2014 at 4:59 PM, Otared Kavian ota...@gmail.com wrote:
 Hi Mikael,
 
 Out of curiosity I tried to typeset your example (after adding the usual 
 \starttext, \stoptext), but using
ConTeXt  ver: 2014.04.28 23:24 MKIV beta  fmt: 2014.4.29  int: 
 english/english
 I obtained a TeX error:
 
 tex errorerror on line 13 in file 
 /Users/kavian/Context/essais/mkii/figures/resize-and-center.tex: ! Undefined 
 control sequence
 
 
 \startexternalfigurecollection ...igurecollection
  {#1}\settrue 
 \c_grph_inclu...
 l.13 \clip[width=8cm,height=7cm]
  {%
 
 3 \startexternalfigurecollection[k.jpg]
 4 \useexternalfigure[k.jpg][k.jpg]
 5 \stopexternalfigurecollection
 
 I did not understand what is the « Undefined control sequence », since I 
 think \clip is a known control sequence.
 
 Best regards: OK
 
 On 1 mai 2014, at 15:38, Mikael P. Sundqvist mic...@gmail.com wrote:
 
 OK, sorry for the noise. I think I have the solution:
 
 \startexternalfigurecollection[k.jpg]
\useexternalfigure[k.jpg][k.jpg]
 \stopexternalfigurecollection
 
 
 \externalfigurecollectionminwidth{k.jpg}
 \externalfigurecollectionmaxheight{k.jpg}
 
 \clip[width=8cm,height=7cm]{%
 \framed[width=8cm,height=7cm,align={middle,lohi},offset=overlay]{%
 \dimen0=\externalfigurecollectionminwidth{k.jpg}
 \dimen2=\externalfigurecollectionmaxheight{k.jpg}
 \dimen4=8cm
 \dimen6=7cm
 \startluacode
 if tex.dimen[0] / tex.dimen[2]  tex.dimen[4] / tex.dimen[6] then
 local skalning =
 -0.5*(tex.dimen[4]/tex.dimen[0]*tex.dimen[2]-tex.dimen[6])
 context(\\vskip%ssp, skalning)
 context.externalfigure({k.jpg},{width=8cm})
 context.sprint(foo)
 else
 local skalning =
 -0.5*(tex.dimen[6]/tex.dimen[2]*tex.dimen[0]-tex.dimen[4])
 context(\\hskip%ssp, skalning)
 context.externalfigure({k.jpg},{height=7cm})
 context.sprint(bar)
 end
 \stopluacode
 }}
 
 If there are any bad side effects of this or simplifications, please
 do not hesitate to tell me :)
 
 /Mikael
 
 On Thu, May 1, 2014 at 1:50 PM, Mikael P. Sundqvist mic...@gmail.com 
 wrote:
 Hi!
 
 Assume that I want to fill in the text area with images, and I want to
 clip and scale them according to these rules:
 
 1) If the image is too wide (in sense of proportions), then scale it
 so that the height fits the text area height, center it, and clip it
 to the text area. (See the attached image, on top, where the blue area
 is supposed to show the text area and the red rectangle the image.)
 
 2) If the image is too high (in sense of proportions), then scale it
 so that the width fits the text area width, center it, and clip it to
 the text area. (See the attached image, on bottom.)
 
 The background why I want to do this is that I'm making a small
 template for presentations, and I'd like the users to insert images as
 background without really having to think about if their proportions
 fit or not.
 
 Best regards, 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

Re: [NTG-context] \triangledown placed too low in Palatino

2014-04-11 Thread Otared Kavian
Hi,

The \triangle operator is used for instance in the « symmetric difference » of 
two subsets: if $E$ is a set and $A \subset E$, and $B \susbet E$, then one 
defines
\startformula
A \triangle B := (A \cup B) \setminus (A \cap B).
\stopformula
Then the mapping $(A,B) \mapsto A \triangle B$ is a commutative, associative 
binary operator on the subsets of $E$.

Some people use instead $A \Delta B$, but this is not the traditional, nor the 
correct way, to write this « symmetric difference » of two sets. This is why, I 
guess, in TeX \triangle is an operator.
I have seen also \triangledown as an operator, but I don’t recall the context 
in which it was used…

Regarding the notation \nabla to denote the gradient, and \Delta, to denote the 
Laplace operator (which by the way can be defined as $\Delta u := \nabla \cdot 
(\nabla u)$), Mikael Sundqvist gave the correct observations.

Best regards: OK

On 11 avr. 2014, at 05:48, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 10 Apr 2014, Sanjoy Mahajan wrote:
 
 Jannik,
 
 You are right.  \nabla looks much nicer and is placed correctly.  (I
 still think the \triangledown placement is slightly off.)
 
 My environment files from MkII days have \def\nabla{\triangledown}, so I
 never tried the true \nabla until your suggestion.
 
 In MkIV: \triangledown is mapped to 0x25BD while nabla is mapped to 0x2207. 
 These are different glyphs.
 
 IIUC, the difference in placement is because \triangledown is defined as a 
 mathop (and hence centered on the math-axis) while \nabla is defined as a 
 mathord. Compare:
 
 \startformula
  \nabla T
  \quad
  \triangledown T
  \quad
  \mathop{\nabla} T
 \stopformula
 
 From what I remember, I was the one who added the mappings for triangledown 
 as a mathop based on, I believe, unicode-math package in LaTeX. I don't 
 understand what all the triangle operators are supposed to do. As such, I 
 cannot say whether the wrong placement is due to the wrong font metrics or 
 the wrong mapping (mathop vs mathord) by ConTeXt.
 
 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] issues with greeknumerals

2014-04-07 Thread Otared Kavian

On 7 avr. 2014, at 21:25, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 07.04.2014 um 21:18 schrieb Pablo Rodriguez oi...@gmx.es:
 […]
 
 Since Romannumerals and romannumerals (or Characters and characters) are
 required, I thought it would be consistent to use Greeknumerals and
 greeknumerals. But I was obviously wrong.
 
 This could be a bug because there shouldn’t be a difference between the two 
 conversion names.

Maybe not, since Roman numerals i, ii, iii, iv, etc correspond really to the 
way Romans used to write numbers, while Greek numerals \alpha, \beta, \gamma, 
\delta, etc are rather our modern way of numbering items, analogous to the case 
one would say a), b), c), d) etc. 
Would Thomas Schmitz give us some insight?

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] issues with greeknumerals

2014-04-07 Thread Otared Kavian
Thanks Thomas and Wolfgang for your attention.

Actually the issue with the name of conversions exist also with 
Persiannumerals, which in ConTeXt results in the so called « Abjad numerals », 
instead of resulting in the use of Persian digits (or Eastern Arabic digits).

Best regards: OK

On 8 avr. 2014, at 05:09, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 07.04.2014 um 23:24 schrieb Otared Kavian ota...@gmail.com:
 
 On 7 avr. 2014, at 21:25, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 Am 07.04.2014 um 21:18 schrieb Pablo Rodriguez oi...@gmx.es:
 […]
 
 Since Romannumerals and romannumerals (or Characters and characters) are
 required, I thought it would be consistent to use Greeknumerals and
 greeknumerals. But I was obviously wrong.
 
 This could be a bug because there shouldn’t be a difference between the two 
 conversion names.
 
 Maybe not, since Roman numerals i, ii, iii, iv, etc correspond really to the 
 way Romans used to write numbers, while Greek numerals \alpha, \beta, 
 \gamma, \delta, etc are rather our modern way of numbering items, analogous 
 to the case one would say a), b), c), d) etc. 
 
 I’m speaking about the different results when you use “G” or “Greeknumerals” 
 as name for the conversion in \defineconversionset, while the first works in 
 bookmarks the second doesn’t work even though there is no difference between 
 both names.
 
 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] \placefigure and title bug in latest beta

2014-04-06 Thread Otared Kavian
Hi,

I can confirm this…
This is probably due to the new features Hans added today.

Also, the new feature 

\placelist[figure][criterium=text]

places indeed the list of the figures, but the names of the figures, or rather 
their captions are all indicated by the word « list ».

Best regards: OK


On 6 avr. 2014, at 16:26, Alan Bowen bowenala...@gmail.com wrote:

 Hans—
 
 In today’s beta, the following produces a figure entitled “Figure 1 title”:
 
 \setupexternalfigures[location={local,default}]
 \starttext
 \useexternalfigure[cow.pdf]
 \startplacefigure[title={A cow}]
   {\externalfigure[Graphic][cow.pdf]}
 \stopplacefigure
 \stoptext
 
 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
 ___

___
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] Footnote maker in parentheses

2014-03-25 Thread Otared Kavian
Hi Stéphane,

Maybe this is what you want 

\define[1]\MyFootnotenoteCommand{\high{(#1)}}

\setupnotation[footnote]
[textcommand=\MyFootnoteCommand
distance=1em,
left={(},
right={)}]
\starttext
This is a note\footnote{I’m a footnote.}.
\stoptext

Best regards: OK

On 25 mars 2014, at 14:02, Stéphane Goujet stephane.gou...@wanadoo.fr wrote:

 Hello,
 
 
  I would like that the footnote marker (both in the note
 call and the footnote text) appear in parentheses.
 
  I tried using :
 
 \setupnotation[footnote][titleleft={(},titleright={)}]
 
 because the names title* sounded close to what I was looking for, but
 it did not produce any change (neither in the call nor in the foonote
 itself).
 
  Are those the correct parameters to play with ?
  Do they need another parameter/option to be set in order to enable
 them ?
 
 
 
 Greetings,
  Stéphane.
 
 ___
 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] lower superscripts in MkIV -- too low?

2014-03-22 Thread Otared Kavian
Hi Sanjoy,

I agree with you to say that the position of subscripts and superscripts in 
mkiv is not perfect: the same remark applies to the position of the derivative 
sign « prime » as $u’(t)$.

Actually in mkii (and also in plain TeX) the positions of the superscripts in 
your example are the same, but this is not the case with subscripts:
$x_{3}\ x\mathstrut_{3}$
that is in mkii the latter $x\mathstrut_{3}$ gives a lower subscript, while in 
plain TeX both subscripts are positioned at an identical depth.

I would say the position of subscripts and superscripts in mkiv should be 
identical with one gets with the latest beta (version 2014.03.20 16:59) in the 
following example
\starttext
$x\mathstrut_{3}$ and $x\mathstrut^{3}$
\stoptext

However as Hans pointed out, regarding maths typesetting in mkiv there are also 
some font related issues.

Best regards: OK


On 21 mars 2014, at 17:34, Sanjoy Mahajan san...@mit.edu wrote:

 Dear math typesetting aficianados,
 
 In the following example,
 
 \starttext
 $x^3\ x\mathstrut^3$
 \stoptext
 
 the superscript without the strut is about 2pt lower than with the
 strut, using MkIV.  With MkII or plain TeX, they are the same height
 (at the higher position obtained by using the \mathstrut in MkIV).
 
 My eye tells me that the higher position looks more right.  Do others
 agree?  Or, if it's a matter of taste, is the difference configurable
 so that one can get the MkII behavior even without the \mathstrut?
 
 -- 
 -Sanjoy
 ___
 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] solutions and problems

2014-02-20 Thread Otared Kavian
Hi,

Maybe this is what you looking for:

 begin question-hint-answer.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question][alternative=hanging,width=2.5cm,text={Question},stopper={.}]
\defineenumeration[hint][alternative=hanging,width=4cm,text={Hint for 
question},stopper={.}]
\defineenumeration[answer]  [alternative=hanging,width=4.5cm,text={Answer to 
question},stopper={.}]

\keepblocks[question]
\hideblocks[hint]
\hideblocks[answer]

\starttext

\section{Questions}

\beginquestion
\startquestion
  Compute $4\times 5$.
\stopquestion
\endquestion


\beginhint
\starthint
  Use the fact that $2\times 5 = 10$.
\stophint
\endhint

\beginanswer
\startanswer
  $20$.
\stopanswer
\endanswer

\beginquestion
\startquestion
  What is the value of $100/10$?
\stopquestion
\endquestion

\beginhint
\starthint
Remember that $10\times 10 = 100$.
\stophint
\endhint

\beginanswer
\startanswer
$10$
\stopanswer
\endanswer

\section{Hints}

\useblocks[hint]

\section{Answers}

\useblocks[answer]

\stoptext
 end question-hint-answer.tex

Best regards: OK

On 20 févr. 2014, at 10:15, Xan dxpubl...@telefonica.net wrote:

 Hi,
 
 Just a question about blocks... I consulted the manual, but I'm in trouble:
 
 I have this definitions:
 
 % the exercise
 \defineenumeration
  [exercici]
  
 [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit]
 
 
 \defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried]
 
 \defineblock[resposta] % the answer
 \hideblocks[resposta]
 
 And in my text, I have:
 
 \startexercici
 \beginresposta
 \resposta Exercici 2 (Solucions: \startitemize[a,text] \item D, \item I, 
 \item D, \item No té relació, \item D, \item D, \item No té relació, \item No 
 té relació, \item D.\stopitemize) \par
 \endresposta
 \stopexercici
 ...
 
 \startmode[solucions]
 \subject{Respostes} %Answers
 
 \selectblocks[resposta][criterium=section]
 \stopmode
 ...
 
 
 Is there any way that the answers (resposta) has the same number as the 
 'exercici' in which it belongs to? If not, I have to put Solutions of 
 exercici 2 in my 'resposta'
 
 Thank you very much
 ___
 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] mp: choose colors randomly from list

2014-02-19 Thread Otared Kavian
Hi Thomas,

One way is to increase the « degree of randomness » by saying
withcolor transparent (1,0.3,mycolor[round(uniformdeviate(10*i)/10)])
or you can define a RandomColor as below:

\startuniqueMPgraphic{colortest}
save mycolor ; color mycolor[] ;
mycolor[1] := (0.07, 0.21, 0.65) ;
mycolor[2] := (0.6, 0.6, 0.4) ;
mycolor[3] := (0.5, 0.8, 0.5) ;
path p ;
p := unitsquare scaled 2cm ;
for i=1 upto 3:
fill p shifted (i*2.5cm, 0) withcolor transparent 
(1,0.3,mycolor[round(uniformdeviate(10*i)/10)]) ;
endfor ;
\stopuniqueMPgraphic

\ctxlua{
CoeffRed = math.random(1,100)/100 ; 
CoeffGreen = math.random(1,100)/100 ;
CoeffBlue = math.random(1,100)/100 ;
}
\def\CoeffRed{\ctxlua{tex.print(CoeffRed)}}
\def\CoeffGreen{\ctxlua{tex.print(CoeffGreen)}}
\def\CoeffBlue{\ctxlua{tex.print(CoeffBlue)}}

\definecolor[RandomColor]
[r=\CoeffRed,
g=\CoeffGreen,
b=\CoeffBlue
]

\starttext

\uniqueMPgraphic{colortest}

\startcolor[RandomColor]\bf This is a RandomColor \stopcolor

\stoptext

Best regards: OK

On 19 févr. 2014, at 11:10, Schmitz Thomas A. thomas.schm...@uni-bonn.de 
wrote:

 Hi all,
 
 I would like to have mp choose a (transparent) color randomly from a 
 predefined list. My naive approach was (let’s restrict it to three colors):
 
 \startuniqueMPgraphic{colortest}
 save mycolor ; color mycolor[] ;
 mycolor[1] := (0.07, 0.21, 0.65) ;
 mycolor[2] := (0.6, 0.6, 0.4) ;
 mycolor[3] := (0.5, 0.8, 0.5) ;
 path p ;
 p := unitsquare scaled 2cm ;
 for i=1 upto 3:
 fill p shifted (i*2.5cm, 0) withcolor transparent 
 (1,0.3,mycolor[round(uniformdeviate(i))]) ;
 endfor ;
 \stopuniqueMPgraphic
 
 \starttext
 
 \uniqueMPgraphic{colortest}
 
 \stoptext
 
 Is there a better approach? The selection isn’t random enough for my taste 
 :-) Sometimes, in my real document, I get black color, even though black 
 isn’t in the list, so I suspect that mp doesn’t get a correct value for 
 mycolor[round(uniformdeviate(i))]. And finally: how could I define the colors 
 in a way that I could also use them outside of mp? Or do I have to copy-paste 
 the definitions into \definecolor’s? 
 
 All best
 
 Thomas
 ___
 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] [Math in ConTeXt]

2014-02-16 Thread Otared Kavian
Hi all,

After a series of exchanges on the list, on the topic of how mathematics 
typesetting is and should be in ConTeXt, I am writing you this message to ask 
all those who use ConTeXt to typeset mathematics and who encounter various 
types of difficulties, or shortcomings, to send me their remarks, either on 
list or off list. 
I will check the problems with Aditya Mahajan and Mikael Sundqvist, and then 
submit feature requests or bug reports to Hans and Aditya who will try to fix 
the issues (I have asked these people about this, and they all agree…).

In order to help me manage efficiently the task, please add the following tag 

[Math on ConTeXt]

to the Subject field of your message.

The issues which may be addressed are of the following categories:

1. Differences in the output of ConTeXt mkiv vs mkii (due to 
differences in engine)

2.  Differences in the output of ConTeXt mkiv vs LuaLaTeX + Opentype 
math fonts (due to differences in macro package)

3. Differences in the output of ConTeXt mkiv vs PDFLaTeX + AMSMath (due 
to differences in expectation)

4. Bug reports (regarding commands of plain TeX missing in ConTeXt, the 
position of math accents, etc…)

Indeed some of the issues may have their origin in the fonts (therefore not 
easy to fix thouroughly), but others may be fixed once the expectations are 
clearly expressed. 
As usual, please give minimal examples imbedded in 

\starttext
………
 \stoptext 

so that we can test the issue you are reporting.
Thanks for your attention and cooperation,
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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-09 Thread Otared Kavian
Hi,

I do use ConTeXt for typesetting mathematics, and actually I began to use 
ConTeXt several years ago for my work as a mathematician: up to now I haven’t 
encountered a single instance in which ConTeXt would not give the expected 
result, and as a matter of fact the out-of-the-box capabilities and the quality 
of the typestting when using ConTeXt seems to me quite superior to plain TeX or 
LaTeX. I use ConTeXt for writing exercise sheets, lecture notes, and drafts of 
papers and all the presentations for my talks.
It is true that when submitting my papers to journals, unfortunately I have to 
switch back to LaTeX, but even so I prefer using ConTeXt in all the preparation 
steps because it is more convenient to use, and also I can use these notes 
directly for my lecture notes and presentations. 

Now coming to answer your questions:

 I have a few questions:
 
 0. Do you think that this is only a problem for beginners of ConText or it is 
 a general problem of ConTeXt?

All depends on how complex one's document is, and how deep one’s knowledge of 
TeX and ConTeXt is.

 1. How many of ConTeXt users use this tool for typesetting of non-elementary 
 mathematics?

I cannot say anything about the overall number of users, but as I said above I 
use it for the kind of maths I am doing: some of it is really not elementary…

 2. Are you satisfied with the results, which produces ConTeXt (thinking in 
 the field of mathematics rate)?

I am absolutely satisfied with the results.

 3. What things do you need to have in ConTeXt study that one could bet 
 mathematics at a reasonable level?

My knowledge of TeX and ConTeXt is rather elementary, but this does not prevent 
me to use ConTeXt. Moreover in the rare situations in which I don’t know how to 
achieve a certain result, there a good group of gurus on the mailing list to 
help solve my problem.

 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g. in the 
 future)?

For sure it is: the reason for which ConTeXt is seldom used among 
mathematicians (or other scientists) is the fact that journals have developped 
specific macros for their layout and despite the fact that the quality and 
shortcomings of LaTeX are well-known, publishers of these journals are more 
than reluctant to switch to a more modern macro package of TeX, such as ConTeXt.

 5. Can you think of any more questions that should be here?

Maybe one can imagine a script which would downgrade a file written in ConTeXt 
to a LaTeX file, once one accepts to lose the quality of the typesetting…

Best regards: OK

On 9 févr. 2014, at 20:09, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello ConTeXist.
 I am very sorry for this OFF TOPIC contribution.
 
 For writing of this text led me several hours of searching on internet. I was 
 looking for ways to typing of non-elementary math in ConTeXt
 
 Already a long time I use ConTeXt typesetting lot of different things and I 
 am very satisfied. In the many things, of which I typed, was maths 
 represented only marginally and minimally. Now I need to type some 
 mathematics (at secondary school level) and I found that I came across 
 borders of my knowledge of ConTeXt, or on possibilities of ConTeXt for 
 typesetting of mathematics.
 I do not in any way call into question the ability of ConTeXt typesetting 
 mathematics, although I think that who wants to type mathematics then use 
 LaTeX.
 I want find experience of users of ConTeXt for real using of ConTeXt for 
 typesetting of mathematics. I wonder how users use possible math modules 
 (exist anything?) to be usable results.
 
 I have a few questions:
 
 0. Do you think that this is only a problem for beginners of ConText or it is 
 a general problem of ConTeXt?
 1. How many of ConTeXt users use this tool for typesetting of non-elementary 
 mathematics?
 2. Are you satisfied with the results, which produces ConTeXt (thinking in 
 the field of mathematics rate)?
 3. What things do you need to have in ConTeXt study that one could bet 
 mathematics at a reasonable level?
 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g. in the 
 future)?
 5. Can you think of any more questions that should be here?
 
 
 I hope that my question will help other beginners who would like to typing of 
 mathematics use ConText - this unique and useful tool.
 
 Thanks for all the answers.
 
 Jaroslav Hajtmar
 
 
 ___
 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 

[NTG-context] Metafun: numeric=color

2014-01-29 Thread Otared Kavian
Hi,

With the latest beta,

ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.1.29

in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) 
which used to typeset correctly until last week, I get an error message saying:

Preloading the plain mem file, version 1.004 for metafun ii  cyan  
(0,1,1) ! Equation cannot be performed (numeric=color). 

Unfortunately I cannot reproduce this error message in a minimal example, but 
can anyone tell me whether something has changed in MetaPost?

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
___


[NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Otared Kavian
Hi Hans,

It seems that with the latest beta mkiv, version

ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  

\widetilde and \widehat in mathmode are misplaced (and this is so in any of the 
fonts I tried).
Please compare the result of the following in mkii (where everything is 
correct) and in mkiv:
 begin tilde-hat.tex
\starttext

We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := \int_{{\Bbb 
R}}\exp(-{\rm i}x\xi)f(x)dx$.

\stoptext
 end tilde-hat.tex
The attached PDF is obtained with mkiv.
Best regards: OK



bug-widetilde.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] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Otared Kavian
Yes that’s correct!
Thanks Hans for the quick fix (I tried a dozen different fonts, and they are 
all fine).

Best regards: OK

On 24 janv. 2014, at 13:09, Jannik Voges researchj...@icloud.com wrote:

 The minimal example works fine with the latest beta (ConTeXt  ver: 2014.01.24 
 10:20 MKIV beta  fmt: 2014.1.24).
 
 
 Am 23.01.2014 um 21:52 schrieb Otared Kavian otared.kav...@gmail.com:
 
 Hi Hans,
 
 It seems that with the latest beta mkiv, version
 
  ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  
 
 \widetilde and \widehat in mathmode are misplaced (and this is so in any of 
 the fonts I tried).
 Please compare the result of the following in mkii (where everything is 
 correct) and in mkiv:
  begin tilde-hat.tex
 \starttext
 
 We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := 
 \int_{{\Bbb R}}\exp(-{\rm i}x\xi)f(x)dx$.
 
 \stoptext
  end tilde-hat.tex
 The attached PDF is obtained with mkiv.
 Best regards: OK
 
 bug-widetilde.pdf___
 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
 ___

___
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] Misplaced \widehat and \widetilde in mkiv?

2014-01-23 Thread Otared Kavian
Hi Hans,

It seems that with the latest beta mkiv, version

ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  

\widetilde and \widehat in mathmode are misplaced (and this is so in any of the 
fonts I tried).
Please compare the result of the following in mkii (where everything is 
correct) and in mkiv:
 begin tilde-hat.tex
\starttext

We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := \int_{{\Bbb 
R}}\exp(-{\rm i}x\xi)f(x)dx$.

\stoptext
 end tilde-hat.tex
The attached PDF is obtained with mkiv.
Best regards: OK



bug-widetilde.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
___

[NTG-context] Latest beta: file publ-old.mkiv not found

2014-01-14 Thread Otared Kavian
Hi Hans,

After updating to th elatest version,
Context 2014.01.14 15:03
one cannot typeset anymore with mkiv because a file seems missing. Here is the 
error message:
 I can't find file `publ-old.mkiv'.
to be read again 
\relax 
l.490 \loadmarkfile{publ-old}

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] Latest beta: file publ-old.mkiv not found

2014-01-14 Thread Otared Kavian

On 14 janv. 2014, at 16:27, Hans Hagen pra...@wxs.nl wrote:

 On 1/14/2014 4:17 PM, Otared Kavian wrote:
 Hi Hans,
 
 After updating to th elatest version,
  Context 2014.01.14 15:03
 one cannot typeset anymore with mkiv because a file seems missing. Here is 
 the error message:
   I can't find file `publ-old.mkiv'.
  to be read again
  \relax
  l.490 \loadmarkfile{publ-old}
 
 fixed ... that's the compatibility mechanism kicking in (there is new bib 
 code .. see doc/context/manuals/allkind path)

Thanks Hans!
Actually in order to typeset a document I was finishing, I modified 
context.mkiv at line 490 in the following way:
%\loadmarkfile{publ-old}
\loadmarkfile{m-oldbibtex}
and then could finish… Nevertheless I’ll update again in a few hours.

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] setuphead for in-paragraph head ?

2014-01-12 Thread Otared Kavian
Hi Jaroslav,

Actually the formatting of what you put in the block determined for example by
\beginanswer
The answer is…
\endanswer
is independent of the block mechanism: you can use whatever structure you want. 
In the example we exchanged on, an enumeration such as
\startanswer
\stopanswer
where this \start \stop has been defined by \defineenumeration[answer], but you 
can use your own compact formatting instead of this.

Best regards: OK

On 12 janv. 2014, at 11:45, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello Otared and Wolfgang.
 
 Thanks for launching this example.
 Is there a possibility to write the answers into a more compact form (more 
 columns, one paragraph, etc) like in any textbooks? I tried experimenting, 
 but I was unable to put answers into a compact form.
 Thanks Jaroslav Hajtmar
 
 Here is my modification of answer enumeration (not working):
 
  begin question-hint-answer-blocks.tex
 \defineblock[question]
 \defineblock[hint]
 \defineblock[answer]
 
 \defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]
 
 \defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]
 
 \defineenumeration[answer]
[alternative=hanging,
beforehead=,
afterhead=,
 before={\startcolumns[n=4]},
after=\stopcolumns,
width=0.5em,
text={},
headstyle={},
stopper={.}]
 
 \setupblock[question][before={\startquestion},after={\stopquestion}]
 \setupblock[hint][before={\starthint},after={\stophint}]
 \setupblock[answer][before={\startanswer},after={\stopanswer}]
 
 \keepblocks[question]
 \hideblocks[hint]
 \hideblocks[answer]
 
 \starttext
 
 \section{Questions}
 
 \beginquestion
  Compute $4\times 5$.
 \endquestion
 
 \beginhint
  Use the fact that $2\times 5 = 10$.
 \endhint
 
 \beginanswer
  $20$.
 \endanswer
 
 \beginquestion
  What is the value of $100 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 \beginquestion
  Compute $4\times 5$.
 \endquestion
 
 \beginhint
  Use the fact that $2\times 5 = 10$.
 \endhint
 
 \beginanswer
  $20$.
 \endanswer
 
 \beginquestion
  What is the value of $100 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 \beginquestion
  Compute $4\times 5$.
 \endquestion
 
 \beginhint
  Use the fact that $2\times 5 = 10$.
 \endhint
 
 \beginanswer
  $20$.
 \endanswer
 
 \beginquestion
  What is the value of $100 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 \beginquestion
  Compute $4\times 5$.
 \endquestion
 
 \beginhint
  Use the fact that $2\times 5 = 10$.
 \endhint
 
 \beginanswer
  $20$.
 \endanswer
 
 \beginquestion
  What is the value of $100 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 
 \section{Hints to all questions}
 
 \useblocks[hint]
 
 \section{Answers to all questions}
 
 \useblocks[answer]
 
 \stoptext
  end question-hint-answer-blocks.tex
 
 
 
 Dne 11.1.2014 20:01, Otared Kavian napsal(a):
  begin question-hint-answer-blocks.tex
 \defineblock[question]
 \defineblock[hint]
 \defineblock[answer]
 
 \defineenumeration[question]
  [alternative=hanging,
  width=2.5cm,
  text={Question},
  headstyle={\bi},
  stopper={.}]
  
 \defineenumeration[hint]
  [alternative=hanging,
  width=4cm,
  text={Hint for question},
  headstyle={\bi},
  stopper={.}]
 
 \defineenumeration[answer]
  [alternative=hanging,
  width=4.5cm,
  text={Answer to question},
  headstyle={\bi},
  stopper={.}]
 
 \setupblock[question][before={\startquestion},after={\stopquestion}]
 \setupblock[hint][before={\starthint},after={\stophint}]
 \setupblock[answer][before={\startanswer},after={\stopanswer}]
 
 \keepblocks[question]
 \hideblocks[hint]
 \hideblocks[answer]
 
 \starttext
 
 \section{Questions}
 
 \beginquestion
   Compute $4\times 5$.
 \endquestion
 
 \beginhint
   Use the fact that $2\times 5 = 10$.
 \endhint
 
 \beginanswer
   $20$.
 \endanswer
 
 \beginquestion
   What is the value of $100 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 \section{Hints to all questions}
 
 \useblocks[hint]
 
 \section{Answers to all questions}
 
 \useblocks[answer]
 
 \stoptext
  end question-hint-answer-blocks.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

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-12 Thread Otared Kavian
Hi Wolfgang,

Thanks for the tip: I’ll try to adapt what you suggest to the case of blocks 
and question-hint-answer, and then let you know if I succeed.
Out of curiosity, how can one access the counter associated to an enumeration 
or an item?

Also, if I understand correctly, the command
\increment\QuestionCounter
creates first a counter named QuestionCounter, if it does not exist yet, and 
then increments its value: so one does not need anymore commands such as
\newcounter\QuestionCounter
before incrementing it. Am I right?

Best regards: OK

On 12 janv. 2014, at 22:40, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 […]
 When you have only questions and answers you can use the coupling key but in 
 your case something like below is necessary:
 
 \defineenumeration[Question]
 \defineenumeration[Answer]
 
 \define\startquestion
  {\increment\QuestionCounter
   \expanded{\startQuestion[reference=Question:\QuestionCounter]}}
 
 \define\stopquestion
  {\stopQuestion
   \par
   \in{Answer}[Answer:\QuestionCounter]}
 
 \define\startanswer
  {\expanded{\startAnswer[reference=Answer:\QuestionCounter]}}
 
 \define\stopanswer
  {\stopAnswer
   \par
   \in{Question}[Question:\QuestionCounter]}
 
 \setupinteraction[state=start]
 
 \starttext
 
 \startquestion
 What is the answer to life the universe and everything?
 \stopquestion
 
 \page
 
 \startanswer
 42.
 \stopanswer
 
 \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] setuphead for in-paragraph head ?

2014-01-11 Thread Otared Kavian
Hi Wolfgang,

Many thanks for your attention and insight.
With your code everything works as expected. In case others would be 
interested, I give here a slight modification of what you sent, which works 
very well with mkiv: I only added 
\setupblock[question][before={\startquestion},after={\stopquestion}]
so that one can just say \beginquestion \endquestion without having to enter 
each time \startquestion \stopquestion. I don’t know whether this is a good 
idea or not, as it may have side effects…

I will put this example on the wiki, but before doing so I have another 
question:
can one add two automatic links at the end of each question so that one can 
navigate easily to the respective hint or answer corresponding to that 
question? Indeed if this were possible, one would add also two automatic links 
to each hint going to its question and the corresponding answer, and two other 
links to each answer going to its hint and question. One can do this manually 
by adding a reference to each question, each hint and each answer, but it would 
be nice to have this done automatically.

Best regards: OK
PS: here is the complete example for question-hint-answer:

 begin question-hint-answer-blocks.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]

\defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]

\defineenumeration[answer]
[alternative=hanging,
width=4.5cm,
text={Answer to question},
headstyle={\bi},
stopper={.}]

\setupblock[question][before={\startquestion},after={\stopquestion}]
\setupblock[hint][before={\starthint},after={\stophint}]
\setupblock[answer][before={\startanswer},after={\stopanswer}]

\keepblocks[question]
\hideblocks[hint]
\hideblocks[answer]

\starttext

\section{Questions}

\beginquestion
  Compute $4\times 5$.
\endquestion

\beginhint
  Use the fact that $2\times 5 = 10$.
\endhint

\beginanswer
  $20$.
\endanswer

\beginquestion
  What is the value of $100 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\section{Hints to all questions}

\useblocks[hint]

\section{Answers to all questions}

\useblocks[answer]

\stoptext
 end question-hint-answer-blocks.tex


On 11 janv. 2014, at 10:12, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 
 Am 11.01.2014 um 00:36 schrieb Otared Kavian ota...@gmail.com:
 
 Hi Wolfgang,
 
 In mkiv, even using \startanswer, \stopanswer (and the same syntax with 
 questions and hints) the blocks mechanism seems to be broken.
 The error message is still the following:
 
 \dostopnormalblock ...meter \c!after \par \egroup 
   
 argument ...fact that $2\times 5 = 10$. \dostopnormalblock 
   \dostartnormalblock 
 {hint}...
 \dodowithpar ...dler \v!construction \endcsname #1
   \csname 
 \??constructionsto...
 
 When I understand a little bit more about that mechanism I’ll do other 
 testings and eventually ask Hans about what has been changed regarding 
 blocks.
 
 You have to convert the question, hint and answer environment.
 
 What the block environment does is to save the content from the begin to the 
 end block and hides it when you use \hideblocks[…]. To output the content of 
 the environments you can use \useblocks[…].
 
 
 \defineblock[question]
 \defineblock[hint]
 \defineblock[answer]
 
 \defineenumeration[question][alternative=hanging,text={Question},stopper={.}]
 \defineenumeration[hint][alternative=hanging,text={Hint for 
 question},stopper={.}]
 \defineenumeration[answer]  [alternative=hanging,text={Answer to 
 question},stopper={.}]
 
 \keepblocks[question]
 \hideblocks[hint]
 \hideblocks[answer]
 
 \starttext
 
 \section{Questions}
 
 \beginquestion
 
 \startquestion
   Compute $4\times 5$.
 \stopquestion
 
 \beginhint
 \starthint
   Use the fact that $2\times 5 = 10$.
 \stophint
 \endhint
 
 \beginanswer
 \startanswer
   $20$.
 \stopanswer
 \endanswer
 
 \endquestion
 
 \beginquestion
 
 \startquestion
   What is the value of $100 / 10$?
 \stopquestion
 
 \beginhint
 \starthint
 Remember that $10\times 10 = 100$.
 \stophint
 \endhint
 
 \beginanswer
 \startanswer
 $10$
 \stopanswer
 \endanswer
 
 \endquestion
 
 \section{Hints}
 
 \useblocks[hint]
 
 \section{Answers}
 
 \useblocks[answer]
 
 \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

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-10 Thread Otared Kavian
Hi Wolfgang,

In mkiv, even using \startanswer, \stopanswer (and the same syntax with 
questions and hints) the blocks mechanism seems to be broken.
The error message is still the following:

\dostopnormalblock ...meter \c!after \par \egroup 
  
argument ...fact that $2\times 5 = 10$. \dostopnormalblock 
  \dostartnormalblock {hint}...
\dodowithpar ...dler \v!construction \endcsname #1
  \csname \??constructionsto...

When I understand a little bit more about that mechanism I’ll do other testings 
and eventually ask Hans about what has been changed regarding blocks.
Best regards: OK

On 9 janv. 2014, at 18:41, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 […]
 When you enumerations in this form
 
 \beginanswer
 \answer $10$
 \endanswer
 
 you have to finish the paragraph, e.g. by adding \par
 
 \beginanswer
 \answer $10$\par
 \endanswer
 
 or better use the start/stop commands for the enumeration.
 
 \beginanswer
 \startanswer
 $10$
 \stopanswer
 \endanswer
 
 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] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
Hi Jean Guillaume,

I guess Marco Patzer and Wolfgang Schuster gave you already the appropriate 
answers.
Nevertheless, I wanted to share with you the definitions I use for the kind of 
work you want to do:

%%% begin example-exercise.tex
%%%
% defining \startexo, \stopexo as an enumeration:
\startsetups style:simple
\defineenumeration[exo]
[alternative=hanging,
width=fit,
stopper={.},
text=Exercise, 
%   between=,
before=, 
after=\blank] 
\stopsetups % style:simple

\startsetups style:textrule
\definenumber[MyExoNumber][way=bysection,sectionumber=yes]
\setuptextrules[rulecolor=darkred]
\define\ExoCommand{\incrementnumber[MyExoNumber]
\textrule[top]{Exercise \getnumber[MyExoNumber]}
\startbackground[frame=off,leftframe=on,backgroundcolor=white,
framecolor=darkred]}

\defineenumeration[exo]
[alternative=hanging,
width=fit,
text={}, 
number=hide,
number=no,
before={\ExoCommand}, 
after={\stopbackground\blank}]
\stopsetups % style:textrule

% end defining \startexo, \stopexo as an enumeration
%%%

%defining  numbered questions
\defineconversion[exercise][\numbers]
%\setupitemize[packed]
\def\StartQuestions{%
\startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]}
\def\StopQuestions{\stopitemize}
\def\q{\item}

% trye each of the following
\setups[style:simple]
%\setups[style:textrule]

\starttext
\startexo 
Prove that for all $a,b\in {\Bbb K}$, a field of characteristic 2, one has 
$(a+b)^2 = a^2 + b^2$.
\stopexo


\startexo 
Prove that for all $a,b\in {\Bbb K}$, a field of characteristic 2, one has 
$(a+b)^4 = a^4 + b^4$.
\stopexo

\startexo
\StartQuestions
\q Prove that 
\startformula
\sum_{n=1}^\infty{1 \over n^2} = {\pi^2 \over 6}.
\stopformula

\q Prove that for any $n \geq 1$ integer one has
\startformula
\sum_{k=1}^n k^3 = \left({n(n+1) \over 2}\right)^2.
\stopformula
\StopQuestions
\stopexo

\stoptext
%%% end example-exercise.tex


Best regards: OK

On 9 janv. 2014, at 14:23, Jean-Guillaume jng...@gmail.com wrote:

 But this:
 
 \definehead
  [Exercise] [subsection]
  [after=]
 \starttext
  \startExercise [title=This is the exercise's title]
The exercise's content.
  \stopExercise
 \stoptext
 
 results to:
 
 1 This is the exercise's title
 The exercise's content.
 
 and I would like it to be:
 
 1 This is the exercise's title The exercise's content.
 
 (When I can typeset that, I will see about formatting the number and so on.)
 
 I'm sorry it wasn't very clear. Now I understand that I misunderstood
 \startExercise{...} for \startExercise[title=...] and that's why I was
 confused about which newline I want to get rid of.
 
 Jean-Guillaume
 ___
 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] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian

On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello Otared.
 I will throw this one... Thanx.
 
 Once I was using exercise-answer package for LaTeX.
 Is there anything like this to use in ConTeXt?
 
 Thanx
 Jaroslav Hajtmar

Hello Jaroslav,

I have something like the following which was given to me by Hans a long time 
ago: unfortunately for some reason this does not work anymore with ConTeXt 
mkiv, but it is quite fine with mkii:

%%% begin question-hint-answer.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question][location=hanging,text={Question},stopper={.}]
\defineenumeration[hint][location=hanging,text={Hint for question},stopper={.}]
\defineenumeration[answer][location=hanging,text={Answer to 
question},stopper={.}]

\hideblocks[hint]
\hideblocks[answer]

\starttext
\section{Questions}

\beginquestion
\question Compute $4\times 5$.

\beginhint
\hint Use the fact that $2\times 5 = 10$.
\endhint

\beginanswer
\answer $20$.
\endanswer

\endquestion

\beginquestion
\question What is the value of $100 / 10$?

\beginhint
\hint Remember that $10\times 10 = 100$.
\endhint

\beginanswer
\answer $10$
\endanswer

\endquestion

\section{Hints}
\useblocks[hint]

\section{Answers}
\useblocks[answer]

\stoptext
%%% end question-hint-answer.tex

Best regards: OK



 
 
 Dne 9.1.2014 15:19, Otared Kavian napsal(a):
 %%% begin example-exercise.tex
 %%%
 % defining \startexo, \stopexo as an enumeration:
 \startsetups style:simple
 \defineenumeration[exo]
  [alternative=hanging,
  width=fit,
  stopper={.},
  text=Exercise,
 %between=,
  before=,
  after=\blank]
 \stopsetups % style:simple
 
 \startsetups style:textrule
 \definenumber[MyExoNumber][way=bysection,sectionumber=yes]
 \setuptextrules[rulecolor=darkred]
 \define\ExoCommand{\incrementnumber[MyExoNumber]
  \textrule[top]{Exercise \getnumber[MyExoNumber]}
  \startbackground[frame=off,leftframe=on,backgroundcolor=white,
  framecolor=darkred]}
 
 \defineenumeration[exo]
  [alternative=hanging,
  width=fit,
  text={},
  number=hide,
  number=no,
  before={\ExoCommand},
  after={\stopbackground\blank}]
 \stopsetups % style:textrule
 
 % end defining \startexo, \stopexo as an enumeration
 %%%
 
 %defining  numbered questions
 \defineconversion[exercise][\numbers]
 %\setupitemize[packed]
 \def\StartQuestions{%
  \startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]}
 \def\StopQuestions{\stopitemize}
 \def\q{\item}
 
 % trye each of the following
 \setups[style:simple]
 %\setups[style:textrule]
 
 \starttext
 \startexo
 Prove that for all $a,b\in {\Bbb K}$, a field of characteristic 2, one has 
 $(a+b)^2  = a^2  + b^2$.
 \stopexo
 
 
 \startexo
 Prove that for all $a,b\in {\Bbb K}$, a field of characteristic 2, one has 
 $(a+b)^4  = a^4  + b^4$.
 \stopexo
 
 \startexo
 \StartQuestions
 \q Prove that
 \startformula
 \sum_{n=1}^\infty{1 \over n^2} = {\pi^2  \over 6}.
 \stopformula
 
 \q Prove that for any $n \geq 1$ integer one has
 \startformula
 \sum_{k=1}^n k^3  = \left({n(n+1) \over 2}\right)^2.
 \stopformula
 \StopQuestions
 \stopexo
 
 \stoptext
 %%% end example-exercise.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
 ___

___
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] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
Hi Wolfgang, Hi Aditya,

Thanks for your attention.
Unfortunately adding 
\keepblocks[question] 
the example I sent before does not work in mkiv, and changing 
location=hanging
to
alternative=hanging
does not help neither…
The error message in mkiv is:
\dostopnormalblock ...meter \c!after \par \egroup 
  
argument ...fact that $2\times 5 = 10$. \dostopnormalblock 
  \dostartnormalblock {hint}...
\dodowithpar ...dler \v!construction \endcsname #1
  \csname \??constructionsto…

So I don’t know what to do if one has to use mkiv.

Best regards: OK

On 9 janv. 2014, at 18:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 
 Am 09.01.2014 um 16:36 schrieb Otared Kavian ota...@gmail.com:
 
 
 On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote:
 
 Hello Otared.
 I will throw this one... Thanx.
 
 Once I was using exercise-answer package for LaTeX.
 Is there anything like this to use in ConTeXt?
 
 Thanx
 Jaroslav Hajtmar
 
 Hello Jaroslav,
 
 I have something like the following which was given to me by Hans a long 
 time ago: unfortunately for some reason this does not work anymore with 
 ConTeXt mkiv, but it is quite fine with mkii:
 
 Add \keepblocks[question].
 
 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] [OT] Book complete and thank you

2013-12-11 Thread Otared Kavian
Very nice book! Thanks for sharing.
I would like just to point out that contrary to what is said on page 40, Pierre 
Verhulst was not a French mathematician but rather a Belgian mathematician who 
proposed a model of differential equations to describe population and resource 
dynamics , please see:

http://www-groups.dcs.st-and.ac.uk/~history/Biographies/Verhulst.html

Best regards: OK

On 10 déc. 2013, at 23:42, Kip Warner k...@thevertigo.com wrote:

 Friends,
 
 I have completed my book typeset using ConTeXt[1]. I'd like to extend my
 gratitude to this list for the many questions answered. In particular,
 I'd like to thank in no particular order Hans Hagen, Luigi Scarso,
 Wolfgang Schuster, Mojca Miklavec, and Taco Hoekwater. I'd also like to
 thank Adam Reviczky for his help in preparing debs for ConTeXt.
 
https://www.avaneya.com/#!/content/downloads/handbook.html
 
 Without these peoples' help, it would have been more difficult to
 develop my project.
 
 Take care,
 
 -- 
 Kip Warner -- Software Engineer
 OpenPGP encrypted/signed mail preferred
 http://www.thevertigo.com
 ___
 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] context with mavericks: broken

2013-11-18 Thread Otared Kavian
Hi Andrea,

According to Wolfgang Schuster and some others removing the file Skia.ttf may 
solve the problem. 
Please read the thread

http://www.ntg.nl/pipermail/ntg-context/2013/075689.html

and more precisely

http://www.ntg.nl/pipermail/ntg-context/2013/075701.html

Best regards: OK

On 19 nov. 2013, at 00:59, Andrea Valle va...@di.unito.it wrote:

 Dear,
 
 long time since I have posted to the list but still a dedicated ConTeXt user…
 
 Now, I’ve upgraded to Mavericks. No way to use ConTeXt.
 I’ve also installed texlive 2013 and I installed the available updates.
 But still my ConTeXt is broken (I’m typesetting from TeXShop via GUI menu).
 I always get this:
 
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
  `require': 
 /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: 
 invalid multibyte escape: /\xFF/ (SyntaxError)
   from 
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
  `require'
   from 
 /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in 
 `main’
 
 I can understand it has something to do with ruby but nothing else.
 
 ?
 
 Many thanks 
 
 Best
 -a-
 
 
 --
 Andrea Valle
 --
 CIRMA - StudiUm
 Università degli Studi di Torino
 -- http://www.cirma.unito.it/andrea/
 -- http://www.fonurgia.unito.it/andrea/
 -- http://www.flickr.com/photos/vanderaalle/sets/
 -- http://vimeo.com/vanderaalle
 --  http://www.youtube.com/user/vanderaalle
 -- andrea.va...@unito.it
 --
 
 This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, 
 a lotta what-have-yous. 
 (Jeffrey 'The Dude' Lebowski)
 
 
 
 --
 Andrea Valle
 --
 CIRMA - StudiUm
 Università degli Studi di Torino
 -- http://www.cirma.unito.it/andrea/
 -- http://www.fonurgia.unito.it/andrea/
 -- http://www.flickr.com/photos/vanderaalle/sets/
 -- http://vimeo.com/vanderaalle
 --  http://www.youtube.com/user/vanderaalle
 -- andrea.va...@unito.it
 --
 
 This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, 
 a lotta what-have-yous. 
 (Jeffrey 'The Dude' Lebowski)
 
 ___
 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] hanging on fonts

2013-11-12 Thread Otared Kavian
Hi,

According to Wolfgang Schuster and some others removing the file Skia.ttf may 
solve the problem. 
Please see the thread

http://www.ntg.nl/pipermail/ntg-context/2013/075689.html

and more precisely

http://www.ntg.nl/pipermail/ntg-context/2013/075701.html

Best regards: OK

On 12 nov. 2013, at 20:02, H. van der Meer h.vanderm...@uva.nl wrote:

 Context hangs with this in the console:
 
 fontsnames  identifying system font files with suffix 'otf'
 fontsnames  'OSFONTDIR' specifies path 
 '/Users/hansm/Library/Fonts'
 fontsnames  'OSFONTDIR' specifies path '/Library/Fonts'
 fontsnames  'OSFONTDIR' specifies path '/System/Library/Fonts'
 fontsnames  globbing path '/Users/hansm/Library/Fonts/**.otf'
 fontsnames  globbing path '/Library/Fonts/**.otf'
 
 ConTeXt  ver: 2013.10.15 13:52 MKIV beta  fmt: 2013.10.20  int: 
 english/english
 
 Putting OSFONTDIR=“” export OSFONTDIR did not help, ConTeXt keeps using the 
 MacOSX libraries. How to kill these? Without a solution I cannot typeset.
 
 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] MacOsX Mavericks and Luatex

2013-10-25 Thread Otared Kavian
Hi everyone,

I installed MacOS X 10.9 « Mavericks » on top of the latest MacOS X 10.8, and 
could run my installation of ConTeXt stand alone without any problem, despite 
having Skia.ttf on my system:

Version 8.0d1e1
Location/Library/Fonts/Skia.ttf
Unique name Skia Regular; 8.0d1e1; 2012-09-05
Copyright   © 1993-2002 Apple Inc.
Enabled Yes
Duplicate   No
Copy protected  No
Glyph count 591

The rights for this font are:

-rw-r--r--  1 root  wheel   480K 25 oct 04:56 Skia.ttf

(these rights are the same as other fonts, and clearly I never changed these…).
I also made anew the formats after having installed Mavericks, and did not 
notice any problem with a dozen tests I did.
So it seems that the cases in which problems have shown up are quite various.
The version of ConTeXt I have now is ConTeXt  ver: 2013.10.15 13:52 MKIV beta  
fmt: 2013.10.25

(By the way, even after running first-setup.sh, I get always the same version… 
This may be due to the fact that I am in China right now?).

A last word regarding the requests for changing the defaults for system fonts.
The present situation has the advantage that people who are far from being 
geeks (for instance like me and the secretaries to whom I have shown how to use 
ConTeXt) can use whatever fonts they have on their system without tweaking the 
.cnf file, and without knowing how to write a typescript (thanks to the 
features added recently by Wolfgang). 
People who have the  technical knowledge and don’t want to use their system 
fonts because of waste of typesetting time, can indeed change this default 
behaviour.
So PLEASE don’t change the present default!

Best regards: OK


On 25 oct. 2013, at 16:49, Taco Hoekwater t...@elvenkind.com wrote:

 On 10/24/2013 10:00 AM, Wolfgang Schuster wrote:
 
 Am 24.10.2013 um 09:45 schrieb Pierre Bovet pierr...@me.com:
 
 OK, that was not a good example…
 But the the message above is coming with any other otf fonts:
 
 fontsnames  globbing path '/Library/Fonts/**.ttf'
 
 mtx-context | fatal error: no return code, message: luatex: execution 
 interrupted
 
 Can you remove the Skia.ttf (copy it to another directory) font from 
 /Library/Fonts,
 this helped on my system to get rid of the error message.
 
 It is definitely Skia.ttf itself, and not its permissions. After my
 upgrade to Mavericks, I got a fresh Skia.ttf (491796 bytes), and even
 though the permissions were fine (644), it crashes luatex, standalone
 fontforge, and ttx.
 
 Actually, changing the file permissions to 000 (not readable by anyone)
 fixed context's use of system fonts.
 
 ttx says: TT instructions error: 'illegal opcode: 0x91'; texlua and
 fontforge just crash on an undefined glyph in the internals of the font.
 
 Best wishes,
 Taco
 
 ___
 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] \mframed not aligned in mkiv

2013-10-22 Thread Otared Kavian
Hi Aditya,

I wikified your remarks,


http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation

but unfortunately the snippet of code does not compile on ConTeXt Garden: is 
there a way to typeset mkiv code there?

Best regards: OK

On 21 oct. 2013, at 22:18, Aditya Mahajan adit...@umich.edu wrote:

 On Mon, 21 Oct 2013, Otared Kavian wrote:
 
 Dear Hans,
 
 I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
 seems that in mkiv the frame is not vertically aligned with the the + sign 
 in the following example (or rather it is not vertically centered, please 
 see the attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV).
 Does one have to use now a new key to require this sort of alignment?
 
 Best regard: OK
 
  begin mframed-example.tex
 \setupcolors[state=start]
 
 \def\graymath{\mframed[frame=off,
  background=color,
  backgroundcolor=lightgray,
  backgroundoffset=2pt
  ]}
 
 \starttext
 
 Since for $|x|  1$ we have
 \startformula
 \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
 \stopformula
 we may write $\log(1+x) = x + O(x^2)$.
 
 \stoptext
  end mframed-example.tex
 
 Search for Alignment in inmframed in the mailing list archives.
 
 % The next statement is part of the core. Included it here for % illustration.
 
 \definemathframed[mcframed] [location=mathematics]
 
 \starttext
 
 \startformula
\ln (1+x) = 
 \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x
  - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} +
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \startformula
\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + 
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \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
___


[NTG-context] \mframed not aligned in mkiv

2013-10-21 Thread Otared Kavian
Dear Hans,

I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
seems that in mkiv the frame is not vertically aligned with the the + sign in 
the following example (or rather it is not vertically centered, please see the 
attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV). 
Does one have to use now a new key to require this sort of alignment?

Best regard: OK

 begin mframed-example.tex
\setupcolors[state=start]

\def\graymath{\mframed[frame=off,
   background=color,
   backgroundcolor=lightgray,
   backgroundoffset=2pt
   ]}

\starttext

Since for $|x|  1$ we have
\startformula
\log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
\stopformula
we may write $\log(1+x) = x + O(x^2)$.

\stoptext
 end mframed-example.tex



mframe.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] \mframed not aligned in mkiv

2013-10-21 Thread Otared Kavian
Thanks Aditya!
I overlooked this change in mkiv…

Best regards: OK

On 21 oct. 2013, at 22:18, Aditya Mahajan adit...@umich.edu wrote:

 On Mon, 21 Oct 2013, Otared Kavian wrote:
 
 Dear Hans,
 
 I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
 seems that in mkiv the frame is not vertically aligned with the the + sign 
 in the following example (or rather it is not vertically centered, please 
 see the attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV).
 Does one have to use now a new key to require this sort of alignment?
 
 Best regard: OK
 
  begin mframed-example.tex
 \setupcolors[state=start]
 
 \def\graymath{\mframed[frame=off,
  background=color,
  backgroundcolor=lightgray,
  backgroundoffset=2pt
  ]}
 
 \starttext
 
 Since for $|x|  1$ we have
 \startformula
 \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
 \stopformula
 we may write $\log(1+x) = x + O(x^2)$.
 
 \stoptext
  end mframed-example.tex
 
 Search for Alignment in inmframed in the mailing list archives.
 
 % The next statement is part of the core. Included it here for % illustration.
 
 \definemathframed[mcframed] [location=mathematics]
 
 \starttext
 
 \startformula
\ln (1+x) = 
 \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x
  - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} +
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \startformula
\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + 
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \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] Math in current beta

2013-10-08 Thread Otared Kavian
Which version are you using?
I didn't notice any difficulty in math typesetting with version: 2013.10.07 
23:31.

Best regards: OK

On 8 oct. 2013, at 22:49, Alan BRASLAU alan.bras...@cea.fr wrote:

 Math seems terribly broken in current beta.
 
 Minimal example: anything... :)
 
 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
 ___

___
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] Conditional float references

2013-09-25 Thread Otared Kavian
Hi Marco,

Thanks for your answer: indeed I was wrong about the issue I reported about 
doublesided page numbering. The reason is that I use TeXShop (on a Mac) and the 
PDF produced is shown in a single page layout (it is however possible to have 
doublesided layout as well: that's what I tested after your answer.

Also after applying your patch everything works as expected. I tested your file 
with some maths formulas and changed even the language to French with:
\unprotect
\setuplabeltext
  [\s!fr]
  [\v!atpage=page\nobreakspace, %% “at page” sounds weird
   \v!previouspage=à la page précédente,
   \v!nextpage=à la page suivante]
\protect
\mainlanguage[fr]

without any problem. So your macro is just wonderful!

However maybe it would be better to have some setup options like:
\setuplabeltext[smartref][atpage={page},
previouspage={à la page précédente}, %or {page 
précédente}
nextpage={à la page suivante}] %or {page suivante}

In case Hans is willing to add such capabilities to the cross referencing, it 
would be great if one could setup the cross references in the same way by 
saying for instance
\setupreferencing[alternative=smartref]
and then have \smartref be defined automatically.

A final remark concerns the possibility to visualize the reference points when 
one is in the process of proof reading: at least in maths, it is usual to have 
dozens of reference points to formulas, lemmas, theorems, etc, and it is quite 
useful to be able to visualize such things. For instance I use a quick and 
dirty macro to print in the margin « eq:Fermat » to the right of the following 
formula

\placeformula[eq:Fermat]
\startformula
a,b,c \in {\Bbb N}^*, \quad n \geq 3, \quad a^n + b^n = c^n \imply abc = 0.
\stopformula

when I am preparing a paper. I do the same with references to lemmas and 
theorems, but I print them in the margin to the left of the reference point. 
For now, mkiv does not support such things and it's a pity.

Best regards: OK

On 25 sept. 2013, at 09:29, Marco Patzer li...@homerow.info wrote:

 On 2013–09–25 Otared Kavian wrote:
 
 I have not yet tried it with references to maths formulas,
 theorems, lemmas and such,
 
 Me neither.
 
  \ifsinglesided
\strc_references_do_relative_else\plusone
  {\def\strc_references_smart_string{\labeltext\v!nextpage}}
  {\strc_references_do_relative_else\minusone
 
 The issues I noticed are the following:
 1. Typesetting the file gives an error message when there is no 
  \setuppagenumbering[alternative=doublesided]
 
 A typo:
 
  \ifsinglesided
\strc_references_do_relative_else\plusone
  {\def\strc_references_smart_string{\labeltext\v!nextpage}}
 -  {\strc_references_do_relative\minusone
 +  {\strc_references_do_relative_else\minusone
 
 
 2. In the above minimal example, when stating 
  \setuppagenumbering[alternative=doublesided]
 then Test 2 and Test 3 do not result in the smart references
 expected (they both result in « See figure 1 and figure 3. » while
 Test 2 should give « See figure 1 and figure 3 on next page. »,
 and Test 3 should result in « See figure 1 on previous page and
 figure 3. »).
 
 That's on purpose. If the graphic appears on the same double page,
 it is visible and no further reference is printed. In traditional
 typesetting a single page is rather insignificant. The reader is
 always faced with double pages, never single pages.
 
 Thanks again for sharing your module.
 
 Well, it wasn't meant to be a module. I rather intended to start a
 discussion and threw some code in to start with. If there's interest
 I can make it a module.
 
 Thanks for the feedback.
 
 Marco
 ___
 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] Conditional float references

2013-09-24 Thread Otared Kavian
Hi Marco,

Your macro is a wonderful help to have smart references: I have not yet tried 
it with references to maths formulas, theorems, lemmas and such, but Iguess it 
should work as well.

In order to help you nail down some small issues, here is how I used your 
module: I put the file you sent

conditionalfloatreferences.mkvi

in a folder (i.e. a directory) and then in a TeX file I put the following (not 
so) minimal example excerpted from your file
%%% begin smartref-test.tex
\usemodule[conditionalfloatreferences]
\useMPlibrary [dum]
%\setuppagenumbering [alternative=singlesided]
\setuppagenumbering [alternative=doublesided]

\starttext
{\bf Test 1:}

See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma].
\page 
{\bf Test 2:}

See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma].

\startplacefigure [reference=fig:alpha] \externalfigure \stopplacefigure
\startplacefigure [reference=fig:beta]  \externalfigure \stopplacefigure

\page 
{\bf Test 3:}

See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma].

\startplacefigure [reference=fig:gamma] \externalfigure \stopplacefigure
\startplacefigure [reference=fig:delta] \externalfigure \stopplacefigure

\page 

{\bf Test 4:}

See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma].
\page 

{\bf Test 5:}

See \smartref{figure}[fig:alpha] and \smartref{figure}[fig:gamma].

\stoptext
%%% end smartref-test.tex

The issues I noticed are the following:
1. Typesetting the file gives an error message when there is no 
\setuppagenumbering[alternative=doublesided]
Actually it typesets if one ignores the error message (but some issues like the 
ones below remain).

2. In the above minimal example, when stating 
\setuppagenumbering[alternative=doublesided]
then Test 2 and Test 3 do not result in the smart references expected (they 
both result in « See figure 1 and figure 3. » while Test 2 should give « See 
figure 1 and figure 3 on next page. », and Test 3 should result in « See figure 
1 on previous page and figure 3. »).

Thanks again for sharing your module.

Best regards: OK

On 22 sept. 2013, at 23:02, Marco Patzer li...@homerow.info wrote:

 Hi,
 
 a couple of times the question came up¹²³ how to create more
 intelligent referencing. There are already mechanisms in the core,
 namely \somewhere and \atpage but they both have drawbacks.
 \somewhere happily prints its text if the figure is placed on the
 same double page. In fact, no text at all should be printed if the
 figure is visible. Furthermore it's a little verbose to use unless
 hidden in a custom macro. \atpage on the other hand doesn't hesitate
 to print “see figure 1.2 at page 42” while you're on page 42.
 
 I'm aware that automatic generation of reference text is problematic
 since the text depends on the placement of floats which in turn
 depends on the text which might result in oscillation. I'm not sure
 how likely this is to occur in practice.
 
 I don't know if there's interest in integrating such functionality
 into the core. I attached some code, a new macro \smartref, which
 takes the same arguments as \in.
 
  \smartref{figure}[fig:somefigure]
 
 - it prints the reference if it is on the same page
  (e.g. Figure 1.2)
 
 - it prints the reference and a customizable text if the reference
  is on the next/previous page (e.g. Figure 1.2 on the previous page)
 
 - it prints the reference and the page if the reference is further
  away than one page (e.g. Figure 1.2 on page 42)
 
 - it adapts to single-sided and double-sided layouts
 
 
 Marco
 
 ¹ http://thread.gmane.org/gmane.comp.tex.context/65295
 ² http://thread.gmane.org/gmane.comp.tex.context/59455
 ³ http://thread.gmane.org/gmane.comp.tex.context/76001
 conditionalfloatreferences.mkvi___
 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] Bug in maths prime (derivative)

2013-09-17 Thread Otared Kavian
Thanks Hans: I did some testing with several fonts and situations, and 
everything is perfect.

Best regards: OK

On 17 sept. 2013, at 14:58, Hans Hagen pra...@wxs.nl wrote:

 On 9/16/2013 2:29 PM, Otared Kavian wrote:
 Hi Hans,
 
 I noticed that recently a discrepancy in the way the prime is positioned in 
 the presence of an index as in $f'_n$ or $f_n'$ (please see the attached 
 PDF). However the positioning is correct in expressions such as $u^k_n$.
 The problem shows up only in mkiv, and as far as I can say the differnece 
 between the results in mkii and mkiv appeared recently (unfortunately I 
 can't say when…).
 
 something got lost when cleaning up the code ... fixed (but we have smaller 
 primes .. i'll make a large option one day but rather wait till there is a 
 trivial extension to luatex (that i need to discuss with taco)
 
 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
 ___

___
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] Bug in maths prime (derivative)

2013-09-16 Thread Otared Kavian
Hi Hans,

I noticed that recently a discrepancy in the way the prime is positioned in the 
presence of an index as in $f'_n$ or $f_n'$ (please see the attached PDF). 
However the positioning is correct in expressions such as $u^k_n$.
The problem shows up only in mkiv, and as far as I can say the differnece 
between the results in mkii and mkiv appeared recently (unfortunately I can't 
say when…).

 begin minimal-example.tex
\starttext
\startbuffer[math]
If for $n \geq 1$ we consider $f_{n} : {\Bbb R} \longrightarrow {\Bbb R}$ a 
real valued function, and $u_{n} : {\Bbb Z} \longrightarrow {\Bbb Z}$ then we 
denote
\startformula
f'_{n}(x) := \lim_{h\to 0}{f_{n}(x + h) - f_{n}(x) \over 
h}\qquad\mbox{and}\quad u^k_{n} := u_{n}(k)
\stopformula
\stopbuffer

\getbuffer[math]

\switchtobodyfont[times]
\getbuffer[math]

\switchtobodyfont[palatino]
\getbuffer[math]

\stoptext
 end  minimal-example.tex


bug-prime.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
___

[NTG-context] Wrong ConTeXt version?

2013-09-13 Thread Otared Kavian
Hi,

Running first-setup.sh in order to update to the latest ConTeXt gives me a 
wrong result: I get
current version: 2013.04.20 01:15

while before updating I had
current version: 2013.09.10 17:17

Are we going backward in time? :-)

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] Wrong ConTeXt version?

2013-09-13 Thread Otared Kavian
Answering to myself…
Sorry for the noise: the version is correct after updating via first-setup.sh: 
I have in fact
current version: 2013.09.13 10:59
the other version is the one in TeXLive…

With my apologies: OK

On 13 sept. 2013, at 17:15, Otared Kavian ota...@gmail.com wrote:

 Hi,
 
 Running first-setup.sh in order to update to the latest ConTeXt gives me a 
 wrong result: I get
   current version: 2013.04.20 01:15
 
 while before updating I had
   current version: 2013.09.10 17:17
 
 Are we going backward in time? :-)
 
 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] installing two ConTeXt trees

2013-09-06 Thread Otared Kavian
Hi Hans,

Thanks for this new feature for passing optional flags to the mkiv engine: I 
tested it on TeXShop and from a Terminal command line, and evrything works as 
expected.
I wikified your instructions,
http://wiki.contextgarden.net/purge_aux_files
but I wonder whether I chose the right title for that page (purge aux files).

Best regards: OK

On 4 sept. 2013, at 10:36, Hans Hagen pra...@wxs.nl wrote:

 […]
 as an experiment i now also check the preamble for a ctxfile specification
 
 make a file preferences.ctx, put it someplace in the tree and run mtxrun 
 --generate:
 
 ?xml version='1.0' standalone='yes'?
 
 ctx:job
ctx:messagedefault flags/ctx:message
ctx:flags
ctx:flagpurge/ctx:flag
ctx:flagsynctex=zipped/ctx:flag
/ctx:flags
 /ctx:job
 
 then you can say:
 
 % ctxfile=preferences
 
 \starttext
  whatever
 \stoptext
 
 -
  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
 ___

___
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] installing two ConTeXt trees

2013-09-04 Thread Otared Kavian

On 3 sept. 2013, at 19:14, Aditya Mahajan adit...@umich.edu wrote:

 […]
 the synctex.gz file is not anymore deleted (however a utility file 
 [file-name].tuc remains).
 
 That (not deleting tuc file) is delebrate (as it saves time in successive 
 runs). If you want to delete the tuc file, you can use --purgeall instead of 
 --purge.

Thanks Aditya: actually that utility file .tuc can be deleted for some 
situations (for instance when one does a small test) and kept for others.
Maybe for those who do not use ConTeXt from a Terminal, but rather from editors 
like TeXShop or TeXWorks, one could have a feature to pass typesetting options 
to mkiv, for instance like a \setuptypesetting command, to be put in the first 
five lines of a document, which accepts various parameters such as for example
\setuptypesetting[purge=yes,synctex={yes,zipped},engine=mkiv]

to pass options to mkiv. But this is probably too complicated.

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] installing two ConTeXt trees

2013-09-03 Thread Otared Kavian

On 2 sept. 2013, at 23:44, Hans Hagen pra...@wxs.nl wrote:

 On 9/2/2013 6:14 PM, Alan Bowen wrote:
 
(personnaly I add also
 rm -f *.tui *.log *.tuo *.xdv *.mp *.tmp *.top *-mpgraph.*
*-mpgraph-temp.dvi *.tuc
at the end of each of the files to remove auxiliary files, but you
must be careful with removing such files as *.mp…).
 
 --purge

Thanks Hans for your attention, but saying
texexec --autogenerate --synctex=1 $1 --purge

or
context --autogenerate --synctex=1 $1 --purge

removes also the synctex.gz file and one loses the synctex functionality which 
is essential for me.

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] installing two ConTeXt trees

2013-09-03 Thread Otared Kavian

On 3 sept. 2013, at 10:50, Hans Hagen pra...@wxs.nl wrote:

 On 9/3/2013 9:31 AM, Otared Kavian wrote:
 […]
 Thanks Hans for your attention, but saying
  texexec --autogenerate --synctex=1 $1 --purge
 
 or
  context --autogenerate --synctex=1 $1 --purge
 
 removes also the synctex.gz file and one loses the synctex functionality 
 which is essential for me.
 
 i've added a test: if --synctex is given or the first line has
 
 % synctex=zipped|unzipped|1|-1|yes
 
 then the synctex file is not deleted

Hi Hans,

Thanks for the quick modification…
I tested the new beta, and indeed using mkiv and 
context --autogenerate --synctex=1 $1 --purge

the synctex.gz file is not anymore deleted (however a utility file 
[file-name].tuc remains).

I noticed also that using mkii and
texexec --autogenerate --synctex=1 $1 --purge

does delete the synctex.gz file, but this is expected since mkii is frozen and 
no change has effect ont it.

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] installing two ConTeXt trees

2013-09-02 Thread Otared Kavian
Hi Alan,

Using TeXShop on MacOS X you can create two files named « mkiv-stable.engine » 
and « mkiv-testing.engine » and put them in the folder

Library/TeXShop/Engines

The first file « mkiv-stable.engine » contains the following:
#!/bin/bash

source [path-to-your-context-minimal-stable-folder]/tex/setuptex 
context --autogenerate --synctex=1 $1

and the second file « mkiv-testing.engine » contains
#!/bin/bash

source [path-to-your-context-minimal-testing-folder]/tex/setuptex 
context --autogenerate --synctex=1 $1

(personnaly I add also 
rm -f *.tui *.log *.tuo *.xdv *.mp *.tmp *.top *-mpgraph.* 
*-mpgraph-temp.dvi *.tuc
at the end of each of the files to remove auxiliary files, but you must be 
careful with removing such files as *.mp…).

Then when you open anew TeXShop, you'll see in a small menu on top of each of 
your TeX file where you can choose to typeset your file with either mkiv-stable 
or mkiv-testing.
Or you can add at the top of your TeX file the following line:
%!TEX TS-program = mkiv-stable
or
%!TEX TS-program = mkiv-testing

In case you would like to use mkii you should replace the line 
context --autogenerate --synctex=1 $1
with
texexec --autogenerate --synctex=1 $1
and create an engine file named « mkii.engine »
That's it.
I hope this would be useful to you.
Best regards: OK

On 31 août 2013, at 14:12, Alan Bowen bowenala...@gmail.com wrote:

 I would like to install two ConTeXt trees on my laptop, one for work in 
 progress and another for testing, and to run them using TeXShop (if that is 
 feasible).
 
 Are there any instructions for this? I have searched the wiki and TeXShop 
 help files but have not seen anything that indicates how to do this.
 
 I currently have a system-wide installation of the ConTeXt standalone.
 
 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
 ___

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

2013-08-23 Thread Otared Kavian
Hi Hans,

This is a very nice feature indeed.
Out of curiosity, I wondered whether it is possible to to have \placeinitial to 
work with \definefirstline, or a variant of it: that is not only have the first 
character of the first sentence as a dropped capital, but also the first line 
(or first few words) for instance in smallcaps.

Another curiosity question: is it on purpose that
 \definefirstline
[fancy]
[alternative=line,
color=darkred,
style=\setfontfeature{smallcaps},
n=2]
does not produce two lines of text in smallcaps?

Best regards: OK

On 22 août 2013, at 16:06, Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 Some new magic in the beta ...
 
 \setupbodyfont[pagella]
 
 \starttext
 
\setupindenting[medium,yes]
\setupalign[tolerant]
 
\definefirstline
  [fancy]
  [alternative=line,
   color=darkred,
   style=\setfontfeature{smallcaps}]
 
\setfirstline[fancy] \input tufte  \par
\setfirstline[fancy] \input ward   \par
\setfirstline[fancy] \input knuth  \par
\setfirstline[fancy] \input bryson \page
 
\definefirstline
  [fancy]
  [alternative=word,
   color=darkblue,
   style=bold,
   n=2]
 
\setfirstline[fancy] \input tufte  \par
\setfirstline[fancy] \input ward   \par
\setfirstline[fancy] \input knuth  \par
\setfirstline[fancy] \input bryson \page
 
 \stoptext
 
 (Actually, it was rather old magic that I found back in an early days of 
 mkiv file).
 
 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
 ___

___
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] problem with Persian feature

2013-08-07 Thread Otared Kavian
Hi Mingranina,

As Wolfgang said, if I fix the name of the key in \setmainfont (from « feature 
» to « features », see below), then your test works fine here (using Mac OS X 
10.8.4, and ConTeXt  ver: 2013.08.07 14:40 MKIV beta  fmt: 2013.8.7).
By the way in mkiv you don't need to add \enableregime[utf-8]: by default 
ConTeXt uses utf-8.


\definefontfeature [persian] [mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,isol=yes,liga=yes,dlig=yes,rlig=yes,clig=yes,
mark=yes,mkmk=yes,kern=yes,curs=yes]

\usemodule[simplefonts]
\setmainfont[arial][features=persian] 
%%   ^^

\mainlanguage[pe]
\setupbodyfont[arial,12pt]

\starttext
\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT
این یک آزمایش است.
\pagedir TLT\bodydir TLT\pardir TLT\textdir TLT
This is a test.
\stoptext

Best regards: OK

On 7 août 2013, at 12:38, Mingranina Gingranina mingran...@gmail.com wrote:

 Dear Hans,
 Hello,
 
 Thank you very much for your reply. With your code the Persian part
 disappears on my
 system unless I insert the following two lines after \definefontfeature:
   \usemodule[simplefonts]
   \setmainfont[arial][feature=persian]
 
 However the Persian characters still appears as isolated characters.
 
 Thanks,
 Mingranina
 
 On 8/7/13, Hans Hagen pra...@wxs.nl wrote:
 On 8/7/2013 10:50 AM, Mingranina Gingranina wrote:
  Dear All,
  Hello,
 
  I am completely new to ConTeXt and after searching and exploring the
  ConTeXt Garden wiki pages and other resources thoroughly, I decided
  to write my first document in Persian which reads:
 
 \enableregime [utf-8]
 \definefontfeature [persian] [mode=node,language=dflt,script=arab,
 init=yes,medi=yes,fina=yes,isol=yes,liga=yes,dlig=yes,rlig=yes,clig=yes,
 mark=yes,mkmk=yes,kern=yes,curs=yes]
 
 \usemodule[simplefonts]
 \setmainfont[arial][feature=persian]
 
 \mainlanguage[pe]
 \setupbodyfont[arial,12pt]
 
 \starttext
 \pagedir TRT\bodydir TRT\pardir TRT\textdir TRT
 این یک آزمایش است.
 \pagedir TLT\bodydir TLT\pardir TLT\textdir TLT
 This is a test.
 \stoptext
 
  As there are some UTF-8 characters in the document I have attached the
  document to this message too.
 
  The problem is that on my system the Persian part of the output is a set
 of
  Persian Isolated characters, but on http://live.contextgarden.net the
 Persian
  part does not appear at all.
  Could somebody please let me know what am I doing wrong?
 
 Here is a more minimal test:
 
 \definefontfeature [persian] [arabic] % [...]
 
 \mainlanguage[pe]
 
 \starttext
 
 \definedfont[arial*persian]
 
 \setupalign[r2l]
 
 این یک آزمایش است.
 
 \setupalign[l2r]
 
 This is a test.
 
 \stoptext
 
 If that works, you can try the simplefonts variant. Keep in mind that
 you need to end a paragraph with an empty line or \par because otherwise
 the last settings apply.
 
 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
 ___
 ___
 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] copypaste from pdf bug (smallcaps, text figures)

2013-08-01 Thread Otared Kavian
Hi,

I tested your example: no problem here on Mac OS X 10.8.4, with either TeXShop, 
Adobe Redaer or Preview, with the latest beta (ConTeXt  ver: 2013.08.01 01:31 
MKIV beta  fmt: 2013.8.1  int: english/english).

Best regards: OK

On 1 août 2013, at 19:33, Philipp Gesang 
philipp.ges...@alumni.uni-heidelberg.de wrote:

 Hi,
 
 copypaste from PDF is broken:
 
  \setupbodyfont [iwona]
  \starttext
\feature[+][just-os,smallcaps] 0123456789 abcdefghijklmnopqrstuvwxyz
  \stoptext
 
 Result:   
 Expected: 0123456789abcdefghijklmnopqrstuvwxyz
 
 (Tried in Okular, but reported for other readers as well [1])
 
 Thanks to Marius’ git mirror I could bisect the changes since
 TL 2012. It looks like the issue has been introduced with release
 stable 2013.05.27 09:10 [2].
 
 Best regards,
 Philipp
 
 
 [1] http://tex.stackexchange.com/q/126333/14066
 [2] 
 http://repo.or.cz/w/context.git/commitdiff/6b2f7c5fd7a3e465f4e2662b1e5bd2c9d5cce8f8
 ___
 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] new beta luatex error

2013-07-31 Thread Otared Kavian

On 31 juil. 2013, at 23:43, Marco Patzer home...@lavabit.com wrote:

 On 2013–07–31 Hans Hagen wrote:
 
 On 7/31/2013 10:56 PM, Marco Patzer wrote:
 \starttext
 foo
 \stoptext
 
 ! LuaTeX error [string \directlua ]:1: attempt to call field 
 'resetprevdepth' (a nil value)
 stack traceback:
 [string \directlua ]:1: in main chunk.
 
 not here ... maybe spac-ver.lua has not been updated at your end?
 
 No, it has not. spac-ver.mkiv:2099 calls resetprevdepth which is not
 defined in spac-ver.lua. The file has not been updated in your zip
 (so I assume it's not just me).
 
 Marco

I can confirm this: I get the same error message after updating to the new beta 
(ConTeXt  ver: 2013.07.31 20:23 MKIV beta  fmt: 2013.7.31  int: 
english/english).

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] new beta

2013-07-12 Thread Otared Kavian

On 12 juil. 2013, at 20:06, Aditya Mahajan adit...@umich.edu wrote:

 On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
 
 On 12/07/13 19:21, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.
 
 Thanks for the new beta, Hans.
 
 For me first-setup.sh still downloads the 2013.06.10.

This is also my case: has something changed in first-setup.sh? 
___
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] Fraction with a fraction in the denominator

2013-06-05 Thread Otared Kavian

On 4 juin 2013, at 21:34, Hans Hagen pra...@wxs.nl wrote:
 […]
 ok, a new feature for SB:

Thanks hans! Very nice feature. Wikified in
http://wiki.contextgarden.net/Command/fraction
but the output on the wiki is not correct since ConTeXt there is mkii.

Best regards: OK

 
 \definemathfraction
  [wfrac]
  [margin=.25em]
 
 \starttext
 
 \startformula
\wfrac {
a
} {
\frac {
b
} {
c
}
}
 \stopformula
 
 \stoptext
 
 
 
 -
  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
 ___

___
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] MAC (preview, finder) and ConTeXt pdf

2013-05-30 Thread Otared Kavian
Hi Alan,

I do use mkiv n Mac OS X and PDFs do not show the problem you mention: they are 
searchable and text can be copied from them without any problem.

If you send me an example of PDF file which shows this kind of problem, I can 
test it on my machine and the n let you know.

Best regards: OK

On 30 mai 2013, at 14:00, Alan BRASLAU alan.bras...@cea.fr wrote:

 Hello,
 
 A colleague who uses a very recent MacBook with the latest MacOS
 has a problem with PDF files that I provide produced with ConTeXt/luatex.
 
 It appears that he cannot search for words (text) in the document,
 neither with preview nor in the finder (they must be based on the same code).
 However, I had him install Adobe Reader, and using this he can search for text
 in the ConTeXt produced document, so I do not believe that the PDF has a 
 problem,
 rather this is a bug with the Apple PDF tools.
 
 Does anyone else using MacOS have any experience with this?
 Or can you all search for text (words) within ConTeXt produced PDF documents
 using preview and the finder?
 
 Thank you
 
 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
 ___

___
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] MAC (preview, finder) and ConTeXt pdf

2013-05-30 Thread Otared Kavian

On 30 mai 2013, at 22:40, Alan BRASLAU alan.bras...@cea.fr wrote:

 […] It is not too surprising that the Mac is buggy, but this is somewhat 
 worrisome.

I don't think the Mac, or the Mac OS X, is buggy… until it is proved that the 
problem is a real one on all Macs.
The documents produced by mkiv or mkii, the ones I produce and the ones 
produced by Hans and others are searchable, and text can be copied and pasted 
elsewhere.

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] new beta

2013-04-11 Thread Otared Kavian

On 10 avr. 2013, at 20:09, Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 An extra chapter in:
 
 http://www.pragma-ade.nl/general/manuals/about.pdf
 
 explaining abit the updated math fractions (and math styles mechanism).

Hi Hans,

Thanks for the explanations given in the above new manual about the new 
features with fractions and fences. 

However, on page 27, there is a sentence which I disagree with… 
You say there:
 « ConTEXt is always considered somewhat less math savvy than for instance 
LaTEX », 
but actually I cannot see any example of maths typesetting which cannot be done 
in ConTeXt. 
It is true that most mathematicians may not use ConTeXt, but this is because 
they are not aware of the package and, mainly, because maths journals do not 
accept yet papers typeset with ConTeXt. I hope this will change soon.

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] New user of ConTeXt

2013-04-10 Thread Otared Kavian
Hi Tristan,

If you ar eusing TeXLive and TeXShop on a Mac, when typesetting you should use 
a different engine than the one you use now.
To do so, pay attention to menu on the top of you source file, to th eright of 
the « Typeset » button: there it is indicated which engine you are going to use 
when you typeset. Try the engine « ConTeXt (LuaTeX) ».

Another solution is to install the stand alone version of ConTeXt.

Best regards: OK

On 10 avr. 2013, at 16:29, Tristan Lorino tristan.lor...@ifsttar.fr wrote:

 Thanks.
 I'm on Mac (10.8.3), with TeXLive (MacTeX 2012).
 I compile with Context through TeXShop: the log is
 
 This is pdfTeX, version 3.1415926-2.4-1.40.13 (TeX Live 2012)
 ...
 ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.6.30
 
 I don't know how to get MKIV instead of MKII.
 Thanks again for your help.
 
 Tristan
 
 - Mail original -
 De: Hans Hagen pra...@wxs.nl
 À: ntg-context@ntg.nl
 Envoyé: Mercredi 10 Avril 2013 16:15:46
 Objet: Re: [NTG-context] New user of ConTeXt
 
 because in the old fonts there's a visual space in slot 32
 
 
 -- 
 Ifsttar - Nantes
 Département « Aménagement, mobilités et environnement »
 Laboratoire « Environnement, acoustique, sécurité et éco-conception »
 Route de Bouaye CS4
 44344 BOUGUENAIS Cedex
 Tél. +33 (0)2 40 84 56 18
 Fax  +33 (0)2 40 84 59 92
 
 ___
 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] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian

On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote:
 […]
 \defineenumeration[test]
 
 \setupenumeration[test][way=bysection]
   ^
This should rather be
\setupenumerations[test][way=bysection]

Best regards: OK

 
 \starttext
\startsection[title=one]
\starttest alpha \stoptest
\starttest beta  \stoptest
\stopsection
\startsection[title=two]
\starttest alpha \stoptest
\starttest beta  \stoptest
\stopsection
 \stoptext
 
 -
  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
 ___

___
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] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian

On 5 avr. 2013, at 14:48, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 05.04.2013 um 11:31 schrieb Otared Kavian ota...@gmail.com:
 
 
 On 4 avr. 2013, at 23:13, Hans Hagen pra...@wxs.nl wrote:
 […]
 \defineenumeration[test]
 
 \setupenumeration[test][way=bysection]
^
 This should rather be
  \setupenumerations[test][way=bysection]
 
 No, \setupenumeration is the correct command for MkIV, the plural form
 \setupenumerations is only a synonym and was added for backwards 
 compatibility.

Thanks Wolfgang, of course you are right and somehow I overlooked this change…
However on the Garden, there is a description for \setupenumerations
http://wiki.contextgarden.net/Command/setupenumerations
but nothing about \ setupenumeration. Later today I'll add a few words on the 
latter to the wiki.

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] \setupheadertexts [section]

2013-03-26 Thread Otared Kavian
Hi Alan,

I think the reason is that ConTeXt expects any text to be part of a certain 
structure as in
Chapter  Section  Subsection
and therefore what you add after your chapter, that is

 \page [yes]
 
 Some trailing remarks…

should be part of a new chapter (or maybe an unnumbered chapter).

Best regards: OK

On 26 mars 2013, at 11:37, Alan BRASLAU alan.bras...@cea.fr wrote:

 Hello,
 
 \setupheadertexts [chapter]
 
 will center the current chapter title (or abbreviated version using
 marking=) in the running page headers.
 
 However, how can one also put unnumbered chapter-level titles
 (\starttitle\stoptitle) in the running headers?
 
 \setupheadertexts [chapter,title]
 seems natural but does not work.
 
 
 Also, what seems to be a bug, the running text does *not* get reset to
 empty upon leaving the chapter. Below is a minimal illustration
 (nonworking as it is incomplete, only a snippet)
 
 \setupheadertexts [chapter]
 
 \starttext
 
 \startpart % lets have some structure...
 
 Some introductory text...
 
 \startchapter [title=Getting started]
 
 Some text...
 
 \stopchapter
 
 \page [yes]
 
 Some trailing remarks...
 % the header here still contains Getting started
 
 \stoppart
 
 \stoptext
 
 
 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
 ___

___
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] Nabla operator appears italic in formula

2013-03-24 Thread Otared Kavian

On 24 mars 2013, at 11:24, Hans Hagen pra...@wxs.nl wrote:

 On 3/23/2013 9:34 PM, Xenia wrote:
 Dear context list,
 
 using the nabla symbol ∇ in formulas, I wondered why it looks italic and
 not upright as for example in [1].
 I attach an example.
 
 Because that's how it's defined in math italics ... is nabla always supposed 
 to be upright in standard math italic mode?
 
 (I'll change the \nable definition to \unexpanded\def\nabla{∇}.)
 
 Hans

Hi, 

\nabla should be italic if all other math greek symbols, like \Omega, \Gamma, 
\sum, ect are set in italic. Otherwise \nabla and all such symbols should be 
upright.
Would it be possible to make this optional in math italics, something like
\setupmathematics[mathsymbols=italic]
or 
\setupmathematics[mathsymbols=upright]
Maybe this should be set when one chooses the greek letters to be italic or 
upright in mathematics.

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] A thinner hrule for headers

2013-03-24 Thread Otared Kavian
Hi,

Maybe you need something like \hairline:

\setupthinrules[height=.1pt,depth=.1pt]
\setupheader[after=\hairline]

You can also enclose your header in a \framed commande, such as
\framed[frame=off,bottomframe=on]

Best regards: OK

On 24 mars 2013, at 13:32, Thomas Kreuzer thomas.kreu...@rwth-aachen.de wrote:

 Hello everyone,
 
 I'd like to know if it is possible to get a thinner hrule in headers (mkiv).
 
 Right now I am using
 
 \setupheader[after=\hrule]
 
 replacing hrule with thinrule or hairline results in space below the header 
 text and the line, and the line actually spans two lines.
 
 How can I control the thickness of the line, I remember having read something 
 about using frames, but I can't find the post anymore.
 
 Thanks in advance, and regards,
 Thomas
 
 ___
 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] A thinner hrule for headers

2013-03-24 Thread Otared Kavian
Hi Aditya,

Yes indeed you are right… 
\setupbackgrounds[header][text][bottomframe=on, framethickness=0.4pt]
works fine but then the ruler of the bottomframe is too close to the text.
Since Thomas Kreuzer did not provide a minimal example, it is not clear what he 
wants exactly.

Best regards: OK

On 24 mars 2013, at 21:35, Aditya Mahajan adit...@umich.edu wrote:

 On Sun, 24 Mar 2013, Otared Kavian wrote:
 
 You can also enclose your header in a \framed commande, such as
  \framed[frame=off,bottomframe=on]
 
 A header is already enclosed in a frame! Something like
 
 \setupbackgrounds[header][text][bottomframe=on, framethickness=0.4pt]
 
 should work.
 
 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] upto current

2013-03-20 Thread Otared Kavian

On 19 mars 2013, at 19:47, Aditya Mahajan adit...@umich.edu wrote:

 […]Although most active users use ConTeXt standalone and are willing to 
 update frequently, TL still plays an important role in introducing new users 
 to ConTeXt. An experienced TeX user who wants to try ConTeXt is more likely 
 to try ConTeXt distributed as part of TL rather than ConTeXt standalone. When 
 there are serious bugs with ConTeXt TL, it gives the impression that ConTeXt 
 is not a mature macro package.

Hi,

To support what suggests Aditya, I would like to say that the main issue with 
the current state of ConTeXt in TeXLive (either mkii or mkiv) is that most « 
lambda » users of TeX whom I know in the mathematics world and in accademia, 
that is:
--- users who are not familiar with what should be changed in TeXLive, 
--- users who don't even know TeX and LaTeX are not synonyms, 
--- users who don't know that there exist another environments and 
macro packages for typesetting tex-files, 
--- users who don't know that using ConTeXt one can do better 
typesetting, and that it has better features, 
all those users are not going to install a stand alone ConTeXt. They would use 
TeXLive, they would try everything in it, but all they want is to write a paper 
and typeset it with a TeX package with a single command (or in the case of Mac 
users, from within TeXShop or another editor). Most of them do not even know 
where TeXLive sits on their computer, and they don't know how to install 
something new.
Unfortunately, the ConTeXt in TeXLive does not work out of the box: the user 
has to issue a few commands before he can typeset a file with ConTeXt, either 
mkii or mkiv (for instance on my installation of TeXLive, after having issued a 
few commands, which I don't remember right now, I can use ConTeXt with LuaTeX, 
that is mkiv, but I cannot use mkii).

For my part I have been advocating ConTeXt among my colleagues (especially for 
course materials and books, since submitting a paper to a journal is 
essentially impossible if it is a ConTeXt file). Most of them agree that 
ConTeXt gives a much better result, but when it comes to how to use ConTeXt 
from TeXLive they are afraid and don't go further. For some of them I have 
installed a stand alone ConTeXt, but most of them do not update their 
installation, since they would not use the most recent features or improvements 
(for most of day to day typesettings, when one does not use complexe features, 
even a beta version is sufficiently stable for such users).

So my pledge is this: make any stable version of ConTeXt in TeXLive so that it 
works and typesets a tex-file « out of the box », without needing to issue any 
command other than:
context myfile.tex
This is the case with LaTeX inside TeXLive, and so I cannot see any strong 
reason for ConTeXt not having the same behavior.

Best regards: OKs
___
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] luatex 0.75

2013-03-04 Thread Otared Kavian

On 4 mars 2013, at 23:34, Hans Hagen pra...@wxs.nl wrote:
 […]
 first-setup currently fetches a 0.70 indeed
 


Not here: I just updated with first-setup.sh on my Mac and got:
This is LuaTeX, Version beta-0.75.0-2013030308 (TeX Live 2013/dev)(rev 
4589)
an ConTeXt version is
current version: 2013.03.04 18:28

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] Fixed Line Height

2013-02-07 Thread Otared Kavian
Hi Troy,

You are right, I am responsible for the old 
http://wiki.contextgarden.net/SlideWithSteps
which is just adapted from what I used to use in the old good times of Plain 
TeX. But I wasn't successful in changing the macros to make them work in mkiv.

I think the approach should completely change in order to use steps with mkiv 
and lua. 
Later on I'll send you some thoughts about this.

Best regards: OK

On 6 févr. 2013, at 18:14, Troy Henderson thend...@gmail.com wrote:

 Your macros slide-with-steps are very nice
 
 For the record, these are not my macros.  Aren't they yours?  Anyway, the 
 only thing I changed from what's on
 
 http://wiki.contextgarden.net/SlideWithSteps
 
 is I changed \eject to \page[yes] and I changed \phantom{ ... } to 
 \setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a hidden 
 layer.  Like you said, the problem seems to be that I cannot do
 
 \setlayer[StepsHiddenLayer]{ ... }
 
 on a row of an align.  Surely there is a solution to this.  I will post it 
 now to a separate post.
 
 Troy
 ___
 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] Fixed Line Height

2013-02-06 Thread Otared Kavian
Hi Troy,

Thanks for sharing!
Your macros slide-with-steps are very nice and the steps shown in the file 
foo.tex are very good, but I couldn't typeset the other file, bar.tex, since it 
seems that due to the use of \startalign and \stopalign in some steps in the 
middle create some difficulties for TeX.

André Caldas (who is on the list) tried also some nice modifications of the 
stepping macros which he maned simplesteps: maybe both of you can look at each 
other's approach and solve the remaining problems.

I'll try to find a workaround for your approach with layers, maybe with using 
buffers, layers and some lua code, but even though I have some (obscure…) ideas 
I am really not good at writing code.

Best regards: OK

On 6 févr. 2013, at 16:26, Troy Henderson thend...@gmail.com wrote:

 Thanks Wolfgang for the explanation.  \setupblank[fixed,big] works very well 
 too.  Now for another question.  I have modified SlideWithSteps from
 
 http://wiki.contextgarden.net/SlideWithSteps
 
 It seemed not to like \eject and I replaced \phantom{ ... } with 
 \setlayer[StepsHiddenLayer]{ ... } where StepsHiddenLayer is a layer created 
 with
 
 \definelayer[StepsHiddenLayer][state=stop]
 
 See attached slide-with-steps.tex
 
 This seems to work fine with itemized lists and even MetaPost figures (see 
 foo.tex) but it fails with multiline equations (bar.tex) which are both 
 attached.  I would like a solution that would allow me to reveal each line of 
 a multiline equation.
 
 Troy
 slide-with-steps.texfoo.texbar.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
 ___

___
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] Latest beta broken?

2013-02-05 Thread Otared Kavian
Hi Hans,

The latest beta (version: 2013.02.05 13:35) gives an erreor message with this 
minimal example:

\starttext

Hello hans!

\stoptext

The error message is:
! LuaTeX error ...-minimal/tex/texmf-context/tex/context/base/file-job.lua:785: 
bad argument #1 to 'for iterator' (table expected, got nil)
stack traceback:
[C]: in function 'for iterator'
...-minimal/tex/texmf-context/tex/context/base/file-job.lua:785: in 
function 'getcommandline'
[string \directlua ]:1: in main chunk.

system   tex  error on line 1 in file 
/context-minimal/tex/texmf-context/tex/context/base/cont-yes.mkiv: LuaTeX error 
 ...

 1   %D \module
 2 %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4 %D  title=\CONTEXT\ Miscellaneous Macros,
 5 %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 %D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for


\ctxcommand #1-\directlua {commands.#1}

inserted text ...s \job_options_get_commandline 
  \job_options_get_ctxfile \...
everyjob \the \everyjob 
  
l.1 
%D \module
? 
Process aborted

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] \goto links to figures are inactive

2013-02-03 Thread Otared Kavian
Hi Hans, 

After changing the definition of
\floatcaptionattribute
in the file
[/context-minimal]/tex/texmf-context/tex/context/base/strc-flt.mkvi
and remaking th eformats with
context --make --all
everything seems to work fine with the following example:
%%% begin goto-figure.tex
\starttext
\goto{Figure A}[fig:cow.pdf]

Reference to Figure A on page \at[fig:cow.pdf]

\goto{Table 1}[tab:Table01]

\goto{Some text}[Text]

\page
\startplacefigure[
reference=fig:cow.pdf,
title=Figure A,
location={here,page,force,nonumber},
]
\externalfigure[cow.pdf][width=.5\textwidth]
\stopplacefigure
\page
\startplacetable[
reference=tab:Table01,
title=Table 1,
location={here,force,nonumber},
]
{\starttabulate[|   l   |   l   |]
\NC 1000
\NC 2000
\NC\NR
\stoptabulate}
\stopplacetable
 
\page
Some text\reference[Text]{}
\page

\stoptext
%%% end goto-figure.tex

Best regards: OK

On 3 févr. 2013, at 15:29, Hans Hagen pra...@wxs.nl wrote:

 On 2/2/2013 2:25 PM, Alan Bowen wrote:
 Sorry to keep pushing this—it is a problem for a journal that I publish.
 
 I have re-installed the ConTeXt standalone and the problem persists with
 
 \setupinteraction[state=start]
 
 \starttext
 \goto{Figure A}[fig:cow.pdf]
 
 Reference to Figure A on page \at[fig:cow.pdf]
 
 \goto{Table 1}[tab:Table01]
 
 \goto{Some text}[Text]
 
 \page
 \useexternalfigure[Graphic][cow.pdf][]
 \placefigure[here,page,force,nonumber]
 [fig:cow.pdf]
 {Figure A}
 {\externalfigure[cow.pdf][type=pdf,
 width=.5\textwidth]}
 \page
 \placetable[here,force,nonumber]
 [tab:Table01]
 {Table 1}
 {\starttabulate[|l|l|]
 \NC 1000
 \NC 2000
 \NC\NR
 \stoptabulate}
 \page
 Some text\reference[Text]{}
 \stoptext
 
 Only the last \goto works. Even the \at link fails, which is really
 discouraging.
 
 You can play with this:
 
 \def\floatcaptionattribute
  {\iflocation
 %  \ifnofloatnumber
 %  \else
   \ifnofloatcaption
   \else
 \ifinsidesplitfloat
\ifconditional\splitfloatfirstdone
\else
  attr \destinationattribute \currentfloatattribute
\fi
 \else
   attr \destinationattribute \currentfloatattribute
 \fi
   \fi
 %  \fi
   \fi}
 
 I have no time for testing right now so you need to check all odd cases 
 before I change something.
 
 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
 ___

___
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] \goto links to figures are inactive

2013-02-02 Thread Otared Kavian
Hi Alan,

I guess you are using mkiv, since in mkii your code seems to work here.
Then, I think the way references to floats should be entered have changed and 
one should use a construction such as:

\setupinteraction[state=start]

\starttext
\goto{Figure A}[fig:cow.pdf]

Reference to Figure A on page \at[fig:cow.pdf]

\goto{Table 1}[tab:Table01]

\goto{Some text}[Text]

\page
\startplacefigure[reference=fig:cow.pdf,title=Figure 
A][here,page,force,nonumber]
 \externalfigure[cow.pdf][width=.5\textwidth]
\stopplacefigure
\page
\startplacetable[reference=tab:Table01,title=Table 1][here,force,nonumber]
{\starttabulate[|   l   |   l   |]
\NC 1000
\NC 2000
\NC\NR
\stoptabulate}
\stopplacetable
 
\page
Some text\reference[Text]{}
\stoptext

which gives appropriate working links. 
There should be also a short version of \placefigure or \placetable, but I 
don't remember the correct syntax… Sorry!

Best regards: OK

On 2 févr. 2013, at 14:25, Alan Bowen bowenala...@gmail.com wrote:

 Sorry to keep pushing this—it is a problem for a journal that I publish.
 
 I have re-installed the ConTeXt standalone and the problem persists with
 
 \setupinteraction[state=start]
 
 \starttext
 \goto{Figure A}[fig:cow.pdf]
 
 Reference to Figure A on page \at[fig:cow.pdf]
 
 \goto{Table 1}[tab:Table01]
 
 \goto{Some text}[Text]
 
 \page
 \useexternalfigure[Graphic][cow.pdf][]
 \placefigure  [here,page,force,nonumber]
[fig:cow.pdf]
   {Figure A}
{\externalfigure[cow.pdf][type=pdf,
width=.5\textwidth]}
 \page
 \placetable   [here,force,nonumber]
   [tab:Table01]
   {Table 1}
 {\starttabulate[| l   |   l   |]
 \NC 1000
   \NC 2000
   \NC\NR
 \stoptabulate}

 \page
 Some text\reference[Text]{}
 \stoptext
 
 Only the last \goto works. Even the \at link fails, which is really 
 discouraging.
 
 Alan
 
 
 
 On Thu, Jan 31, 2013 at 8:28 AM, Alan Bowen bowenala...@gmail.com wrote:
 The problem persists with the latest beta. Am I not encoding this properly?
 
 And in such cases, should one include a sample .pdf file as well?
 
 Alan
 
 
 On Wed, Jan 30, 2013 at 8:17 AM, Alan Bowen bowenala...@gmail.com wrote:
 The following compiles in the latest beta standalone but with dead links to 
 the Figure:
 
 \setupinteraction[state=start]
 \starttext
 \goto{Figure A}[fig:Figure.pdf]
 
 \goto{Text A}[TextA]
 \page
 \useexternalfigure[Graphic][Figure.pdf][]
 \placefigure
[here,page,force,nonumber]
[fig:Figure.pdf]
   {Figure A}
{\externalfigure[Figure.pdf][type=pdf,
width=\textwidth]}

 \reference[TextA]{}
 \input knuth
 \stoptext
 
 Any suggestions?
 
 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
 ___

___
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] Math typesetting problems

2013-01-28 Thread Otared Kavian
Hi Janne,

Personnally I prefer to use the Plain TeX alternative \over (which works fine 
in ConTeXt), that is
${a \over b}$
instead of 
$\frac{a}{b}$
Compare the following two outputs in the example you want to typeset: I think 
the second is more or less what you want

\starttext
Using \type{\frac} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula
\blank
Using \type{\over} gives:
\startformula
f_{B_t | B_s = S, B_u = U}(x) = {
e^{-{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + 
{(S(u-t) + U(t-s))^2 \over (u-s)} \over 2(t-s)(u-t)}} \over 
\sqrt{2\pi {(t-s)(u-t) \over u-s}}}
\stopformula

\stoptext

Best regards: OK



On 28 janv. 2013, at 10:11, Janne Junnila janne.junn...@gmail.com wrote:

 Indeed it seems like the alignment is good with \dfrac, but this does
 not solve my problem, since I wish to also use fractions with
 script-size or scriptscript-size (\xfrac, \xxfrac). The specific
 formula I have is
 
 \startformula
 f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
 U(t-s)) + \frac{(S(u-t) +
 U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
 \stopformula
 
 Thanks,
 Janne
 
 Roland wrote:
 With \dfrac it looks good.
 With \fraction the minus sign is on the top of the fraction.
 Best regards, Roland
 ___
 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] \overrightarrow changed

2013-01-27 Thread Otared Kavian

On 27 janv. 2013, at 21:40, Hans Hagen pra...@wxs.nl wrote:

 […]
 fixed. some more info about the updated mkiv arrow related mechanisms can be 
 found in
 
 http://www.pragma-ade.com/general/manuals/about.pdf
 
 (btw, one needs the latest greatest lm/gyre math fonts)
 
 Hans

This is an amazing progress! 
With the mechanisms you decsribe (mathextensible, leaders, fillers,…) it is 
much easier to use arrows and place them wherever it is necessay.
Thanks!

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] Bug in reference to sections

2013-01-23 Thread Otared Kavian

On 23 janv. 2013, at 09:38, Hans Hagen pra...@wxs.nl wrote:

 As there are indeed side effects I'll remove that options. Asking for a 
 number of an unnumbered section is weird anyway.
 

Hi,

Thanks to Hans and Wolfgang for your attention and the workarounds you offer.
When I want to refer to an un-numbered section, it makes sense in an 
interactive document. Maybe, instead of 
 \in{other section}[sec:other] 
I should use another command such as
\about[sec:other]
but in this case all the title of the section in question will be typeset: this 
is fine when this title is short enough, but it may be ugly if the title is 
long, or when one wishes to refer to that section by a paraphrase.

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
___


[NTG-context] Big with \widehat and \widetilde

2013-01-23 Thread Otared Kavian
Hi Hans,

With the latest betas (version 2013.01.23 14:45 MKIV  fmt: 2013.1.23)
 \widehat and \widetilde 
do not work anymore in mkiv (no matter the font): minimal example

 begin bug-tilde.tex
\starttext

${\widetilde V}$

${\tilde u}$

${\widehat \phi}$

${\hat \alpha}$

\stoptext
 end bug-tilde.tex
For your information, the same file works fine in mkii.

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
___


[NTG-context] Bug in reference to sections

2013-01-22 Thread Otared Kavian
Hi Hans,

I noticed that with the latest mkiv (version 2013.01.22 18:33 MKIV  fmt: 
2013.1.22) when the sections have no numbers two « ! » are printed and this 
behavior is new: with previous versions when invoking for instance
\in{other section}[sec:other]
there used to be a link to the other section and no « ! ! ». I understand 
that there has been a change in this behavior, but is there a way to suppress 
the two « ! ! »?

Here is a minimal example:

 begin bug-reference.tex
\setupinteraction[state=start] 
\setuphead[section][number=no]

\starttext
\section{First Section}
\input knuth.tex
See the \in{other section}[sec:other] below. 
\page

\section[sec:other]{\bf Second Section}
Here is another section.

\input ward.tex

\setuphead[section][number=yes]
\section{Third Section}
\input knuth.tex

See the \in{other section}[sec:other-2] below. 
\page

\section[sec:other-2]{\bf Fourth Section}

Here another section.

\input ward.tex

\stoptext
 end bug-reference.tex

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] fails to fonts reloading

2013-01-04 Thread Otared Kavian
Hi Li Yanrui,

I tried (with version: 2013.01.02 18:19 on Mac OS X 10.8.2)
mtxrun --script fonts --reload
with the minimals and did not notice any problem: indeed the first line of the 
output is 
fonts | names | warnings are disabled (tracker 'fonts.warnings')
but the command does not abort as it seems on your installation of the stand 
alone ConTeXt.

Best regards: OK

On 5 janv. 2013, at 03:10, Li Yanrui (李延瑞) liyanrui...@gmail.com wrote:

 Execute `mtxrun --script fonts --reload` with minimals beta 2013.01.02:
 
 $ mtxrun --script fonts --reload
 
 fonts   | names | warnings are disabled (tracker 'fonts.warnings')
 fonts   | names | identifying tree font files with suffix otf
 fonts   | names | scanning /opt/context/tex/texmf-project for otf 
 files
 fonts   | names | 6 entries found, 0 otf files checked, 0 okay
 fonts   | names | scanning /opt/context/tex/texmf-fonts for otf files
 fonts   | names | 6 entries found, 0 otf files checked, 0 okay
 fonts   | names | scanning /opt/context/tex/texmf-local for
 otf filestexlua: ../../../source/texk/kpathsea/cnf.c:255:
 kpathsea_cnf_get: Assertion `kpse-program_name' failed.
 Aborted
 
 
 -- 
 Best regards,
 
 Li Yanrui
 ___
 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] hbar (and probably some other symbols) doesn't work in latest beta

2013-01-03 Thread Otared Kavian
Dear Michael and Dalyoung,

In order to test again and reproduce the problem you encounter I removed my 
texmf-cache and typeset the example: here is what I observe.

--- with \enablemode[lmmath] the \hbar appears and is a math italic « h » with 
a bar in the top third of the vertical part of the letter

--- without \enablemode[lmmath] the \hbar appears and is a roman « h » with a 
bar in the top third of the vertical part of the letter

Your error message seems to indicate some character in 
texgyretermesmath-regular is not found and points to the file
mkiv-base.map
is this file present on your context tree? On my installation the file exists 
but there is no mention of texgyretermesmath-regular…

So I am clueless about the issue because all three of us we have updated to
LuaTeX, Version beta-0.74.0-2012122517 (rev 4541),
ConTeXt ver: 2013.01.02 18:19 MKIV
on Mac OS X Mountain Lion.

Best regards: OK

On 3 janv. 2013, at 15:26, Jeong Dal hak...@me.com wrote:

 Dear Michael and Otared,
 
 After updating ConTeXt to the latest version(2013.01.02.) and run the sample 
 code.
 
 
 \starttext
 $\hbar$
 \stoptext
 
 But I also got empty page.
 
 If I add either \setupbodyfont[xits] or \enablemode[lmmath], \hbar appeared.
 
 I also use Mac OSX mountain lion 64bit, luatex beta 0.74.
 
 In the log file, I found the message Missing character:…
 
 %
 …
 fonts  typescripts  unknown: library 'loc'
 (/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/graph/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 …
 …
 Missing character: There is no ħ (U+0127) in font texgyretermesmath-regular!
 backend  xmp  using file 
 '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
 …
 %
 
 I think that Otared doesn't have this kind of message.
 
 Do you have any idea to fix 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
 ___

___
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] hbar (and probably some other symbols) doesn't work in latest beta

2013-01-02 Thread Otared Kavian
Hi Michael,

Your code typesets without any problem on my machine with the latest beta 
ConTeXt  ver: 2013.01.02 18:19 MKIV  fmt: 2013.1.2.

Which version on which platform are you using?

Happy New Year to you and all the List!
Best regards: OK

On 2 janv. 2013, at 11:44, Michael Murphy murphy...@gmail.com wrote:

 Minimal example:
 
 \starttext
 $\hbar$
 \stoptext
 
 Michael
 
 -- 
 Michael Murphy
 murphy...@gmail.com
 
 ___
 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] hbar (and probably some other symbols) doesn't work in latest beta

2013-01-02 Thread Otared Kavian
Hi Michael,

I am also using Mac OS X Mountain Lion 64 bit and LuaTeX version 
beta-0.74.0-2012122517 (rev 4541) with ConTeXt  ver: 2013.01.02 18:19 MKIV.
It seems that your installation has a font problem, but I can't tell what is 
the origin.

Could you please try your file with some other fonts such as on of the 
followings:
%\setupbodyfont[xits,12pt]
%\setupbodyfont[palatino]
%\setupbodyfont[libertine,12pt]
%\setupbodyfont[termes]
%\setupbodyfont[times,12pt]

Another issue maybe the fact that Latin Modern Math has been changed recently 
under mkiv, and one way to use the old Latin Modern Math is to say:
\enablemode[lmmath]

Best regards: OK

On 2 janv. 2013, at 23:41, Michael Murphy murphy...@gmail.com wrote:

 Hi Otared,
 
 Thanks, but no such luck here. I'm also using ConTeXt  ver: 2013.01.02 18:19 
 MKIV  fmt: 2013.1.2 (the same version as you, fresh from first-setup.sh) and 
 LuaTeX version beta-0.74.0-2012122517  (tex live 2013/dev)(rev 4541). 
 Platform is OSX Mountain Lion 64 bit (Darwin).
 
 Could this be the issue (from output)?
 
 fontslatin modern fonts are not preloaded
 languageslanguage en is active
 (hbar-test.tex{/Users/mmurphy/context/beta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
 fontspreloading latin modern fonts (second stage)
 fontstypescripts  unknown: library 'loc'
 {/Users/mmurphy/context/beta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/mmurphy/context/beta/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
 fontsfallback modern rm 12pt is loaded
 
 Michael
 
 --
 
 Michael Murphy
 murphy...@gmail.com
 
 
 
 On 2 Jan 2013, at 21:13, Otared Kavian ota...@gmail.com wrote:
 
 Hi Michael,
 
 Your code typesets without any problem on my machine with the latest beta 
 ConTeXt  ver: 2013.01.02 18:19 MKIV  fmt: 2013.1.2.
 
 Which version on which platform are you using?
 
 Happy New Year to you and all the List!
 Best regards: OK
 
 On 2 janv. 2013, at 11:44, Michael Murphy murphy...@gmail.com wrote:
 
 Minimal example:
 
 \starttext
 $\hbar$
 \stoptext
 
 Michael
 
 -- 
 Michael Murphy
 murphy...@gmail.com
 
 ___
 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
 ___
 
 ___
 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] MetaPost Animations

2012-12-28 Thread Otared Kavian
Dear Troy,

I just looked up your animations webpage: congratulations for the beautiful 
work you have done, and thanks for sharing.
I played a little bit with the hypocycloid source file you sent some time ago 
and found it useful for other situations as well.
Would it be possible to have the source files of the other examples you show on 
the webpage
http://www.tlhiv.org/animations/

Also, if I may suggest something, an animation like the one for Riemann sums 
would be very intersting for illustrating the Lebesgue integrals in order to 
show to students what is going on.

Best wishes for the New Year, and best regards: OK

On 28 déc. 2012, at 20:41, Troy Henderson thend...@gmail.com wrote:

 I've created several animations using MetaPost/ConTeXt, and I have also 
 created a webpage with these animations.  The URL to the page is
 
 http://www.tlhiv.org/animations/
 
 Feedback is appreciated, and if there is a particular animation that you 
 would like to see included, let me know and I will attempt to code them up in 
 MetaPost, provide the source code, and include them on the webpage.
 
 Troy Henderson
 ___
 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] MetaPost Animations

2012-12-28 Thread Otared Kavian
Dear Troy,

The gears are much better now. However, have a look at 
http://fr.wikipedia.org/wiki/Fichier:Involute_wheel.gif
and
http://fr.wikipedia.org/wiki/Engrenage

The animation for Gibbs is also very nice: thanks for sharing!
I tried the TeX file for your Gibbs phenomena animation: I could not get the 
same pictures as you show on your webpage. I get only one page out of 8, and 
the log file says several times:
unknown path q
! Improper `clip'.
to be read again 

Best regards: OK

On 29 déc. 2012, at 03:55, Troy Henderson thend...@gmail.com wrote:

 Are the gears more correct now?
 
 Troy
 ___
 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] New module: simplesteps.

2012-12-14 Thread Otared Kavian
Hi André,

You were so quick to write your module…
Thanks for sharing, but I could not typeset the example file you sent: I didn't 
get whether your file simplesteps.mkiv should be renamed 
simplesteps.mkiv
or
simplesteps.tex
or even
t-simplesteps.tex
or any other suffix.
Maybe after you apply the changes suggested by Wolfgang and Philip you are 
going to repost your moudle?

Best regards: OK

On 14 déc. 2012, at 12:21, Andre Caldas andre.em.cal...@gmail.com wrote:

 Hello!
 
 thanks for the interesting contribution! Have a look at the patch
 I hopefully don’t forget to append.
 
 Thank you! I will take a look and learn... ;-)
 
 
 [...]
 I use \startbuffer and \stopbuffer, and also Lua. As I said, I don't
 really know how to write a module... comments are very welcome.
 
 Honestly, it doesn’t work, but that’s a minor flaw!
 
 Sorry! I forgot to mention. Only a little subset of it works. I have
 (already - so I don't forget to) attached a tex file that works.
 
 
 [**lots of advices I will study carefully latter**]
 [...]
 I could not figure out how exactly the section block thingy is
 supposed to work. It does not create the \startframe macro at all
 -- is this something custom?
 
 I don't know how to use this startframe yet. So, I am doing like
 this right now: (numbers like 2-3 or 2- don't work yet)
 
 === START code snip ===
 \startbuffer[simplesteps]
  \startitemize
\item First item
\uncover[2,3,4]{\item Second item}
\uncover[3,4]{\item Second item}
\uncover[4]{\item Second item}
  \stopitemize
 \stopbuffer
 \simplestepsplaybuffer
 === STOP code snip ===
 
 The simplestepsplaybuffer macro simply calls the
 simplesteps.playbuffer() lua function. This function plays the buffer
 and determines if it has to be played again or not. If it does, then
 it tex.print('\simplestepsplaybuffer').
 
 The macros uncover determine how far the specification is from being
 played. If it is being played now, then show. If it is played next,
 then show in gray. And so on.
 
 
 I infer it’s about the slide title
 so I have \startframe call \section but that should be taken as a
 placeholder at most. In my own slide module I use
 \{start,stop}section with the option placehead=no and rely on the
 page header to display the slide title (i.e. current section
 running head). That was the laziest way I could imagine :P
 
 I guess that's what I want to do. I just don't have the necessary
 knowledge yet. ;-)
 
 
 Some remarks:
 
  - you should rename simplesteps.mkiv to t-simplesteps.mkiv,
indicating that it is a thirdparty module
 
 I will. I think I will have a bitbucket repository exclusively for
 modules. Then I will have the proper directory structure, the proper
 naming scheme and hopefully proper documentation, xml, etc. (lots of
 things to learn!)
 
 
  - if you plan on expanding the code you eventually will come to
love this bit: http://wiki.contextgarden.net/System_Macros
  - Context has a namespacing system which you might consider
switching to in the long term:
  http://tex.stackexchange.com/q/58654
but it’s arguably an advanced method
 
 Well, I do want to do it the right (recommended) way!
 
 
  - maybe switch to mkvi as named parameters make rewriting
macros a breeze
 
 Would you elaborate a bit further?
 
 
 Is it ok if I send a PDF sample to the list?
 
 I hope you can use the TEX file attached.
 
 
 Cheers,
 André Caldas.
 simpletest.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
 ___

___
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] beta (MP)

2012-12-11 Thread Otared Kavian
Hi Alan,

Your example works on my machine (Mac OS X 10.8 and Context version 2012.12.10 
23:20).

Best regards: OK

On 11 déc. 2012, at 09:05, Alan BRASLAU alan.bras...@cea.fr wrote:

 On Mon, 10 Dec 2012 23:28:17 +0100
 Hans Hagen pra...@wxs.nl wrote:
 
 Hi,
 
 I uploaded a beta. There are some minor changes in the mp machinery
 (as preparation for 'double' support. As I upgraded some file related
 code recently there can be issues (easy to solve once known as it's
 hard to foresee all bordercases).
 
 Hans
 
 (Already reported directly, but I forgot to put the list on copy.)
 
 There is a problem with the new beta.
 
 Minimal example:
 
 \starttext
\startMPcode
draw fullcircle scaled 1cm ;
\stopMPcode
 \stoptext
 
 
 
 
 metapost initializing instance 'metafun' using format 'metafun'
 metapost loading
 'metafun': 
 /home/local/context/beta/tex/texmf-context/metapost/context/base/metafun.mpiv,
 using method: default
 luatex: ../../../source/texk/web2c/mplibdir/mp.w:5353:
 do_set_attr_head: Assertion `A-type==mp_structured' failed.
 
 mtx-context | fatal error: no return code, message: luatex:
 execution interrupted
 ___
 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] drops module (draft)

2012-12-07 Thread Otared Kavian
Hi Peter,

Thank you for your very nice module.
For your information, I wanted just to report an issue I noticed with Adobe 
Reader (Version: 11.0.0 (11.0.0)) on Mac OS X 10.8: when I try to open the file 
« pile.pdf » (which is in your « examples » directory) Adobe Reader crashes and 
there is no way to open that file with it. However th eother file, « rotate.pdf 
» opens without any problem…

Best regards: OK

On 6 déc. 2012, at 18:08, Peter Rolf indi...@gmx.net wrote:

 Hi all,
 
 a first version of the 'drops'-module (MkIV only) is available at
 
 https://www.wuala.com/indiego/public/ConTeXt/drops/?key=caiCGLasLFmJ
 
 
 Taken from the included documentation..
 [..]
 'drops' is a small extension for ConTeXt, that allows you to add drop
 shadows to rectangular regions (so called boxshadows). A working
 installation of ImageMagick (IM) is required to create the shadow
 graphics. The supported color spaces are CMYK, RGB and Gray, the file
 formats are limited to PNG and JPG.
 [..]
 Read the manual for detailed information.
 
 The attached example is just a small test file for the 'rotation'
 parameter (a compensation for the object rotation, so that the shadow
 stays at the given direction). You will find other examples in the
 documentation and there is also a 'pile' example with the complete
 source. The 'presets' pdf contains the predefined setups for different
 shadow (or frame) types and it's source is a good starting point for
 your own experiments.
 
 This is a first draft, but most things work quite stable. If you want to
 help, test as much as possible. :-)
 
 *You need a recent version of ImageMagick for this module.*
 
 6.7.8-2 to 6.8.0-7 (wrong version info 6.8.0-6): used here, should work
 6.7.6-0 or lower: will fail due to incompatibilities
 7.0.0.0 alpha: untested ('magick' is used instead of 'convert')
 
 Tested on Windows7 64bit and Debian 6.0.5-i386 (IM compiled from source)
 
 
 Happy TeXing!
 
 
 Peter
 rotate.pdf___
 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] Q about hangaround commands

2012-12-06 Thread Otared Kavian
Hi Mikael,

The example given by Wolfgang works fine for me with mkii, but not in mkiv: 
probably something has changed in mkiv, for example the way [scale=500] must be 
used in mkiv.

Best regards: OK

On 6 déc. 2012, at 10:58, Mikael P. Sundqvist mic...@gmail.com wrote:

 On Wed, Nov 3, 2010 at 7:51 AM, Wolfgang Schuster 
 schuster.wolfg...@googlemail.com wrote:
 
 Am 03.11.2010 um 05:47 schrieb Vladimir Lomov:
 
  Hi.
 
  Some answers I found myself :)
 
  P.S. I have feeling that feature like 'hangaround' doesn't fit well
  with tex (page layout ...?) model.
 
 Hangaround is a very robust command and works in more cases than
 \placefigure[left] but you have a conflict with the \item command
 which place the itemize symbol before the following text which
 is indented in your case.
 
 \unprotect
 
 \def\stophangaround
   {\endgraf
\egroup}
 
 \def\starthangaround
   {\dosingleempty\dostarthangaround}
 
 \def\dostarthangaround[#1]%
   {\doifelse{#1}{\v!right}
  {\dostartrighthangaround}
  {\dostartlefthangaround }}
 
 \def\dostartlefthangaround
   {\noindent\bgroup
\dowithnextbox
  {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
   \setbox\nextbox\hbox{\flushnextbox\hskip\@@hadistance}%
   \getboxheight\scratchdimen\of\box\nextbox
   \getnoflines\scratchdimen
   \nextboxht\strutht
   \nextboxdp\strutdp
   \hangindent\nextboxwd
   \hangafter-\noflines
   \llap{\flushnextbox}\ignorespaces}
\hbox}
 
 \def\dostartrighthangaround
   {\noindent\bgroup
\dowithnextbox
  {\ifdim\nextboxht\strutht\setbox\nextbox\tbox{\flushnextbox}\fi
   \setbox\nextbox\hbox{\hskip\@@hadistance\flushnextbox}%
   \getboxheight\scratchdimen\of\box\nextbox
   \getnoflines\scratchdimen
   \nextboxht\strutht
   \nextboxdp\strutdp
   \hangindent-\nextboxwd
   \hangafter-\noflines
   \rlap{\hskip\hsize\llap{\flushnextbox}}\ignorespaces}
\hbox}
 
 \protect
 
 \starttext
 
 \starthangaround{\externalfigure[cow][scale=500]}
 \input tufte
 \stophangaround
 
 \blank
 
 \starthangaround[right]{\externalfigure[cow][scale=500]}
 \input tufte
 \stophangaround
 
 \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
 ___
 
 Dear ConTeXt list,
 
 I apologize for digging up an old thread. I was searching for 
 \starthangaround[right] and found this thread. I tried the code that Wolfgang 
 gave in this thread but I guess something has changed since then, because it 
 does not work with latest minimals. Would it be possible to get (a working) 
 version of \starthangaround[right]? I think it even would be nice to have it 
 in the core.
 
 As a minimal nonworking example, see the email from Wolgang in this thread.
 
 With best regards, 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] Math not loaded?

2012-12-06 Thread Otared Kavian
Hi Michael,

Your example typesets without problem on my machine (running Mac OS X 10.8 and 
ConTeXt  ver: 2012.12.06 01:21 MKIV).
Which version rae you testing?

Best regards: OK

On 6 déc. 2012, at 13:13, Rogers, Michael K mrog...@emory.edu wrote:

 The following gives the error with the latest beta:
 
 ! Math error: parameter \Umathquad\displaystyle is not set.
 
 with or without setting the font.  Is there a quick fix?
 
 
 %\usetypescript[pagella]
 %\setupbodyfont[pagella,12pt]
 \starttext
 $f$
 \stoptext
 
 
 Thanks,
 
 Michael
 
 
 
 This e-mail message (including any attachments) is for the sole use of
 the intended recipient(s) and may contain confidential and privileged
 information. If the reader of this message is not the intended
 recipient, you are hereby notified that any dissemination, distribution
 or copying of this message (including any attachments) is strictly
 prohibited.
 
 If you have received this message in error, please contact
 the sender by reply e-mail message and destroy all copies of the
 original message (including attachments).
 ___
 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] Doubled annotation content

2012-12-06 Thread Otared Kavian
Hi Marco,

It seems that your command \cmd places again the content… Why do you want that 
command?
This works fine:

\usemodule [annotation]
\defineannotation
 [myannotation]

\starttext
 \startmyannotation
   foo
   
   \input knuth.tex
 \stopmyannotation
\stoptext

Best regards: OK

On 6 déc. 2012, at 21:24, Marco Patzer home...@lavabit.com wrote:

 In the following example the content of the annotation is printed
 twice. Bug?
 
 \usemodule [annotation]
 
 \defineannotation
  [myannotation]
  [alternative=command,
   command=\cmd]
 
 \def\cmd
  {\placeannotationcontent}
 
 \starttext
  \startmyannotation
foo
  \stopmyannotation
 \stoptext
 
 
 Marco
 
 ___
 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] new

2012-12-05 Thread Otared Kavian
Hi Hans,

This is great news!
Thanks for the feature,a nd even more thanks for having made it public…
Is there also a way to control the way some signs are more or less close 
together? For instance in the following example a global way to have a result 
similar to
\int_{0}^1\!\!\!\int_{0}^1 f(x,y)dxdy

Best regards: OK
 begin spacing-math.tex
\startsetups math:morespacing
   \ordordspacing\textstyle 1mu plus .5mu minus .25mu\relax
\stopsetups
   \setupmathematics[integral=nolimits]

\setupmathematics
 [setups=math:morespacing]

\starttext
$y=m x+c$
\startformula
4a^2 + 9b^2 - 25c^2 = 0.
\stopformula
\startformula
\int_{0}^1\int_{0}^1 f(x,y)dxdy = \int_{[0,1]\times[0,1]} f(z)dz = 
\int_{0}^1\!\!\!\int_{0}^1 f(x,y)dxdy.
\stopformula

\stoptext
 end spacing-math.tex

Best regards: OK

On 5 déc. 2012, at 15:55, Hans Hagen pra...@wxs.nl wrote:

 \startsetups math:morespacing
\ordordspacing\textstyle 1mu plus .5mu minus .25mu\relax
 \stopsetups
 
 \setupmathematics
  [setups=math:morespacing]
 
 
 $y=m x+c$
 
 
 -- 
 
 -
  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
 ___

___
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] \not\in doesn't work properly

2012-12-04 Thread Otared Kavian

On 4 déc. 2012, at 17:38, Hans Hagen pra...@wxs.nl wrote:
 
 concerning the bug reports …

Hi Hans,

Thank you for the fixes and adding the commands \notin and \imply: I did some 
testing with your examples and others of my own, and it seems that some of the 
issues are fixed.
However with
\enablemode[lmmath]
the command \notin does not work as expected, while when the above command is 
commented out it does.
Another issue is that the size of integrals when using palatino, times or 
termes is the almost the same as the ones in inline maths, and I think that 
this is not the correct behaviour.

The examples I tested are essentially yours:
%% 
%\enablemode[lmmath]
%\setupbodyfont[xits]
%\setupbodyfont[palatino]
%\setupbodyfont[dejavu]
%\setupbodyfont[times]
%\setupbodyfont[termes]

\starttext
\startformula \hbox{not =  :} \not=   \stopformula
\startformula \hbox{notin  :} \notin  \stopformula
\startformula \hbox{Longrightarrow :} \Longrightarrow \stopformula
\startformula \hbox{not in :} \not\in \stopformula
\startformula \hbox{iff:} \iff\stopformula
\startformula \hbox{mapsto :} \mapsto \stopformula
\startformula \hbox{int :} \int_{0}^\pi f(x)dx \stopformula
\startformula \hbox{iint :} \iint_{\Omega} f(x)dx \stopformula
\startformula \hbox{iiint :} \iiint_{{\Bbb R}^3} f(x)dx 
\stopformula

\stoptext


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] \not\in doesn't work properly

2012-12-03 Thread Otared Kavian
Hi Hans, Hi Jeong Dal,

On November 21st I reported this issue and others with the new versions of mkiv 
where math characters are treated with a new method.
Indeed the issue appears with Latin Modern and their new implementation.
However with some fonts the behaviour is correct but the size of some signs 
(such as \int, \sum, \prod) is incorrect even with those fonts.

As I understood it if one adds 
\enablemode[lmmath]
at the beginning of the file then mkiv uses the good old implementation, at 
least when using Latin Modern.
The minimal test file is this:
%%% begin bug-lm.tex
\starttext
The commands \type{\imply} is not anymore defined.

\type{\iff}, \type{\Longrightarrow}, \type{\mapsto} and some other arrows do 
not appear.

\startformula
(\pi \notin {\Bbb Q} \Longrightarrow \pi^2 + \pi \not\in {\Bbb Q}) \iff \pi^2 
\not\in {\Bbb Q}
\stopformula

\startformula
x \mapsto ax+b
\stopformula
\stoptext
%%% end bug-lm.tex

and the PDF output is attached to my previous message.

Best regards: OK

On 3 déc. 2012, at 21:07, Hans Hagen pra...@wxs.nl wrote:

 On 11/30/2012 10:26 AM, Jeong Dal wrote:
 Hi,
 
 After updating ConTeXt, math command '\not\in' is not shown properly.
 
 For example,
 
 $a \not\eq b$ is good.
 
 but $a \not\in A$ shows two symbols separately.
 
 
 I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are
 
 This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
 ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english
 
 I assume that you use lm ... before I start looking into it I'd like to know 
 Khaleds point of view on this.
 
 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
 ___

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

2012-11-21 Thread Otared Kavian
Hi Hans,

I made some testings with the new beta and noticed that there are a few maths 
characters or commands which are broken now.
Here is a minimal example:
%%% begin bug-lm.tex
\starttext
The commands \type{\imply} is not anymore defined.

\type{\iff}, \type{\Longrightarrow}, \type{\mapsto} and some other arrows do 
not appear.

\startformula
(\pi \notin {\Bbb Q} \Longrightarrow \pi^2 + \pi \not\in {\Bbb Q}) \iff \pi^2 
\not\in {\Bbb Q}
\stopformula

\startformula
x \mapsto ax+b
\stopformula
\stoptext
%%% end bug-lm.tex

and the PDF output is attached.

Best regards: OK



bug-lm.pdf
Description: Adobe PDF document

On 21 nov. 2012, at 16:22, Hans Hagen pra...@wxs.nl wrote:

 Hi,
 
 As Mojca is moving the distribution to another server we have a few days of 
 potential instability which gives us the change to experiment a bit.
 
 I've changed the defaults for the math fonts so that now we use the 'real 
 thing'. However, as there can be issues, one can still say at the top of a 
 document (of in cont-syst.tex):
 
 \enablemode[txmath]
 \enablemode[pxmath]
 \enablemode[lmmath]
 
 The design sized latin modern text font is still the default but one could 
 already change that by
 
 \setupbodyfont[modern]
 
 There is currently some renaming going on for those math fonts but that 
 should not affect us as context can handle older names too.
 
 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
 ___

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

2012-11-21 Thread Otared Kavian
On 21 nov. 2012, at 23:45, Aditya Mahajan adit...@umich.edu wrote:
 […]
 Do these work with xits or cambria, i.e., is it a font or a context issue.

Hi Aditya,

The bug appears with Latin Modern, that is the default font in TeX.
With xits and palatino the example I sent works fine.

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] \startitemize[columns] once again...

2012-11-17 Thread Otared Kavian
Hi Marcin, 

I think there is a small bug with itemize and columns: in another thread (with 
Subject « vertical alignment problem in column items» ) Dalyoung reported also 
an issue, which is related to what you have observed.
Please see my message in a reply to Dalyoung's message, where I reported some 
testings but I am not sure when this bug appeared (in mkii, the behaviour is 
essentially correct).

Best regards: OK

On 16 nov. 2012, at 21:00, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

 Dnia 2012-11-14, o godz. 11:38:48
 Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de napisał(a):
 
 ···date: 2012-11-14, Wednesday···from: Marcin Borkowski···
 
 Dnia 2012-11-10, o godz. 03:23:11
 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):
 
 This minimal example behaves in a strange way:
 
 \starttext
  Some text
  \startitemize[columns,two,joinedup]
  \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
  \item xyz% $\frac{x^5-3}{x^3+x-2}$.
  \stopitemize
 \stoptext
 
 If we remove the percentage signs in the items, an additional
 vertical skip appears.  Is it a feature or a bug?
 
 Hi, could anybody look into it?  I tried also \smash-ing the
 formulae - with no luck.
 
 Hi Marcin, appears like the vertical spacing is extended when
 content of the item exceeds the line height. The behavior is not
 restricted to math mode, though I can’t say if there is an
 official way to prevent or customize it. If you are desperate to
 get around it, maybe put the content in a box of fixed height.
 
 ·· demo ·
 \defineframed[crampy][height=\ht\strutbox,frame=off]
 \starttext
  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
  \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
  \stopitemize
  \thinrule
  after
 
  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
  \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
  \stopitemize
  \thinrule
  after
 
  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
  \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
  \stopitemize
  \thinrule
  after
 \stoptext
 ·
 
 Hth, Philipp
 
 Yes it does, thanks!  (It helps in some other strange cases, too.)
 What is especially interesting, is that \strut\smash{...} didn't help.
 
 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
 ___

___
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] vertical alignment problem in column items

2012-11-16 Thread Otared Kavian
Hi Dalyoung,

I think that there must be a small bug in mkiv regarding itemize in columns, 
but at the same time I think that the problem comes from the fact that in your 
example you use inline maths and fractions: this perturbs the way the 
horizontal and vertical distances are calculated by mkiv. It seems that mkiv 
considers there is not enough horizontal space to put the four items in a row.
If you use two columns the problem is solved, as you can see in the following 
examples (please typest it both with mkii and mkiv to see the differences).
Best regards: OK
%%% begin itemize-dist-bug.tex
\starttext

\setupitemize[1][n] % first level itemize

\setupitemize[2][a,paragraph,columns][stopper=)] % second level itemize
%If you want more than two columns by default add n=x

\startitemize
\item Item one
\item Find a well-ordered set:
\startitemize[n=4] % --- gives correct output both in mkii and mkiv
\item sub-one
\item sub-two
\item sub-three
\item sub-four
\stopitemize
\hairline
\startitemize[n=4] % --- gives correct output in mkii, but not in mkiv
\item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline
\startitemize[n=4] % --- gives incorrect output both in mkii and mkiv
\item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline
\startitemize[n=2] % --- gives correct output both in mkii and mkiv
\item sub-one
\item sub-two
\item sub-three
\item sub-four
\stopitemize

\hairline
\startitemize[n=2] % --- gives correct output both in mkii and in mkiv
\item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize

\hairline
\startitemize[n=2] % --- gives correct output both in mkii and mkiv
\item $\{ 2 + n^{-1}, n \in\naturalnumbers\}$
\item $[0, 1)$
\item $\{3 - 2n^{-1}, n \in \naturalnumbers\}$
\item $ \reals$
\stopitemize
\hairline

\stoptext
%%% end itemize-dist-bug.tex

Best regards: OK

On 17 nov. 2012, at 05:03, Jeong Dal hak...@me.com wrote:

 Dear all,
 
 In the following example, the vertical alignment of items looks strange.
 
 I wonder it is my only problem.
 Is there anything what I have to do to correct it?
 
 Thank you.
 
 Best regards,
 
 Dalyoung
 
 % sample code
 
 \starttext
 \startitemize
 
 \item Find a well-ordered set.
 
 \startitemize[n, columns, four][stopper=,left=(, right=)]
 \item $\{ 2 + \frac{1}{n}, n \in\naturalnumbers\}$
 \item $[0, 1)$
 \item $\{3 - \frac{2}{n}, n \in \naturalnumbers\}$
 \item $ \reals$
 \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
___


[NTG-context] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Hi all,

Assume for some reason I want a section to be numbered in a particular way: I 
thought the command resetnumber=yes would do that, but it seems that I am 
wrong… or this option is now obsolete.
Can anyone have a look at the following example and give a hint?

\starttext

\section{Section 1}
\input ward

\startsection[title={Section 1 again},resetnumber=yes] % Here I want again the 
number 1
\input ward

\stopsection

\setuphead[section][number=yes]
\section{Section 3}
\input ward

\startsection[title={Section with no number},number=no] % Here I don't want 
numbers
\input ward
\stopsection

\stoptext

Thanks in advance: 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] Resetting numbers in section header

2012-11-13 Thread Otared Kavian

On 13 nov. 2012, at 11:48, luigi scarso luigi.sca...@gmail.com wrote:
 
 Hm ,
 is it save to mix \section and \startsection ..\stopsection ?
 
 -- 
 luigi
 

Hi Luigi,

Thanks for your attention, but the fact that \section and \start-\stop-section 
is used is of no importance regarding the way I am seeking to reset the section 
numbers. In fact in my document, where I noticed the problem, I use only 
\section, but I tried several possibilities, including \start-\stop-section.

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] Resetting numbers in section header

2012-11-13 Thread Otared Kavian
Thanks Luigi! Grazie mille… That's exactly what I was seeking!

Best regards: OK

On 13 nov. 2012, at 13:54, luigi scarso luigi.sca...@gmail.com wrote:
 […]
 
 Some help at 
 http://wiki.contextgarden.net/Titles
 
 \starttext
 
 
 \startsection[title={Section 1 }] 
 \input ward
 \stopsection
 
 
 \startsection[title={Section 1 again},incrementnumber=no] % Here I want again 
 the number 1
 \input ward
 \stopsection
 
 \startsection[title={Section 1 again},incrementnumber=yes] % Here I want 
 again the number 1
 \input ward
 \stopsection
 
 
 \startsection[title={Section with no number},number=no] % Here I don't want 
 numbers
 \input ward
 \stopsection
 
 \stoptext
 
 I think it's not safe to mix \section and \startsection \stopsection, because 
 the tags can be messed.
 -- 
 luigi
 
 ___
 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] using variable for subscript in math+lua

2012-10-25 Thread Otared Kavian
Hi Philipp,

Thanks to you, Dalyoung and Hans for the nice example using luacode.
I was wonedring how would you modify your code in order to be able to change 
the name of the matrix if necessary. For instance, how to modify your code in 
such a way that upon saying
 \ctxlua{document.print_matrix(b,3)}
one gets a 3x3 matrix whos coefficients are b_{11},…b_{33}.

Thanks in advance: OK

On 25 oct. 2012, at 03:02, Philipp Gesang 
philipp.ges...@alumni.uni-heidelberg.de wrote:

 ···date: 2012-10-25, Thursday···from: Jeong Dal···
 
 Dear Hans, Lucas, Wolfgang, Aditya
 
 Now, I write a matrix using \startluacode by the helps of  you.
 Also, I can do some operations in matrices which reduced my typing job.
 In this code, I have to give all the entries of a matrix as a table. It is 
 good to use in many cases.
 
 I have one more question. If the given array is as the following and it 
 works well.
 
 However, there might be a better way to do job using for iteration.
 I tired to use i, j in several ways but it doesn't work.  
 
 Inside a string the variables are just bytes. To print to a
 string you can interpolate with string.format() [1].
 
 [1] http://www.lua.org/manual/5.1/manual.html#pdf-string.format
 
 ·
 \startluacode
  document = document or { } -- recommended: use namespace
  document.print_matrix = function (x, y)
if not y then y = x end -- default to square
context.startmatrix{left = \\left(\\,, right = \\,\\right)}
local schema = a_{%d%d} -- %d: prints integer part
for i=1, x do
  for j=1, y do
--- use the template defined above to print the
--- row and column
context.NC(string.format(schema, i, j))
  end
  context.NR()
end
context.stopmatrix()
  end
 \stopluacode
 
 \starttext
  \startformula
\ctxlua{document.print_matrix(3)}
  \stopformula
  \startformula
\ctxlua{document.print_matrix(9,4)}
  \stopformula
  \startformula
\ctxlua{document.print_matrix(9)}
  \stopformula
 \stoptext
 \endinput
 ·
 
 
 Is there a way to do such a job using for iteration?
 
 Thank you for reading.
 
 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
 ___
 
 -- 
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments
 ___
 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] Help with Long Titles

2012-10-19 Thread Otared Kavian
Hi Malte,

If you say

\setvariables
[titlepage]
[set=\texsetup{titlepage},
project={Pearson},
title={\startframedtext[width=\textwidth,frame=off] This document title 
is very long, \crlf so I'd like to  break it into two lines \stopframedtext},
author={Tony Mueller},
version={Version 1.0.0}]

the title is broken where you put \crlf.
Is that what you want?

Best regards: OK

On 19 oct. 2012, at 02:29, Malte Stien ma...@stien.de wrote:

 Hello,
 
 I am using a the startsetups mechanism that defines a title page in my 
 environment file. That way anyone creating a document in my organisation can 
 create a new document and get a consistent look of the title page. There is 
 one problem with this: On occasions I get very long document titles and then 
 the title extends over the left-hand edge of the page. I would like to 
 incorporate a new line into the document title; I'd even be happy to do that 
 manually, ie. it does not have to be automatic.
 
 There are two problems here:
 1. I had not had any success with putting a newline into the title; it will 
 need to be not where the titlepage is defined but where it is used (see 
 below). I have tried \par and \\ and none of them work.
 2. Assuming I found a way to do this, I would need to also find a way of 
 reducing the \blank[170mm] by the amount that the second line of the title 
 takes up to render the information down the bottom in roughly the same place. 
 If push comes to shove, I could create a second titlepage setup for two-line 
 titles, but I much rather not. Is there a solution to that? Is there maybe a 
 way to position the information down the bottom absolute?
 
 Here is  minimal example (or something very close to that):
 
 % The title page
 \startsetups titlepage
   \startstandardmakeup[style=sans]
   \blank[50mm]
   \rightaligned{\bfd\getvariable{titlepage}{project}}
   \textrule
   \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}
   \blank[170mm]
   \starttabulate[|plf{\tfa}|prf{\tfa}|]
   \NC\tfa\copyright\thinspace Pearson Pty Ltd  \NC
 \getvariable{titlepage}{author} \NC\NR
   \TB[small]
   \NC \color[darkgray]{Commercial in Confidence} \NC 
 \color[darkgray]{\getvariable{titlepage}{version}} \NC\NR
   \stoptabulate
   \tfx Uncontrolled copy if printed.
   \stopstandardmakeup
 \stopsetups
 
 % ...and this is how it is being used
 \starttext
 \setvariables
   [titlepage]
   [set=\texsetup{titlepage},
   project={Pearson},
   title={This document title is very long, so I'd like to \par break it 
 into two lines},
   author={Tony Mueller},
   version={Version 1.0.0}]
 \stoptext
 
 Thank you very much for all the help I have received so far.
 
 Regards,
 Malte.
 
 ___
 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] Numbering subformulas

2012-10-15 Thread Otared Kavian
Hi Andreas, Wolfgang and Aditya,

Thanks for your attention and suggesting a fix.
However, after I applied the change mentioned by Andreas for the definition of 
 \strc_formulas_handle_sub_numbering 
in cont-new.mkiv and made the formats anew, the subformulas are not numbered as 
expected. 
Probably we have to wait for a fix from Hans in an upcoming beta.
 
@Wolfgang: can the typo you mention in font-new.mkiv be easily fixed?

Best regards: OK

On 15 oct. 2012, at 12:44, Andreas Mang m...@imt.uni-luebeck.de wrote:

 Dear all,
 Dear Wolfgang,
 
 This is already in the core (str-mat.mkiv) but I found a typo in another 
 macro in font-new.mkiv
 
 Thanks. That's indeed interesting. 
 
 I still get an error. I have deleted everything and have updated to the most 
 recent beta: 
 
 2012.10.06 15:31 MKIV  fmt: 2012.10.15
 
 If I replace the function 
 
 \strc_formulas_handle_sub_numbering
 
 as described before, erveryting works nicely. Probably your fix has not yet 
 been uploaded, yet. I just wanted to let you know. Maybe this clarifies 
 something or indicates additional problems.
 
 Cheers,
 Andreas
 ___
 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] Subscript Depth

2012-10-15 Thread Otared Kavian
Hi Nick,

As far as I can say from my own experience TeX, that is both plain TeX and 
ConTeXt, treat the subscripts differently according to whether there is also a 
superscript or not: please see the following examples:
\starttext
Compare $a_{b}'a_{b}$ and $a_{b}'a_{b}^{}$
\stoptext

Best regards: OK

On 15 oct. 2012, at 01:08, Nicholas Ulle nau...@ucdavis.edu wrote:

 Hi,
 
 How would I go about getting subscripts to stay at the same depth? An example 
 of the problem I'm having is:
 
 \starttext
 % Notice the b's are not aligned
 $a_b' a_b$
 \stoptext
 
 I'm only just learning ConTeXt and TeX, so I'm not sure what I'd need to 
 change to fix this.
 
 Thanks, 
 Nick
 ___
 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] Index and Publications suddenly remain empty??? [not solved yet]

2012-10-15 Thread Otared Kavian

On 14 oct. 2012, at 15:52, Wolfgang Schuster wolfgang.schus...@gmail.com 
wrote:
 […]
 I don’t know if the bug was also in the stable but it’s in the beta version I 
 use. You can use the following example to check for the bug:
 
 \starttext
 \placeontopofeachother{A}{B}
 \stoptext
 

Hi I can confirm that the bug is present in recent betas, that is 
\placeontopofeachother
is broken, but Context version 2011.11.29 works fine with your example.

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
___

<    3   4   5   6   7   8   9   10   11   12   >