[NTG-context] context MathML2PDF

2011-12-30 Thread Mohamed Gad
Dear sir,

I really appreciate that you did the tool of converting MathML to PDF, but
when I tried to convert MathML to pdf found problem in the following:

mml:math
mml:mtable columnlines=solid rowlines=solid
mml:mtr
mml:mtd
mml:mn1/mml:mn
/mml:mtd
mml:mtd
mml:mn2/mml:mn
/mml:mtd
/mml:mtr
mml:mtr
mml:mtd
mml:mn3/mml:mn
/mml:mtd
mml:mtd
mml:mn4/mml:mn
/mml:mtd
/mml:mtr
/mml:mtable
/mml:math

the column line and row line is vanished in pdf. I think you didn't insert
this case.

Thanks


-- 
Muhammad Gad
Production Developer
Hindawi Publishing Corporation
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Broken Nightly Chokes on \rotate

2011-12-30 Thread Hans Hagen

On 30-12-2011 08:40, Wolfgang Schuster wrote:


Am 30.12.2011 um 05:55 schrieb Kip Warner:


Hey folks,

The nightly for Dec 29th seems to choke on \rotate. I have a statement:

\midaligned{\rotate[rotation=42]{\color[red] \bft THIS IS A DRAFT!}}

ConTeXt emits the following:

! Undefined control sequence.
\dodorotatenextbox ... \@@rorotation \@@layerxpos
  \zeropoint
\@@layerypos \z...
\dorotatenextbox ...rotatenextbox \@@rorotation #2
  \fi \boxcursor
\flushnextb...
\boxes_with_next_box ...x \@@rorotation \!!counta
  \egroup
l.22 ...THIS IS A DRAFT!}
  }
?

I'm fairly sure it isn't the \midaligned because I have other statements
it compiles fine.



Do you have a minimal example because this works (when I remove the not 
existing \bft command):

\starttext
\midaligned{\rotate[rotation=42]{\color[red]THIS IS A DRAFT!}}
\stoptext


it is indeed an issue as those temp vars are gone ... i redid the rotate 
last night and will update later today


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
___


[NTG-context] \starttexdefinition and @ in macroname in mkvi

2011-12-30 Thread Aditya Mahajan

Hi,

@, !, _ etc.\ are not recognized as part of the macro name when using MkVI named
arguments with \starttexdefinition. For example, consider the following example:

\unprotect
\starttexdefinition test@again #name
  Name is #name
\stoptexdefinition
\protect

Processing this file using

mtxrun --script interface --preprocess test.mkvi --force

shows that #name is not recognized as a parameter. The preprocessing works if I
remove the @ from the macro name.

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] how to handle the fonts whose name contains a blank space?

2011-12-30 Thread Wolfgang Schuster

Am 30.12.2011 um 02:52 schrieb dalyoung:

 Dear all,
 
 Sometime ago, I asked the same question and got replies.
 However, I couldn't make it work and I didn't try since then.
 
 Now, I am asking the same question again with a hope.
 
 I have several Korean fonts whose name contains a blank space.
 
 For example, in KoPubBatang_Pro family, there are 3 fonts:
KoPubBatang_Pro Light (font file name is KoPubBatang_Pro Light.otf)
KoPubBatang_Pro Medium (font file name is KoPubBatang_Pro Medium.otf)
KoPubBatang_Pro Bold (font file name is KoPubBatang_Pro Bold.otf)
 
 You can download the fonts from here:
 http://www.mcst.go.kr/web/notifyCourt/notice/mctNoticeView.jsp?pSeq=6870
 
 
 Here is a sample code:
 
 \definefont[test][KoPubBatang_Pro Light.otf]

Remove the space:

\definefont[test][file:kopubbatangprolight*default]

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] \starttexdefinition and @ in macroname in mkvi

2011-12-30 Thread Hans Hagen

On 30-12-2011 10:43, Aditya Mahajan wrote:

Hi,

@, !, _ etc.\ are not recognized as part of the macro name when using
MkVI named
arguments with \starttexdefinition. For example, consider the following
example:

\unprotect
\starttexdefinition test@again #name
Name is #name
\stoptexdefinition
\protect

Processing this file using

mtxrun --script interface --preprocess test.mkvi --force

shows that #name is not recognized as a parameter. The preprocessing
works if I
remove the @ from the macro name.


ok, supported now, but of course it will only work out in unprotected mode

-
  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] bug with --purgeall?

2011-12-30 Thread Hans Hagen

On 29-12-2011 21:35, Pablo Rodríguez wrote:


I'm not sure whether I got it right: do you use context --purgeall
instead of the Windows version of rm *.log *.tuc (and other file
extensions)? (Sorry, I'm not proficient at Windows shell :-().


indeed, which is quite ok as often tex jobs run on their own path

also, there is --purge (without all) that can be used


I guess that context --purgeall * would be a better choice, since the
user explicitly asks to remove all files with the proper extensions.


even then it would be --pattern=* as you don't want shell expansion 
messing things up



Otherwise one might accidentally (as I did yesterday) end deleting log
files totally unrelated to ConTeXt or even TeX, such as log files,


sure, so don't use --purgeall then; it's quite unlikely that I will 
change this behaviour if only because I use it all over the place in scripts


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] Is there a replacement for \tracechinesetrue in mkiv?

2011-12-30 Thread Zhichu Chen
Well, that's just perfect, only it's not what I'm looking for :( What
I need is a fully customable way to debug some of my inputs rather
than everything as a font feature.

I found a cleaner way now: to use the whatsit node, I hope it's
useful for someone so I paste the function here:


local function trace_boundingbox (head)
for n in node.traverse (head) do
if n.id == node.id ('glyph') then
  local ht,wd,dp = n.height,n.width,n.depth
  local htsp,wdsp,dpsp = ht/65536,wd/65536,dp/65536
  local w = node.new(whatsit,pdf_literal)
  w.data = q 1 0 1 RG 1 0 1 rg 0.1 w 0  .. -dpsp ..  m 0 
.. htsp ..  l  .. -wdsp ..   .. htsp ..  l  .. -wdsp ..   ..
-dpsp ..  l s  0 1 0 RG 0 1 0 rg 0.1 w [2 1] 0 d 0 0 m  .. -wdsp ..
 0 l S Q
  node.insert_after (head, n, w)
end
end
end




On Thu, Dec 29, 2011 at 10:18 PM, Hans Hagen pra...@wxs.nl wrote:
 On 29-12-2011 04:22, Zhichu Chen wrote:

 All right, after some readings, I came out with a node solution. The
 major idea is listed below and works just fine. n from node_traverse
 (head) and n.id==node.id ('glyph')

 My question is: is there a better way? Because these codes are so
 dirty. I prefer mplib but I have no clue how to do that.


 Using mp would be pretty complex too and all solutions are rather
 inefficient (bloat the pdf) .. attached another solution (I'll add it to the
 next beta).


 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
 -



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

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

[NTG-context] Bug in \date (experimental branch)

2011-12-30 Thread Andreas Harder
Hi Hans,

a day is prefixed to every day-number.

\starttext
  \date[d=29,m=12,y=2011] \currentdate
\stoptext

outputs

December day29, 2011 December day30, 2011


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

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


[NTG-context] skipping in xml

2011-12-30 Thread Hans van der Meer
The following code does not seem to work i xmlsetups. Its goal is to let part 
of the input disappear.

\startxmlsetups pqr:initial
  \def\hidestart#1\hidestop{}
  \hidestart abc\hidestop  %  not working
\stopxmlsetups

Why is the argument not eaten until the \hidestop, but only one letter (the a) 
consumed. See the error message:
Use of \hidestart doesn't match its definition.
\@@su:xam:initial ...1\hidestop {}\fi \hidestart a
  bc\hidestop 

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] Broken Nightly Chokes on \rotate

2011-12-30 Thread Kip Warner
On Fri, 2011-12-30 at 12:16 +0100, Hans Hagen wrote:
 it is indeed an issue as those temp vars are gone ... i redid the rotate 
 last night and will update later today

