Re: [NTG-context] \setnumber

2014-05-22 Thread Otared Kavian
Actually you are right: one can setup the userpage numbers by just saying 
way=byblock (no need to repeat numberconversionset).
Here is a complete example:

\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber] [][numbers]
\defineconversionset[backpart:pagenumber] [][characters]
\setupuserpagenumber[way=byblock]

\starttext

\startfrontmatter
\placecontent
\stopfrontmatter

\startbodymatter
\chapter{First chapter}
\input ward.tex
\section{A section}
\input dawkins.tex

\stopbodymatter

\startbackmatter
\chapter[title={Index},number=no]
\input tufte.tex
\stopbackmatter
\stoptext

Best regards: OK


On 22 May 2014, at 13:50, Werner Hintze  wrote:

> This is the problem: It works, but I don’t unterstand why. I make just my 
> first steps with ConTeXt…
> 
> Anyway: I found out, that this is the best solution:
> 
> \defineconversionset[frontpart:pagenumber][][romannumerals]
> \defineconversionset[bodypart:pagenumber][][numbers]
> \defineconversionset[backpart:pagenumber] [][characters
> \defineconversionset[appendix:pagenumber][][Characters]
> \setupuserpagenumber[numberconversionset=pagenumber,way=byblock]
> Now it’s not nessecary to reset the pagenumber.
> 
> Thanks for the hint about the Sample texts.
> 
> Best regards.
> 
> WH
> 
> On 22 May 2014, at 12:56, Otared Kavian wrote:
> 
> On 22 May 2014, at 12:44, Werner Hintze we.hin...@gmail.com wrote:
> 
> Thank you once more! This looks better. It’s a pity that such things are not 
> »wikified«… ;)
> 
> Once you think you have well understood something do not hesitate to wikify 
> it…
> 
> But there is a new surprise: What is knute.tex, ward.tex and tufte.tex? Are 
> there more of those texte? And how does one finde them?
> 
> Look where you have installed the ConTeXt tree, in the following directory
> 
> tex/texmf-context/tex/context/sample
> you’ll find some other sample files which can be input for testing: they are 
> very useful!
> 
> 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
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \setnumber

2014-05-22 Thread Otared Kavian

On 22 May 2014, at 12:44, Werner Hintze  wrote:

> Thank you once more! This looks better. It’s a pity that such things are not 
> »wikified«… ;)

Once you think you have well understood something do not hesitate to wikify it…

> But there is a new surprise: What is knute.tex, ward.tex and tufte.tex? Are 
> there more of those texte? And how does one finde them?

Look where you have installed the ConTeXt tree, in the following directory

tex/texmf-context/tex/context/sample

you’ll find some other sample files which can be input for testing: they are 
very useful!

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] \setnumber

2014-05-22 Thread Otared Kavian
Actually the issue was discussed some time ago and Wolfgang Schuster explained 
that.
In fact after sending you the previous answer I realized that he explained also 
that the right way is to use \defineconversionset and then reset the 
userpagenumber when necessary: look at the following example:

 begin example
\defineconversionset[frontpart:pagenumber][][romannumerals]
\defineconversionset[bodypart:pagenumber] [][numbers]
\defineconversionset[backpart:pagenumber] [][characters]

\starttext
\startfrontmatter
\input knuth.tex
\stopfrontmatter

\startbodymatter
\setupuserpagenumber[number=1]
\input ward.tex
\stopbodymatter

\startbackmatter
\setupuserpagenumber[number=1]
\input tufte.tex
\stopbackmatter
\stoptext
 end example

It would be nice to wikify things each time one learns something…

Best regards: OK

On 22 May 2014, at 12:24, Werner Hintze  wrote:

