Re: [NTG-context] Again Cambria after updating to latest beta

2011-06-09 Thread Otared Kavian
Hi Willi,

I tested your file and now I observe that the math italic font in Cambria is 
not used correctly (with ConTeXt version 2011.06.09 00:59 MKIV). You can see my 
PDF output at

http://dl.dropbox.com/u/4316076/cambria-font-test-willy-1.pdf

Best regards: OK

On 9 juin 2011, at 09:13, Willi Egger wrote:

 Okay, please refer to the attached test-file and the log after deleting the 
 font-cache.
 I hope this might shed light on the matter.
 
 
 Kind regards
 
 Willitest-cambria-font.logtest-cambria-font.tex
 
 On 9 Jun 2011, at 09:01, Hans Hagen wrote:
 
 On 9-6-2011 8:31, Willi Egger wrote:
 Hi all,
 
 Yesterday evening I was quite happy that after deleting and regenerating 
 the cache and the formats I had Cambria up and running.
 
 This morning I updated Context to the latest beta. - Eventhough I generated 
 the formats manually with context --make, I get the problem referred to 
 yesterday. What I get you can see in the by the list administrator released 
 mail from yesterday.
 
 I am stymied.
 
 
 we need a better test (+log) then
 
 -
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cambira

2011-06-08 Thread Otared Kavian
Hi,

I tested your file and got the following error message
 tex  error on line 12 in file test-cambria-font.tex: Math error: 
parameter \Umathquad\displaystyle is not set 
Otherwise the text is as expected.
I am using ConTeXt from the minimals: ConTeXt  ver: 2011.05.18 22:26 MKIV.

Best regards: OK

On 8 juin 2011, at 11:53, Willi Egger wrote:

 Hi all,
 
 When using Cambria I get very strange results. Apparently everything is 
 typeset in math mode. Did anyone else run into this? - My cambria version is 
 of 2009, V5.93.
 Running Context 18-05-2011
 Please refer to the attched file.
 
 Kind regards
 
 Willi 
 
 test-cambria-font.tex___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
Hi all,

Assuming that we have a set of words or expressions, say
{Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
Schrödinger equation}
is it possible to write a lua function, named for instance
randomselectword
which returns one of the words or expressions selected at random in the above 
set?
Indeed this is intended to be used in a TeX file processed with mkiv.

Thanks in advance for any idea and help.

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] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
Dear Hans, dear Mathieu,

Thank you very much for your quick thoughts and solutions!
It is amazing how fast one gets a solution to one's problem on this list…

Just a note for Mathieu: I think that
\enableregime[il1]
is not needed in mkiv, since a unicode regime is the default there (however 
with mkii I use
\enableregime[utf]
but in the case we are discussing, one has to use lua, so mkiv is mandatory).

Best regards: OK


On 8 juin 2011, at 19:00, Mathieu Dupont wrote:

 
 This following code works, except that the first random is always the same 
 (Analysis) for some reason.
 
 Anyone knows why ?
 
 \enableregime[il1]
 \starttext
 \startluacode
   userdata = userdata or {}
   math.randomseed( os.time() )
   function userdata.random(...)
   context(arg[math.random(1, #arg)])
   end
 \stopluacode
 \def\CHOOSERANDOM#1{\ctxlua{userdata.random(#1)}}
 \dorecurse{10}{\CHOOSERANDOM{Maths, Physics, Algebra, Analysis, 
 Chemistry, Geometry, Wave equation, Schrödinger equation}\par}
 \stoptext
 
 
 
 Mathieu
 
 
 
 
  From: ota...@gmail.com
  Date: Wed, 8 Jun 2011 18:52:36 +0200
  To: ntg-context@ntg.nl
  Subject: [NTG-context] Random selection of a word in a set with lua and mkiv
  
  Hi all,
  
  Assuming that we have a set of words or expressions, say
  {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, 
  Schrödinger equation}
  is it possible to write a lua function, named for instance
  randomselectword
  which returns one of the words or expressions selected at random in the 
  above set?
  Indeed this is intended to be used in a TeX file processed with mkiv.
  
  Thanks in advance for any idea and help.
  
  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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] beta

2011-06-08 Thread Otared Kavian
Hi Hans and Taco,

Updating the minimals resulted for me in an error message:

This is MetaPost, version 1.504 (kpathsea version 6.0.0)


! I can't open file `metafun'.

* metafun 

Please type another input file name:

However upon aborting the process with ctrl-C, I have an updated 
ConTeXt version 2011.06.08 19:06,
which works apparently fine under mkiv, but does not work with mkii, even with 
the simplest
\starttext
Hello Hans
\stoptext
The typesetting stops with the following error message:
! Font \*7ptmmmrrm*:=rm-lmr7 not loadable: Metric (TFM) file not found.
to be read again 
  \relax 
\definefontlocal ...ndcsname \lastfontname \relax 
  \expandafter \let 
\expanda...

I just report the issue to let you know (I have still the previous version at 
hand…).

Best regards: OK



On 8 juin 2011, at 21:22, Hans Hagen wrote:

 On 8-6-2011 8:54, Taco Hoekwater wrote:
 
 
 On 06/08/11 19:45, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. New is:
 
 - enhanced inheritance in layouts
 - reimplemented page markings
 - \setupmathrendering[fontclass][it=somevariant]
 - upgrade of (content) mathml
 
 That is including an update of  general/manuals/mmlprime.pdf
 
 i uploaded a bit newer (todays)
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] testing TeX Live 2011

2011-06-05 Thread Otared Kavian
Dear Mojca, dear Taco,

Thank you for sharing th einfo on TexLIve 2011 pretest.
I would like to let you know that I downloaded
mactex20110529.mpkg.zip
from one of the sites on 
http://tug.org/texlive/pretest.html
and after unzipping, tried to install the pacjkage for pretesting. However, I 
get an error message stating that:
The package could not be completed.
(com.apple.installer.pagecontroller error -1.)
Couldn't open mactex20110529.mpkg.

This is just to inform you about an issue (I use only ConTeXt from th eminimals 
at this point).

Best regards: OK

On 4 juin 2011, at 10:10, Taco Hoekwater wrote:

 
 Hi,
 
 For those of you who are not 'in the loop', so to say: instructions
 for running the texlive 2011 pretest are here:
 
  http://tug.org/texlive/pretest.html
 
 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] testing TeX Live 2011

2011-06-05 Thread Otared Kavian
Hi Mojca,

Sorry for not having stated the OS and machine on which I tried the MacTex 
package: yes I am on a Mac Intel Core 2 Duo, and Mac OS X 10.6.7.
Right now I don't have Tiger at hand, but maybe I can find one with a friend 
willing to try.

Regarding what you say about your experience of MacTex under Mac OS X 10.6.7, 
it is indeed weird that it doesn't work for me.
Would it be possible that unzipping with Zipeg (an application which I use for 
expanding zipped files) may explain the difference between your experience and 
mine?

Thanks again for your efforts for bringing ConTeXt in various flavors to the 
Mac community!

Best regards: OK

On 5 juin 2011, at 14:54, Mojca Miklavec wrote:

 On Sun, Jun 5, 2011 at 13:34, Otared Kavian wrote:
 Dear Mojca, dear Taco,
 
 Thank you for sharing th einfo on TexLIve 2011 pretest.
 I would like to let you know that I downloaded
mactex20110529.mpkg.zip
 from one of the sites on
http://tug.org/texlive/pretest.html
 and after unzipping, tried to install the pacjkage for pretesting. However, 
 I get an error message stating that:
The package could not be completed.
(com.apple.installer.pagecontroller error -1.)
Couldn't open mactex20110529.mpkg.
 
 This is just to inform you about an issue (I use only ConTeXt from th 
 eminimals at this point).
 
 In past emails on the list you mention that you are using Snow
 Leopard. I guess the same is true for the machine where you tested
 MacTeX or do you happen to have some Tiger left somewhere in the
 corner?
 
 The weird thing is that the same file worked for me on 64-bit SL
 (10.6.7) a few days ago and unless there is some file corruption
 present (but then it wouldn't even unzip properly), mactex didn't
 change since then.
 
 Mojca
 
 PS: Not relevant for your report, but I would warn you that MacTeX
 doesn't yet have an out-of-the-box working ConTeXt (you need to update
 context first, but even then there are some problems with outdated
 texmfcnf.lua file), but that was probably already evident from the
 release date that is part of the name as we only got a properly
 working ConTeXt today in the morning (tomorow morning follows another
 no-so-critical fix).
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Otared Kavian
Hi 

