Re: [NTG-context] Finding Minion and Myriad

2011-09-30 Thread luigi scarso
On Thu, Sep 29, 2011 at 10:29 PM, john Culleton j...@wexfordpress.com wrote:
 On Thu, 29 Sep 2011 21:07:08 +0200
 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:


 Am 29.09.2011 um 21:07 schrieb john Culleton:

  OK. Can you give me the url that points to the latest Context suite?
  The offerings I see are dated 2010 etc. I run Slackware Linux 13.37.

 http://wiki.contextgarden.net/ConTeXt_Standalone

 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
 ___

 Excellent. Now if there is a way to make Myriad the font of choice for
 sans-serif I will be deliriously happy. And I promise not to bother the
 list for a while.

 --
 John Culleton
 Wexford Press
 Create Book Covers with Scribus
 http://www.booklocker.com/books/4055.html
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!

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

An important note:
if you install you fonts under texmf-project
e.g
tex/texmf-project/fonts/adobe/minion
tex/texmf-project/fonts/adobe/myriad

then every time you update the suite, the fonts stay here.

If you put your fonts under
tex/texmf/fonts/opentype
i.e
tex/texmf/fonts/opentype/adobe/minion
as I suggested on a prev. email
then every time you update the suite, the fonts *will be deleted* .

This is because the way operate rsynch is to synch the folders but
not tex/texmf-project


On the other side, the locations are good if you will not update the
suite --- that to say,
if you have  another project just download another suite .
So we can have for example
project1 = /opt/luatex/suite-2011-09-20-prj1
project2 = /opt/luatex/suite-2011-09-30-prj2
and so on
or
project1 = /opt/luatex/suite-2011-09-20/tex/texmf-project/prj1
project2 = /opt/luatex/suite-2011-09-20/tex/texmf-project/prj2





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

Re: [NTG-context] [OT] intelligent commas in math (in LaTeX)

2011-09-30 Thread luigi scarso
On Thu, Sep 29, 2011 at 6:15 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Mon, 26 Sep 2011, Mojca Miklavec wrote:

 http://tug.org/pracjourn/2011-1/beccari.html

 Short summary: This allows the comma in  $1, 2, 3$ to be have as punctuation
 comma (similar to \setupmathematics[autopunct=no]) and
 $1,23$ to behave as decimal comma (similar to
 \setupmatematics[autopunct=yes]). Since it is targeting pdftex and xetex
 engines, it makes , an active char in mathmode and redefines it as a macro
 that uses look ahead to check if the next token is a digit.

 In principle a cleaner implementation is possible in luatex (without using
 active characters), but I am not completely sure about this. It will be
 better to handle this as part of \mnum macro.

 Aditya
Hm, can you explain this a bit ?

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

[NTG-context] Font selection ranges

2011-09-30 Thread Hans Aberg
I want to define an environment for computer code including non-ASCII 
characters, using Xits or STIXGeneral except in the ASCII range, where some 
monospace font like Courier should be used.

If I do:
\setupbodyfont[xits,10pt]
\definetyping[code]
\setuptyping[code][margin=yes]

\starttext
  \startcode
 for ∀i, j ∈ I
   do a(i, j) ≔ b(i, j)
  \stopcode
\stoptext

Then the math characters won't show. They will show using
  \setuptyping[code][style=normal,margin=yes]
but then the ASCII range isn't monospace.

In LaTeX, one can use \setmathfont[range={0001-...,}] to set ranges for fonts, 
but I could not find that for ConTeXt.

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
___

[NTG-context] no os numbers in lucida?

2011-09-30 Thread Meer, H. van der
I am fairly sure the Lucida font has oldstyle numbers. But I don't get them 
with the \os macro. Here two minimal examples. The one with lmodern does the 
oldstyle numbers, the one with lucida not. I would be obliged for a solution.

Hans van der Meer

