[NTG-context] [OT] Twenty Questions for DEK

2014-05-21 Thread Philipp Gesang
http://www.informit.com/articles/article.aspx?p=2213858WT.mc_id=Author_Knuth_20Questions

Quote:

   “The people at MSP wrote special software that converts my TeX
source text into suitable input to other software that
creates pdf files.”

I wonder why using a TeX engine capable of producing PDF output
directly wasn’t an option.

Best,
Philipp



pgp2Ig_FAkMQK.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] [OT] Twenty Questions for DEK

2014-05-21 Thread Hans Hagen

On 5/21/2014 8:16 AM, Philipp Gesang wrote:

http://www.informit.com/articles/article.aspx?p=2213858WT.mc_id=Author_Knuth_20Questions

Quote:

“The people at MSP wrote special software that converts my TeX
 source text into suitable input to other software that
 creates pdf files.”

I wonder why using a TeX engine capable of producing PDF output
directly wasn’t an option.


Don't overestimate the large publishers. They often have no clue what 
interactive pdf is or what is needed to make it, and that it can be done 
easily. Also, as they have no rd, they seldom know that producing both 
an advanced screen pdf and printable one from the same source without 
adaption is an option. This apart from the fact that there is really 
nothing new happening: it's just that we now have devices that run on 
batteries longer (we made out first interactive docs 15-20 years ago and 
there were simply no (cheap) devices then. But the techniques for 
producing those docs (as well as the features) are mostly the same.


Things that are normal for us texies are alien for most publishers, also 
because they outsource these things. They are not aware of tex (maybe 
only know the name) and of what it can(not) do. A publisher who knows 
how to apply tex and friends has definitely an advantage but that 
demands a horizon different from stockholders.


In fact, awareness of pdf as option is (imo) mostly surfacing because 
html viewers opened their eyes. We can produce highly interactive 
documents but I still have to meet the first publishers who really wants 
them (given that they see it as option). It is not uncommon for 
publishers to waste many man years (hiring extra people) on getting 
stuff on the web using the same sources that are used to get the paper: 
paper becomes a side effect.


(This is also why I would not be surprised if within a decade those 
publishers will disappear and be replaced by smaller ones and/or self 
publishing, but that's another matter.)


Concerning DEK's books: given that the layout is kind of fixed (as Don 
puts a lot of admirable effort in the whole look and feel) I assume 
we're talking of interactive variants of the same layout. In that case 
it's a matter of adapting macros (not too hard, would even be fun to do) 
to get the interactivity in there. I'm pretty sure that Don knows well 
what happens in tex community (including recent developments like 
luatex) but that doesn't change the fact that in the end the publisher 
rules.


Maybe these e-books have some banding (like printing the user's name 
someplace) but that is also ancient trickery (which in my opinion is 
also a bad thing: imagine your paper books or music you buy being 
branded).


Hans

(I'm still waiting for 500+ dpi e-ink kind of devices as reading from a 
too bright lcd screen is no real option for me yet, apart from a bit of 
browsing.)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [OT] Twenty Questions for DEK

2014-05-21 Thread Hans Hagen

On 5/21/2014 8:16 AM, Philipp Gesang wrote:

http://www.informit.com/articles/article.aspx?p=2213858WT.mc_id=Author_Knuth_20Questions

Quote:

“The people at MSP wrote special software that converts my TeX
 source text into suitable input to other software that
 creates pdf files.”

I wonder why using a TeX engine capable of producing PDF output
directly wasn’t an option.


The part about geeks of 200 years ago is interesting. Also this:

local quote = [[
  I still think many years will have to go by before I
  would recommend that my own highly intelligent wife, son,
  and daughter should learn to program, much less that
  everybody else I know should do so.]]

local maybe = string.gsub(quote,program,TeX)

Who knows ...

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
___


Re: [NTG-context] [OT] Twenty Questions for DEK

2014-05-21 Thread Hans Hagen

On 5/21/2014 8:16 AM, Philipp Gesang wrote:

http://www.informit.com/articles/article.aspx?p=2213858WT.mc_id=Author_Knuth_20Questions

Quote:

“The people at MSP wrote special software that converts my TeX
 source text into suitable input to other software that
 creates pdf files.”

I wonder why using a TeX engine capable of producing PDF output
directly wasn’t an option.


Ok, I think this is what sums it:

quote: My principal goal was to make the books easily searchable—and 
that's a much more challenging problem than it seems, if you want to do 
it right. Secondarily, I wanted to let readers easily click on the 
number of any exercise or equation or illustration or table or 
algorithm, etc., and to jump to that exercise; also to jump readily 
between an exercise and its answer.


(1) The interactive bit is rather trivial: cross references, tocs and 
indices, linking answers and questions, are already generated so there 
one only needs to add some hyperlinking code (maybe some additional 
housekeeping if backlinks or in the case of indices linked backlinks are 
supported but it is probably kept simple in order not to spoil the look 
and feel.)


(2) The searching might be more complex as traditional 8 bit fonts are 
used in plain tex, so there is some tounicode magic needed (not too hard 
either, mostly housekeeping and careful checking) ... math can be 
somewhat complex there as not all is copyable, given that it's needed, 
but on the other hand, searching is also non trivial: does a reader 
search for unicode symbol math italic i or for just an i? Copying 
math demands a proper tounicode, but I bet no viewer can search for both 
kind of tagging at the same time (math alphabet stuff). Searching 
regular text of course is no issue.


(3) The question is: has more been added than just basic access as in 
books? Crosslinking books and so?


So, no rocket science, mostly careful keeping the original (not 
interfering with breaks and so) so that is probably where most of the 
work went into. If pdftex was used, one thing to keep in mind is that 
adding whatsits can interfere sometimes. This can be avoided by luatex 
but then one has to accept the fact that the output can differ (no lig 
recomposition), although that can be checked by diffing pdf's and making 
local exceptions. A nice challenge: kind of making an electronic 
facsimile i.e. don't touch (spoil) the original.


Hans

ps. An interesting audience, those asking the questions.

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


[NTG-context] Fwd: Oldstyle numbers

2014-05-21 Thread Werner Hintze
I’m new to ConText and so my question may be a stupid one. But I hope 
somebody can help me:


How can I activate »old style numbers« (Medievalziffern). I thought, 
it should work like this:


   \setupbodyfont[palatino, 10pt]
   \definefontfeature [default] [default] [onum=yes]

But this doesn’t work. What do I have to do?

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

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

2014-05-21 Thread Werner Hintze

And just another strange question:

Is there any command like \blindtext (or \blinddocument) in LaTeX? I 
just try to figure out how Kontext works, and so it would ne fine to 
have some texte every time available. (I can put some text from 
everywhere, but the blindtext package is much more comfortable.)


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

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


Re: [NTG-context] Blindtext

2014-05-21 Thread Hans Hagen

On 5/21/2014 10:59 AM, Werner Hintze wrote:

And just another strange question:

Is there any command like \blindtext (or \blinddocument) in LaTeX? I
just try to figure out how Kontext works, and so it would ne fine to
have some texte every time available. (I can put some text from
everywhere, but the blindtext package is much more comfortable.)


What is \blindtext ?

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
___


Re: [NTG-context] Fwd: Oldstyle numbers

2014-05-21 Thread Hans Hagen

On 5/21/2014 10:58 AM, Werner Hintze wrote:

I’m new to ConText and so my question may be a stupid one. But I hope
somebody can help me:

How can I activate »old style numbers« (Medievalziffern). I thought, it
should work like this:

\setupbodyfont[palatino, 10pt]
\definefontfeature [default] [default] [onum=yes]

But this doesn’t work. What do I have to do?


first redefine the feature, then load the bodyfont, so swap these commands

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
___

Re: [NTG-context] Blindtext

2014-05-21 Thread Werner Hintze
It’ a command which inserts some nonsense text where I put it. I Latex 
I can chose how many paragraphs I want to have and can even setuo a 
whole document with chapters, sections etc.


It’s fine for Testung Layouts and font settings.

On 21 May 2014, at 11:04, Hans Hagen wrote:


On 5/21/2014 10:59 AM, Werner Hintze wrote:

And just another strange question:

Is there any command like \blindtext (or \blinddocument) in LaTeX? I
just try to figure out how Kontext works, and so it would ne fine to
have some texte every time available. (I can put some text from
everywhere, but the blindtext package is much more comfortable.)


What is \blindtext ?

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] Oldstyle numbers