I think the error comes from your way of using \define: you use
 \define\abs[1]{\lvert #1 \rvert}
instead of
\define[1]\abs{\lvert#1\rvert}

 the following works fine for me:

\starttext

%\define[1]\abs{|#1|} % this works

\define[1]\abs{\lvert#1\rvert} % this works too

$\abs{-1} = 1$
\stoptext

Best regards: OK

On 4 juin 2011, at 22:40, Paul Menzel wrote:

 Dear ConTeXt folks,
 
 
 I want to define `\abs` as the command for the absolute value. The
 following minimal example is also attached.
 
\define\abs[1]{\lvert #1 \rvert}
\starttext
$\lvert 2 \rvert$
 
$\abs{2}$
\stoptext
 
 This does not work though.
 
$ context abs
[…]
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) 
 \write18 enabled.
(abs.tex
 
ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: 
 english/english
[…]
! Missing $ inserted.
 
system   tex  error on line 1 in file abs.tex: Missing $ 
 inserted ...
 
1   \define\abs[1]{\lvert #1 \rvert}
2 \starttext
3 $\lvert 2 \rvert$
4 
5 $\abs{2}$
6 \stoptext
7 
 
inserted text 
$
to be read again 
   \Udelimiter 
\lvert -\Udelimiter 
 4 0 7C 
l.1 \define\abs[1]{\lvert
  #1 \rvert}
?
 
 How should I do that correctly? I took that example from the user’s
 guide of the amsmath package (`texdoc amsldoc`).
 
 
 Thanks,
 
 Paul
 abs.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] bug in luatex on osx-ppc

2011-05-24 Thread Otared Kavian
Hi Thomas,

Some time ago I had an analogous problem related to a new version of LuaTeX (on 
Mac OS X 10.6.7, Intel processor). I can't say anything about the error message 
you get, but what I did was the following:
--- I erased the content of texmf cache, that is in my case
/context-minimal/tex/texmf-cache/luatex-cache
--- and I ran again first-setup.sh
after that everything was working fine.

Best regards: OK

On 24 mai 2011, at 11:26, Thomas A. Schmitz wrote:

 Hi all,
 
 after updating the minimals to the latest beta on osx-ppc, I can't compile 
 any document, I always get this error:
 
 context test
 
 mtx-context | run 1: luatex 
 --fmt=/Users/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en
  
 --lua=/Users/tas/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui
  --backend=pdf ./test
 This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277)
 \write18 enabled.
 Could not undump 51859 1-byte item(s): fd:4: unexpected end of file.
 
 mtx-context | fatal error: return code: 1%
 
 This happens both with the binary in the minimals (0.70.1) and when I compile 
 the latest trunk (0.71.0), so I'm a bit lost here - it looks like a problem 
 in the executables, right?
 
 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
___


Re: [NTG-context] Current Mk IV doc?

2011-05-24 Thread Otared Kavian

Hi,

You can also do the following in a terminal window:
texexec --int=en --pdf --global --result=setup-en --purge x-set-12.mkiv

(you can replace « en » with another language such as « fr » for French, or « 
mkiv » with « mkii »).

This is a tip taken from the file 

context-minimal/tex/texmf-context/doc/context/document/general/manuals/tiptrick.pdf

Best regards: OK

On 25 mai 2011, at 00:23, Mathieu DUPONT wrote:

 
 Here :
 
 http://www.pragma-ade.com/general/qrcs/setup-en.pdf
 
 
 
 Mathieu


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 spacing after comma (MkIV)

2011-05-15 Thread Otared Kavian
Hi Vedran,

Some time ago we had a discussion on the list about this issue: I learned that 
in mkiv one has to add
\setupmathematics[autopunctuation=no]
in order to have a correct spacing.

Best regards: OK

On 15 mai 2011, at 15:17, Vedran Miletić wrote:

 Hi,
 
 please consider this:
 
 \starttext
 \math{1, 2, 3}
 \stoptext
 
 Spacing after comma in MkIV is practically nonexistent. Is this intended?
 
 Vedran
 
 P.S.
 Using or not using OTF has no effect.
 math-spacing2-mkii.pdfmath-spacing2-mkiv.pdfmath-spacing2-mkiv-otf.pdf___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] displaying lines of formulas one by one

2011-05-14 Thread Otared Kavian
Dear Jeong,

I tested again your example file with mkiv and got the correct result (see the 
attached file). As Wolfgang says in his answer, it is weird that the \FlushStep 
command doesn't work for you: are you using mkiv? I should add that in mkii, 
the part of your example with \startcombination does not work correctly.

Best regards: OK



steps-formula-1.pdf
Description: Adobe PDF document


On 14 mai 2011, at 03:11, Jeong Dalyoung wrote:

 Dear Wolfgang and Otared,
 
 Thank you for the reply.
 
 I have used \setupinteraction[state=start] and open with Adobe Reader 
 already. 
 
 \StartSteps worked well in \startitemize and \startcombination. For example,
 
 \StartSteps
 \startitemize
 \item $T(n) =$ \FlushStep
 \blank[5*big]
 \item $T(n) =$ \FlushStep
 \stopitemize
 \StopSteps
 ...
 
 \StartSteps
 \placefigure[none][]{}
 {\startcombination[3*1]
 {\externalfigure[TriNo60][width=.3\makeupwidth]}{\FlushStep}
 {\externalfigure[TriNo90][width=.3\makeupwidth]}{\FlushStep}
 {\externalfigure[TriNoDbl][width=.3\makeupwidth]}{\FlushStep}
 \stopcombination}
 \startformula
 T(n) = n(n+1) \over 2
 \stopformula
 \FlushStep
 \StopSteps
 
 But I couldn't make it work with lines of formulas. I think that it is not 
 working with \NC, \NR structure.
 
 I'll try t-rsteps and thank you for the file. It is another good way to make 
 slides.
 
 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] displaying lines of formulas one by one

2011-05-13 Thread Otared Kavian
Hi Jeong,

If you are interested in using the commands defined in the old t-rsteps.tex for 
showing formulas or text step by step, below is an example I use (it works with 
mkii and mkiv). The input file I  use can be found here
http://dl.dropbox.com/u/4316076/t-rsteps-ok.tex
but I attach it also to this message. 
The old « raw steps » is handy when one may need to go backward in the steps or 
when you want to show, say, the third line of your formula before the second 
line, but it has the disadvantage of creating one page per step.

\starttext

\setuppapersize[S6][S6]
\setuppagenumbering[state=stop]
\input t-rsteps-ok.tex
\setupinteraction[state=start] 
% uncomment the following when not needing teps
% \UseStepsfalse
% when using \UseStepstrue, we redefine \placeformula...
\ifx\UseStepstrue{\def\placeformula[#1]{\PlaceFormula[#1]}}\fi

\StartSteps[Formula with steps]

\startformula
\startalign
\Step{1}{\NC T(4) \NC = T(3) + 4 \NR} 
\Step{2}{\NC \NC= T(2) + 3 + 4 \NR}
\Step{3}{\NC \NC= T(1) + 2 + 3 + 4 \NR}
\Step{4}{\NC \NC= 1 + 2 + 3 + 4 = 10 \NR}
\stopalign
\stopformula
\StopSteps
\stoptext

Best regards: OK


t-rsteps-ok.tex
Description: Binary data

On 13 mai 2011, at 02:13, Jeong Dalyoung wrote:

 Dear all,
 
 I'd like to show the following formula line  by line in a presentation,
 For example, 
 \startformula\startalign
 \NC T(4) \NC = T(3) + 4 \NR
 \NC \NC= T(2) + 3 + 4 \NR
 \NC \NC= T(1) + 2 + 3 + 4 \NR
 \NC \NC= 1 + 2 + 3 + 4 = 10 \NR
 \stopalign\stopformula
 
 
 I tried to use \StartSteps and \StopSteps but not succeed.
 
 \starttext
 \usemodule[pre-60]
 
 \StartSteps
 \startformula\startalign
 \NC T(4) \NC = T(3) + 4 \NR\FlushStep %(nor \FlushStep\NR)
 \NC \NC= T(2) + 3 + 4 \NR\FlushStep
 \NC \NC= T(1) + 2 + 3 + 4 \NR\FlushStep
 \NC \NC= 1 + 2 + 3 + 4 = 10 \NR\FlushStep
 \stopalign\stopformula
 \StopSteps
 
 \stoptext
 
 Is there a way to do so?
 
 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
___

[NTG-context] Wrong spacing with inline math in latest mkiv

2011-05-12 Thread Otared Kavian
Hi Hans and Taco,

It seems that with the latest mkiv (version 2011.05.11 10:18, and LuaTeX 
version beta-0.70.0-2011050613 (rev 4250) ), there is a slight error for the 
spacing of the bounds in the integrals when using inline maths, at least for 
some fonts.
For your information the example is below, and the resulting PDFs are available 
here:

http://dl.dropbox.com/u/4316076/inline-math-spacing-libertine.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-LM.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-palatino.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-termes.pdf
http://dl.dropbox.com/u/4316076/inline-math-spacing-xits.pdf

Best regards: OK
%% begin bug-inline-math.tex
%\setupbodyfont[xits] % gives the correct spacing
\setupbodyfont[palatino] % gives the wrong spacing
%\setupbodyfont[libertine,12pt] % gives a slightly wrong spacing
%\setupbodyfont[termes] % gives the wrong spacing

% Latin Modern gives also a slightly wrong spacing too

\starttext

By the way, $\int_{0}^{2\pi} \sin(x)dx = 0$, while $\sum_{n=1}^\infty n^{-1} = 
+\infty$ and
\startformula
\int_{0}^{2\pi} \sin^2(x)dx = \pi,\qquad \sum_{n=1}^\infty {1\over n^2 } = 
{\pi^2\over 6}.
\stopformula
\stoptext
%% end bug-inline-math.tex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] handouts blank

2011-05-10 Thread Otared Kavian
On 9 mai 2011, at 22:31, Aditya Mahajan wrote:

 […]
 
 Was already present at
 
 http://wiki.contextgarden.net/Presentations#Post_Processing_Presentation
 
 I think that the new page can be deleted. Do you agree?
 
 Aditya

Dear Aditya,

I am sorry for having overlooked that page: indeed the page 
http://wiki.contextgarden.net/handout
is just a repetition of 
http://wiki.contextgarden.net/Presentations#Post_Processing_Presentation
and as such can be deleted, as you suggest. However, I couldn't find a way to 
delete the page about « handout ». Also, when searching the word « handout » on 
the wiki, I didn't find anythind and that's why I added the page about 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] Annotation and background color

2011-05-08 Thread Otared Kavian
On 7 mai 2011, at 17:24, Aditya Mahajan wrote:
 […]
 Have you seen my (old) MAPS article on theorems:
 http://www.ntg.nl/maps/36/09.pdf
 
 That gives an example of how to get a list of all enumerations. I haven't 
 tested that with MkIV, but that example uses just lists.

Hi Aditya,

Thanks fo rthe link: it's a pity I didn't know that article. It is very clear 
and useful, and if I knew this before I would have added a reference to it on 
the wiki,
http://wiki.contextgarden.net/proclaim

Just a remark about putting the list of proclaims at some place: in mkii, as 
you say in your article, the following
\placelist[enumeration:all][width=6em,criterium=all]
gives a list of all the titles and page numbers of proclaims. However it does 
not work with mkiv, I guess because the command has been slightly changed for 
placing lists: by any chance do you know what would be the correct invocation?

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] Annotation and background color

2011-05-08 Thread Otared Kavian
On 7 mai 2011, at 17:29, Wolfgang Schuster wrote:

  […]
 \defineenumeration[proclaim]
   [text=,
   style=slanted,
   title=yes,
   titleleft=,
   titleright=,
   location=serried,
   width=fit,
   right={.~},
   way=bysection,
   prefix=yes,
   prefixsegments=section]
 
 Wolfgang

Hi Wolfgang,

Thank you for your insight: indeed by saying
way=bysection,
prefix=yes,
prefixsegments=section
one gets the correct behavior both in mkii and mkiv (so I changed my definition 
of proclaim).

Just out of curioisty, though it might be useful in some circumstances, how 
would you do in order to have
ChapterNumber.SectionNumber.ProclaimNumber
instead of just SectionNumber.ProclaimNumber, if at all possible? 

Best regards and many thanks: 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] Annotation and background color

2011-05-08 Thread Otared Kavian

On 7 mai 2011, at 18:32, Wolfgang Schuster wrote:

 Am 07.05.2011 um 16:37 schrieb Otared Kavian:
 
 Hi Wolfgang,
 
 Many thanks for your explanations.
 If I may ask a further question, I would like to know at which level one can 
 control whether the first argument of the quotation in the example
  \MyQuotation{Wolfgang Schuster}{The annotation module is wonderful!}
 is surrounded or not by parentheses?
 
 The header (First Argument of the command) consists of
 
 TEXT (“text”-key)
 NUMBER   (incremented by context but you can enable/disable it with 
 “number=yes|no”)
 LEFT SYMBOL  (“left”-key, default: “(”)
 RIGHT SYMBOL (“right”-key, default “)”)
 TITLE(“title”-key or optional argument of the command/environment)

Hi,

Thanks to your explanations I understood the meanings of each of the keys, and 
the principles of using the annotation environment. 
What would be the key to use in order to have (for instance) a colon « : » 
after the number?

Best regards: OK



 I am asking this because I defined for my own use a macro which replaces the 
 \proclaim command of Plain TeX (which disappeared in ConTeXt): I am thinking 
 of switching to use the annotation module, since maybe with that it should 
 be possible to have a list of all anotations of a certain type (for instance 
 list of all theorems, all lemmas, etc) with the page at which they appear. 
 Also with the annotations environment it seems that one can have more fancy 
 layouts for proclaims.
 
 The annotation module doesn’t have so many options as enumerations and it is 
 no replacement for them. What the module does is that it generates a 
 environment (like \definestartstop) where you have access to the content, 
 with your own command you can format the content in any way you like.
 
 The advantage of this method is that you can separate content and layout of 
 certain texts which isn’t possible with build in methods, e.g. a \inmargin 
 text will always appear in the margin and when you want the text now as quote 
 you have to change the command from \inmargin to \quotation but with the 
 annotation module the command in your document won’t change because the 
 switch from \inmargin to \quotation happens in the preamble with the setup of 
 the environment.
 
 \usemodule[annotation]
 
 \define[2]\AnnotationCommand{\quotation{#2}}
 
 \setupannotation[alternative=inmargin]
 %\setupannotation[alternative=command,command=\AnnotationCommand]
 
 \starttext
 
 … \startannotation Hello\stopannotation …
 
 … \startannotation Hello\stopannotation …
 
 \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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Annotation and background color

2011-05-07 Thread Otared Kavian
Hi Wolfgang,

Following up one of the recent threads about your annotation module, I made 
some experiments and found it a wonderful and extremely useful module.
Out of curiosity, I wanted to know whether there is a key to set a background 
color for an annotation (as it is possible to use headcolor=darkred, or 
textcolor=darkgray, for instance).
Also I didn't get the difference between textcolor=darkgray and color=darkgray: 
are they the same?
The example I was testing is below.

Best regards: OK

\usemodule[annotation]

\define[2]\MyQuotationCommand
{\textrule{#1}#2\textrule}

\defineannotation[MyQuotation]
[alternative=command,
command=\MyQuotationCommand,
text=Quotation ,
number=yes,
headcolor=darkred,
color=darkgray,
%   textcolor=darkgray,
]

\starttext

\startMyQuotation{Peter D. Ward}
\input ward.tex
\stopMyQuotation

\startMyQuotation{Donald Knuth}
\input knuth
\stopMyQuotation

\MyQuotation{Wolfgang Schster}{The annotation module is wonderful!}

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Annotation and background color

2011-05-07 Thread Otared Kavian
Hi Wolfgang,

Many thanks for your explanations.
If I may ask a further question, I would like to know at which level one can 
control whether the first argument of the quotation in the example
\MyQuotation{Wolfgang Schuster}{The annotation module is wonderful!}
is surrounded or not by parentheses?
I am asking this because I defined for my own use a macro which replaces the 
\proclaim command of Plain TeX (which disappeared in ConTeXt): I am thinking of 
switching to use the annotation module, since maybe with that it should be 
possible to have a list of all anotations of a certain type (for instance list 
of all theorems, all lemmas, etc) with the page at which they appear. Also with 
the annotations environment it seems that one can have more fancy layouts for 
proclaims.

My definition of proclaim works only with mkii (somehow in mkiv the section 
number does not appear when numbering the proclaimed stuff…).
The example is below.

Best regards: OK

%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={.~}]
\setupnumber[proclaim][way=bysection,numbersection=yes] % maybe one has to 
change this in mkiv?
%% end definition \proclaim

\starttext

When there is not a declared section the numbers have no prefix as in the 
following:

\startproclaim[def:test]{Definition}
This is a definition.
\stopproclaim

\startproclaim{Lemma}
This is a lemma.
\stopproclaim

\section{Here is a section}

When there is a declared section the numbers have as prefix the section number, 
as in the following:

\startproclaim{Lemme}
Here is another lemma.
\stopproclaim

\startproclaim[thm:result]{Theorem}
This is our main theorem.
\stopproclaim

\stoptext


On 7 mai 2011, at 14:04, Wolfgang Schuster wrote:

 
 Am 07.05.2011 um 12:44 schrieb Otared Kavian:
 
 Hi Wolfgang,
 
 Following up one of the recent threads about your annotation module, I made 
 some experiments and found it a wonderful and extremely useful module.
 Out of curiosity, I wanted to know whether there is a key to set a 
 background color for an annotation (as it is possible to use 
 headcolor=darkred, or textcolor=darkgray, for instance).
 
 No, you one of ConTeXt commands/environments which have a background, e.g. 
 framed, background or textbaxkground.
 
 \define[2]\MyQuotationCommand
   {\setupbackground[background=color,backgroundcolor=gray]
\startbackground
\textrule{#1}#2\textrule
\stopbackground}
 
 or
 
 \define[2]\MyQuotationCommand
   {\setupbackground[background=color,backgroundcolor=gray]
\textrule{#1}%
\startbackground
#2%
\stopbackground
\textrule}
 
 Also I didn't get the difference between textcolor=darkgray and 
 color=darkgray: are they the same?
 
 The “color” affects the header *and* the text while “headcolor” and 
 “textcolor” only affect one of them. You can test this when you comment 
 headcolor/textcolor and use only color.
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Latest beta not working.

2011-05-06 Thread Otared Kavian
Hi Bart,

I checked with my latest installation of minimals and I don't encounter any 
problem (I am using Mac OS X 10.6.7).
Did you install the latest beta with first-setup.sh? On what kind of platform?

Best regards: OK

On 6 mai 2011, at 22:12, Bart Wise wrote:

 If I run context with no arguments, I get the following output (and nothing 
 else):
 
 mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
 
 The file, mtx-context.lua does exis:
 /home/bwise/context/20110505-beta-extras/tex/texmf-context/scripts/context/lua/mtx-context.lua
 
 
 If I do an strace, it's looking for the following:
 26155 open(./context.lua, O_RDONLY)   = -1 ENOENT (No such file or 
 directory)
 26155 
 open(/home/bwise/context/20110505-beta-extras/tex/texmf-linux-64/bin/mtx-context.lua,
  O_RDONLY) = -1 ENOENT (No such file or directory)
 26155 stat(mtx-context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or 
 directory)
 26155 stat(mtx-context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or 
 directory)
 26155 
 open(/home/bwise/context/20110505-beta-extras/tex/texmf-linux-64/bin/mtx-context.lua,
  O_RDONLY) = -1 ENOENT (No such file or directory)
 26155 stat(context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or 
 directory)
 26155 stat(context.lua, 0x7fffcf962660) = -1 ENOENT (No such file or 
 directory)
 
 So it's looking for the mtx-context.lua file in the path: 
 tex/texmf-linux-64/bin/mtx-context.lua
 And it's really located in the path: 
 tex/texmf-context/scripts/context/lua/mtx-context.lua
 
 Am I doing something wrong?
 
 Thanks,
 Bart
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with arrows in latest mkiv (again)

2011-05-05 Thread Otared Kavian
Hi Hans,

Many thanks to you and Taco for your attention: following what you said the 
problem is solved. 

For others and the archives, I say here what I did: as you suggest, I did add 
the files stmary10.afm and stmary10.pfb to my texmf-local under
fonts/afm/hoekwater/stmary
and then
context --make --all
Now the long arrows are correctly typeset.

Best regards: OK

On 5 mai 2011, at 12:16, Hans Hagen wrote:

 On 4-5-2011 5:57, Aditya Mahajan wrote:
 On Tue, 3 May 2011, Otared Kavian wrote:
 
 Hi Hans,
 
 I am sending again a message sent some two weeks ago, but probably it
 was lost…
 
 It seems that the latest beta (version 2011.05.01 12:50) has a problem
 with arrow in math mode, using Latin modern, while with Palatino the
 arrows are correct.
 
 It appears that a text mode minus is being used rather than the math
 mode minus. I haven't checked why that is happening.
 
 Taco and I figured out that it worked on our machines because we do have 
 stmary and the minimals don't which results in an empty slot in the virtual 
 font which in turn results in dropped glyphs.
 
 I'll upload a patch but best is if Mojca adds stmary10.afm and stmary10.pfb 
 to the minimals.
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with arrows in latest mkiv (again)

2011-05-03 Thread Otared Kavian
Hi Hans,

I am sending again a message sent some two weeks ago, but probably it was lost…

It seems that the latest beta (version 2011.05.01 12:50) has a problem with 
arrow in math mode, using Latin modern, while with Palatino the arrows are 
correct.
Here is a minimal example and its PDF result (please look at the 
\longrightarrow in the PDF):

\starttext
Let $E,F$ be two Banach spaces and consider a linear operator
$L : E \longrightarrow F$.
\stoptext

Best regards: OK




arrow-1.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] Problem with arrows in latest mkiv (again)

2011-05-03 Thread Otared Kavian

On 4 mai 2011, at 05:57, Aditya Mahajan wrote:
 […]
 It appears that a text mode minus is being used rather than the math mode 
 minus. I haven't checked why that is happening.

Thanks Aditya for your attention: yes you are right indeed, this is what 
happens with LM, but not with Palatino.

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] handouts blank

2011-05-02 Thread Otared Kavian
Hi Adam,

I tested your code both with mkii and mkiv, and everything seems to work 
correctly, both with frame= on or off.
As a matter of fact, I learned from the piece of your code

\setuppapersize
 [A4][A4] % or [A4,landscape][A4,landscape]

\setuplayout
 [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle]

\setupfootertexts
 [presentation---\currentdate\space---\space\pagenumber]

\starttext
 \combinepages[slides][nx=2,ny=3,frame=on]
% or
%  \combinepages[slides.pdf][nx=2,ny=3,frame=on]
\stoptext

that independently of the SimpleSlides module one can combine any PDF file in a 
handout… Thanks very much! 
I added on the wiki a page for this:
http://wiki.contextgarden.net/handout

Best regards: OK

On 1 mai 2011, at 22:45, Reviczky, Adam wrote:

 I'm trying to make some (mkiv) handouts from my simpleslides presentation.
 Unfortunately the resulting pdf is blank for the slides, no frames either. 
 Can someone give me an example that works?
 
 So I just ran tested it with mkii, and there it works.
 Is there any mkiv way for doing a handout?
 
 Adam
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] handouts blank

2011-05-02 Thread Otared Kavian
Hi Adam,

Sorry for not having indicated the versions…
Here they are:
mkiv: ConTeXt  ver: 2011.04.30 17:02 MKIV, LuaTeX version: This is LuaTeX, 
Version beta-0.66.0-2011041318 (rev 4144)

mkii: ConTeXt  ver: 2011.04.30 17:02 MKII

All this on Mac OS X 10.6.7, using the Minimals.

Best regards: OK

On 2 mai 2011, at 17:19, Reviczky, Adam wrote:

 I tested your code both with mkii and mkiv, and everything seems to work 
 correctly, both with frame= on or off.
 
 What version of context/luatex do you use?
 I suspect its a problem in luatex, but I have to experiment with it more.
 
 I'm using context beta 2011.04.24 with luatex svn rev 4232, but I'm updating 
 to the latest to test it again.
 
 Adam
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] handouts blank

2011-05-02 Thread Otared Kavian

On 2 mai 2011, at 19:44, Reviczky, Adam wrote:

 Upgrading to the latest context beta (2011.05.01) solved the problem.
 
 Adam

Nice to know this!

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] MathJax and ConTeXt?

2011-04-30 Thread Otared Kavian
Hi all,

As some of the gurus here may know, MathJax,
http://www.mathjax.org
allows one to display maths formulas typed in TeX (or LaTeX) and MathML to be 
correctly displayed on web pages. Many institutions are using MathJax on their 
site.
Does anyone on the list have an idea about the possibility of including ConTeXt 
support in MathJax?

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] Setting footnotes in two columns- lines not breaking [mkiv]

2011-04-28 Thread Otared Kavian
Hi C.,

I just tried your code: with mkii I do get two columns in the footnote 
(although the columns are too close IMHO) and there is a line break for each 
footnote, but in mkiv I get the same result as yours.

Best regards: OK

On 27 avr. 2011, at 20:51, C. wrote:

 Anybody? *fingers crossed*
 
 
 -Ursprüngliche Nachricht-
 Von: C. [mailto:meta...@gmx.de]
 Gesendet: Samstag, 23. April 2011 21:38
 An: Context-Mailinglist
 Betreff: [NTG-context] Setting footnotes in two columns- lines not
 breaking
 [mkiv]
 
 Hello,
 I already mentioned this some time ago, but I lost track of that email.
 Since the problem still exists in the after today's update, I'll try
 again:
 
 \setupnote[footnote][n=2]
 \starttext
 \dorecurse{6}{\input hawking\footnote{Nevertheless, there must be a line
 break in the footnotes}} \stoptext
 
 Can someone confirm this behavior or even propose a fix? [ConTeXt  ver:
 2011.04.22 18:17 MKIV]
 Sorry for the re-post.
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Skipping item numbers in an itemized list?

2011-04-27 Thread Otared Kavian
Hi Alasdair,

Is this what you want?
\starttext

\startitemize[n]
\dorecurse{4}{\item text}
\stopitemize
\input knuth.tex

\startitemize[n,continue]
\dorecurse{4}{\item text}
\stopitemize

\startitemize[n][start=17]
\dorecurse{4}{\item text}
\stopitemize

\stoptext

I have this from an answer by Wolfgang S.

Best regards: OK

On 27 avr. 2011, at 15:53, Alasdair McAndrew wrote:

 Hello,
 
 The effect I want is something like:
 
 1. First item
 2. Second item
 5. Fifth item
 6. Sixth item
 8. Eight item
 
 and so on.  Every now and then I need to skip a number or two.  In LaTeX I 
 could do this with \addtocounter{enumi}{2} - but how is this done in ConTeXt?
 
 Thanks very much,
 Alasdair
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Arrows in latest mkiv

