[NTG-context] two bugs in the latest beta of context mkiv

2012-12-03 Thread Jannik Voges
Hello,


I want to report two bugs in the latest beta of context mkiv.

When I  typeset the following example, I get the sectionnumber 1 for the second 
subsection. I would expect the sectionnumber 2.0.1 for that subsection. This 
problem (wrong sectionnumber) also appears in the table of contents.

\starttext
\chapter{A Chapter}
\section{A Section}
\subsection{A Subsection}

\chapter{Another Chapter}
\subsection{Another Subsection}
\stoptext

In my attempt to circumvent this problem I tried to write my own table of 
contents (the number in the headlines were easy to fix) with 
\writetolist[toc]{number}{text}. But \writetolist seems to be broken, because 
the sectionnumber is missing. As an minimal example you can use the example 
from the context-wiki:

\definelist[Reprints][criterium=all]

\starttext
  \section{Sec 1}
  \writetolist[Reprints]{1.}{List entry A}%
  \writetolist[Reprints]{}{With no number}%
  \subsection{Subsec 1}
  \writebetweenlist[Reprints]{\hrule}
  \writetolist[Reprints]{2.}{List entry B}%
  \completelist[Reprints]
\stoptext

As you see, the horizontal line appears at the top of the list and not after 
the second entry. So there seems to be an additional bug.


Sincerely

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

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

2012-12-03 Thread Taco Hoekwater

On 12/03/2012 10:34 AM, Peter Fiets wrote:

http://laptop-gadgets.com/wp-content/themes/twentyeleven/google.html


That subscriber is going away now ...
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Which version to use for MathML?

2012-12-03 Thread Hans Hagen

On 12/3/2012 3:46 AM, Chen Shen wrote:




I tried a few mathml examples with 2012.05.30 and the latest
beta (test
script attached).

The 20120530 version fails with eqn1, which uses presentation
mathml,
but works with eqn using content mathml.
The latest beta generates doesn't work with either equations.


real example needed ...

Sorry I forgot to attach the example. Here it is.


I see a lot of mathml related changes recently, with the file
x-mathml.mkiv come and go away.


what do you mesn with come and go away?

According to the git log, the x-mathml.mkiv file was created and then
removed several times, since 20120530.
regards,


as we use that module ourselves it get occasionally improved (the last 
update involved mml 3, the openmath variant, which used to have its own 
module)


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] Problematic Nightly (2012.12.01 13:03)

2012-12-03 Thread Hans Hagen

On 12/3/2012 7:46 AM, Sietse Brouwer wrote:

Hi Kip,

I had the same problem. This is the advice I got (in an unrelated
off-list e-mail):

Sietse wrote:

! Math error: parameter \Umathquad\displaystyle is not set.


Aditya wrote:

That usually means that the math font is not set.


And indeed the math font is not set, due to a filename error. Apply
the change below, and math will compile again.

% type-imp-latinmodern.mkiv
 \starttypescript [\s!math] [modern,latin-modern]
 \loadfontgoodies[lm]
-\definefontsynonym [LMMathRoman-Regular]
[\v!file:lmodernmath-regular.otf]
[\s!features=\s!math\mathsizesuffix,\s!goodies=lm]
-\definefontsynonym [LMMathRoman-Bold]
[\v!file:lmodernmath-regular.otf]
[\s!features=\s!math\mathsizesuffix,\s!goodies=lm]
+\definefontsynonym [LMMathRoman-Regular]
[\v!file:lmodern-math.otf]
[\s!features=\s!math\mathsizesuffix,\s!goodies=lm]
+\definefontsynonym [LMMathRoman-Bold]
[\v!file:lmodern-math.otf]
[\s!features=\s!math\mathsizesuffix,\s!goodies=lm]
 \stoptypescript


Don't confuse these names. The name LMMathRoman-Regular is remapped onto 
a virtual instance which happens in the lm-math.lfg file.



Probably related: recent changes to math font filenames.
http://archive.contextgarden.net/message/20121130.022201.993bea83.en.html


That concerns the native unicode variant, and dealing with old filenames 
is handled in lm.lfg:


filenames = { -- for a while:
[lmodernmath-regular.otf] = { lmmath-regular.otf },
},

So, we ask for

\starttypescript [\s!math] [modern,latin-modern]
\loadfontgoodies[lm]
\definefontsynonym [LMMathRoman-Regular] 
[\v!file:lmodernmath-regular.otf] 
[\s!features=\s!math\mathsizesuffix,\s!goodies=lm]
\definefontsynonym [LMMathRoman-Bold] 
[\v!file:lmodernmath-regular.otf] 
[\s!features=\s!math\mathsizesuffix,\s!goodies=lm]

\stoptypescript

and the otf file is not found, one of the alternatives is looked for.

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] Problematic Nightly (2012.12.01 13:03)

2012-12-03 Thread Mojca Miklavec
On Mon, Dec 3, 2012 at 11:09 AM, Hans Hagen wrote:
 On 12/3/2012 7:46 AM, Sietse Brouwer wrote:

 Don't confuse these names. The name LMMathRoman-Regular is remapped onto a
 virtual instance which happens in the lm-math.lfg file.

 Probably related: recent changes to math font filenames.
 http://archive.contextgarden.net/message/20121130.022201.993bea83.en.html

 That concerns the native unicode variant, and dealing with old filenames is
 handled in lm.lfg:

 filenames = { -- for a while:
 [lmodernmath-regular.otf] = { lmmath-regular.otf },
 },