2014-05-21 Thread Werner Hintze

Wow! Thank you. Now I unterstand.


On 21 May 2014, at 11:06, Hans Hagen wrote:


On 5/21/2014 10:58 AM, Werner Hintze wrote:
I’m new to ConText and so my question may be a stupid one. But I 
hope

somebody can help me:

How can I activate »old style numbers« (Medievalziffern). I 
thought, it

should work like this:

\setupbodyfont[palatino, 10pt]
\definefontfeature [default] [default] [onum=yes]

But this doesn’t work. What do I have to do?


first redefine the feature, then load the bodyfont, so swap these 
commands


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

2014-05-21 Thread Hans Hagen

On 5/21/2014 11:08 AM, Werner Hintze wrote:

It’ a command which inserts some nonsense text where I put it. I Latex I
can chose how many paragraphs I want to have and can even setuo a whole
document with chapters, sections etc.

It’s fine for Testung Layouts and font settings.


\usemodule[visual]

\starttext

some \fakewords{4}{8} here

\fakelines{3}{5}

\stoptext

or \usemodule[ipsum]

you can run :

context --global m-ipsum.mkiv

to get an idea about that one



On 21 May 2014, at 11:04, Hans Hagen wrote:

On 5/21/2014 10:59 AM, Werner Hintze wrote:

And just another strange question:

Is there any command like \blindtext (or \blinddocument) in LaTeX? I
just try to figure out how Kontext works, and so it would ne fine to
have some texte every time available. (I can put some text from
everywhere, but the blindtext package is much more comfortable.)

What is \blindtext ?

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
http://www.pragma-ade.com


| www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Blindtext

2014-05-21 Thread Werner Hintze
Aha. Thank you. I unterstand that there is a solution, but I don’t 
unterstand it.


Anyway: There are lots of more important things in ConTeXt I don’t 
understand yet – and may be never will unterstand. (For example how to 
use Fonts.)


Thanks for your help and have a nice day!

On 21 May 2014, at 11:29, Hans Hagen wrote:


On 5/21/2014 11:08 AM, Werner Hintze wrote:
It’ a command which inserts some nonsense text where I put it. I 
Latex I
can chose how many paragraphs I want to have and can even setuo a 
whole

document with chapters, sections etc.

It’s fine for Testung Layouts and font settings.


\usemodule[visual]

\starttext

some \fakewords{4}{8} here

\fakelines{3}{5}

\stoptext

or \usemodule[ipsum]

you can run :

context --global m-ipsum.mkiv

to get an idea about that one



On 21 May 2014, at 11:04, Hans Hagen wrote:

On 5/21/2014 10:59 AM, Werner Hintze wrote:

And just another strange question:

Is there any command like \blindtext (or \blinddocument) in 
LaTeX? I
just try to figure out how Kontext works, and so it would ne fine 
to

have some texte every time available. (I can put some text from
everywhere, but the blindtext package is much more comfortable.)

What is \blindtext ?

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
http://www.pragma-ade.com


| www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/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
___




--

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

2014-05-21 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 11:39 AM, Werner Hintze w.hin...@posteo.eu wrote:
 Aha. Thank you. I unterstand that there is a solution, but I don’t
 unterstand it.

 Anyway: There are lots of more important things in ConTeXt I don’t
 understand yet – and may be never will unterstand. (For example how to use
 Fonts.)

 Thanks for your help and have a nice day!

In the m-ipsum.mkiv there is an example:

\usemodule[ipsum]

\starttext

\ipsum[alternative=paragraph,before=\blank,after=\blank,language=la]


\ipsum[alternative=lines,n=2,right=\par,before=\blank,after=\blank,language=la]

\ipsum[alternative=lines,n=random,before=\blank,after=\blank,language=la]


\ipsum[alternative=lines,before=\startitemize,after=\stopitemize,left=\startitem,right=\stopitem,language=la]

\ipsum[alternative=words,left=(,right=),inbetween=\space,language=la]

\page

\defineipsum
  [ward]
  [file=ward,
   before=\blank,
   after=\blank]

\defineipsum
  [ward:itemize]
  [ward]
  [alternative=lines,
   before={\startitemize[packed]},
   after=\stopitemize,
   left=\startitem,
   right=\stopitem]

\defineipsum
  [ward:title]
  [ward]
  [alternative=lines,
   n=random]

\subject{\directipsum{ward:title}}

\ipsum[ward]
\ipsum[ward:itemize]

\stoptext

Try to compile that. Maybe it helps enough so you can use it as you want?

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

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

[NTG-context] stretching/expanding Greek characters

2014-05-21 Thread Alan Bowen
I am trying to typeset some compendia found in a medieval Greek manuscript
and would like to stretch or expand several characters in my font. So far,
I have mostly found information about stretching the inter-word spacing
(tracking). There is, however, discussion in a few places of what I want in
Arabic but I am at a loss to see how I might adapt this to Greek.

If this is even possible, I would be grateful for any suggestions or
pointers.

My Greek font, defined as a fallback, is IFAO Grec Unicode (regular only).

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
___

[NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi all,

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

http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.

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

Thanks in advance for any insight.
Best regards: OK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Setting the style and conversion of the reference numbers for the \in command

2014-05-21 Thread Maggyero
I would like to change the style and conversion of reference numbers for
the \in{myprefix}{mysuffix}[mylabel] command. Is there a
\setupreference[numberstyle=, numberconversion=] command to do that?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Wolfgang Schuster

Am 21.05.2014 um 14:15 schrieb Otared Kavian ota...@gmail.com:

 Hi all,
 
 It seems that the rsfs fonts (Ralph Smith’s Formal Script fonts) do not work: 
 the procedure explained at the page
 
   http://wiki.contextgarden.net/rsfs
 
 works fine with mkii, but not in mkiv.
 
 Is it possible to use the capabilities of simplefonts, which are now included 
 in mkiv, to use this script font in place of the usual \cal when using LM 
 fonts (or even Palatino)?

No, simplefonts won’t help you because the fallback mechanism for math works 
only with another opentype math font and truetype/opentype text fonts.

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
___


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

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

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

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

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

[NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice Couvreur
Hi,
As PSTricks (which I prefer) is not yet well integrated, I decided to learn
Metapost starting with a simple code.

\starttext
\startMPcode
numeric xmin, xmax, ymin, ymax;
xmin := -2.5; xmax := 2.5; ymax :=2.5 ;ymin:=-2.5; u := 2cm;
vardef f(expr x) = -x*x+1 enddef;
xinc := 0.001;
path pts_f;
pts_f := (xmin,f(xmin))*u
for x=xmin+xinc step xinc until xmax+xinc:
.. (x,f(x))*u
endfor;
path axe_x,axe_y;
path screen;
screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle;
axe_x = (xmin,0)*u -- (xmax,0)*u;
axe_y = (0,ymin)*u -- (0,ymax)*u;
drawarrow axe_x;
drawarrow axe_y;
draw pts_f withpen pencircle scaled 1;
clip currentpicture to screen;
\stopMPcode
\stoptext

Are there any routines with Metafun to improve this code?
thank you,
Fabrice
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] MathML in ConTeXt conforming to MathML3?

2014-05-21 Thread Meer, H. van der
Does the MathML in ConText conforms to the MathML3 specification? (see 
http://www.w3.org/TR/MathML3/chapter5.html)

I find that with \usemodule[mathml]
(1) semanticsannotation 
encoding=application/x-texTeX-code/annotation/semantics does not 
typesets, but 
(2) semanticsannotation encoding=texTeX-code/annotation/semantics 
does.

As I understand from the specification, (1) should have been correct, but does 
not processes the TeX and the attribute application/x-tex seems not to be 
recognized. Does ConTeXt-MathML deviates in this respect from the current 
standard? Or do I miss some important fact?

Hans van der Meer



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

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 4:43 PM, Otared Kavian ota...@gmail.com wrote:
 Thanks for the answer.
 Is there another script font for LM, or for Palatino, which looks a little
 bit more readable than \cal in those fonts, and which can be used with the
 simplefonts mechanism?

 Best regards: OK

Personally, I think that the \cal from Latin Modern is very readable
(thus, I don't know what you are after). I tried some others, maybe
you like one of them (I hope that the line breaks in the email will be
OK):

\definefallbackfamily[mainface][math][TeX Gyre Termes
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][TeX Gyre Pagella
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][Asana
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
\definefontfamily [mainface] [rm] [Latin Modern]
\definefontfamily [mainface] [math] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext
${\cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\stoptext

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

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


Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Hans Hagen

On 5/21/2014 7:55 PM, Fabrice Couvreur wrote:

Hi,
As PSTricks (which I prefer) is not yet well integrated, I decided to
learn Metapost starting with a simple code.

\starttext
\startMPcode
numeric xmin, xmax, ymin, ymax;
xmin := -2.5; xmax := 2.5; ymax :=2.5 ;ymin:=-2.5; u := 2cm;
vardef f(expr x) = -x*x+1 enddef;
xinc := 0.001;
path pts_f;
pts_f := (xmin,f(xmin))*u
for x=xmin+xinc step xinc until xmax+xinc:
.. (x,f(x))*u
endfor;
path axe_x,axe_y;
path screen;
screen=(xmin,ymin)*u--(xmax,ymin)*u--(xmax,ymax)*u--(xmin,ymax)*u--cycle;
axe_x = (xmin,0)*u -- (xmax,0)*u;
axe_y = (0,ymin)*u -- (0,ymax)*u;
drawarrow axe_x;
drawarrow axe_y;
draw pts_f withpen pencircle scaled 1;
clip currentpicture to screen;
\stopMPcode
\stoptext

Are there any routines with Metafun to improve this code?


define 'improve' .. anyway:

\starttext
\startMPpage
numeric xmin, xmax, ymin, ymax;
xmin := -2.5; xmax := 2.5; ymax :=2.5 ;ymin:=-2.5; u := 2cm;
pickup pencircle scaled 1pt ;
drawarrow ((xmin,0) -- (xmax,0)) scaled u;
drawarrow ((0,ymin) -- (0,ymax)) scaled u;
draw tightfunction (x, -x*x+1, xmin, xmax, (xmax-xmin)/10) 
scaled u;
setbounds currentpicture to boundingbox (((xmin,ymin) -- 
(xmax,ymax)) scaled u);

\stopMPpage
\stoptext

I'm sure that Alan can tell you how to use the new built-in 
interpolators,  their pros and cons in this case.


Hans

ps. A step of 0.001 is not needed here and gives a pretty large path.

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi Mikael,

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

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

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

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

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

\setupbodyfont[mainface]

\starttext
${\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}$

${\cal abcdefghijklmnopqrstuvwxyz}$

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

\stoptext
 end example

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

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

Best regards: OK

On 21 May 2014, at 20:10, Mikael P. Sundqvist mic...@gmail.com wrote:

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

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

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Mikael P. Sundqvist
On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:
 Since other people may benefit from it, I would like to update the wiki on 
 the matter. But actually I do not understand what does the « range » mean in 
 the example
 
 [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 Could you please give a brief explanation so that I don’t write nonsense on 
 the wiki?

 Best regards: OK


I'm glad it helped. The range gives the unicode slots where these
letters live.

Hans: Maybe this is a stupid suggestion, but could it be possible to have

\definefontfamilypreset [math:lowercasecalligraphic]
as range={1D4B6-1D4CF,212F,210A,2134}
and
\definefontfamilypreset [math:uppercasecalligraphic]
as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
?

Otared, If what I write above makes sense, then the setup will be the
more readable

\definefallbackfamily[mainface][math][Asana
Math][range={lowercasecalligraphic,uppercasecalligraphic}]
\definefontfamily [mainface] [rm] [palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]

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

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

Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Hans Hagen

On 5/21/2014 8:10 PM, Mikael P. Sundqvist wrote:

On Wed, May 21, 2014 at 4:43 PM, Otared Kavian ota...@gmail.com wrote:

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

Best regards: OK


Personally, I think that the \cal from Latin Modern is very readable
(thus, I don't know what you are after). I tried some others, maybe
you like one of them (I hope that the line breaks in the email will be
OK):

\definefallbackfamily[mainface][math][TeX Gyre Termes
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][TeX Gyre Pagella
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
%\definefallbackfamily[mainface][math][Asana
Math][range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
\definefontfamily [mainface] [rm] [Latin Modern]
\definefontfamily [mainface] [math] [Latin Modern Math]

\setupbodyfont[mainface]

\starttext
${\cal abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ}$
\stoptext


you can run s-math-repertoire.mkiv and compare shapes

(you might want to comment some at the end)

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
___


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Wolfgang Schuster

Am 21.05.2014 um 21:10 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:
 Since other people may benefit from it, I would like to update the wiki on 
 the matter. But actually I do not understand what does the « range » mean in 
 the example

 [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 Could you please give a brief explanation so that I don’t write nonsense on 
 the wiki?
 
 Best regards: OK
 
 
 I'm glad it helped. The range gives the unicode slots where these
 letters live.
 
 Hans: Maybe this is a stupid suggestion, but could it be possible to have
 
 \definefontfamilypreset [math:lowercasecalligraphic]
 as range={1D4B6-1D4CF,212F,210A,2134}
 and
 \definefontfamilypreset [math:uppercasecalligraphic]
 as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
 ?
 
 Otared, If what I write above makes sense, then the setup will be the
 more readable
 
 \definefallbackfamily[mainface][math][Asana
 Math][range={lowercasecalligraphic,uppercasecalligraphic}]
 \definefontfamily [mainface] [rm] [palatino]
 \definefontfamily [mainface] [math] [Latin Modern Math]
 \setupbodyfont[mainface]

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

The presets are only needed when you want to use a text font as fallback 
because you have to set more values.

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

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


Re: [NTG-context] MathML in ConTeXt conforming to MathML3?

2014-05-21 Thread Hans Hagen

On 5/21/2014 8:09 PM, Meer, H. van der wrote:

Does the MathML in ConText conforms to the MathML3 specification? (see 
http://www.w3.org/TR/MathML3/chapter5.html)

I find that with \usemodule[mathml]
(1) semanticsannotation 
encoding=application/x-texTeX-code/annotation/semantics does not typesets, but
(2) semanticsannotation encoding=texTeX-code/annotation/semantics 
does.

As I understand from the specification, (1) should have been correct, but does not 
processes the TeX and the attribute application/x-tex seems not to be 
recognized. Does ConTeXt-MathML deviates in this respect from the current standard? Or do 
I miss some important fact?


I can add that encoding spec but you post to make a complete minimal 
example first.


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
___


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian
Hi Mikael,

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

http://wiki.contextgarden.net/math_calligraphic

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

On 21 May 2014, at 21:10, Mikael P. Sundqvist mic...@gmail.com wrote:

 On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:
 Since other people may benefit from it, I would like to update the wiki on 
 the matter. But actually I do not understand what does the « range » mean in 
 the example

 [range={1D49C-1D4CF,212C,2130,2131,210B,2110,2112,2133,211B,212F,210A,2134}]
 Could you please give a brief explanation so that I don’t write nonsense on 
 the wiki?
 
 Best regards: OK
 
 
 I'm glad it helped. The range gives the unicode slots where these
 letters live.
 
 Hans: Maybe this is a stupid suggestion, but could it be possible to have
 
 \definefontfamilypreset [math:lowercasecalligraphic]
 as range={1D4B6-1D4CF,212F,210A,2134}
 and
 \definefontfamilypreset [math:uppercasecalligraphic]
 as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
 ?
 
 Otared, If what I write above makes sense, then the setup will be the
 more readable
 
 \definefallbackfamily[mainface][math][Asana
 Math][range={lowercasecalligraphic,uppercasecalligraphic}]
 \definefontfamily [mainface] [rm] [palatino]
 \definefontfamily [mainface] [math] [Latin Modern Math]
 \setupbodyfont[mainface]
 
 /Mikael
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] MathML in ConTeXt conforming to MathML3?

2014-05-21 Thread Meer, H. van der
Examples below, the two examples change between tex and application/x-tex 
in the annotation.
Hans van der Meer




On 21 May 2014, at 22:14, Hans Hagen pra...@wxs.nlmailto:pra...@wxs.nl 
wrote:

On 5/21/2014 8:09 PM, Meer, H. van der wrote:
Does the MathML in ConText conforms to the MathML3 specification? (see 
http://www.w3.org/TR/MathML3/chapter5.html)

I find that with \usemodule[mathml]
(1) semanticsannotation 
encoding=application/x-texTeX-code/annotation/semantics does not 
typesets, but
(2) semanticsannotation encoding=texTeX-code/annotation/semantics 
does.

As I understand from the specification, (1) should have been correct, but does 
not processes the TeX and the attribute application/x-tex seems not to be 
recognized. Does ConTeXt-MathML deviates in this respect from the current 
standard? Or do I miss some important fact?

I can add that encoding spec but you post to make a complete minimal example 
first.

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.comhttp://www.pragma-ade.com/
| 
www.pragma-pod.nlhttp://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.nlmailto:ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



mathml-fail.pdf
Description: mathml-fail.pdf


mathml-fail.pdf
Description: mathml-fail.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
___

Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 21:54, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

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

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

http://wiki.contextgarden.net/math_calligraphic

accordingly.
Best regards: OK

 
 The presets are only needed when you want to use a text font as fallback 
 because you have to set more values.
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] Metapost and Metafun

2014-05-21 Thread Fabrice

Hi Hans,
Thank you for the code that is cleaner and certainly less long!
Fabrice

PS : What do you mean by:

define 'improve' .. anyway:



A step of 0.001 is not needed here and gives a*pretty large path*.


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

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

Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Hans Hagen

On 5/21/2014 10:38 PM, Otared Kavian wrote:

Hi Mikael,

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

http://wiki.contextgarden.net/math_calligraphic

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


However this does not work properly in mkiv ...

this suggests that it could work in mkiv but math in mkiv has a 
completely different implementation so it isn't even supposed to work


maybe it's better to talk about mkiv as being the standard way and mkii 
being the 'old way' or so



On 21 May 2014, at 21:10, Mikael P. Sundqvist mic...@gmail.com wrote:


On Wed, May 21, 2014 at 9:01 PM, Otared Kavian ota...@gmail.com wrote:

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

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

Best regards: OK



I'm glad it helped. The range gives the unicode slots where these
letters live.

Hans: Maybe this is a stupid suggestion, but could it be possible to have

\definefontfamilypreset [math:lowercasecalligraphic]
as range={1D4B6-1D4CF,212F,210A,2134}
and
\definefontfamilypreset [math:uppercasecalligraphic]
as range={1D49C-1D4B5,212C,2130,2131,210B,2110,2112,2133,211B}
?

Otared, If what I write above makes sense, then the setup will be the
more readable

\definefallbackfamily[mainface][math][Asana
Math][range={lowercasecalligraphic,uppercasecalligraphic}]
\definefontfamily [mainface] [rm] [palatino]
\definefontfamily [mainface] [math] [Latin Modern Math]
\setupbodyfont[mainface]

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

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


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

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

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

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

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

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Aditya Mahajan

On Wed, 21 May 2014, Otared Kavian wrote:


Hi all,

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

http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.


I do not have the time to look into this in detail. But hopefully the 
hint below will help you get started.


If I understand you correctly, you are looking for a caligraphic font that 
is more script-y than the default \cal.


From what I understand, such glyphs are present as stylistic alternatives 
in unicode math fonts. See for example this thread


http://www.ntg.nl/pipermail/ntg-context/2010/050885.html

(I remember that there was another thread along these lines, but I cannot 
find it right now).


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
___

Re: [NTG-context] MathML in ConTeXt conforming to MathML3?

2014-05-21 Thread Hans Hagen

On 5/21/2014 10:43 PM, Meer, H. van der wrote:

Examples below, the two examples change between tex and
application/x-tex in the annotation.
Hans van der Meer




On 21 May 2014, at 22:14, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:


On 5/21/2014 8:09 PM, Meer, H. van der wrote:

Does the MathML in ConText conforms to the MathML3 specification?
(see http://www.w3.org/TR/MathML3/chapter5.html)

I find that with \usemodule[mathml]
(1)semanticsannotation
encoding=application/x-texTeX-code/annotation/semantics does
not typesets, but
(2)semanticsannotation
encoding=texTeX-code/annotation/semantics does.


you can patch x-math.mkiv:

\xmldoifelse {#1} 
{.[oneof(@encoding,'TeX','tex','application/x-tex','TEX','ConTeXt','context','CONTEXT','ctx')]} 
{


as that seems to work okay


As I understand from the specification, (1) should have been correct,
but does not processes the TeX and the attribute application/x-tex
seems not to be recognized. Does ConTeXt-MathML deviates in this
respect from the current standard? Or do I miss some important fact?


I can add that encoding spec but you post to make a complete minimal
example first.

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
http://www.pragma-ade.com/
|www.pragma-pod.nl
http://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 mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Otared Kavian

On 21 May 2014, at 23:08, Hans Hagen pra...@wxs.nl wrote:

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

You are right: I changed that page accordingly.

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

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


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Hans Hagen

On 5/21/2014 11:11 PM, Otared Kavian wrote:


On 21 May 2014, at 21:39, Hans Hagen pra...@wxs.nl wrote:


you can run s-math-repertoire.mkiv and compare shapes

(you might want to comment some at the end)


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


indeed it takes some time to finish (also because it's interactive) but 
you can gain some 15% by using luajittex


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
___


Re: [NTG-context] ConTeXt mkiv and rsfs fonts

2014-05-21 Thread Aditya Mahajan

On Wed, 21 May 2014, Aditya Mahajan wrote:


On Wed, 21 May 2014, Otared Kavian wrote:


Hi all,

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


http://wiki.contextgarden.net/rsfs

works fine with mkii, but not in mkiv.


I do not have the time to look into this in detail. But hopefully the hint 
below will help you get started.


If I understand you correctly, you are looking for a caligraphic font that is 
more script-y than the default \cal.


From what I understand, such glyphs are present as stylistic alternatives in 
unicode math fonts. See for example this thread


http://www.ntg.nl/pipermail/ntg-context/2010/050885.html

(I remember that there was another thread along these lines, but I cannot 
find it right now).


Found it: http://www.ntg.nl/pipermail/ntg-context/2011/061665.html

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

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

Re: [NTG-context] MathML in ConTeXt conforming to MathML3?

2014-05-21 Thread Meer, H. van der
Thanks. And added to some future beta? I would be obliged.
Hans van der Meer

 
 you can patch x-math.mkiv:
 
\xmldoifelse {#1} 
 {.[oneof(@encoding,'TeX','tex','application/x-tex','TEX','ConTeXt','context','CONTEXT','ctx')]}
  {
 
 as that seems to work okay
 


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

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