2011-04-21 Thread Otared Kavian
Hi Hans,

It seems that the latest beta (version 2011.04.20 16:23) has a problem with 
arrow in math mode: I am not sure about it, but I think with the previous 
version this problem didn't exist.
Here is a minimal example and its PDF result (please look at the 
\longrightarrow in the PDF):

\starttext
Let $E,F$ be two Banach spaces and consider a linear operator
$L : E \longrightarrow F$.
\stoptext

Best regards: OK




arrow-1.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] Strange bug with arranging

2011-04-19 Thread Otared Kavian
Hi Aditya,

Your code gives the ame result here both in mkii and mkiv with ConTeXt version 
2011.04.13 09:23 (from the minimals, LuaTeX version beta-0.65.0-2010121316, on 
MacOS 10.6.7)

I remember some time ago an analogous issue was reported on the list, but it 
seems that the problem is solved by now.

Best regards: OK

On 19 avr. 2011, at 22:55, Aditya Mahajan wrote:

 Hi,
 
 I am using MkIV 2011.03.30, and arranging is not working correctly. For 
 example,
 
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2SIDE]
 
 
 \starttext
 \subject{One}
 \dorecurse{4}{\input knuth\relax}
 
 \subject{Two}
 \dorecurse{4}{\input tufte\relax}
 \stoptext
 
 which gives the attached output. Notice that page 4 (right hand page of 
 actual page 2) is empty and the text is moved to page 5. Any idea what is 
 going on?
 
 Aditya
 test.pdf___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \date problem with \mainlanguage[fr] in mkiv

2011-04-14 Thread Otared Kavian
Hi Hans,

With the latest beta (ConTeXt version 2011.04.13 09:23) on the minimals I 
noticed a small bug with the command \date in mkiv: when the mainlanguage is st 
to [fr], the command \date gives:
14spaceavrilspace2011
that is the word « avril » is replaced with « spaceavrilspace ». With [it] or 
[es], there is no such problem. In mkii everything is fine.
Minimal example:

\starttext
Here there is no problem: today's date: \date
\mainlanguage[fr]
Here there is a problem: aujourd'hui: \date
\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \date problem with \mainlanguage[fr] in mkiv

2011-04-14 Thread Otared Kavian
Thanks Wolfgang!
After adding the line you pointed out and remaking the formats the problem is 
solved.

Have a nice day, best regards: OK

On 14 avr. 2011, at 16:50, Wolfgang Schuster wrote:

 
 Am 14.04.2011 um 13:33 schrieb Otared Kavian:
 
 Hi Hans,
 
 With the latest beta (ConTeXt version 2011.04.13 09:23) on the minimals I 
 noticed a small bug with the command \date in mkiv: when the mainlanguage is 
 st to [fr], the command \date gives:
  14spaceavrilspace2011
 that is the word « avril » is replaced with « spaceavrilspace ». With [it] 
 or [es], there is no such problem. In mkii everything is fine.
 Minimal example:
 
 \starttext
 Here there is no problem: today's date: \date
 \mainlanguage[fr]
 Here there is a problem: aujourd'hui: \date
 \stoptext
 
 core-con.lua (missing “local v_space = variables.space“ at line 757):
 
 local v_day  = variables.day
 local v_year = variables.year
 local v_month= variables.month
 local v_weekday  = variables.weekday
 local v_referral = variables.referral
 +local v_space= variables.space
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] inside and outside margins (vs. 'left' and 'right' margins)

2011-04-09 Thread Otared Kavian
Hi James,

You can use 
\inoutermargin{some marginal note}
and
\ininnermargin{some marginal note}
Then when you use
\setuplayout[location=doublesided]
at the beginning of your file, the above two commands should give you what you 
seem to be wanting.

Best regards: OK

On 9 avr. 2011, at 22:26, James Fisher wrote:

 I want to define 'inside' and 'outside' margins (i.e. left and right pages 
 are symmetrical, not the same).  Reading the document 'co-pagedesign.pdf', 
 ConTeXt talks about 'left' and 'right' margins (and other measurements).  At 
 first I thought this must be either a 'representative' left or right page 
 (the diagram on page 3 doesn't say which), but experimenting suggests that 
 there really is no concept of left and right pages here (despite the 
 incredible detail that the document goes into on arranging pages etc which 
 must understand this).
 
 In short this is a basic requirement.  How do I solve it?
 
 
 James
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi all,

I have a document in which I must draw several triangles for which two summits, 
say z0, z1, and the length of the two other sides are known, so that the third 
summit, say z2, is completly determined.
In order to draw one triangle the following works fine:

\setupcolors[state=start]
\starttext
\startMPcode
z0 = (0cm,0cm) ;
z1 = (5cm,0cm) ;
path p, q ; 
pickup pencircle scaled 2mm ;
drawdot z0 ;
drawdot z1 ;
p := halfcircle scaled 8 cm ; % twice the length of the second side at 
z0
p := p shifted z0 ;
q := halfcircle scaled 6 cm ;  % twice the length of the second side at 
z1
q := q shifted z1  ;
z2 = p intersectionpoint q ;
drawdot z2 ;
pickup pencircle scaled 1mm ;
draw z0--z1--z2--cycle withcolor blue ;
\stopMPcode
\stoptext

However I would like to have a macro, for instance named Triangle, which 
accepts four arguments z0,z1, length_1, length_2, so that in a MetaPost code i 
can use
draw Triangle(z0,z1, 4, 3) withcolor blue ;
in order to draw the above triangle. 
Has anyone any idea about how to do this?

Thanks in advance for your help: 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] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi Stefan,

Thanks for the quick answer and solution!
Your solution works perfectly in mkiv; however typesetting with mkii results in
! Undefined control sequence.
l.3 \startMPdefinitions
Is there a solution with mkii?

May I ask one more question?
In the macro you wrote
Triangle((0cm,0cm), (5cm,0cm), 8cm, 6cm)
one has to specify the double of the length of each side (because a unit circle 
in MetaPost is a circle having diameter one). Would it be possible to change 
slightly the lines
p := fullcircle scaled la shifted za ;
q := fullcircle scaled lb shifted zb ;
so that la and lb are replaced with their doubled values? I tried
p := fullcircle scaled 2*la shifted za ;
but this does not work.

Thanks for your attention: OK

On 24 mars 2011, at 10:29, Stefan Müller wrote:

 Hi,
 
 what about
 
 \startMPdefinitions
   vardef Triangle(expr za, zb, la, lb) =
   path p, q ;
   pair zc ;
   pickup pencircle scaled 2mm ;
   drawdot za ;
   drawdot zb ;
   p := fullcircle scaled la shifted za ;
   q := fullcircle scaled lb shifted zb ;
   zc = p intersectionpoint q ;
   drawdot zc ;
   pickup pencircle scaled 1mm ;
   za--zb--zc--cycle
   enddef;
 \stopMPdefinitions
 
 \starttext
 \startMPcode
   draw Triangle((0cm,0cm), (5cm,0cm), 8cm, 6cm) withcolor blue ;  
 \stopMPcode
 \stoptext
 
 Stefan
 
 On 24.03.2011 09:59, Otared Kavian wrote:
 Hi all,
 
 I have a document in which I must draw several triangles for which two 
 summits, say z0, z1, and the length of the two other sides are known, so 
 that the third summit, say z2, is completly determined.
 In order to draw one triangle the following works fine:
 
 \setupcolors[state=start]
 \starttext
 \startMPcode
  z0 = (0cm,0cm) ;
  z1 = (5cm,0cm) ;
  path p, q ; 
  pickup pencircle scaled 2mm ;
  drawdot z0 ;
  drawdot z1 ;
  p := halfcircle scaled 8 cm ; % twice the length of the second side at 
 z0
  p := p shifted z0 ;
  q := halfcircle scaled 6 cm ;  % twice the length of the second side at 
 z1
  q := q shifted z1  ;
  z2 = p intersectionpoint q ;
  drawdot z2 ;
  pickup pencircle scaled 1mm ;
  draw z0--z1--z2--cycle withcolor blue ;
 \stopMPcode
 \stoptext
 
 However I would like to have a macro, for instance named Triangle, which 
 accepts four arguments z0,z1, length_1, length_2, so that in a MetaPost code 
 i can use
  draw Triangle(z0,z1, 4, 3) withcolor blue ;
 in order to draw the above triangle.
 Has anyone any idea about how to do this?
 
 Thanks in advance for your help: 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Metfun macro for triangle

2011-03-24 Thread Otared Kavian
Hi Stefan,

Thanks for your explanations: everything works as expected and your solution is 
very instructive for me.
Later this weekend I'll put it on the wiki.

Have a nice day.
Best regards: OK

On 24 mars 2011, at 11:29, Stefan Müller wrote:

 
 
 On 24.03.2011 10:57, Otared Kavian wrote:
 Hi Stefan,
 
 Thanks for the quick answer and solution!
 Your solution works perfectly in mkiv; however typesetting with mkii results 
 in
  ! Undefined control sequence.
  l.3 \startMPdefinitions
 Is there a solution with mkii?
 
 Then just drop the MPdefinitions section and put the complete vardef before 
 your normal mp code in the MPcode section. That should work, I think.
 
 May I ask one more question?
 In the macro you wrote
  Triangle((0cm,0cm), (5cm,0cm), 8cm, 6cm)
 one has to specify the double of the length of each side (because a unit 
 circle in MetaPost is a circle having diameter one). Would it be possible to 
 change slightly the lines
 
 Now that's strange... But I see what you mean. I didn't notice.
 
  p := fullcircle scaled la shifted za ;
  q := fullcircle scaled lb shifted zb ;
 so that la and lb are replaced with their doubled values? I tried
  p := fullcircle scaled 2*la shifted za ;
 
 Yeah, you need parentheses here, because otherwise Metapost tries to scale by 
 2 and then doesn't know how to multiply the result (the path fullcircle 
 scaled 2) with la.
 
   p := fullcircle scaled (2 * la) shifted za ;
   q := fullcircle scaled (2 * lb) shifted zb ;
 
 
 but this does not work.
 
 Thanks for your attention: OK
 
 np, Stefan.
 
 On 24 mars 2011, at 10:29, Stefan Müller wrote:
 
 Hi,
 
 what about
 
 \startMPdefinitions
 vardef Triangle(expr za, zb, la, lb) =
 path p, q ;
 pair zc ;
 pickup pencircle scaled 2mm ;
 drawdot za ;
 drawdot zb ;
 p := fullcircle scaled la shifted za ;
 q := fullcircle scaled lb shifted zb ;
 zc = p intersectionpoint q ;
 drawdot zc ;
 pickup pencircle scaled 1mm ;
 za--zb--zc--cycle
 enddef;
 \stopMPdefinitions
 
 \starttext
 \startMPcode
 draw Triangle((0cm,0cm), (5cm,0cm), 8cm, 6cm) withcolor blue ;  
 \stopMPcode
 \stoptext
 
 Stefan
 
 On 24.03.2011 09:59, Otared Kavian wrote:
 Hi all,
 
 I have a document in which I must draw several triangles for which two 
 summits, say z0, z1, and the length of the two other sides are known, so 
 that the third summit, say z2, is completly determined.
 In order to draw one triangle the following works fine:
 
 \setupcolors[state=start]
 \starttext
 \startMPcode
z0 = (0cm,0cm) ;
z1 = (5cm,0cm) ;
path p, q ; 
pickup pencircle scaled 2mm ;
drawdot z0 ;
drawdot z1 ;
p := halfcircle scaled 8 cm ; % twice the length of the second side at 
 z0
p := p shifted z0 ;
q := halfcircle scaled 6 cm ;  % twice the length of the second side at 
 z1
q := q shifted z1  ;
z2 = p intersectionpoint q ;
drawdot z2 ;
pickup pencircle scaled 1mm ;
draw z0--z1--z2--cycle withcolor blue ;
 \stopMPcode
 \stoptext
 
 However I would like to have a macro, for instance named Triangle, which 
 accepts four arguments z0,z1, length_1, length_2, so that in a MetaPost 
 code i can use
draw Triangle(z0,z1, 4, 3) withcolor blue ;
 in order to draw the above triangle.
 Has anyone any idea about how to do this?
 
 Thanks in advance for your help: 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
 ___
 
 %%
 Otared Kavian
 Département de Mathématiques
 Université de Versailles Saint-Quentin
 Bâtiment Fermat
 45 avenue des Etats Unis
 78035 Versailles cedex
 
 Téléphone: +33 1 39 25 46 42
 Secrétariat: +33 1 39 25 46 44
 Secrétariat: +33 1 39 25 46 46
 
 e-mail: otared.kav...@math.uvsq.fr
 
 
 
 
 ___
 If your question is of interest to others as well, please

Re: [NTG-context] Feature request: setuppapersize

2011-03-21 Thread Otared Kavian
Hi Aditya,Testing your minimal example:\setuppapersize[A5]\showframe\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextit seems that I do get an A5 papersize (ConTeXt version2011.02.25 22:03, andLuaTeX, Version beta-0.65.0-2010121316). I attach the PDF file for your information (since I don't know how to get pdfinfo…).Best regards: OK

test-A5.pdf
Description: Adobe PDF document
On 19 mars 2011, at 18:59, Aditya Mahajan wrote:[…]I don't know if something changed, but this has stoopped working.\setuppapersize[A5]\starttext\dorecurse{10}{\input knuth \endgraf}\stoptextWith MkII I get$pdfinfo page-test.pdfTitle: page-testSubject:Keywords:Author:Creator: ConTeXt - 2011.02.25 22:03Producer: pdfTeX-1.40.11CreationDate: Sat Mar 19 13:50:49 2011ModDate: ConTeXt - 2011.02.25 22:03Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 33436 bytesOptimized: noPDF version: 1.5With MkIV:$pdfinfo page-test.pdf Title: page-testCreator: ConTeXt - 2011.02.25 22:03Producer: LuaTeX-0.65.0CreationDate: Sat Mar 19 13:53:29 2011ModDate: Sat Mar 19 13:53:29 2011Tagged: noPages: 5Encrypted: noPage size: 595.276 x 841.89 pts (A4)File size: 16057 bytesOptimized: noPDF version: 1.6Notice that the page size is still A4! Any idea why this is happening?(I get the right paper size with letter, A0, A1, A2, A3, but wrong paper sizes with anything smaller than A4).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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : 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] (RSFS) font installation

2011-03-17 Thread Otared Kavian
Hi Stefan,

It seems that somehow on your system the rsfs font is not seen by mkiv.
In fact after the following command
mtxrun --script fonts --reload
you should say
mtxrun --script fonts --list --pattern=rsfs
 
in order to see whether any rsfs font is detected by mkiv.
If the fonts are not listed it means that either the fonts are not on your 
system, or mkiv does not see them because they are not at the right place.

Best regards: OK


On 17 mars 2011, at 14:41, Stefan Müller wrote:

 Ah, thanks for that. Indeed, there are .pfm and .pfb files in the Fonts 
 directory now. But still
 
 mtxrun --script fonts --reload
 
 doesn't seem to check for those file types...
 
 Best regards,
 Stefan.
 
 On 17.03.2011 13:40, Ulrike Fischer wrote:
 Am Thu, 17 Mar 2011 10:05:17 +0100 schrieb Stefan Müller:
 
 Is this a typo and do you mean .pfm file? Otherwise I don't get it.
 Should I just copy the .pfb files to C:\Windows\Fonts, too?
 
 You need both pfm and pfb in the fonts folder. But windows probably
 pulled the pfb along with the pfm when you told it to install the
 font.
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] 620 pages limit?

2011-03-15 Thread Otared Kavian
Hi,

For your information, just out of curiosity, I tested Wolfgang's code
\starttext
\count0=0
\loop\ifnum\count03986 % try 3987
  \advance\count0 by 1
  \shipout\vbox{}
\repeat
\end
\stoptext

which works fine with 3986 pages but not with 3987 pages and above.
This is with mkiv, version: 2011.02.25 22:03, and LuaTeX version 
beta-0.65.0-2010121316
on Mac OS X 10.6.6.

Best regards: OK

On 15 mars 2011, at 16:35, Taco Hoekwater wrote:

 On 03/15/2011 03:44 PM, Steffen Wolfrum wrote:
 
 Am 15.03.2011 um 11:27 schrieb Steffen Wolfrum:
 
 
 Am 15.03.2011 um 10:07 schrieb Vnpenguin:
 
 
 Best wishes,
 Taco
 
 Not here:
 \starttext
 \dorecurse{5000} {\input knuth \page }
 \stoptext
 pages  flushing realpage 3987, userpage 3987
 PANIC: unprotected error in call to Lua API (stack overflow (out of
 stack space))
 
 mtx-context | fatal error: return code: 1
 with latest minimals.
 
 
 I have exactely same error as you on Linux x86_64 CentOS , luatex
 beta-0.65.0-2010121316
 
 However on my Windows XP (always with Minimals distro) I can compile
 without error. On Windows I have :
 E:\User\xxx\texluatex --version
 This is LuaTeX, Version beta-0.66.0-2011021923 (Web2C 2010) (rev 4086)
 
 Maybe luatex of Linux 64bit is out-of-date ?
 
 
 Just update luatex to beta-0.66.0-2011031509 (rev 4090) and now I got
 5000-pages PDF :)
 
 
 I also updated now [got beta-0.66.0-2011031511 (rev 4090)]
 but still my project gives a PANIC!
 
 I'll try now to boil down a minimal example out of my chapters ...
 
 
 Four hours later:
 Still I do not have a minimal example. But I think I have an idea what 
 might be the problem:
 The number of footnotes seems to have an impact.
 I boiled it down to a version of my project where just a little additional 
 note causes PANIC.
 Adding another page of text or a sectioning heading or anything else is fine.
 
 Does this help further finding the bug?
 
 Not really, sorry. Unless the problem gets worse if you add extra footnotes 
 earlier?
 
 Does it make sense to have compare both tuc files (the last working and the 
 first buggy)?
 
 Probably not.
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math spacing