> Thank you! This works.
> 
> But tell me: How do you know this? The manual and the website don’t explain 
> it this way…
> 
> Best regards
> 
> Werner
> 
> On 22 May 2014, at 12:16, Otared Kavian wrote:
> 
> Hi,
> 
> In fact you should use
> \setupuserpagenumber[number=1]
> as in the following example:
> 
>  begin example
> \starttext
> \startfrontmatter
> \setupuserpagenumber[numberconversion=Romannumerals]
> \input knuth.tex
> \stopfrontmatter
> 
> \startbodymatter
> \setupuserpagenumber[numberconversion=numbers]
> \setupuserpagenumber[number=1]
> \input ward.tex
> \stopbodymatter
> \stoptext
>  end example
> 
> Best regards: OK
> 
> On 22 May 2014, at 11:37, Werner Hintze we.hin...@gmail.com wrote:
> 
> I don’t unterstand \startfrontmatter, \starbodymatter etc.
> 
> I thought, the frontmatter has roman numerals, the bodymatter normal and so 
> on. This is not automatically so. Now founf how to make this, bus the problem 
> is: I can’t reset the page number. I believed, it shoul work like this:
> 
> \startfrontmatter
> \setupuserpagenumber[numberconversion=Romannumerals]
> % some stuff
> \stopfrontmatter
> 
> \startbodymatter
> \setupuserpagenumber[numberconversion=numbers]
> \setnumber[page]{1}
> %some stuff
> \stopbodymatter
> This doesn’t work, may be because \setnumber is not a command in ConTeXt?
> 
> Where is my error?
> 
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] \setnumber

2014-05-22 Thread Otared Kavian
Hi,

In fact you should use 
\setupuserpagenumber[number=1]
as in the following example:

 begin example
\starttext
\startfrontmatter
\setupuserpagenumber[numberconversion=Romannumerals]
\input knuth.tex
\stopfrontmatter

\startbodymatter
\setupuserpagenumber[numberconversion=numbers]
\setupuserpagenumber[number=1]
\input ward.tex
\stopbodymatter
\stoptext
 end example

Best regards: OK

On 22 May 2014, at 11:37, Werner Hintze  wrote:

> I don’t unterstand \startfrontmatter, \starbodymatter etc.
> 
> I thought, the frontmatter has roman numerals, the bodymatter normal and so 
> on. This is not automatically so. Now founf how to make this, bus the problem 
> is: I can’t reset the page number. I believed, it shoul work like this:
> 
> \startfrontmatter
> \setupuserpagenumber[numberconversion=Romannumerals]
> % some stuff
> \stopfrontmatter
> 
> \startbodymatter
> \setupuserpagenumber[numberconversion=numbers]
> \setnumber[page]{1}
> %some stuff
> \stopbodymatter
> This doesn’t work, may be because \setnumber is not a command in ConTeXt?
> 
> Where is my error?
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 mkiv and rsfs fonts

2014-05-22 Thread Otared Kavian
Thanks Mikael!
That’s it: the real name of palatino in mkiv is TeX Gyre Pagella, and in math 
mode one has to use TeX Gyre Pagella Math… 
I am going to update the page on the wiki about calligraphic math.

Another question (maybe Wolfgang has more to say about it): is the word « 
mainface » is a mandatory name for the font family which is defined? Because if 
I change it to « MyMainFace » then mkiv reports an error:

 Math error: parameter \Umathquad\displaystyle is not set

Thanks again and best regards: OK

On 22 May 2014, at 10:40, Mikael P. Sundqvist  wrote:

> On Thu, May 22, 2014 at 10:36 AM, Otared Kavian  wrote:
>> \definefontfamily [mainface] [rm] [Palatino]
>> \definefontfamily [mainface] [math] [Latin Modern Math]
> 
> What if you change those lines to
> 
> \definefontfamily [mainface] [rm] [TeX Gyre Pagella]
> \definefontfamily [mainface] [math] [TeX Gyre Pagella Math]
> ?
> 
> My guess is that palatino is a pointer to TeX Gyre Pagella.
> 
> /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] ConTeXt mkiv and rsfs fonts

2014-05-22 Thread Otared Kavian
Hi Aditya,

Thanks for the hints: actually what I wanted to do was to use a calligraphic 
font which is a little bit more « script-y » as you put it (in particular for 
the letters A, B, D, S, U). Indeed using Khaled Hosny’s setup of xits one may 
get what I wanted to do.

The solution suggested by Mikael is perfect when using Latin Modern in mkiv, 
since it shows that in mkiv it is possible, and very easy, to use any opentype 
font for the slots corresponding to uppercasescript and lowercasescript.
When using palatino, I have to uderstand yet how to use palatino also in math 
mode… I don’t know what has to be changed in the following setup:

\definefontfamily [mainface] [math] [Latin Modern Math]

since replacing « Latin Modern Math » with « Palatino » does not work. Here is 
the example in which I would like to have palatino in math mode (for instance 
in \sin, or the variable x):

 begin example
\definefallbackfamily[mainface][math][Asana 
Math][range={uppercasescript,lowercasescript}]
\definefontfamily [mainface] [rm] [Palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]