You know, sometimes I feel guilty pointing out how this or that is
broken, but I suppose its constructive since the book I am writing
really seems to be stress testing the nightlies and helping us find lots
of bugs.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Broken Nightly Chokes on \rotate

2011-12-30 Thread Hans Hagen

On 30-12-2011 21:26, Kip Warner wrote:

On Fri, 2011-12-30 at 12:16 +0100, Hans Hagen wrote:

it is indeed an issue as those temp vars are gone ... i redid the rotate
last night and will update later today


You know, sometimes I feel guilty pointing out how this or that is
broken, but I suppose its constructive since the book I am writing
really seems to be stress testing the nightlies and helping us find lots
of bugs.


don't feel too guilty .. we need testing in order to get things right .. 
currently I'm cleaning up, changing namespaces, getting rid of old code, 
trying to make code more readable and do an occasional speedup and 
therefore bugs can creep in (often easy to correct as it concerns typos 
or forgotten things


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] Broken Nightly Chokes on \rotate

2011-12-30 Thread Kip Warner
On Fri, 2011-12-30 at 23:13 +0100, Hans Hagen wrote:
 don't feel too guilty .. we need testing in order to get things right .. 
 currently I'm cleaning up, changing namespaces, getting rid of old code, 
 trying to make code more readable and do an occasional speedup and 
 therefore bugs can creep in (often easy to correct as it concerns typos 
 or forgotten things

Yup. You've built such a brilliant piece of software, it's so big and
complex that 3rd party testing is necessary because you'll never be able
to find everything yourself.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] Nightly Ubuntu ConTeXt / LuaTeX Packages

2011-12-30 Thread Kip Warner
Hey list,

It might be useful to put on the wiki a link to Adam Reviczky's PPA
(personal package archive) which contains precompiled Ubuntu packages
for ConTeXt and LuaTeX nightlies. I've been using them for several
months now. He was very generous to prepare them.

ConTeXt: https://launchpad.net/~reviczky/+archive/context-daily
LuaTeX: https://launchpad.net/~reviczky/+archive/luatex-daily

You'll probably get more people able to test the latest revisions with a
link on the wiki.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] how to handle the fonts whose name contains a blank space?

2011-12-30 Thread dalyoung

Dear Wolfgang,

 
 Remove the space:
 
 \definefont[test][file:kopubbatangprolight*default]
 

\definefont[test][file:KoPubBatang_ProMedium*default]

It didn't work at the first try, and I realized that I didn't reformat ConTeXt 
after installing this new fonts. After reformatting, ConTeXt found the fonts 
and worked fine.

Thank you and Happy New Year!

Best regards,

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

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


Re: [NTG-context] Bug in \date (experimental branch)

2011-12-30 Thread Hans Hagen

On 30-12-2011 19:58, Andreas Harder wrote:

\starttext
   \date[d=29,m=12,y=2011] \currentdate
\stoptext


in core-con.mkiv:

\letvalue{\??conversionarguments3}\system_checked_conversion


--

-
  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] Dec 30 Broken Nightly

2011-12-30 Thread Kip Warner
Hey list, well, probably Hans, today's nightly chokes on my book again.
Yesterday's worked fine.

$ context Source/Handbook.tex --purgeresult

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf Source/Handbook.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2011122302 (rev 4358) 
 \write18 enabled.

resolversresolving  loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(Source/Handbook.tex

ConTeXt  ver: 2011.12.30 17:38 MKIV  fmt: 2011.12.30  int:
english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   Handbook.top loaded
(Handbook.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv)
(/usr/share/texmf/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded
(Source/Environment.tex
resolversmodules  loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv
+ /usr/share/texmf/tex/context/base/x-mathml.lua)
resolversmodules  loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading  ConTeXt User Module / Simplefonts
+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua)
! Too many }'s.
\framed_text_stop_depth_correction ...rut \egroup 
  \forgetall \vskip
-\linehe...
\framed_text_stop ...d_text_stop_depth_correction 
  \stopboxedcontent
\stopcol...
l.154 \stopframedtext
 
? 


-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

2011-12-30 Thread Jan Heinen


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

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