2011-03-14 Thread Otared Kavian
Hi Hans VdM and Wolfgang,

It is true that naming a variable PYR, even in plain TeX, as shown below, gives 
rise to an ugly mathematical symbol since there is a certain distance between 
the « Y » and the « R » with math italic:

http://dl.dropbox.com/u/4316076/spacing-plain.pdf

The problem may be the bounding box of « Y ».
However, I think that in the example given by Hans VdM in mkiv, there is 
another, more important, issue which is the way the commas are treated between 
the variables Q, Y, N, P, Y, Z in math italic. Please compare the following 
outputs, one obtained with mkii and the other with mkiv:

http://dl.dropbox.com/u/4316076/spacing-mkii.pdf

http://dl.dropbox.com/u/4316076/spacing-mkiv.pdf

I think that this is a big issue in typesetting maths with mkiv since 
punctuations are treated in an incorrect way.

Best regards: OK
PS: Sorry for the delay… yesterday this message was rejected when sent with the 
attached PDFs, because it was over 64Kb.


On 13 mars 2011, at 13:16, Hans van der Meer wrote:

 It might be that I am missing something here. But I don not understand why in 
 the math expression below the spacing behind the letters is different. With 
 this behaviour it seems impossible to name a variable PYR and have it typeset 
 as such.
 
 Hans van der Meer
 
 
 \starttext
 $\tfd Q,Y,N,P,Y,Z \quad PYR$
 \stoptext
 ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.11  int: english/english
 
 
 test.pdf___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] math spacing

2011-03-14 Thread Otared Kavian
Hi Wolfgang,On 14 mars 2011, at 12:39, Wolfgang Schuster wrote:[…]Wasn’t this what i showed in my example?Yes indeed your examples showed exactly this: sorry for not mentioning your point.[…]\setupmathematics[autopunctuation=no]Unfortunately this does not help at all, at least on my installation of ConTeXt.It seems to me that the effect of the above command is to modify the spacing between characters and punctuation marks, but still the latter are misplaced with LM math fonts (with \bf or \rm there is no problem).Best regards: OKPS: here is the source which produces the attached PDF:\starttext\startbuffer[MathSpacing]Example with mkiv:With \type{\tfd}:$\tfd Q, Y, N, P, Y, Z, \quad PYR$\blank[big]With \type{\bf}$\bf Q, Y, N, P, Y, Z, \quad PYR$\blank[big]With normal LM math fonts:$Q,Y,N,P,Y,Z, \quad PYR$\stopbuffer\getbuffer[MathSpacing]\blank\thinrule\blankNow with \type{\setupmathematics[autopunctuation=no]}\setupmathematics[autopunctuation=no]\getbuffer[MathSpacing]\stoptext

math-spacing.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] hanging on missing picture

2011-03-12 Thread Otared Kavian
Hi,

On my installation of ConTeXt, there is no hanging: maybe there is an issue 
with your intsllation?
The output shows a grey rectangle with 
name : dummy
file: figure
state: unknown
written on it.

For your information, I tested your code on a Mac OS X 10.6.6 and the minimals 
(version 2011.02.25).

Best regards: OK
On 12 mars 2011, at 14:23, Hans van der Meer wrote:
 Requesting a non-existing picture does not produce a warning message, but 
 makes ConTeXt hang. An abort is the only thing that helps. It would however 
 be nice if a missing file warning is given. A minimal example that shows me 
 the hang:
 
 \starttext
 Hello a picture?\par
 \externalfigure[./Figuren/figure.xxx]
 \stoptext


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] hanging on missing picture

2011-03-12 Thread Otared Kavian
Hi,

I did the test with your code both with mkii and mkiv (version 2011.02.25, 
22:03).  In mkii I get what I reported previously and in mkiv I get:
name : dummy
file: ./Figuren/figure.xxx
state: unknown

I have noticed the hanging behaviour of mkiv in some other situations, but 
actually if I wait long enough mkiv comes back and the typesetting goes 
through… I had the impression of having a cache problem, since if I remove or 
rename the folder
/context-minimal/tex/texmf-cache/luatex-cache
then mkiv gets lost, despite a new folder being created.

Maybe in your situation there is an analogous condition?

Best regards: OK

On 12 mars 2011, at 15:27, Hans van der Meer wrote:

 Well, here it does hang. I also have MacOSX 10.6.6 but then I have the 
 minimals  ver: 2011.02.05 11:37 MKIV  fmt: 2011.2.5.
 The later version: ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.3.11 does 
 work as advertised though.
 
 Pity I have to use the older version until another incompatibility is solved: 
 resolversmodules  loaded: 'bib'
 (/Users/hans/context/tex/texmf-context/tex/context/base/m-obsolete.tex
 ! Undefined control sequence.
 I hope to hear soon about that one.
 
 Hans van der Meer
 
 On 12 mrt 2011, at 15:07, Otared Kavian wrote:
 
 Hi,
 
 On my installation of ConTeXt, there is no hanging: maybe there is an issue 
 with your intsllation?
 The output shows a grey rectangle with 
  name : dummy
  file: figure
  state: unknown
 written on it.
 
 For your information, I tested your code on a Mac OS X 10.6.6 and the 
 minimals (version 2011.02.25).
 
 Best regards: OK
 On 12 mars 2011, at 14:23, Hans van der Meer wrote:
 Requesting a non-existing picture does not produce a warning message, but 
 makes ConTeXt hang. An abort is the only thing that helps. It would however 
 be nice if a missing file warning is given. A minimal example that shows 
 me the hang:
 
 \starttext
 Hello a picture?\par
 \externalfigure[./Figuren/figure.xxx]
 \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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] One-off theorem titles

2011-03-03 Thread Otared Kavian
Hi Severin,

Maybe this is what you want:
% begin
%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={.~}]
\setupnumber[proclaim][way=bysection,numbersection=yes]
%% end definition \proclaim

%% defining \remark 
\defineenumeration[remark]
[text=,
style=rm,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={.~}]
\setupnumber[remark][number=proclaim]
%% end definition \remark

\starttext
\input knuth.tex

\startproclaim[lem:Yoneda]{Yanada Theorem}
This is a theorem in set category theory.
\stopproclaim

\startremark{Remark}
The above theorem and this remark are numbered sequentially.
\stopremark

\section{A new section}

\input knuth.tex

\startproclaim[lem:Yoneda2]{Yanada Theorem}
As said above, this is a theorem in set category theory.
\stopproclaim

\startremark{Remark}
The above theorem and this remark are numbered sequentially.
\stopremark

\stoptext
% end

Best regards: OK

On 3 mars 2011, at 09:05, S Barmeier wrote:

 Currently I am using something like
 
 \defineenumeration[lemma]
   [location=serried,
headstyle=bold,
text=Lemma,
width=broad,
style=italic]
 
 to define theorems, lemmas, etc.
 
 Sometimes a theorem or lemma will have its own name (e.g. Yoneda Lemma),
 and I find it slightly cumbersome to write something like
 
 3.1 Theorem (Yoneda Lemma)
 3.1 Lemma (Yoneda)
 3.1 Lemma (Yoneda Lemma)
 
 and was really hoping that
 
 \startlemma[text={Yoneda Lemma}]
 
 would give me the desired
 
 3.1 Yoneda Lemma
 
 but it doesn't. I would like to keep the whole setup the same and only
 change the text for this instance. Is there any way to implement this
 except for defining a whole new enumeration for one
 theorem/lemma/proposition by
 
 \startenumeration[text={Yoneda Lemma},location= ... ]
 
 Thank you.
 Severin
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] One-off theorem titles numberstyle

2011-03-03 Thread Otared Kavian
Hi Severin,

Actually if you are using mkiv, the definitions I sent this morning should be 
slightly changed: perhaps the following suits your needs (however I don't know 
how to change the style of the numbers…).

% begin
%!TEX TS-program = mkiv

%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
%% the following is adapted for mkiv
\defineenumeration[theorem]
\setupenumerations[theorem]
[text=Theorem,
style=sc, % or slanted
title=yes,
titleleft=,
titleright={.},
location=serried,
width=fit,
right={.},
prefix=yes,
way=bysection,
]

%% defining \remark numbered with the same counter as \proclaim
\defineenumeration[proclaim][theorem] % clone proclaim
\setupenumerations[proclaim]
[text=,
style=slanted,
title=yes,
titleright={.},
location=serried,
width=fit,
right={.}]
%% end definition \remark

\starttext
\input knuth.tex

\startproclaim[lem:Yoneda]{Yoneda Theorem}
This is a theorem in set category theory.
\stopproclaim

\starttheorem 
The above theorem and this one are numbered sequentially.
\stoptheorem

\section{A new section}

\input knuth.tex

\startproclaim[lem:Yoneda]{Yoneda Theorem}
As said above, this is a theorem in set category theory.
\stopproclaim

\starttheorem 
The above theorem and this one are numbered sequentially.
\stoptheorem

\stoptext
%%% end

Best regards: OK

On 3 mars 2011, at 10:56, S Barmeier wrote:

 Thank you for the quick reply, it is getting quite close. I guess the
 trick is to define an enumeration for one-off use and use title= to
 fake text=. The only problem is that the number sits between text and
 title. So to still be able to use \starttheorem alongside
 \startproclaim{Theorem}, I would need to know how to either place the
 number after the title or how to place it before the text.
 I'd be interested in knowing how to do both.
 
 Also, I have problem with the numbering mechanism and the
 numberstyle/textstyle/etc.
 
 \defineenumeration[theorem]
[text=Theorem,
numberstyle=normal,
headstyle=bold,
textstyle=caps,
number=yes]
 \defineenumeration[proclaim]
[text=,
number=theorem,
headstyle=bold,
title=yes,
titleleft=,
titleright=]
 \starttext
 
 \starttheorem
 Abc
 \stoptheorem
 
 \startproclaim{Special Theorem}
 Def
 \stopproclaim
 
 \stoptext
 
 This gives as is no number for \startproclaim{Special Theorem}, although
 I asked for number=theorem. Also, the numberstyle of \starttheorem is
 not normal, but bold, and adding textstyle=normal/caps/etc. seems to
 have no effect either.
 
 Best,
 Severin
 
 
 
 
 On 03/03/2011 05:43 PM, ntg-context-requ...@ntg.nl wrote:
 Maybe this is what you want:
 % begin
 %% defining \proclaim which is built in Plain-teX
 %% but has disappeared from ConTeXt
 \defineenumeration[proclaim]
  [text=,
  style=slanted,
  title=yes,
  titleleft=,
  titleright=,
  location=serried,
  width=fit,
  right={.~}]
 \setupnumber[proclaim][way=bysection,numbersection=yes]
 %% end definition \proclaim
 
 %% defining \remark 
 \defineenumeration[remark]
  [text=,
  style=rm,
  title=yes,
  titleleft=,
  titleright=,
  location=serried,
  width=fit,
  right={.~}]
 \setupnumber[remark][number=proclaim]
 %% end definition \remark
 
 \starttext
 \input knuth.tex
 
 \startproclaim[lem:Yoneda]{Yanada Theorem}
 This is a theorem in set category theory.
 \stopproclaim
 
 \startremark{Remark}
 The above theorem and this remark are numbered sequentially.
 \stopremark
 
 \section{A new section}
 
 \input knuth.tex
 
 \startproclaim[lem:Yoneda2]{Yanada Theorem}
 As said above, this is a theorem in set category theory.
 \stopproclaim
 
 \startremark{Remark}
 The above theorem and this remark are numbered sequentially.
 \stopremark
 
 \stoptext
 % end
 
 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
___


Re: [NTG-context] playing colors

2011-03-01 Thread Otared Kavian

On 1 mars 2011, at 16:25, Wolfgang Schuster wrote:

 
 Am 01.03.2011 um 14:37 schrieb Hans van der Meer:
 
 Started for myself some learning on colors in ConTeXt. In the manual there 
 is a nice colorpalette shown (section 6, page 141). However, I cannot 
 reproduce this. The following minimal example shows colored texts, but 
 \showcolor[color-name] just produces black boxes with ominous zeroes behind 
 it.
 What am I missing here? The wiki didn't procure more information then the 
 manual.
 
 The command is used to show all the defined colors in a colo-xxx.(mkii|mkiv) 
 file, e.g.
 
 \starttext
 \showcolor[rgb]
 \stoptext
 
 Wolfgang

Hi Hans,

Indeed as Wolfgang points out, in the file 
colo-ini.mkii
it is said that:

%D But let's not forget that we also have the more traditional
%D non||related colors. These show up after:
%D
%D \starttyping
%D \showcolor [name]
%D \stoptyping
%D
%D Where \type{name} for instance can be \type{rgb}.

Actually « name » can be also xwi or pra. There another command is also given, 
\showcolorgroup,  for showing colors such as in:
\showcolorgroup [red][vertical,name,number]
or
\showcolorgroup [red]  

And the following can be used to see the setups:

\showsetups{showcolor}

(Actually in the source there is a mistyping « \showsetup » instead of « 
\showsetups »).

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 and Drupal

2011-02-27 Thread Otared Kavian
Hi Alan,

Some time ago I asked the same question, but I could not solve it in a clear 
manner: see the threads

http://archive.contextgarden.net/message/20101122.222652.67cec1ae.en.html
and the older one

http://archive.contextgarden.net/message/20080330.180742.0b2cd7cf.en.html

Best regards: OK

On 27 févr. 2011, at 15:04, Bowen Alan C. wrote:

 Does anyone know of a project or literature addressing the possibility of 
 running ConTeXt in a Drupal environment? There is a DruTeX module already in 
 place but that, so far as I can tell, it is limited to LaTeX.
 
 Alan
 


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Speech bubbles

2011-02-10 Thread Otared Kavian
Hi Andreas and Wolfgang,

I wikified both your examples for future reference:
http://wiki.contextgarden.net/speech_bubble
(But unfortunatley I don't know how to add the PDF results of the TeX codes, 
but I don't think this is of importance).

Best regards: OK

On 8 févr. 2011, at 17:08, Andreas Harder wrote:

 
 Am 08.02.2011 um 16:44 schrieb Wolfgang Schuster:
 
 
 Am 08.02.2011 um 13:09 schrieb Philipp A.:
 
 @wolfgang: was my example helpful?
 
 Your example doesn’t work and I’m not interested to look into the manual how 
 to fix it.
 
 This worked for me.
 
 tikz-speechbubbles.tex
 
 Greeting
   
 Andreas___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Speech bubbles

2011-02-09 Thread Otared Kavian
Hi Wolfgang,

Yes, with the latest beta your example works fine.
Many thanks and best regards: OK

On 8 févr. 2011, at 21:14, Wolfgang Schuster wrote:

 
 Am 08.02.2011 um 21:06 schrieb Otared Kavian:
 
 Hi Wolfgang,
 
 Just out of curiosity I tested your example file, but mkiv stops upon
  ! Undefined control sequence.
  l.16 \defineannotation
 The version I have is ConTeXt  ver: 2011.02.05 11:37 MKIV.
 
 Please update your installation, the annotation module was
 added on Sunday to the minimals. I’ll add documentation later
 but you can take a look at the examples at my bitbucket site [1].
 
 [1] https://bitbucket.org/wolfs/annotation/src
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Speech bubbles

2011-02-08 Thread Otared Kavian
Hi Wolfgang,

Just out of curiosity I tested your example file, but mkiv stops upon
! Undefined control sequence.
l.16 \defineannotation
The version I have is ConTeXt  ver: 2011.02.05 11:37 MKIV.

Best regards: OK

On 8 févr. 2011, at 17:38, Wolfgang Schuster wrote:

 
 Am 08.02.2011 um 17:08 schrieb Andreas Harder:
 
 This worked for me.
 
 Thanks, i wrapped it in a environment.
 
 \usemodule[tikz,annotation]
 \usetikzlibrary[shapes.callouts]
 
 \define[2]\SpeechbubbleCommand
  {\starttikzpicture[remember picture]
   \node[rectangle callout, draw] (node:ref) 
 {\framedtext[width=fit,frame=off]{#2}};
   \stoptikzpicture}
 
 \defineannotation
  [speechbubble]
  [alternative=command,
   command=\SpeechbubbleCommand]
 
 \starttext
 
 \speechbubble{Hello!}
 
 \startspeechbubble
 \input ward
 \stopspeechbubble
 
 \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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \useexternaldocument

2011-02-04 Thread Otared Kavian
Hi all,

How can I open a PDF file from within a presentation?
For example, assuming that the file intermezzo.pdf is present in the same 
directory, I thought I could say this

\starttext
\useexternaldocument[intermezzo.pdf]
As one may see in the example \from[intermezzo.pdf]
\stoptext

But this does not work as I would expect.
Thanks in advance for any help.
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] math: `\overbar` with fractions and subscripts

2011-02-04 Thread Otared Kavian
Hi Paul,

I think one should use \overline instead of \overbar in your example. For me 
the following works fine with mkiv:
  \starttext
   \startformula
   \overline{q} = \frac{\overline{q}}{\overline{α_0}}
   \stopformula
   In text $\overline{q} = \frac{\overline{q}}{\overline{α_0}}$.
   \startformula
   \overline{q_0} = \frac{\overline{q}}{\overline α}
   \stopformula
   \stoptext
(one gets as expected the « conjugate » of α_0, for instance).

Best regards: OK
On 4 févr. 2011, at 12:14, Paul Menzel wrote:

 Dear ConTeXt folks,
 
 
 I do have some problem with the following example (also attached,
 executed with `context test`).
 
\starttext
\startformula
\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}
\stopformula
In text $\overbar{q} = \frac{\overbar{q}}{\overbar{α_0}}$.
\startformula
\overbar{q_0} = \frac{\overbar{q}}{\overbar α}
\stopformula
\stoptext
 
 I am using the latest ConTeXt Minimals distribution.
 
$ context --version
 
MTXrun | main context file: 
 /opt/context/tex/texmf-context/tex/context/base/context.mkiv
MTXrun | current version: 2011.02.04 10:01
 
 1. The bar divides for subscripts/indices.
 2. If you look at the first fraction, the bar is as long as the stroke
 from the fraction and therefore I think too long.
 3. When inlining the fraction in text the bar fuses with the stroke from
 the fraction.
 
 Are these know problems or do I just use the wrong commands?
 
 
 Thanks,
 
 Paul
 test.pdftest.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] Differences for \Vert in mkii and mkiv