\starttext
This is \type{\cal}: 
${\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

This is \type{\cal}: 
${\cal abcdefghijklmnopqrstuvwxyz}$

The space of distributions on $\Omega$ is denoted by ${\cal D}'(\Omega)$, while 
${\cal S}({\Bbb R}^n)$ is the space of Schwartz functions, and ${\cal S}'({\Bbb 
R}^n)$ is its dual.

Let $\phi(x) := \sin(|x|^2){\rm e}^{-|x|^2}$ and $T \in {\cal S}'({\Bbb R}^n)$ 
given above.
\stoptext
 end example

When one says
\setupbodyfont[palatino]
instead of 
\setupbodyfont[mainface]
then the font used in math mode is also palatino, but then the uppercasescript 
is not what I would like to have…

Best regards: OK

On 21 May 2014, at 23:33, Aditya Mahajan  wrote:

> On Wed, 21 May 2014, Aditya Mahajan wrote:
> 
>> On Wed, 21 May 2014, Otared Kavian wrote:
>> 
>>> Hi all,
>>> It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not 
>>> work: the procedure explained at the page
>>> 
>>> http://wiki.contextgarden.net/rsfs
>>> works fine with mkii, but not in mkiv.
>> 
>> I do not have the time to look into this in detail. But hopefully the hint 
>> below will help you get started.
>> 
>> If I understand you correctly, you are looking for a caligraphic font that 
>> is more "script-y" than the default \cal.
>> 
>> From what I understand, such glyphs are present as stylistic alternatives in 
>> unicode math fonts. See for example this thread
>> 
>> http://www.ntg.nl/pipermail/ntg-context/2010/050885.html
>> 
>> (I remember that there was another thread along these lines, but I cannot 
>> find it right now).
> 
> Found it: http://www.ntg.nl/pipermail/ntg-context/2011/061665.html
> 
> 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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 23:08, Hans Hagen  wrote:

> On 5/21/2014 10:38 PM, Otared Kavian wrote:
>> Hi Mikael,
>> 
>> I created a page on the wiki where it is explained how to change 
>> calligraphic fonts in math:
>> 
>>  http://wiki.contextgarden.net/math_calligraphic
>> 
>> I’ll add more comments and correct things on that page each time I learn 
>> something new in this regard…
>> Thanks again: OK
> 
> "However this does not work properly in mkiv ..."
> 
> this suggests that it could work in mkiv but math in mkiv has a completely 
> different implementation so it isn't even supposed to work
> 
> maybe it's better to talk about mkiv as being the standard way and mkii being 
> the 'old way' or so

You are right: I changed that page accordingly.

All the best: 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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 21:39, Hans Hagen  wrote:
> 
> you can run s-math-repertoire.mkiv and compare shapes
> 
> (you might want to comment some at the end)

Thanks for the hint! I did run that file and then I thought my Mac was going to 
die since mkiv kept running and running… 
After several minutes I obtained an amazing PDF file of 2166 pages where every 
glyph can be seen on a beautiful page. 
Great stuff!

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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 21:54, Wolfgang Schuster  wrote:

> This does already exist, take a look into math-act.lua.

Thanks Wolfgang: indeed one may use 
\definefallbackfamily[mainface][math][Asana 
Math][range={uppercasescript,lowercasescript}]
so what Mikael suggested exists but it is named uppercasescript,lowercasescript.
I changes the wiki page

http://wiki.contextgarden.net/math_calligraphic

accordingly.
Best regards: OK

> 
> The presets are only needed when you want to use a text font as fallback 
> because you have to set more values.
> 
> 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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi Mikael,

I created a page on the wiki where it is explained how to change calligraphic 
fonts in math:

http://wiki.contextgarden.net/math_calligraphic

I’ll add more comments and correct things on that page each time I learn 
something new in this regard…
Thanks again: OK

On 21 May 2014, at 21:10, Mikael P. Sundqvist  wrote:

> On Wed, May 21, 2014 at 9:01 PM, Otared Kavian  wrote:
>> Since other people may benefit from it, I would like to update the wiki on 
>> the matter. But actually I do not understand what does the « range » mean in 
>> the example
>>
>> [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
>> Could you please give a brief explanation so that I don’t write nonsense on 
>> the wiki?
>> 
>> Best regards: OK
> 
> 
> I'm glad it helped. The range gives the unicode slots where these
> letters "live".
> 
> Hans: Maybe this is a stupid suggestion, but could it be possible to have
> 
> \definefontfamilypreset [math:lowercasecalligraphic]
> as range={1D4B6-1D4CF,212F,210A,2134}
> and
> \definefontfamilypreset [math:uppercasecalligraphic]
> as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
> ?
> 
> Otared, If what I write above makes sense, then the setup will be the
> more readable
> 
> \definefallbackfamily[mainface][math][Asana
> Math][range={lowercasecalligraphic,uppercasecalligraphic}]
> \definefontfamily [mainface] [rm] [palatino]
> \definefontfamily [mainface] [math] [Latin Modern Math]
> \setupbodyfont[mainface]
> 
> /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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi Mikael,

Thanks for your quick answer!
Actually I used probably an inappropriate word when speaking about readability 
of the standard \cal in LM. 
Indeed they are readable, but for the particular case of ${\cal D}$, or ${\cal 
U}$ or ${\cal S}$, they do not correspond to the corresponding shape one finds 
in classical books of Analysis. On the other hand it does not contain lower 
case letters.

In any case your solution below gives me exactly what I was looking for:

 begin example
\definefallbackfamily[mainface][math][Asana 
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]

\definefontfamily [mainface] [rm] [palatino]
% or
% \definefontfamily [mainface] [rm] [Latin Modern]

\definefontfamily [mainface] [math] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext
${\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

${\cal abcdefghijklmnopqrstuvwxyz}$

The space of distributions on $\Omega$ is denoted by ${\cal D}'(\Omega)$, while 
${\cal S}({\Bbb R}^n)$ is the space of Schwartz functions, and ${\cal S}'({\Bbb 
R}^n)$ is its dual.

\stoptext
 end example

Since other people may benefit from it, I would like to update the wiki on the 
matter. But actually I do not understand what does the « range » mean in the 
example 