\setuppapersize[A6][A6]
\setupbodyfont[lucida] % the other example has [lmodern]
\starttext
\type{\setupbodyfont[lucida]}\crlf
numbers {\rm 1234567890} in rm\crlf
numbers {\os 1234567890} in os\par
\stoptext



ostest-lucida.pdf
Description: ostest-lucida.pdf


ostest-lmodern.pdf
Description: ostest-lmodern.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] Font selection ranges

2011-09-30 Thread luigi scarso
On Thu, Sep 29, 2011 at 9:58 PM, Hans Aberg haber...@telia.com wrote:
 I want to define an environment for computer code including non-ASCII 
 characters, using Xits or STIXGeneral except in the ASCII range, where some 
 monospace font like Courier should be used.

 If I do:
 \setupbodyfont[xits,10pt]
 \definetyping[code]
 \setuptyping[code][margin=yes]

 \starttext
  \startcode
  for ∀i, j ∈ I
   do a(i, j) ≔ b(i, j)
  \stopcode
 \stoptext

 Then the math characters won't show. They will show using
  \setuptyping[code][style=normal,margin=yes]
 but then the ASCII range isn't monospace.
It's not a solution of your problem, but this work

\setupbodyfont[dejavu]
\definetyping[code]
\setuptyping[code][margin=yes]

\starttext
 \startcode
 for ∀ i,j ∈ I
  do a(i,j) ≔ b(i,j)
 \stopcode
\stoptext


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

Re: [NTG-context] Font selection ranges

2011-09-30 Thread Wolfgang Schuster

Am 29.09.2011 um 21:58 schrieb Hans Aberg:

 I want to define an environment for computer code including non-ASCII 
 characters, using Xits or STIXGeneral except in the ASCII range, where some 
 monospace font like Courier should be used.
 
 If I do:
 \setupbodyfont[xits,10pt]
 \definetyping[code]
 \setuptyping[code][margin=yes]
 
 \starttext
  \startcode
 for ∀i, j ∈ I
   do a(i, j) ≔ b(i, j)
  \stopcode
 \stoptext
 
 Then the math characters won't show. They will show using
  \setuptyping[code][style=normal,margin=yes]
 but then the ASCII range isn't monospace.


You can use the lines environment when you don’t need syntax highlighting: 

\setupbodyfont[xits,10pt]

\definelines
  [code]
  [space=yes,
   style=mono,
   before=\startnarrower,
   after=\stopnarrower]

\starttext \showframe

\startcode
for $∀$i, j $∈$ I
  do a(i, j) $≔$ b(i, j)
\stopcode

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

Re: [NTG-context] no os numbers in lucida?

2011-09-30 Thread Mojca Miklavec
On Fri, Sep 30, 2011 at 10:27, Meer, H. van der wrote:
 I am fairly sure the Lucida font has oldstyle numbers. But I don't get them 
 with the \os macro. Here two minimal examples. The one with lmodern does the 
 oldstyle numbers, the one with lucida not. I would be obliged for a solution.

Currently Lucida in MKIV is a virtual fonts that is composed out of
existing pieces from 256-character Type1 fonts.

Your code works in MKII, but in MKIV one would need a tiny bit of
trickery to enable an additional OpenType feature in a virtual font.

I know what is wrong, but I have no idea how to fix it. I assume that
one has to create
fonts/fea/context/lucida.fea
and implement the old stlyle numberal font feature there + make sure
that glyphs from the right pfb files are added to the virual font, to
some slots in private area. Including proper renaming.

(The only alternative is to wait for OpenType variant of Lucida.)

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
___


Re: [NTG-context] [OT] intelligent commas in math (in LaTeX)

2011-09-30 Thread Philipp A.
that would be very useful for sets and german decimals: $x = 1,33$ vs. $x ∈
{1, 2, 3, 4}$
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2011-09-30 Thread Philipp Gesang
Hi Hans,

I’d like to ask if there is any update on this:

On 2011-09-04 22:31, Hans Hagen wrote:
 On 4-9-2011 19:46, Mojca Miklavec wrote:
 mtxrun would currently find it under scripts/context/lua/third/rst because of
  LUAINPUTS   = .;$TEXINPUTS;$TEXMF/scripts/context/lua//,
 but Hans probably didn't think of where third-party module authors
 shipping scripts, so there is no special place for them.
... /
 I suggest to wait for an answer from Hans.
 
 scripts/context/lua/third

Especially this matter:

 Sounds ok to me but we might think of a way to avoid clashes with
 names, like mtx-t-rst.lua and we can adapt the lookup to try to
 resolve in such away that the t- is not too much in the way.

This doesn’t work, yet (The “t-”-infix is not, as with \usemodule,
truncated). As three of my modules come with an mtx-script I just
wanted to know if this will be implemented and, if yes, when we
can expect it. (For me, there is no hurry as I’m quite busy
otherwise. But inclusion into TL is stalled because of this for
the time being.)

Thanks in advance
Philipp


 In order to use /context/lua/base I need to adapt some fallback
 lookups so let's not do that now; next year we can consider.
 
 context/lua/mtxrun.lua
 context/lua/base/mtx-context.lua
 context/lua/third/
 
 The main reason for using the mtx- prefix is that I don't want to
 end up in discussions concerning other scripts in tex live so
 hopefully no one outside the context audience will ever use the mtx-
 prefix. Also, some of the mtx-*.lua files are going to be loadable
 modules.
 
 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
 -

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgp5Y7YP58cNt.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] errors with simpleslides (style-specific)

2011-09-30 Thread Thomas A. Schmitz

On 09/27/2011 11:40 PM, Ondřej Hošek wrote:

sh first-setup.sh --context=beta --fonts=all --modules=all --goodies=all

Just did a clean installation using this command; the problem's still
there. I should probably mention that I only tried mkiv.

Cheers,
~~ Ondra


Ondra,

Aditya and I just rolled back these experimental changes (which 
shouldn't have been in the released version anyway) and uploaded a new 
version on the garden. Can you try this one? It should take care of the 
problems you mentioned.


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
___

[NTG-context] HTML export

2011-09-30 Thread Charles

Hi,

I am new to Context (coming from Latex) and very much like it: very nice 
job!


I would like to export my document to HTML. I am only interested by the 
basic formatting (like fonts, size...) and sections. I carefully read 
this page:

http://wiki.contextgarden.net/epub

As far as I understood and seen the font and style switching (like \it) 
are ignored. First question: is it possible to avoid that behavior?


If not, it brings me to my second question: I am using the bib module to 
manage a bibtex bibliography. The formatting of the reference section is 
done internally and include some style (italic) which isn't present in 
the XHTML output. How can have it present somehow?


Thanks

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

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


Re: [NTG-context] HTML export

2011-09-30 Thread Wolfgang Schuster

Am 30.09.2011 um 14:29 schrieb Charles:

 Hi,
 
 I am new to Context (coming from Latex) and very much like it: very nice job!
 
 I would like to export my document to HTML. I am only interested by the basic 
 formatting (like fonts, size...) and sections. I carefully read this page:
 http://wiki.contextgarden.net/epub
 
 As far as I understood and seen the font and style switching (like \it) are 
 ignored. First question: is it possible to avoid that behavior?

\setupbackend[export=yes]

\definehighlight[strong][style=bold]
\definehighlight[emph]  [style=italic]

\starttext
text \strong{text} text \emph{text} text
\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
___


[NTG-context] Footnote numbering pro page

2011-09-30 Thread Cecil Westerhof
A footnote is placed (at least the way I use it) on the same page as it is
referred. But the numbering of the footnotes is continues. How can I make
the footnote numbering reset to one at every page?

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

Re: [NTG-context] Footnote numbering pro page

2011-09-30 Thread Vladimir Lomov
Hello,
** Cecil Westerhof [2011-09-30 15:21:54 +0200]:

 A footnote is placed (at least the way I use it) on the same page as it is
 referred. But the numbering of the footnotes is continues. How can I make
 the footnote numbering reset to one at every page?
Does
\setupfootnotes[way=bypage]
work?

P.S. I found this on wiki.contextgarden.net. If this doesn't work wiki
should be updated.

---
WBR, Vladimir Lomov

-- 
Be sociable. Speak to the person next to you in the unemployment line tomorrow.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] HTML export