2011-02-02 Thread Otared Kavian
Dear Aditya,

I am sorry I overlooked you answer… I just saw that you have answered my 
message regarding the \Vert symbol.
Thank you and please pardon me.

I tried to modify the mapping of  0x2016 to 0xFF605, but since I don't 
understand the way or where 0xFF605 is constructed, I didn't get any result.
0x2016 is described in char-def.lua, and in font-agl.lua.
FF605 is referred to only in math-vfu.lua.

Maybe if Hans has a little time, he can explain where the double vertical bar 
is constructed: the problem is that these bars are scaled swelled (or English) 
rules rather than bars as in Latin Modern.
Since more and more people are going to use only mkiv, this issue can be 
annoying for mathematical typesetting.

Best regards: OK

On 19 janv. 2011, at 17:44, Aditya Mahajan wrote:

 On Tue, 18 Jan 2011, Otared Kavian wrote:
 
 Dear Aditya, dear Hans,
 
 I noticed a serious difference between what one gets for \left\Vert in mkii 
 and in mkiv.
 Probably this is due to the fact that in mkiv the glyph for \Vert is 
 constructed in a different manner, but as far as I know from what I see in 
 the mathematical printed materials, the correct one, or the expected one, is 
 the output from mkii.
 
 I don't know why the glyphs are different. In MkIV, the virtual font is 
 mapping 0x2016 to 0xFF605, but I don't know how FF605 is created.
 
 Is there a way to redefine locally \Vert (or \|) so that in mkiv one gets 
 the same output as with mkii?
 
 Not locally. You could change math-vfu.lua to change the mapping, but I don't 
 completely understand how those work (with the virtual glyphs like FF605)
 
 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
___


[NTG-context] \useURL broken in mkiv

2011-02-02 Thread Otared Kavian
Dear Hans,

It seems that with ConTeXt beta 2011-01-31, the command \useURL is broken in 
mkiv, while it works fine in mkii (it worked fine until 2011-01-26 in mkiv).
Here is a minimal example
 begin bug-useURL.tex
\starttext 

See Prgma's site \useURL{http://www.pragma-ade.nl/}

\stoptext
 end bug-useURL.tex

and here is the error message:

\nextoptionalcommandnop -\doquadrupleemptyNOPone 
\douseurl 
to be read again 

I hope these are useful to fix the issue.

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] Multiline formula numbering problems

2011-01-31 Thread Otared Kavian
Hi Vyatcheslav,

In fact you should say \NR[+] at the end of each line in \startalign in order 
to get numbers.
This works for me:
\starttext

\placeformula 
\startformula 
\startalign
\NC \dot{x}(t) \NC=f(x(t), u(t)) \NR[+]
\NC y(t) \NC=h(x(t), u(t)), \NR[+]
\stopalign
\stopformula

\stoptext
Best regards: OK

On 31 janv. 2011, at 11:38, Vyatcheslav Yatskovsky wrote:

 \starttext
 
 % has number
 \placeformula \startformula
 f(x_0, u_0)=0.
 \stopformula
 
 % has no number
 \placeformula \startformula \startalign
 \NC \dot{x}(t) \NC=f(x(t), u(t)) \NR
 \NC y(t) \NC=h(x(t), u(t)), \NR
 \stopalign \stopformula
 
 
 % no numbers even here
 \startsubformulas
 \placeformula \startformula
 \dot{x}(t)=f(x(t), u(t))
 \stopformula
 \placeformula \startformula
 y(t) =h(x(t), u(t)),
 \stopformula
 \stopsubformulas
 
 \stoptext
 
 Regards,
 Vyatcheslav

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2011-01-31 Thread Otared Kavian
Hi Hans,

I uploaded the new beta with the Minimals, but neither mkii nor mkiv work 
anymore…
I get
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
and 
luatools --generate
gives the same result.
Has something changed in first-setup.sh for Mac OS X and other machines (I 
followed the thread about that file being changed for Windows by Mojca, but I 
don't know about other operating systems).

I am reporting this just to let you know: I don't have any problem going back 
to ConTexT version 2011.01.25.

Best regards: OK

On 31 janv. 2011, at 17:49, Hans Hagen wrote:

 Hi,
 
 I uploaded a new beta.
 
 Hans

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

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

2011-01-31 Thread Otared Kavian
Hi Thomas,

Many thanks for your attention: indeed afer doing
mtxrun --generate
and then
context --make --all
I could use mkiv, and had to do
mktexlsr 
and the 
texexec --make --all
in order to use mkii. 
I gues eventually these commands would be integrated somehow in first-setup.sh, 
but I didn't notice that that file was supposed to be updated also.

Best regards: OK

On 31 janv. 2011, at 18:45, Thomas Schmitz wrote:

 On Mon, 31 Jan 2011 18:33:57 +0100
 Otared Kavian ota...@gmail.com wrote:
 Hi Hans,
 I uploaded the new beta with the Minimals, but neither mkii nor mkiv work 
 anymore…
 I get
  MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
 and  luatools --generate
 gives the same result.
 
 This has been deprecated for quite a while now; you have to run
 
 mtxrun --generate
 
 Has something changed in first-setup.sh for Mac OS X and other machines (I 
 followed the thread about that file being changed for Windows by Mojca, but 
 I don't know about other operating systems).
 
 I see the same thing on linux: you have to run mtxrun --generate and mktexlsr 
 and texexec --make by hand now; after that, mkiv and mkii will run.
 
 I assume that's a result of our discussion last week, but not quite what Hans 
 and Mojca are aiming at...
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2011-01-31 Thread Otared Kavian
Hi again Hans,

Thanks to Thomas' attention I could make some testing with the latest mkiv beta 
(2011.01.31). It seems that roman numerals is broken in itemize, while it works 
fine in mkii.
Here is a minimal test:
%%% begin test.tex
\starttext
\startitemize[r]
\item Testing items and footnotes\footnote{This is a silly remark\dots}
\stopitemize
\stoptext
%%% end test.tex

and the error message I get:
! Undefined control sequence.
\romannumerals #1-\ctxcommands 
{romannumerals(\number #1)}
l.7 }
 
\doconvertedstructurecounter ...!criterium , } )}
  \endgroup 
to be read again 
   \fi 
\doactualitemnumber ...rrentitemgroupcounter ]\fi 
  \dohandleitemreference \en...
\actualitemnumber ...fi \else \doactualitemnumber 
  \fi 
...
l.5 \item T
   esting items and footnotes\footnote{This is a silly remark\dots}
? 
Process aborted

Best regards: OK

On 31 janv. 2011, at 17:49, Hans Hagen wrote:

 Hi,
 
 I uploaded a new beta.
 
 Hans
 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] mkii broken in latest beta?

2011-01-22 Thread Otared Kavian
Hi Thomas and Hans,

On OS X I experience the same thing, even after adding a \doothing as hans 
suggests (well, this indeed does… nothing… :-) ).
A strange behaviour I notice also with mkii is that it creates a dvi file:

Output written on basic-test.dvi (1 page, 1132 bytes). 
Transcript written on basic-test.log. 

As a matter of fact opening this dvi file with another application, one sees 
the correct output, but no PDF is created with mkii. Please see below the 
minimal example and the dvi file.

Best regards: OK
PS: The minimal example I tested is:
%%% begin basic.test.tex
\starttext
\chapter{Testing a chapter\footnote{Actually for testing footnotes in a chapter 
header\dots}}

This file has been typeset 
on \currentdate{} 
at \currenttime, 
with 
\doifmodeelse{mkiv}
{mkiv, 
LuaTeX version \the\luatexversion,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp),
using the command: \crlf
\type{context basic-test.tex}\crlf}
{mkii, 
using the command: \crlf
\type{texexec basic-test.tex} \crlf}
ConTeXt version \contextversion.

\stoptext
%%% end basic-test.tex
And the dvi produced is:


basic-test.dvi
Description: Binary data


On 21 janv. 2011, at 23:39, Hans Hagen wrote:

 On 21-1-2011 7:36, Thomas A. Schmitz wrote:
 Hi all,
 
 am I the only one having this problem? On OS X, the latest beta ver: 
 2011.01.18 19:34 MKII  fmt: 2011.1.21  breaks with any and every input, even 
 a simple \starttext hello world \stoptext, with this error:
 
 in core-job.mkii patch
 
 \readsysfile{\f!errfilename.\mksuffix}\donothing\donothing
 
 (add a \donothing)
 
 
 -
  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] the chart module broken

2011-01-12 Thread Otared Kavian
Hi Li Yanrui,

Your example works fine with mkiv (version 2010.01.12), but fails to work with 
mkii, in which case I get the error message:
Fatal error: catcode push/pop mismatch. Fix this!
\wait=

Best regards: OK

On 11 janv. 2011, at 01:13, Li Yanrui (李延瑞) wrote:

 Hi,
 
 With beta 2011.01.10 17:55, the chart module is broken. For this
 minimal example:
 
 \usemodule[chart]
 
 \starttext
 
 \startFLOWchart[example]
 \startFLOWcell
  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [rl] {chart}
 \stopFLOWcell
 \startFLOWcell
  \name {chart}
  \location{2,1}
  \text {Charts}
 \stopFLOWcell
 \stopFLOWchart
 
 \FLOWchart[example]
 
 \stoptext
 
 I got the error:
 
 (virtual://viafile.1) (virtual://viafile.2) (virtual://viafile.3
 ! Undefined control sequence.
 \asciia ...LOLrulethickness ; connect_\cFLOWfrom_
  \cFLOWto (\FLOWfrom ,\zFLO...
 \dostartMPdrawing ...data {\MPdrawingdata \asciia
  }\egroup
 \dodoFLOWconnectionC ...ace [0,0,0]\stopMPdrawing
  \fi \fi \fi \ignorespaces
 argument ...text {Flow} \connection [rl] {chart}
 
 \startFLOWcell ...FLOWconnectionC \ignorespaces #1
  \unskip
 l.6 \stopFLOWcell
 
 ?
 
 -- 
 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] Proposal for math mappings

2010-12-11 Thread Otared Kavian
Dear Aditya,

I do think that your proposal would be of great help in writing mathematics.
Indeed the use of different alphabets, or range of characters with different 
styles, depend on the fields of mathematics, so having a \setup command like 
the one you suggest would be wonderful.
However, IMHO, the new setup command should follow the general rules of ConTeXt 
commands for setting up different environments. So maybe the option of having 
all the 12 forms, as you suggest,
normal, italic, sans, sansitalic, blackboard, script,
bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript
would be more homogeneous with the usual style choice.

Best regards: OK

On 10 déc. 2010, at 16:29, Aditya Mahajan wrote:

 On Fri, 10 Dec 2010, Vladimir Lomov wrote:
 
 ** Aditya Mahajan [2010-12-09 23:49:26 -0500]:
 
 This is a proposal for a new way of selecting math mappings in MkIV. I want
 to get input from other math users whether this syntax would take care of 
 all
 scenarios or not.
 
 There are five different ranges in mathematics:
 - digits (0..9)
 - lower case Latin (abc..z)
 - upper case Latin (ABC..Z)
 - lower case Greek (αβγ..ζ)
 - upper case Greek (ΑΒΓ..Z)
 Should be: αβγ..ω
 and ΑΒΓ..Ω
 
 Thanks. I need to learn my Greek :)
 
 A user may want to control what each range is mapped to. So, I suggest a 
 setup
 command
 
\setupmathmappings
  [
 digits={style,alternative},
lclatin={style,alternative},
uclatin={style,alternative},
lcgreek={style,alternative},
ucgreek={style,alternative},
  ]
 
 where the options for style are
 
  normal, bold
 
 while the options for alternative are
 
  normal, italic, sans, sansitalic, blackboard, script
 
 This command will the mappings for each range. **NOTE**: All combinations 
 are not valid.
 
 A companion command
 
\definemathmappings
  [whatever]
  []
 
 can be used to define multiple mappings. These mappings can be used by
 
\setupmathmappings[whatever]
 
 (An alternative is that these mappings are activated using \whatever ...)
 
 For example, we can define a command to typeset vectors using
 
\definemathmappings
  [vectors]
  [ digits={bold,normal},
   lclatin={bold,normal},
   uclatin={bold,normal},
   lcgreek={bold,normal},
   ucgreek={bold,normal}]
 
\def\VEC{\groupedcommand{\setupmathmappings[vector]}{}}
 Is it should be
 \def\VEC{\groupedcommand{\setupmathmappings[vectors]}{}}
 ?
 
 Indeed. Thanks.
 
 If later, we want to represent vectors as sans serif, we can use
 
 
\definemathmappings
  [vectors]
  [ digits={normal,sans},
   lclatin={normal,sans},
   uclatin={normal,sans},
   lcgreek={normal,sans},
   ucgreek={normal,sans}]
 
 This interface makes it easy to switch math fonts for disiplines that want
 different style for different alphabet ranges.
 
 It is relatively easy to implement the above interface. All we need
 is some bookkeeping to set the right attributes. The default math
 mapping commands can be reimplmeneted using \definemappings. Before
 implementing this, I want to ask the opinion of other math users.
 
 Would the above interface take care of different use cases, or is it missing
 something?
 IMHO, style is already used so it is normal.
 Finally, I am not too happy with the syntax. There are only a few ConTeXt
 commands in which the keys take a pair of values. Another option is to 
 allow all
 12 valid options
 
  normal, italic, sans, sansitalic, blackboard, script,
  bold, bolditlaic, boldsans, boldsansitalic, boldblackboard, boldscript
 
 This very depends on used fonts.
 
 I am assuming a complete opentype math font.
 
 with the variants sansitalic-italicsans, boldsans-sansbold, etc. as 
 synonmyms.
 
 Which way of specifying the keys do you prefer?
 
 Actually I don't get what you try to do.
 
 I'll try to explain better in a later post.
 
 I thought that 'font
 switching' command should take care of font switching either in math or
 text modes (if typescript is set properly).
 
 I am proposing to separate out math font switching from text mode font
 switching.
 
 Right now the only good
 example of usage of proposed mechanism is \VEC command (for vectors and etc).
 
 More on this later.
 
 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 : 

Re: [NTG-context] Announcement: cont-tst.pdf

2010-11-30 Thread Otared Kavian
Hi Lukas,

What you have gathered in a single document is a wonderful help for all users: 
thank you so much!
This shows also that the sources are full of gems, put there by Hans, Taco and 
all the wizards out there: thanks indeed to all these people!

Best regards: OK

On 29 nov. 2010, at 14:38, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 Hello,
 
 I built a single .pdf from all testing sources or demos which were included 
 in the Hans' latest cont-tst.7z.
 
 You may find this inspiring or you can find here some snippets (similary as 
 in wiki) how things may be done in ConTeXt.
 
 The file (5.5 MB, 1500 pages approx.) contains the TOC, listing of the source 
 files (on the left page, if short enough) and the result beginning from the 
 right page.
 
 The content is divided in the same manner as Hans did - the tree structure is 
 fully kept.
 
 The file is temporarily available for download at -
 
 http://www.filejumbo.com/Download/1AEB1F0BDD3BAAC9
 
 Comments are welcome.
 
 2 Hans  Taco:
 
 I was not able to translate the following sources:
 
 speed-001.tex
 speed-002.tex
 
 - A kind of a infinite loop?
 
 And to get the following files:
 
 ./doc/context/tests/mkiv/blocks/blocks-001.pdf
 ./doc/context/tests/mkiv/chemical/ppchtex-003.pdf
 ./doc/context/tests/mkiv/experiments/fonts.pdf
 ./doc/context/tests/mkiv/experiments/structurelevels.pdf
 ./doc/context/tests/mkiv/fonts/cyrillic-001.pdf
 ./doc/context/tests/mkiv/fonts/dashes-001.pdf
 ./doc/context/tests/mkiv/fonts/dashes-002.pdf
 ./doc/context/tests/mkiv/fonts/lucida-002.pdf
 ./doc/context/tests/mkiv/fonts/show-001.pdf
 ./doc/context/tests/mkiv/graphics/bases-001.pdf
 ./doc/context/tests/mkiv/math/euler-001.pdf
 ./doc/context/tests/mkiv/metapost/btexetex-001.pdf
 ./doc/context/tests/mkiv/notes/notes-003.pdf
 ./doc/context/tests/mkiv/notes/notes-013.pdf
 ./doc/context/tests/mkiv/system/expansion-001.pdf
 ./doc/context/tests/mkiv/xml/cml-001.pdf
 ./doc/context/tests/mkiv/xml/whatever-008.pdf
 
 - Due to e.g. missing a file which is to be included (but I didn't 
 investigate fully reasons why creation of the PDF failed).
 
 All WinXP, latest (or pre-latest; I was alternating on two comps) minimals.
 
 Cheers,
 
 Lukas
 
 
 -- 
 Ing. Lukáš Procházka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezová 1658
 147 14 Praha 4
 
 Tel: +420 244 062 238
 Fax: +420 244 461 038
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)