[range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
Could you please give a brief explanation so that I don’t write nonsense on the 
wiki?

Best regards: OK

On 21 May 2014, at 20:10, Mikael P. Sundqvist  wrote:

> On Wed, May 21, 2014 at 4:43 PM, Otared Kavian  wrote:
>> Thanks for the answer.
>> Is there another script font for LM, or for Palatino, which looks a little
>> bit more readable than \cal in those fonts, and which can be used with the
>> simplefonts mechanism?
>> 
>> Best regards: OK
> 
> Personally, I think that the \cal from Latin Modern is very readable
> (thus, I don't know what you are after). I tried some others, maybe
> you like one of them (I hope that the line breaks in the email will be
> OK):
> 
> \definefallbackfamily[mainface][math][TeX Gyre Termes
> Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
> %\definefallbackfamily[mainface][math][TeX Gyre Pagella
> Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
> %\definefallbackfamily[mainface][math][Asana
> Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
> \definefontfamily [mainface] [rm] [Latin Modern]
> \definefontfamily [mainface] [math] [Latin Modern Math]
> 
> \setupbodyfont[mainface]
> 
> \starttext
> ${\cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}$
> \stoptext
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 15:55, Wolfgang Schuster  wrote:
> […]
> No, simplefonts won’t help you because the fallback mechanism for math works 
> only with another opentype math font and truetype/opentype text fonts.
> 

Thanks for the answer. 
Is there another script font for LM, or for Palatino, which looks a little bit 
more readable than \cal in those fonts, and which can be used with the 
simplefonts mechanism?

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] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi all,

It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not work: 
the procedure explained at the page

http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.

Is it possible to use the capabilities of simplefonts, which are now included 
in mkiv, to use this script font in place of the usual \cal when using LM fonts 
(or even Palatino)?

Thanks in advance for any 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] Centering tabulate env. using \setuptabulate

2014-05-13 Thread Otared Kavian

On 13 mai 2014, at 08:30, Mikael P. Sundqvist  wrote:

> On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
> o.  wrote:
>> ... Wikified:
>> http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page
>> 
>> Lukas
> 
> I realized that the second none is not needed. It is sufficient with
> empty {} (or they could include any text). I updated the wiki.

Actually the « none » in 
\placetable[force,none] 
means you don’t want a caption and the first braces enclose the caption, while 
the second braces enclose what is going to be « placed »: compare

\placetable[force]{This is a centered tabulation}{
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate}

with

\placetable[force,none]{This is a centered tabulation}{
\starttabulate[|r|l|]
\HL
\NC I want this table \NC aligned in the center.\NR
\HL
\stoptabulate}

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] workaround for another too-low symbol in Pagella?

2014-05-09 Thread Otared Kavian
Hi Sanjoy,

I think that this a font related problem since in Plain TeX and mkii the 
following
$${\rm P}(H\, | \, E)$$
gives the same result as in mkiv when using the default LM fonts, and the top 
(resp. the bottom) of the bar | is aligned with the top (resp. the bottom) of 
the parentheses, while in Palatino (Pagella) this does not seem to be the case.

Best regards: OK

On 9 mai 2014, at 23:06, Sanjoy Mahajan  wrote:

> Here's another math symbol that I think is too low: the vertical bar in
> Palatino/Pagella.  Here's an almost-minimal example.  I've left in the
> surrounding text, to show how it's used (in probability, as P(H|E)).
> 
> I think the bottom of the bar is correct, but the tip of the bar doesn't
> reach to the top of the H or E.
> 
> \setupbodyfont[palatino]
> \starttext
> \placeformula\startformula
> \text{P}(
> H\,|\, E
> )
> \stopformula
> \stoptext
> 
> Again, I don't think it's a ConTeXt problem, but rather a Pagella
> problem.  But is there a recommended ConTeXt workaround?  Maybe a
> metafun symbol?
> 
> -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] \pm set too low in MkIV?

2014-05-07 Thread Otared Kavian

On 7 mai 2014, at 10:46, Mikael P. Sundqvist  wrote:

> […]
> 
> I guess one could do this for the other signs one don't like in TeX
> Gyre Pagella Math…

Hi,

This is a good trick to know, especially if one combines \pm and \mp as in the 
counter-example given by Hans: 

% Start example
\definefallbackfamily[mainface][math][Asana Math]
[range={00B1-00B1}]

\definefontfamily[mainface][serif][Tex Gyre Pagella]
\definefontfamily[mainface][math][Tex Gyre Pagella Math]

\starttext
   \switchtobodyfont[pagella] Hello $ x \pm 2 = a \mp 2 $\par
   \switchtobodyfont[asana] Hello  $ x \pm 2 = a \mp 2 $\par
   \switchtobodyfont[mainface] Hello  $ x \pm 2 = a \mp 2 $\par
\stoptext
% Stop example

The sample with 
   \switchtobodyfont[asana] Hello  $ x \pm 2 = a \mp 2 $\par
looks quite 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] \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  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,

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  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  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 error   > error 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  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  
>>> wrote:
>>>> Hi!
>>

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 error   > error 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  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  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] \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  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
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  wrote:

> 
> Am 07.04.2014 um 23:24 schrieb Otared Kavian :
> 
>> On 7 avr. 2014, at 21:25, Wolfgang Schuster  
>> wrote:
>> 
>>> Am 07.04.2014 um 21:18 schrieb Pablo Rodriguez :
>>> […]
>>>> 
>>>> 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] issues with greeknumerals

2014-04-07 Thread Otared Kavian

On 7 avr. 2014, at 21:25, Wolfgang Schuster  wrote:

> 
> Am 07.04.2014 um 21:18 schrieb Pablo Rodriguez :
> […]
>> 
>> 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] \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  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  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  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  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.  
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  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
> ___

_

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


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  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 :
> 
>> 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
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/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-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
___

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

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


[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'.
 
\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] 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  
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-12 Thread Otared Kavian

On 12 janv. 2014, at 21:30, Wolfgang Schuster  
wrote:

> 
> Am 11.01.2014 um 20:01 schrieb Otared Kavian :
> 
>> 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.
> 
> Not without writing your own environment where you generate a unique 
> reference for each question, hint and answer.

If I understand well, one way might be something like (where \theQuestionNumber 
stands for the number given by \startquestion)

\define\StartQuestion{\startquestion[Q:\theQuestionNumber]}
\define\StartHint{\startquestion[H:\theQuestionNumber]}
\define\StartAnswer{\startquestion[A:\theQuestionNumber]}
\define\StopQuestion{\par\in{Hint}[H:\theQuestionNumber]\par 
\in{Answer}[A:\theQuestionNumber]\stopquestion}
\define\StopHint{\par\in{Question}[Q:\theQuestionNumber]\par 
\in{Answer}[A:\theQuestionNumber]\stophint}
\define\StopAnswer{\par\in{Question}[Q:\theQuestionNumber]\par 
\in{Hint}[H:\theQuestionNumber]\stopquestion}