But the problem is that the file is lmodern-math.otf and not
lmmath-regular.otf.

I'm syncing the font from

http://tug.org/svn/texlive/trunk/Master/texmf-dist/fonts/opentype/public/lm-math/

I admit that I'm still confused since I'm not sure about the latest
font version  location.

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] Problematic Nightly (2012.12.01 13:03)

2012-12-03 Thread Hans Hagen

On 12/3/2012 11:21 AM, Mojca Miklavec wrote:

On Mon, Dec 3, 2012 at 11:09 AM, Hans Hagen wrote:

On 12/3/2012 7:46 AM, Sietse Brouwer wrote:

Don't confuse these names. The name LMMathRoman-Regular is remapped onto a
virtual instance which happens in the lm-math.lfg file.


Probably related: recent changes to math font filenames.
http://archive.contextgarden.net/message/20121130.022201.993bea83.en.html


That concerns the native unicode variant, and dealing with old filenames is
handled in lm.lfg:

 filenames = { -- for a while:
 [lmodernmath-regular.otf] = { lmmath-regular.otf },
 },


But the problem is that the file is lmodern-math.otf and not
lmmath-regular.otf.

I'm syncing the font from
 
http://tug.org/svn/texlive/trunk/Master/texmf-dist/fonts/opentype/public/lm-math/

I admit that I'm still confused since I'm not sure about the latest
font version  location.


ok, I'll add it:

filenames = { -- for a while:
[lmodernmath-regular.otf] = { lmodern-math.otf, 
lmmath-regular.otf },

},


-
  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] Copy pages with keeping original page sizes

2012-12-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

this is just an announcement and maybe a proposal.

I needed to copy all pages from a .pdf file into the document.

The pages to be copied were a mix of A4 and A3 pages, with portrait and 
landscape orientation.

Also, I needed to suppress current header  footer and to use the whole page 
area, like with \setuplayout[page].

I tried various combination of \filterpages, \copypages and \externalfigure - 
nothing the the whole desired effect.

Finally, I created the following snippet:


\startluacode
  function copyPages(fn)
local fig = figures.push{name = fn}

figures.identify()
figures.check()

local n = fig.used.pages

figures.pop()

for i = 1, n do
  context.startTEXpage()
context.externalfigure({fn}, {page = i})
  context.stopTEXpage()
end
  end
\stopluacode

\starttext
  %\externalfigure[tt.pdf][page=3]

  \directlua{copyPages(tt.pdf)}
\stoptext


It seems to work;

but it might be better to add an option to an existing command, e.g. \copypages (e.g. 
preservecurrentpagesize and/or autosize and/or fullpage) to achieve the 
same effect.

Best regards,

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

T.mkiv
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \not\in doesn't work properly

2012-12-03 Thread Hans Hagen

On 11/30/2012 10:26 AM, Jeong Dal wrote:

Hi,

After updating ConTeXt, math command '\not\in' is not shown properly.

For example,

$a \not\eq b$ is good.

but $a \not\in A$ shows two symbols separately.


I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are

This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english


I assume that you use lm ... before I start looking into it I'd like to 
know Khaleds point of view on this.


Hans


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

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


Re: [NTG-context] \not\in doesn't work properly

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

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

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

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

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

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

and the PDF output is attached to my previous message.

Best regards: OK

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

 On 11/30/2012 10:26 AM, Jeong Dal wrote:
 Hi,
 
 After updating ConTeXt, math command '\not\in' is not shown properly.
 
 For example,
 
 $a \not\eq b$ is good.
 
 but $a \not\in A$ shows two symbols separately.
 
 
 I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are
 
 This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
 ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english
 
 I assume that you use lm ... before I start looking into it I'd like to know 
 Khaleds point of view on this.
 
 Hans
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


Re: [NTG-context] \not\in doesn't work properly

2012-12-03 Thread Hans Hagen

On 12/3/2012 10:26 PM, Otared Kavian wrote:

Hi Hans, Hi Jeong Dal,

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


indeed, so thi sis why we need to know what the official lm behaviour 
should be so that - if lm is wrong - we can communicate it to the 
lm/gyre team


it is unlikely that i will repair this in context if it's a bug in the font

(it could be that the lm unicode math font is currently modelled after 
tex and not cf cambria)


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

2012-12-03 Thread Jeong Dal
Dear Hans,

I thought that it is not delivered to the list because I didn't see it, but you 
read the mail.

I also found that it is already reported by Otared before.
I checked the  latest beta, ConTeXt ver: 2012.12.03 20:57 MKIV, and it is fixed.

Thank you for your concern.

Best regards,

Dalyoung


2012. 12. 4., 오전 5:07, Hans Hagen pra...@wxs.nl 작성:

 On 11/30/2012 10:26 AM, Jeong Dal wrote:
 Hi,
 
 After updating ConTeXt, math command '\not\in' is not shown properly.
 
 For example,
 
 $a \not\eq b$ is good.
 
 but $a \not\in A$ shows two symbols separately.
 
 
 I am using Mac OS X 10.8 and the versions of LuaTex and ConTeXt are
 
 This is LuaTeX, Version beta-0.70.2-2012052309 (TeX Live 2012)
 ConTeXt ver: 2012.11.23 17:35 MKIV fmt: 2012.11.26 int: english/english
 
 I assume that you use lm ... before I start looking into it I'd like to know 
 Khaleds point of view on this.
 
 Hans
 
 
 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
 -

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

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