2010-11-27 Thread Otared Kavian
Thanks to Wolfgang and Renaud for sharing all this…

However, Renaud, I didn't notice what you says about having « É » in the title: 
it seems that everything works as expected: see
http://dl.dropbox.com/u/4316076/inmargin-fullwidth-1.pdf

(using, ConTeXt  ver: 2010.11.26 22:49 MKIV, on MacOS 10.6.5).
Best regards: OK

On 26 nov. 2010, at 20:25, Renaud AUBIN wrote:

 Hi Wolfgang,
 
 First, thank you!
 
 Now, if I use some accentuated letters in title (the É just after the
 second subsection and before \input zapf), there is an unwanted vertical
 space… Bug, feature or misuse???
 Could you confirm the bug? (the resulting pdf:
 http://dl.dropbox.com/u/5289718/testWolfgang.pdf)
 
 I use the latest minimals on debian 64.
 
 Test −−
 \setupbodyfont[10pt]
 
 \setuplayout
  [leftedge=0mm,
   leftmargin=45mm,
   rightedge=0mm,
   rightmargin=0mm,
   backspace=60mm,
   topspace=10mm,
   bottomspace=10mm,
   header=0mm,
   headerdistance=0mm,
   footer=0mm,
   footerdistance=0mm,
   margindistance=0mm,
   height=middle,
   width=middle,
   grid=yes]
 
 \setuppagenumbering[state=stop]
 
 \setuphead[section]   [style=,command=\SectionCommand]
 \setuphead[subsection][style=,command=\SubsectionCommand]
 
 \define[2]\SectionCommand
  {\inleftmargin{\leftaligned{\structuretitle}}%
   \blackrule
 [ width=\textwidth,
  height=+.3\lineheight,
   depth=-.2\lineheight]}
 
 \define[2]\SubsectionCommand
   {\vbox\bgroup
  \inleftmargin{\leftaligned{\em\structureuservariable{date}}}%
  {\bfa\structuretitle}\wordright{\tfx\structureuservariable{topic}}
 %  \blank
  {\em\structureuservariable{info}}%
\egroup}
 
 \starttext
 
 \startsection[title={A Section}]
 
 \startsubsection
  [title={The detailled topic (which takes more than one line)}]
  [date={The date},topic={Knuth’s topic},info={some text}]
 
 \input knuth
 
 \stopsubsection
 
 \startsubsection
  [title={Éhe detailled topic (which takes more than one line)}]
  [date={Another date},topic={Zapf},info={some text}]
 
 É
 \input zapf
 
 \stopsubsection
 
 \startsubsection
  [title={The detailled topic (which takes more than one line)}]
  [date={Another date},topic={Zapf},info={some text}]
 
 \input zapf
 
 \stopsubsection
 
 \stopsection
 
 \startsection[title={Section}]
 
 \startsubsection
  [title={Some details}]
  [date={A date},topic={Tufte}]
 
 \input tufte
 
 \stopsubsection
 
 \stopsection
 
 \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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt mkiv and Drupal

2010-11-24 Thread Otared Kavian
Thanks Hraban for your answer, so you too have TeX files processed in order to 
present them on web pages.
I'll look inside DruTeX to see whether it can be adpated for ConTeXt.
I was wondering whether there are other means using the capabilities of ConTeXt 
mkiv to export TeX files into xml and then show them on the webpages.
I'll do some more search on the issue before making a final decision.

Best regards: OK

On 23 nov. 2010, at 20:27, Henning Hraban Ramm wrote:

 2010/11/22 Otared Kavian ota...@gmail.com:
 Dear Contextators,
 
 Has anyone tried to process TeX files written for ConTeXt mkiv in Drupal 
 (http://drupal.org/)?
 To be more precise, there exists a so-called filter DruTeX 
 (http://drupal.org/project/drutex) which can process LaTeX files for viewing 
 them in a web page, but since my TeX files are written for ConTeXt, I wonder 
 if there is a simple way to do the same in Drupal with ConTeXt.
 
 Or maybe I am going the wrong direction?
 Should I export through mkiv my TeX files to some other format than TeX for 
 being understood by Drupal?
 Actually my documents are essentially one page each, without any complicated 
 layout or graphics: there is only some text, and items within two or three 
 sets of \startitemize, \stopitemize. But they do contain maths and I would 
 like to have them on the web pages.
 
 You can use any TeX with any web application server, if you can
 execute a TeX binary (e.g. normally not in a shared hosting
 environment). Use your system's templating engine to produce ConTeXt
 files instead of HTML and run ConTeXt on them. Getting the paths right
 might be a major problem - it took me some weeks of debugging, since
 also my process supervision tools played a role.
 I don't know Drupal (I use Django), but if you look into that DruTeX,
 it's probably rather simple.
 
 Greetlings, Hraban


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 Drupal

2010-11-22 Thread Otared Kavian
Dear Contextators,

Has anyone tried to process TeX files written for ConTeXt mkiv in Drupal 
(http://drupal.org/)?
To be more precise, there exists a so-called filter DruTeX 
(http://drupal.org/project/drutex) which can process LaTeX files for viewing 
them in a web page, but since my TeX files are written for ConTeXt, I wonder if 
there is a simple way to do the same in Drupal with ConTeXt.

Or maybe I am going the wrong direction? 
Should I export through mkiv my TeX files to some other format than TeX for 
being understood by Drupal?
Actually my documents are essentially one page each, without any complicated 
layout or graphics: there is only some text, and items within two or three sets 
of \startitemize, \stopitemize. But they do contain maths and I would like to 
have them on the web pages.

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] Is the chart module broken?

2010-11-20 Thread Otared Kavian
Hi all,

As a matter of fact with any document using the chart module, mkii stops with
\wait=
This happens with the following minimal test, for example:

%%% begin bug-chart.tex
\usemodule[chart]

\startFLOWchart[cells]
\startFLOWcell
\location {1,1}
\text{This is just a test}
\stopFLOWcell 
\stopFLOWchart

\starttext
\FLOWchart[cells]
\stoptext
%%% end bug-chart.tex

However with mkiv, everything is fine.
For you information, I tested the above with the Minimals, ConTeXt  ver: 
2010.11.18 19:47 MKII  fmt: 2010.11.19  int: english/english, on MacOS X 10.6.5.

Best regards: OK

On 20 nov. 2010, at 21:26, Willi Egger wrote:

 I do not know what happens. With your sample code I get:
 
 With ConTeXt  ver: 2010.11.20 12:51 MKII  fmt: 2010.11.20  int: 
 english/english
 
 
 .../lua64/tex/texmf-context/tex/context/base/m-chart.mkii
 XML : loading flowchart support
 ))
 
 Fatal error: catcode push/pop mismatch. Fix this!
 
 \wait=
 /Users/willi/Documents/TEXdata/TEST/test-flowchart.tex:23: Emergency stop.
 read * 
 
 \wait -\begingroup \read 16 to \wait 
  \endgroup 
 \showcatcodenestingerror ...atch. Fix this!}\wait 
  \end \immediate \write 16{}
 \popcatcodetable ...evel \showcatcodenestingerror 
  \else \expandafter \catcod...
 
 \stopreadingfile -\endrestorecatcodes 
   \the \everystopreadingfile \global \a...
 argument ...dousemodules \f!moduleprefix {chart}
  \dododousemodules \f!priva...
 ...
 l.23 \starttext ...
 
 
 Willi
 On 20 Nov 2010, at 17:08, Cecil Westerhof wrote:
 
 2010/11/20 Hans Hagen pra...@wxs.nl
 
 so you have only minimals ... and there all is set up to run mp runtime
 
 Should I install more?
 
 
 strange that no one else has this problem of not finding mpost in the 
 binpath then
 
 Proberly something wrong with my installation, but that is only part
 of the problem. I installed ConTeXt on another computer.  Here
 metapost is found, but still when trying to create a flowchart, only
 the text is generated. It is reproducable. When giving:
 \usemodule[chart]
 
   \starttext
 
   \startFLOWchart[cells]
\startFLOWcell
\name   {first}
\location{1,1}
\shape  {singledocument}
\text   {not really a document}
\stopFLOWcell
 
   \stopFLOWchart
 
   \FLOWchart[cells]
 
   \stoptext
 
 To http://live.contextgarden.net/, then there is also only text.
 
 And when I take from http://wiki.contextgarden.net/Flow_Charts:
 
 \usemodule[chart]
 \setupFLOWcharts[height=3\lineheight]
 
 \startFLOWchart[example]
 \startFLOWcell
 \name {flow}
 \location {1,1}
 \text {Flow}
 \connection [rl] {chart}
 \stopFLOWcell
 \startFLOWcell
 \name {chart}
 \location{2,1}
 \text {Charts}
 \stopFLOWcell
 \stopFLOWchart
 \FLOWchart[example]
 
 And feed it to http://live.contextgarden.net/, I also only see text
 and not the flowchart itself.
 
 --
 Cecil Westerhof
 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!
 
 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/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] Feature request: list of abbreviations

2010-11-02 Thread Otared Kavian
Dear Hans,

Some time ago you said it would not be difficult to have the list of 
abbreviations listed in the opposite order, that is
The full form   the short form

and you told me to remind you later about this feature request. That is what I 
am doing now…
If one considers the minimal example:

% - begin abbrev-test.tex
\definesynonyms[abbreviation][abbreviations][\infull][\inshort]

\starttext
\abbreviation{LCTVS}{Locally Convex Topological Vector Space}
\abbreviation{EEG} {Electroencephalogram}
\abbreviation{ERP} {Event-Related Potentials}
\abbreviation{TVS}{Topological Vector Space}

Test inshort: \inshort{EEG}, \inshort{ERP}, \inshort{TVS},

Test infull: \infull{EEG}, \infull{ERP}, \infull{TVS}, \infull{LCTVS}

\completelistofabbreviations

\stoptext
% - end abbrev-test.tex

Is it possible to obtain, beside the list of abbreviations, another ordered 
list in which the full variant is in the first column while the short variant 
is in the second column? That is a new command, or an option in the 
\setupListOfAbbreviations, resulting in

  ElectroencephalogramEEG
  Event-Related PotentialsERP

  Locally Convex Topological Vector Space LCTVS

  Topological Vector SpaceTVS

Thanks in advance for any help or 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
___


[NTG-context] Bug in mkiv with Times?

2010-11-02 Thread Otared Kavian
Hi all,

With the latest release (ConTeXt  ver: 2010.11.01 12:14 MKIV), in mkiv the 
following gives a wrong size for \sum and the integral sign \int, and the 
bounds of the integral are wrongly placed:

 begin bug-times.tex
\usetypescript[times]
\setupbodyfont[times,12pt]

\starttext

The expansion of $u\in L^2(0,\pi)$ in the base $(\varphi_{k})_{k\geq1}$ is 
defined as 
\startformula
u = \sum_{k\geq1} c_{k}(u) \phi_{k}, \qquad \mbox{where } c_{k}(u) := 
\int_{0}^\pi u(x)\varphi_{k}(x) dx,
\stopformula

\stoptext
 end bug-times.tex

As far as I can say, this didn't happen before, but I cannot say from when this 
is broken. Using 
\usetypescript[termes]
\setupbodyfont[termes,12pt]
instead of times, does not change the result.
Any idea what is going on?
Thanks in advance for your attention and help.



bug-times.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] How to remove \jobname-mpgraph.dddd?

2010-10-22 Thread Otared Kavian

On 22 oct. 2010, at 02:03, Mojca Miklavec wrote:

 I have a silly question - how do I remove mpgraph files now that
 ctxtools is gone and context --purge doesn't know about them?
 context doesn't need to know about mpgraph files as long as MKIV is
 not generating them, but if there is no mkii-only --purge alternative
 ...
 
 I have fifty files \jobname-mpgraph.4000 ... \jobname-mpgraph.3951 and
 even though I can use rm, --purge would be a lot more convenient.
 
 Mojca

Hi Mojca,

If you are working on a Mac, with TeXShop, I can tell you what I do: my 
mkiv.engine file contains the following:

#!/bin/bash

source /Volumes/OK/context-minimal/tex/setuptex 
context $1
rm -f  *.tui *.log *.tuo *.xdv *.mp *.tmp *.top *-mpgraph.* *-mpgraph-temp.dvi 
*.tuc

So that after running context, the only file which is kept is \jobname.pdf 
(however this may be dangerous if you are using MetaPost with file suffixes 
*.mp. In my case since everything is done through context and files *.tex, I 
have no problem).

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

2010-10-22 Thread Otared Kavian

On 22 oct. 2010, at 16:22, Taco Hoekwater wrote:

 On 10/22/2010 04:20 PM, Hans Hagen wrote:
 On 22-10-2010 4:06, Taco Hoekwater wrote:
 On 10/21/2010 12:42 AM, Kevin D. Robbins wrote:
 Hi Hans,
 
 Is the new MetaFun manual available for download? The only PDFs I could
 find of the MetaFun manual were dated to 2002.
 
 The new version is on the web site now.
 
 I wondered who would notice first -)
 
 I usually win such races because I have an hourly rsync running :)
 
 Best wishes,
 Taco

…so one has to visit the website very often :-)
By the way, I found that there is a new setup commands manual, in several 
languages (French, Italian among others):
http://www.pragma-ade.nl/show-man-10.htm
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] background over two page

2010-10-18 Thread Otared Kavian

On 16 oct. 2010, at 17:30, Emanuele Sacco wrote:

 A solution by Luigi:
 […]

Hi Emmanuele, Hi Luigi,

Please excuse me if I get involved in the thread of your discussions…
I was interested both by the question ad the solutions, since I had a similar 
problem some time ago, but I gave up.

Now that you give a solution with \definetextbackground (the solution below), I 
would like to point out that with this definition the beginning of the 
highlighted text does not have the upper frame turned on, while at the end the 
bottom frame is turned on (of course this is what we want).
So my question is: can one have both the upper frame turned on at the begining 
of the highlighted text (and only there) and also the bottom frame turned on at 
the end (and only there).
In other words, a highlighted framed text spanning over two (or more) pages, 
would be like a big rectangle of which the upper and the bottom frame, as well 
as the left and right frames, are shown.

Thanks in advance for you attention: OK

 An alternative solution with the command \definetextbackground:
 
 %%
 \setupcolors[state=start]
 \enableregime[utf]
 \def\Linea{\startMPcode
 draw (0,0) -- (\the\textwidth-1,0) withpen pencircle scaled 1bp withcolor red;
 \stopMPcode
 }
 \definetextbackground
 [Prova]
 [
 mp=background:mp,
 location=paragraph,
 rulethickness=1pt,
 width=broad,
 leftoffset=1em,
 rightoffset=1em,
 after={\Linea}
 ]
 \startuseMPgraphic{background:mp}
 path p;
 for i = 1 upto nofmultipars :
 p = (multipars[i]
 topenlarged 5pt
 bottomenlarged 10pt);
 fill p withcolor lightgray ;
 draw leftboundary p withpen pencircle scaled 1bp withcolor red ;
 draw rightboundary p withpen pencircle scaled 1bp withcolor red ;
 endfor;
 \stopuseMPgraphic
 
 
 \starttext
 
 \startProva
 \input knuth
 \input knuth
 \input knuth
 \input knuth
 \input knuth
 \stopProva
 
 \stoptext
 %%
 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] background over two page

2010-10-18 Thread Otared Kavian
On 18 oct. 2010, at 09:43, luigi scarso wrote:

 On Mon, Oct 18, 2010 at 9:32 AM, Otared Kavian ota...@gmail.com wrote:
 […]
 With my solution it's a matter of changing few lines
 bottomframe=off,topframe=on,
 
 bottomframe=on,topframe=off,


Thanks Luigi!
Your solution works as intended when the framed, highlighted text with 
background spans over two pages (though it doesn't when it spans over three 
pages or more, but this is not a real issue, since it is a bad idea to have 
such long highlighted texts…).

Best regards: OK

I copy below your modfied solution:

% A solution by Luigi Scarso, slightly modified by him

%%
\newdimen\SpaceLeft

\def\CheckSpace{%
\ifdim\pagetotal=0pt\SpaceLeft=\vsize\else\SpaceLeft=\pagegoal\advance\SpaceLeft
by -\pagetotal\advance\SpaceLeft by -2\lineheight\fi}%

\setupcolors[state=start]

\long\def\StartBg#1\StopBg{%
\bgroup
\setbox8000=\vbox{\hsize=\dimexpr\textwidth-1em\relax#1}
\CheckSpace% \the\SpaceLeft\the\ht8000 \the\dp8000
\ifdim\dimexpr(\ht8000+\dp8000)\SpaceLeft\relax
%
\setbox8001=\vsplit8000 to \SpaceLeft%
\setbox8001=\vbox{\unvbox8001}%
%
\setupbackground
[bottomframe=off,
topframe=on, % suggested by Luigi, in his answer
rulethickness=1pt,
rightframe=on,
width=\textwidth,
leftframe=on]
\startbackground\unvbox8001\stopbackground%

\setupbackground
[bottomframe=on,
topframe=off, % suggested by Luigi, in his answer
rulethickness=1pt,
rightframe=on,
width=\textwidth,
leftframe=on]
\startbackground\unvbox8000\stopbackground%
\else
\setupbackground
[bottomframe=on,
topframe=on,
rulethickness=1pt,
rightframe=on,
leftframe=on]
\startbackground #1\stopbackground%
\fi
\egroup
}