2011-09-30 Thread Henning Hraban Ramm

Am 2011-09-30 um 14:29 schrieb Charles:

I would like to export my document to HTML. I am only interested by  
the basic formatting (like fonts, size...) and sections.


ConTeXt’s HTML export is not meant to be presentationally equivalent  
to the PDF, but semantically equivalent to the TeX source.


Fonts, sizes etc. have nothing to do with (semantic) structure and  
therefore don’t belong into HTML, but in CSS.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

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

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


Re: [NTG-context] HTML export

2011-09-30 Thread Charles
OK. Then how to make the journal (for example) in the bibliography to be 
in an element of the structure rather than only some style ?


Thanks

Charles

Le 30/09/2011 15:42, Henning Hraban Ramm a écrit :

Am 2011-09-30 um 14:29 schrieb Charles:


I would like to export my document to HTML. I am only interested by
the basic formatting (like fonts, size...) and sections.


ConTeXt’s HTML export is not meant to be presentationally equivalent to
the PDF, but semantically equivalent to the TeX source.

Fonts, sizes etc. have nothing to do with (semantic) structure and
therefore don’t belong into HTML, but in CSS.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___

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

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/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] errors with simpleslides (style-specific)

2011-09-30 Thread Ondřej Hošek
On Fri, Sep 30, 2011 at 12:07, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:
 Aditya and I just rolled back these experimental changes (which shouldn't
 have been in the released version anyway) and uploaded a new version on the
 garden. Can you try this one? It should take care of the problems you
 mentioned.

The new version (t-simpleslides-2011.09.29.zip from
modules.contextgarden.net) indeed took care of the problems.

Thanks a lot!

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

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


Re: [NTG-context] Footnote numbering pro page

2011-09-30 Thread Khaled Hosny
On Fri, Sep 30, 2011 at 10:27:53PM +0900, Vladimir Lomov wrote:
 Hello,
 ** Cecil Westerhof [2011-09-30 15:21:54 +0200]:
 
  A footnote is placed (at least the way I use it) on the same page as it is
  referred. But the numbering of the footnotes is continues. How can I make
  the footnote numbering reset to one at every page?
 Does
 \setupfootnotes[way=bypage]
 work?

It does not work in MkIV, I got no answer so far to my query about it a
while ago.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Font selection ranges

2011-09-30 Thread Khaled Hosny
On Thu, Sep 29, 2011 at 09:58:07PM +0200, Hans Aberg wrote:
 I want to define an environment for computer code including non-ASCII
 characters, using Xits or STIXGeneral except in the ASCII range, where
 some monospace font like Courier should be used.
 
 If I do:
 \setupbodyfont[xits,10pt]
 \definetyping[code]
 \setuptyping[code][margin=yes]
 
 \starttext
   \startcode
  for ∀i, j ∈ I
do a(i, j) ≔ b(i, j)
   \stopcode
 \stoptext
 
 Then the math characters won't show. They will show using
   \setuptyping[code][style=normal,margin=yes]
 but then the ASCII range isn't monospace.
 
 In LaTeX, one can use \setmathfont[range={0001-...,}] to set ranges
 for fonts, but I could not find that for ConTeXt.

You can use the fallback feature, but then you've to define your own
typescripts, see font-col.mkiv for examples.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] no os numbers in lucida?

2011-09-30 Thread Hans Hagen

On 30-9-2011 10:40, Mojca Miklavec wrote:


(The only alternative is to wait for OpenType variant of Lucida.)


indeed, it makes no sense to waste time on type 1 lucida's in mkiv

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] Footnote numbering pro page

2011-09-30 Thread Wolfgang Schuster