and then using \StartQuestion \StopQuestion, etc, instead of \startquestion 
\stopquestion.
But how can I refer to the \theQuestionNumber set by \startquestion?

Thanks for your time and your attention.

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  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}]
>> 
>&g

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  
wrote:

> 
> Am 11.01.2014 um 00:36 schrieb 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 
>>   
>>  ...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}
> 
> \

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 
  
 ...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  
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 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 
  
 ...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  
wrote:

> 
> Am 09.01.2014 um 16:36 schrieb Otared Kavian :
> 
>> 
>> On 9 janv. 2014, at 15:48, Jaroslav Hajtmar  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] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian

On 9 janv. 2014, at 15:48, Jaroslav Hajtmar  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 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  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] [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  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.
> 
>
> 
> 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  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 
> `’
> 
> 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  wrote:

> Context hangs with this in the console:
> 
> fonts   > names > identifying system font files with suffix 'otf'
> fonts   > names > 'OSFONTDIR' specifies path 
> '/Users/hansm/Library/Fonts'
> fonts   > names > 'OSFONTDIR' specifies path '/Library/Fonts'
> fonts   > names > 'OSFONTDIR' specifies path '/System/Library/Fonts'
> fonts   > names > globbing path '/Users/hansm/Library/Fonts/**.otf'
> fonts   > names > 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  wrote:

> On 10/24/2013 10:00 AM, Wolfgang Schuster wrote:
>> 
>> Am 24.10.2013 um 09:45 schrieb Pierre Bovet :
>> 
>>> OK, that was not a good example…
>>> But the the message above is coming with any other otf fonts:
>>> 
>>> fonts   > names > 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  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] \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  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] 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  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  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  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
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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  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
___

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


[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] 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  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:
> 
> 
> 
> 
>default flags
>
>purge
>synctex=zipped
>
> 
> 
> 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  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 3 sept. 2013, at 10:50, Hans Hagen  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-03 Thread Otared Kavian

On 2 sept. 2013, at 23:44, Hans Hagen  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-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  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  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  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  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] copy&paste 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 
 wrote:

> Hi,
> 
> copy&paste 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  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  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  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

On 30 mai 2013, at 22:40, Alan BRASLAU  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] 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  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] new beta

2013-04-11 Thread Otared Kavian

On 10 avr. 2013, at 20:09, Hans Hagen  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  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" 
>> À: 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 5 avr. 2013, at 14:48, Wolfgang Schuster  wrote:

> 
> Am 05.04.2013 um 11:31 schrieb Otared Kavian :
> 
>> 
>> On 4 avr. 2013, at 23:13, Hans Hagen  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] Resetting enumeration numbers

2013-04-05 Thread Otared Kavian

On 4 avr. 2013, at 23:13, Hans Hagen  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] \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  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] 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  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] 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  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] Nabla operator appears italic in formula

2013-03-24 Thread Otared Kavian

On 24 mars 2013, at 11:24, Hans Hagen  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] upto current

2013-03-19 Thread Otared Kavian

On 19 mars 2013, at 19:47, Aditya Mahajan  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  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  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  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
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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}

 ...s \job_options_get_commandline 
  \job_options_get_ctxfile \...
 \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  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  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  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  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  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  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
___


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


Re: [NTG-context] Bug in reference to sections

2013-01-23 Thread Otared Kavian

On 23 janv. 2013, at 09:38, Hans Hagen  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] 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 (李延瑞)  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  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,

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  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)?
> 
> fonts   > latin modern fonts are not preloaded
> languages   > language en is active
> (hbar-test.tex{/Users/mmurphy/context/beta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
> fonts   > preloading latin modern fonts (second stage)
> fonts   > typescripts > 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}
> fonts   > fallback modern rm 12pt is loaded
> 
> Michael
> 
> --
> 
> Michael Murphy
> murphy...@gmail.com
> 
> 
> 
> On 2 Jan 2013, at 21:13, Otared Kavian  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  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] 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  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] 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'.
 

Best regards: OK

On 29 déc. 2012, at 03:55, Troy Henderson  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] 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  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] 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  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.
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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  wrote:

> On Mon, 10 Dec 2012 23:28:17 +0100
> Hans Hagen  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  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
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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  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
___


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