\setupbackground
[bottomframe=on,
rulethickness=1pt,
rightframe=on,
leftframe=on]

\starttext

\input ward
\blank

\StartBg
\dorecurse{2}{\input knuth\par}
\StopBg

\blank
\input ward
\blank
\StartBg
\dorecurse{4}{\input knuth\par}
\StopBg

\blank
\input ward

\stoptext
%%

On 18 oct. 2010, at 09:43, luigi scarso wrote:

 On Mon, Oct 18, 2010 at 9:32 AM, Otared Kavian ota...@gmail.com wrote:
 
 On 16 oct. 2010, at 17:30, Emanuele Sacco wrote:
 
 A solution by Luigi:
 […]
 
 Hi Emmanuele, Hi Luigi,
 
 Please excuse me if I get involved in the thread of your discussions…
 I was interested both by the question ad the solutions, since I had a 
 similar problem some time ago, but I gave up.
 
 Now that you give a solution with \definetextbackground (the solution 
 below), I would like to point out that with this definition the beginning of 
 the highlighted text does not have the upper frame turned on, while at the 
 end the bottom frame is turned on (of course this is what we want).
 So my question is: can one have both the upper frame turned on at the 
 begining of the highlighted text (and only there) and also the bottom frame 
 turned on at the end (and only there).
 In other words, a highlighted framed text spanning over two (or more) pages, 
 would be like a big rectangle of which the upper and the bottom frame, as 
 well as the left and right frames, are shown.
 
 Thanks in advance for you attention: OK
 With my solution it's a matter of changing few lines
 bottomframe=off,topframe=on,
 
 
 bottomframe=on,topframe=off,
 
 
 -- 
 luigi
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] background over two page

2010-10-18 Thread Otared Kavian
Hi Wolfgang, 

Indeed your solution works without any flaw…
Looking at your code, I learned that Overlaybox is an object which can be 
filled with a background color, as in:
fill OverlayBox withcolor lightgray ;
so that the background can be in color.

Should we add this kind of problems and solutions to the wiki?
If yes, I am willing to do so.

Best regards: OK

On 18 oct. 2010, at 17:22, Wolfgang Schuster wrote:

 
 Am 18.10.2010 um 14:18 schrieb Otared Kavian:
 
 Your solution works as intended when the framed, highlighted text with 
 background spans over two pages (though it doesn't when it spans over three 
 pages or more, but this is not a real issue, since it is a bad idea to have 
 such long highlighted texts…).
 
 
 I guess this is also possible with textbackground:
 
 \newcounter\CurrentBackground
 
 \def\StartBackground
  {\doglobal\increment\CurrentBackground
   \setposition{Background:b:\CurrentBackground}%
   \startbackground}
 
 \def\StopBackground
  {\stopbackground
   \setposition{Background:e:\CurrentBackground}}
 
 \def\DrawBackground
  
 {\ifnum\MPp{Background:b:\CurrentBackground}=\MPp{Background:e:\CurrentBackground}
 \startMPcode
 draw topboundaryOverlayBox withcolor red ;
 draw bottomboundary OverlayBox withcolor red ;
 draw leftboundary   OverlayBox withcolor red ;
 draw rightboundary  OverlayBox withcolor red ;
 \stopMPcode
   \else\ifnum\realpageno=\MPp{Background:b:\CurrentBackground}
 \startMPcode
 draw topboundaryOverlayBox withcolor red ;
 draw leftboundary   OverlayBox withcolor red ;
 draw rightboundary  OverlayBox withcolor red ;
 \stopMPcode
   \else\ifnum\realpageno=\MPp{Background:e:\CurrentBackground}
 \startMPcode
 draw bottomboundary OverlayBox withcolor red ;
 draw leftboundary   OverlayBox withcolor red ;
 draw rightboundary  OverlayBox withcolor red ;
 \stopMPcode
   \else
 \startMPcode
 draw leftboundary   OverlayBox withcolor red ;
 draw rightboundary  OverlayBox withcolor red ;
 \stopMPcode
   \fi\fi\fi}
 
 \defineoverlay[DrawBackground][\DrawBackground]
 
 \starttext
 
 \setupbackground[background=DrawBackground]
 
 \input knuth
 
 \StartBackground
 \dorecurse{12}{\input knuth\par}
 \StopBackground
 
 \input knuth
 
 \StartBackground
 \input knuth\par
 \StopBackground
 
 \input knuth
 
 \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
___


[NTG-context] Synonyms: difference between mkii and mkiv?

2010-10-12 Thread Otared Kavian
Hi all,

When I typeset the following example (ConTeXt version 2010.10.11 16:59, from 
the Minimals)

%%% begin abbrev-test.tex
\definesynonyms[abbreviation][abbreviations][\infull][\inshort]
\starttext
\abbreviation{LCTVS}{Locally Convex Topological Vector Space}
\abbreviation{EEG} {Electroencephalogram}
\abbreviation{ERP} {Event-Related Potentials}
\abbreviation{TVS}{Topological Vector Space}

Test inshort: \inshort{EEG}, \inshort{ERP}, \inshort{TVS},

Test infull: \infull{EEG}, \infull{ERP}, \infull{TVS}, \infull{LCTVS}

\stoptext
%%% end abbrev-test.tex

with mkii I get:
Test inshort: Electroencephalogram, Event-Related Potentials, 
Topological Vector Space, 
Test infull: EEG, ERP, TVS, LCTVS

while in mkiv I get
Test inshort: EEG, ERP, TVS, 
Test infull: ELECTROENCEPHALOGRAM, EVENT-RELATED POTENTIALS, 
TOPOLOGICAL VECTOR SPACE, 
LOCALLY CONVEX  TOPOLOGICAL VECTOR SPACE

I mean in mkii the first command in the definition
\definesynonyms[abbreviation][abbreviations][\infull][\inshort]
that is \infull, is considered to be the short version of the synonyms, while 
in mkiv it is considered to be the long version and CAPITALIZED.

Is this a bug or a change between mkii and mkiv? 
How can one set up the command in mkiv so that it is not all CAPITALS?

Thanks for your attention: 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] Error in simplefonts

2010-10-12 Thread Otared Kavian

On 12 oct. 2010, at 19:36, Aditya Mahajan wrote:

 […]
 ! LuaTeX error main ctx instance:1: attempt to index field 'define' (a nil 
 value)
 stack traceback:
   main ctx instance:1: in main chunk.
 
 system   error on line 5 in file test.tex: LuaTeX error  ...
 
 1 \usemodule  [simplefonts][size=10pt]
 2
 3 \setmainfont[Fontin][expansion=quality,protrusion=quality]
 4
 5   \definesimplefont [NameFont][FontinBold][size=16pt]
 6
 7 \starttext
 8 \NameFont A
 9 \stoptext
 
 
 \dodefinesimplefont ...1(\luaescapestring {#2})}
 \ifcase \scaledfontmode \r...
 l.5 ...efont [NameFont][FontinBold][size=16pt]
 
 Does anyone else get this error or is it something wrong on my machine?

Hi Aditya,

I do get the same exact error with your example: here is part of the console 
result:

! Undefined control sequence.
system   error on line 5 in file error-simplefonts.tex: Undefined 
control sequence ...
1 %\definesimplefont fails in the latest beta. Minimal example:
2 \usemodule  [simplefonts][size=10pt]
3 \setmainfont[Fontin][expansion=quality,protrusion=quality]
4 
5   \definesimplefont [NameFont][FontinBold][size=16pt]
6 
7 \starttext
8 \NameFont A
9 \stoptext
l.5 \definesimplefont
  [NameFont][FontinBold][size=16pt]
? 
Process aborted

However as I thought this might be due to the fact that I don't have the font 
Fontin, I tried with another font, which I do have, CMUBright-Roman, but the 
result is the same.
I tried also with a few previous examples in which I had tried simplefonts, 
they don't work anymore.
All this with the latest release (ConTeXt version 2010-10-12).

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] placepublications does not place publications

2010-10-05 Thread Otared Kavian
Hi Thomas,

Your test file gives me the same result in mkii or mkiv: using ConTeXt  ver: 
2010.10.01 23:14.

Best regards: OK

On 5 oct. 2010, at 15:04, Thomas A. Schmitz wrote:

 Hi all,
 
 the following code works in mkii. It used to work in mkiv as well, but 
 doesn't anymore with the latest beta (I can't tell at which version it 
 stopped working, sorry). Maybe a side-effect of the new structure code? 
 
 All best
 
 Thomas
 
 \startpublication[k=ackermanmyth,t=book,
 a={{Ackerman}},y=1991,
 n=34,s=Ack91]
 \author[]{Robert}[R.]{}{Ackerman}
 \pubyear{1991}
 \title{The Myth and Ritual School: J. G. Frazer and the Cambridge Ritualists}
 \city{New York}
 \pubname{Garland}
 \stoppublication
 
 \startpublication[k=ackrillaristotle,t=book,
 a={{Ackrill}},y=1981,
 n=366,s=Ack81]
 \author[]{J.~L.}[J.~L.]{}{Ackrill}
 \pubyear{1981}
 \title{Aristotle the Philosopher}
 \city{Oxford}
 \pubname{Oxford UP}
 \stoppublication
 
 \starttext
 
 \section{One}
 
 \nocite[ackrillaristotle]
 
 \placepublications[criterium=cite]
 
 \section{Two}
 
 \nocite[ackermanmyth]
 
 \placepublications[criterium=cite]
 
 \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] Feature request: \completeReverseListOfAbbreviations

2010-09-28 Thread Otared Kavian

Hi Hans,

My computer tells that I have to remind you about the following feature 
request… :-)
About a month ago I asked the following question and you said:
 
 remind me to make it configureable (not that hard)
 
 Hans
 

Here is the test file and the qusetion:
If one considers the minimal example:

% - begin abbrev-test.tex

\definesynonyms[abbreviation][abbreviations][\infull][\inshort]

\starttext
\abbreviation{LCTVS}{Locally Convex Topological Vector Space}
\abbreviation{EEG} {Electroencephalogram}
\abbreviation{ERP} {Event-Related Potentials}
\abbreviation{TVS}{Topological Vector Space}

Test inshort: \inshort{EEG}, \inshort{ERP}, \inshort{TVS},

Test infull: \infull{EEG}, \infull{ERP}, \infull{TVS}, \infull{LCTVS}

\completelistofabbreviations

\stoptext
% - end abbrev-test.tex

 Is it possible to obtain, beside the list of abbreviations, another ordered 
list in which the full variant is in the first column while the short variant 
is in the second column? That is something like:
   \completeReverseListOfAbbreviations
resulting in

   ElectroencephalogramEEG
   Event-Related PotentialsERP

   Locally Convex Topological Vector Space LCTVS

   Topological Vector SpaceTVS

Thanks in advance for any help or 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
___


[NTG-context] New beta 2010-09-22 and xits fonts

2010-09-22 Thread Otared Kavian
Dear Hans, dear Khaled,

It seems that the xits fonts does not work anymore with the recent versions (at 
least since 2010-09-18): the integral signs are not properly scaled and the 
square root behaves strangely: minimal example below (and the resulting PDF, 
with ConTeXt  ver: 2010.09.22 12:33 MKIV  fmt: 2010.9.22  int: english/english, 
on Mac OS X 10.6.3):

Best regards: OK

%%% begin bug-xits-sqrt.tex
\setupbodyfont[xits]

\starttext
Note that $\int_{0}^{2\pi} \sin(x)dx = 0$, while
\startformula
\int_{0}^{2\pi} \sin^2(x)dx = \pi \qquad \mbox{and}\qquad \sqrt{4}= 2.
\stopformula
\stoptext
%%% end bug-xits-sqrt.tex



xits-sqrt.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] export

2010-09-22 Thread Otared Kavian

On 22 sept. 2010, at 14:06, Yury G. Kudryashov wrote:

 […]
 Try \setupbackends.

Thanks Yuri for your attention, but this suggestion doesn't work: I get 

  error on line 3 in file test-export.tex: Undefined control sequence ...
   \setupbackends[export=yes]

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] linking to equations with leqalignno?

2010-09-04 Thread Otared Kavian
Hi Pau,

You should not use \leqaligno, but rather setup the location of the formulas' 
numbers to the left and then use \eqalign: the following works fine:

%%-
\setupformulas[location=left]

\define[1]\eqref{(\in[#1])} % this definition is optional…

\starttext

\placeformula[nohair]
\startformula
\eqalign{
- M^{}_{\bullet}a^{2}_{\bullet} =  M^{}_{2} = -
\frac{J^{2}_{1}}{M^{}_{0}} \,, \cr
- M^{}_{\bullet}a^{3}_{\bullet} =  J^{}_{3} =
\frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr
  }
\stopformula
As one may see from equation (\in[nohair]), we have\dots

It is more handy to use \type{\eqref}: as one sees in equation \eqref{nohair}, 
we have\dots
\stoptext
%%-
Consider also using the ConTeXt math alignment commands for which Aditya has 
written a very nice My Way:
http://dl.contextgarden.net/myway/mathalign.pdf

See also:
http://dl.contextgarden.net/myway/context-latex-math.pdf
Best regards: OK

On 4 sept. 2010, at 23:06, Pau wrote:

 Hello,
 
 I am a bit lost. I am using this format for an equation:
 
 -
 \placeformula[nohair]
 \startformula
 \leqalignno{
 - M^{}_{\bullet}a^{2}_{\bullet} =  M^{}_{2} = -
 \frac{J^{2}_{1}}{M^{}_{0}} \,, \cr
 - M^{}_{\bullet}a^{3}_{\bullet} =  J^{}_{3} =
 \frac{M^{}_{2}J^{}_{1}}{M^{}_{0}}\,. \cr
   }
 \stopformula
 -
 
 but then,using  \in[nohair] to link to the equation in the text of the
 document does not work.
 
 I get a [??]
 
 I think this is related to leqalignno, because \in[] works fine without it.
 
 What should I do in this case?
 
 thanks,
 
 Pau


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

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

2010-09-03 Thread Otared Kavian

On 3 sept. 2010, at 11:25, Hans Hagen wrote:

 Hi,
 
 I uploaded a beta. There have been quite some changes in the lua code, not so 
 much in terms of functionality but in organization (a first step to a more 
 formal api). So, if you use calls to functions in mkiv, you might need to 
 check it.
 
 There have been some extensions but those will become available when the next 
 luatex release happens.
 
 Hans
 

Dear Hans, dear Mojca,

In order to test the new release, I just updated to the new beta through the 
minimals, but after that I get still the same ConTeXt version, that is
ConTeXt version 2010.08.20 00:00
LuaTeX version 62, LuaTeX revision 0, (LuaTeX date stamp 2010081520).

Since we had such a weird behavior sometime ago, I wonder whether something is 
going wrong with the updating procedure.

This said, I am very happy with the version I have… I wanted just to let you 
know about a possible issue: there is no complain at all!

With my 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] startenumerate in romans a la LaTeX

2010-08-31 Thread Otared Kavian

On 31 août 2010, at 11:28, Xan wrote:
 It does not work for me. The numbers are left aligned.
 
 Xan.

Wolfgang's solution works for me with mkiv: Xan, are you using mkii or 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
___


[NTG-context] mkiv and Reverse list of abbreviations

2010-08-31 Thread Otared Kavian
Hi everyone,

I have three questions regarding the use of abbreviations in mkiv: it seems 
that there is a difference between the way in which mkii and mkiv treat the 
definitions of synonyms.

If one considers the minimal example:

% - begin abbrev-test.tex

\definesynonyms[abbreviation][abbreviations][\infull][\inshort]

\starttext
\abbreviation{LCTVS}{Locally Convex Topological Vector Space}
\abbreviation{EEG} {Electroencephalogram}
\abbreviation{ERP} {Event-Related Potentials}
\abbreviation{TVS}{Topological Vector Space}

Test inshort: \inshort{EEG}, \inshort{ERP}, \inshort{TVS},

Test infull: \infull{EEG}, \infull{ERP}, \infull{TVS}, \infull{LCTVS}

\completelistofabbreviations

\stoptext
% - end abbrev-test.tex

my questions are the following:

1) How can I tell mkiv that I want \infull{EEG} result in Electroencephalogram 
not in ELECTROENCEPHALOGRAM?

2) It seems that the order in which \infull and \inshort are defined in
\definesynonyms[abbreviation][abbreviations][\infull][\inshort]
is different in mkii and in mkiv: is this observation correct?

3) Is it possible to obtain, beside the list of abbreviations, another ordered 
list in which the full variant is in the first column while the short variant 
is in the second column? That is something like:
\completeReverseListOfAbbreviations
resulting in

ElectroencephalogramEEG
Event-Related PotentialsERP

Locally Convex Topological Vector Space LCTVS

Topological Vector SpaceTVS

Thanks in advance for any help or 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] extra blank page in front of standardmakeup

2010-08-28 Thread Otared Kavian
Hi Mojca,

Both your example and Wolfgang's suggestion work fine with my installation 
(Minimals on Mac OS X 10.6.3, ConTeXt  ver: 2010.08.20 00:00) either with mkii, 
or mkiv.

Maybe you ahve a problem with your installation?

Best regards: OK