Am 30.09.2011 um 16:45 schrieb Khaled Hosny:

 On Fri, Sep 30, 2011 at 10:27:53PM +0900, Vladimir Lomov wrote:
 Hello,
 ** Cecil Westerhof [2011-09-30 15:21:54 +0200]:
 
 A footnote is placed (at least the way I use it) on the same page as it is
 referred. But the numbering of the footnotes is continues. How can I make
 the footnote numbering reset to one at every page?
 Does
 \setupfootnotes[way=bypage]
 work?
 
 It does not work in MkIV, I got no answer so far to my query about it a
 while ago.

core-two.lua:

-function commands.findtwopassdata(id)   local r = find (id)   if r then 
context(r) end end
+function commands.findtwopassdata(id,n) local r = find (id,n) if r then 
context(r) end end

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] handling fonts with missing math

2011-09-30 Thread Mojca Miklavec
On Tue, Sep 27, 2011 at 19:57, Hans Hagen pra...@wxs.nl wrote:
 On 27-9-2011 19:52, Mojca Miklavec wrote:

 On Tue, Sep 27, 2011 at 19:44, Hans Hagen wrote:

 there is some fall back mechanism that does that but as soon as one
 defined
 his/her own typescript that can interfere

 How should we define trypescripts to avoid interference then?

 A typeface definition normally has a matching monospace and math definition
 (so: ss + tt + mm or rm + tt + mm or in some cases rm + ss + tt + mm). Of
 course some relative scaling has to be considered then.

Do you want to say that we need an explicit definition of LM Math?

Just curious: how much information is missing/how much would would it
be if we would want to create a virtual math font by combining LM +
populating italic/bold/bold italic latin and greek math alphabets from
text font? Would that look horrible because of lack of information
about glyph metrics?

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
___


Re: [NTG-context] [OT] intelligent commas in math (in LaTeX)

2011-09-30 Thread Aditya Mahajan

In principle a cleaner implementation is possible in luatex (without using
active characters), but I am not completely sure about this. It will be
better to handle this as part of \mnum macro.


Hm, can you explain this a bit ?


Currently ConTeXt already checks if '.' is part of a complete number or 
not as part of the export macros. For example:


\m{x + 1.25y = 3.5}

exports as

  m:math 
display=inlinem:mrowm:mi푥/m:mim:mo+/m:mom:mn1.25/m:mnm:mi푦/m:mim:mo=/m:mom:mn3.5/m:mn/m:mrow/m:math


Notice that 1.25 is part of a single m:mn tag.

In contrast, if you use comma as a math delimiter, then the export 
function does not recognize the number correctly.


\m{x + 1,25y = 3.5}

exports as

  m:math 
display=inlinem:mrowm:mi푥/m:mim:mo+/m:mom:mn1/m:mnm:mo,/m:mom:mn25/m:mnm:mi푦/m:mim:mo=/m:mom:mn3/m:mnm:mo,/m:mom:mn5/m:mn/m:mrow/m:math


However, we do have a \mn macro (math number) to tag numbers. So you can 
type


\m{x + \mn{1,25}y = \mn{3,5}}

which exports as

  m:math 
display=inlinem:mrowm:mi푥/m:mim:mo+/m:mom:mn1,25/m:mnm:mi푦/m:mim:mo=/m:mom:mn3,5/m:mn/m:mrow/m:math



So, if we want to recognize ',' as a decimal separator, two solutions are 
possible in MkIV. The first is to build upon the existing export code that 
recognizes '.' as a decimal separator (to figure out the contents of the 
mn tag) to also recognize ',' as a decimal separator;


The drawback of such an approach is that if you are in the habit of not 
adding a space after a comma, for example writing Let $\naturalnumbers$ 
denote the set $\{1,2,3,\dots\}$ of natural numbers... then you will get 
wrong output.


So, an alternative option is to ask the user to tag all numbers with \mn. 
Then, the \mn{...} macro can redefine the comma so that the spaces around 
it match its use as a decimal separator.


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
___