On 27 août 2010, at 16:53, Mojca Miklavec wrote:

 On Fri, Aug 27, 2010 at 15:47, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
  Am 27.08.10 12:28, schrieb Mojca Miklavec:
 
 Dear list,
 
 how can I prevent a blank page in front of title page in MKIV (apart
 from the fact that font switching is not working)? In MKII this is
 working perfectly fine.
 
 \starttext
 \startstandardmakeup
 {\switchtobodyfont[50pt]\bf\centerline{Title}}
 \vskip 3cm
 {\switchtobodyfont[20pt]\centerline{\sl(manual)}} % \sl doesn't work
 either
 \stopstandardmakeup
 
 Try to avoid \switchtobodyfont if possible.
 
 \startstandardmakeup[align=middle]
 {\definedfont[Bold at 50pt]Title}
 \blank[3cm]
 {\definedfont[Slanted at 20pt](manual)}
 \stopstandardmakeup
 
 I don't know what exactly is going on here, but not even
 \definedfont[Bold at 50pt] changes the font size. (Yes, I agree that
 it's a much better option to use this in comparison to
 \switchtobodyfont, I only slightly forgot about this alternative;
 thanks; but it doesn't work any better at the moment.)
 
 (It could be something weird with my installation as well.)
 
 Mojca
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] creating own hyperlinks in bibliography

2010-08-28 Thread Otared Kavian
Hi Mojca, 

Could you please post a full example where your newly defined biblio field 
works?
In some occasions I have had analogous needs (references to papers on 
arxive.org for instance, or other repositories. It would be handy to know how 
one can add such bibliography fields.

Best regards: OK

On 27 août 2010, at 18:02, Mojca Miklavec wrote:

 On Fri, Aug 27, 2010 at 15:40, Taco Hoekwater wrote:
 On 08/27/2010 01:00 PM, Mojca Miklavec wrote:
 
 Dear Taco,
 
 I would like to add some additional fields to bibliography.
 
 I would like to have
 
 \newbibfield[cobissid]
 
 \startpublication
 [...]
 ...
 \cobissid{70615}
 \stoppublication
 
 and then I would modify \setuppublicationlayout[book] to transform the
 number written above into cobiss.si-id: 70615 pointing to the
 following URL:
 
 http://www.cobiss.si/scripts/cobiss?command=DISPLAYbase=cobibrid=70615lani=EN
 
 The simple answer is: search for DOI in the bib module and do whatever
 that does. But, just in case:
 
  \unprotect
  \newbibfield[cobissid]
  \def\bibinsertcobissid#1#2#3%
{{\bibdoifelse{\@@p...@cobissid}%
   {\edef\asci...@ea\detokenize\@EA{\@@p...@cobissid}}%
#1\expanded{\goto{\@@p...@thekey}{\ascii}}#2}{#3}}}
   \protect
 
 should come close to what you had in mind, you hyst have to tweak the
 \goto arguments a bit.
 
 Thank you very much. It was of extreme help. I'm now using
 
 \unprotect
 \def\bibinsertcobissid#1#2#3%
  {{\bibdoifelse{\@@p...@cobissid}%
  {\edef\asci...@ea\detokenize\@EA{\@@p...@cobissid}}%
   #1\expanded{\gotoCOBISS{\@@p...@thekey}{\ascii}}#2}{#3}}}
 \protect
 
 \def\gotoCOBISS#1#2%
  {\ifbibinteractionelse

 {\useURL[bibfoo#1][http://www.cobiss.si/scripts/cobiss?command=DISPLAYbase=cobibrid=#2]%
 \goto{#2}[url(bibfoo#1)]}%
{#2}}
 
 and then
 
   \insertcobissid{ {\sc cobiss.si-id}: }{.}{}%
 
 (Just for a reference in case that any other Cobiss user will ever
 want to repeat the same.)
 
 Now I have just remembered something that has bothered me earlier, but
 I have never mentioned it so far. When interaction is off, DOI gets
 written in plain text which is perfectly OK, but when interaction is
 on, it gets written in typewriter font as if it was URL. I see no
 reason for writing out DOI number in typewriter font since it's not
 really URL on its own, it only points to some URL. This is exactly the
 modification that I have done above for COBISS numbers. What do you
 think about that aspect?
 
 Thank you very much,
Mojca
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] minimals update issues

2010-08-03 Thread Otared Kavian
Hi all,

I can confirm the same issue here: actually after the update, mkiv works fine 
and reports the following versions:
LuaTeX version 61, LuaTeX revision 0, (LuaTeX date stamp 2010072817), 
ConTeXt version 2010.08.02 18:58.

However mkii is broken: the command
texexec --make --all
stops with
language: patterns agr for agr loaded (n=32,e=agr,m=agr)
(/context-minimal/tex/texmf-context/tex/context/patterns/lang-agr.pat
! Duplicate pattern.
l.137 ΐ1
as reported by Martin Althoff.

Best regards: OK

On 3 août 2010, at 06:29, Martin Althoff wrote:

 Just ran ./first-setup.sh (yesterday it ran fine, now=5:20AM GMT 3.Aug) and 
 it ends very ungracefully:
 
 
 A section from some the first (of more) failure. Am I doing something wrong?
 
 
 MTXrun | run: texexec --make --all --fast --pdftex cont-nl cont-enTeXExec | 
 using search method 'kpsewhich'
 TeXExec | using existing database
 TeXExec | using tex engine pdftex
 TeXExec | using tex format path 
 /Users/martin/contextMini/tex/texmf-osx-intel/web2c/pdftex
 TeXExec | generating tex format cont-nl
 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) (INITEX)
 \write18 enabled.
 (/Users/martin/contextMini/tex/texmf-context/web2c/natural.tcx)
 entering extended mode
 (/Users/martin/contextMini/tex/texmf-context/tex/context/base/cont-nl.tex
 (/Users/martin/contextMini/tex/texmf-context/tex/context/base/context.tex
 
 snip
 
 
 taal: geen afbreekpatronen gr voor gr (n=31,e=ec,m=ec) 
 (lang-gr.pat
 ,lang-gr.pat)
 taal: geen afbreekdefinities gr voor gr (n=31,e=ec,m=ec)
 taal: afbreekpatronen agr voor agr geladen (n=32,e=agr,m=agr)
 (/Users/martin/contextMini/tex/texmf-context/tex/context/patterns/lang-agr.pat
 ! Duplicate pattern.
 l.137 ΐ1
 
 ? 
 
 
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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

2010-07-22 Thread Otared Kavian
Dear Hans,

I updated my minimal installation, but noticed that since the end of last June 
I get the same version: after any updating, upon doing
context --version
I get:

MTXrun | main context file: 
/context-minimal/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.06.23 12:45

Maybe have you changed the way the versions are numbered, but I wanted to make 
sure whether this is is normal or not.

However I should say that everything works fine and as expected.

With my best regards: OK
  
On 22 juil. 2010, at 15:40, Hans Hagen wrote:

 Hi,
 
 I uploaded a beta. This is a prelude to an end-of-the-month current that will 
 be released along with luatex 0.61.
 
 This release supports tagged pdf, but it will go unnoticed if you don't have 
 full acrobat. Tagging is enabled with:
 
 \setupstructure[state=start]
 
 Normally tagging takes place automatically but you can add your own using 
 \startelement[whatever] ... \stopelement and labels can be changed with 
 \setuptaglabeltext [en] [elementname=yourfavourite].
 
 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] Missing symbol for itemize[4] (MkIV only)

2010-07-22 Thread Otared Kavian
Hi Vedran,

Your example shows indeed that
\startitemize[3]
works fine but
\startitemize[4]
does not, with
ConTeXt version 2010.06.23 12:45.

(Actually \startitemize[x] works fine when x=1, or 2 or 3, and does not work as 
expected when x  3).
However with mkii everything is fine.

Best regards: OK


On 22 juil. 2010, at 16:54, Vedran Miletić wrote:

 Minimal nonworking example:
 
 % Taken from the wiki
 \starttypescript [Bonum]
\definetypeface [Bonum] [rm] [serif] [bonum] [default]
\definetypeface [Bonum] [ss] [sans]  [adventor]  [default] [rscale=0.887]
\definetypeface [Bonum] [tt] [mono]  [cursor][default] [rscale=1.163]
\definetypeface [Bonum] [mm] [math]  [euler] [default] [rscale=1.050]
 \stoptypescript
 
 \usetypescript[Bonum]
 \setupbodyfont[Bonum,12pt]
 
 \starttext
 \startitemize[4]
 \item bla
 \item bla
 \stopitemize
 \stoptext
 
 It's actually independent of the font used, same thing happens if
 roman font is replaced with palatino or modern.
 
 Regards,
 
 -- 
 Vedran Miletić
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2010-07-22 Thread Otared Kavian
Hi Hans,

Thanks for your attention.
I looked in context.tex after updating and I do have
\edef\contextversion{2010.06.23 12:45}

Does this mean that somehow context.tex is not updated? The file on the minimal 
is indeed created on
Wednsday June 23, 2010, at 12:45

Best regards: OK

On 22 juil. 2010, at 17:14, Hans Hagen wrote:

 On 22-7-2010 5:07, Vedran Miletić wrote:
 2010/7/22 Otared Kavianota...@gmail.com:
 Dear Hans,
 
 I updated my minimal installation, but noticed that since the end of last 
 June I get the same version: after any updating, upon doing
 context --version
 I get:
 
 MTXrun | main context file: 
 /context-minimal/tex/texmf-context/tex/context/base/context.tex
 MTXrun | current version: 2010.06.23 12:45
 
 Maybe have you changed the way the versions are numbered, but I wanted to 
 make sure whether this is is normal or not.
 
 However I should say that everything works fine and as expected.
 
 With my best regards: OK
 
 Same here. Perhaps Mojca is busy and minimals didn't get updated.
 
 \edef\contextversion{2010.07.22 15:19}
 
 zip on the website, synced each hour on the garden
 
 Hans
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2010-07-22 Thread Otared Kavian
On 22 juil. 2010, at 17:14, Hans Hagen wrote:
 
 \edef\contextversion{2010.07.22 15:19}
 
 zip on the website, synced each hour on the garden
 
 Hans

Hi,

After downloading the zipped files and making the formats « manually », I do 
get the new version:
ConTeXt version 2010.07.22 15:19

So this means that something has changed in first-setup.sh, and for some reason 
context.tex (and maybe a few other files…) are not thoroughly synched with the 
zip file on the Pragma's website.

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] slightly OT: tablets

2010-07-20 Thread Otared Kavian
Hi Thomas,

Sometimes ago I asked a related question about TeX, iPhone and electronic 
books, as far as reading mathematical and technical papers are concerned. But 
now that the iPad is out your question makes even more sense. I don't have yet 
an iPad but found the following after reading your message: Ramón 
Figueroa-Centeno announces here
http://macosx-tex.576846.n2.nabble.com/LaTeX-on-the-iPad-using-TeXShop-Engines-td5075337.html

that he has written a few scripts, named LaTeXMe, to remotely typeset a TeX 
file and download the resulting PDF to his iPad. I think that it won't be 
difficult to modify the scripts in order to use ConTeXt and LuaTeX (somehow 
creating a ConTeXtMe script…). You can find Ramón Figueroa-Centeno's files here:
http://www2.hawaii.edu/~ramonf/TeXShop/LaTeXMe.zip

I must say that I have not tested the scripts but there is a PDF file 
explaining the principles behind.

In any case I think that at some point Apple needs to port some sort of Mac OS 
X on the iPad for the academia to be able to use the iPad as a computer for an 
everyday workflow.

Best regards: OK


On 19 juil. 2010, at 19:51, Thomas A. Schmitz wrote:

 Hi all,
 
 this is slightly OT, but maybe someone here has a helpful suggestion: since 
 the announcement of Apple's iPad, tablets have become the rage. I am somewhat 
 underwhelmed by this type of computer, but I see one area where it might be 
 interesting to have one of those babies, and that's presentations. What I'm 
 dreaming about: a tablet that would be able to show my manuscript (of course, 
 a pdf produced with ConTeXt) on it's own screen and drive a presentation 
 (again, pdf) on an external screen/digital projector. That way, I would need 
 only one technical device, no paper etc. for my presentations. I even called 
 Apple, but they said there is no app yet for doing this on an iPad. Do any of 
 you have any insights: is there anything on the market yet that would make 
 this possible? Is it at all feasible? Does it sound like a reasonable idea? 
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wrong upright Greek instead of Italic

2010-07-14 Thread Otared Kavian
Hi Khaled,

Do you use 
\setupmathematics[ucgreek=italic]
at the top of your file?
Here I do get italic Greek letters if I add the above command to your example.

Best regards: OK

On 14 juil. 2010, at 16:33, Khaled Hosny wrote:

 This gives me upright Greek, but I was expecting italic:
 
 \setupbodyfont[xits]
 \starttext
 $\mathit{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$
 
 $\mathbi{ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ}$
 \stoptext
 
 -- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] CSS glitch in the garden

2010-06-30 Thread Otared Kavian
Hello Hraban, Patrick,

I just checked the website
http://wiki.contextgarden.net/Main_Page
with Safari 5.0 and Mac OS X 10.6.3 and everything seems allright, as it is 
with FireFox.
Also using various different « User Agent » (in the « Develop » Menu) Safari 
5.0 works fine.

Best regards: OK

On 30 juin 2010, at 16:10, Patrick Gundlach wrote:

 Hello Hraban,
 
 the menu column appears below instead left of the content area.
 logo position is ok, x positions of the areas seem also ok, just the y 
 position of the menu area is wrong.
 
 I get the same results in Firefox and in Safari 5. So I cannot see the 
 problem. Perhaps you can send me some screenshots (off list)?
 
 Patrick
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Otared Kavian
Hi Wolfgang, Hraban,

Just testing the feature suggested by Wolfgang, I ran into a « fatal error » on 
one test file, which I could nail down to this minimal example:

\definecharacterkerning[extraspace][factor=.05]
\setcharacterkerning[extraspace]
\starttext
affine, fil,  
affligeant % -- afflig in this word causes problem
\stoptext

Somehow mkiv doesn't like the word «affligeant »… which, by the way, means 
distressing :-)

Best regards: OK

On 23 juin 2010, at 16:57, Wolfgang Schuster wrote:

 
 Am 23.06.2010 um 16:08 schrieb Henning Hraban Ramm hra...@fiee.net:
 
 Hi ho,
 
 I just noticed that Heros CN is missing in type-otf.mkiv. Would you
 add it please?
 The fonts are in the minimal distribution.
 
 Using it, I find it unnecessary tight - how can I space it a bit? (using 
 MkIV)
 I found \stretchednormalcase, but I'd like to enable it per-font.
 
 
 This is currently not possible but you can try this:
 
 \definecharacterkerning[extraspace][factor=.05]
 
 \setcharacterkerning[extraspace]
 
 \starttext
 ...
 \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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TeX Gyre Heros Condensed missing in typescript / letterspacing

2010-06-23 Thread Otared Kavian

On 23 juin 2010, at 19:55, Wolfgang Schuster wrote:
 […]
 Is it the the word affligeant or just the ffl ligature which causes the error 
 message

the combination affli creates the fatal error, while ffli does not.

 (can't check it at the moment) but extrakerning is just a workaround in this 
 case and problems are likely to be expected.
 

Don't worry, I wanted just to report a problem I observed: I don't think I am 
going to use this fancy feature very 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
___


[NTG-context] \setcharacterspacing[frenchpunctuation] in mkiv

2010-06-22 Thread Otared Kavian
Hi Hans, and all gurus,

I noticed that the mkiv command
\setcharacterspacing[frenchpunctuation] 
influences even the \type environment: is this behavior wanted or is it a side 
effect?
Have a look at the following example in which 
\type{http://wiki.contextgarden.net} results in a space between « http » and « 
:// » as if the \type command were ignored regarding spacing.

Best regards: OK
%%% french-punctuation.tex
\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]

\setupinteraction
  [state=start,color=darkgreen]

\useURL
[wiki]
[http://wiki.contextgarden.net/]
[]
[{\tt http://wiki.contextgarden.net/}]

\starttext
Here we are following the French rule of typesetting semicolumn: did you see?

However this rule should not be followed in \type{\type}\dots

\from[wiki]
\blank

\useURL{\type{http://wiki.contextgarden.net/Main_Page}}

\blank
\starttyping
http://wiki.contextgarden.net/Main_Page
\stoptyping

\blank
since otherwise the interaction in the latter example is broken. Indeed there 
should not be a space 
between \type{http} and \type{://}.
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setcharacterspacing[frenchpunctuation] in mkiv

2010-06-22 Thread Otared Kavian
Hi Peter,

Many thanks for your hint: indeed you had the solution!

Best regards: OK

On 22 juin 2010, at 19:18, Peter Münster wrote:
 
 Hello,
 
 I don't know, but I have these line in most of my environments:
 
 \setuptype[style={\setcharacterspacing[reset]\tt}]
 \setuptyping[style={\setcharacterspacing[reset]\tt}]
 \setupinteraction[style={\setcharacterspacing[reset]\tt}]
 
 Cheers, 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
___


[NTG-context] Broken description in mkiv

2010-06-19 Thread Otared Kavian
Hi Hans,

It seems that in the latest beta,
ConTeXt  ver: 2010.06.18 11:26 MKIV
the description environment is broken: the header does not change after the 
first invocation of the defined description: in the following minimal example 
the first invocation uses Lemma, and the second and third one remain with Lemma 
instead of Theorem or Corollary. However with mkii everything works fine.

Thanks for your attention and best regards: OK
 bug-description.tex
\definedescription[Proclaim][%
headstyle={\tfa\bi},
style=normal,
location=hanging,
width=broad,
grid={broad,high}
]

\starttext
\startProclaim{Lemma} 

This is a lemma.

\stopProclaim

\startProclaim{Theorem} 

This is a theorem.

\stopProclaim

\startProclaim{Corollary} 

This is a corollary.

\stopProclaim

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


<    5   6   7   8   9   10   11   12   13   >