Re: [NTG-context] reStructuredText module

2013-03-14 Thread Keith J. Schultz
Hi All,

following this thread and with my beginners knowledge of
ConTeXt, I would say that div or container from RST should
be mapped to a combination in ConTeXt. 
Though I do admit that I have not looked into combinations
yet.

regards
Keith.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] [***SPAM***] Some guidance please to get Asian Character

2013-03-14 Thread hwitloc

Wolfgang,
   thanks so much for your resonse.  It's content led to me to a solution, both 
the demonstration code and importantly the note about using MKIV.   Since 
texexec is the only thing mentioned in the ConTEXt the manual, and in other 
places I've read that MKIV is the latest, I wrongly assumed that texexec was 
running MKIV.   When trying to compile the source I keep seeing mkii comments 
in the output and then read up and found out that texexec is for mkii and 
context is for mkiv.  I was also under the impression that texexec was a 
supserset  of context and was a script that ran context, since it mentioned 
two ways to run contxt and that texexec script handled mutliple passes etc..  
  After learning I retried the example code and it now works, which is very 
good.

Thank You.



Wolfgang Schuster wolfgang.schus...@gmail.com wrote:
 Am 11.03.2013 um 14:22 schrieb hwit...@gmail.com:
 
  
  I am trying to get Japanese character text in a document, but I'm having 
  problems.
  I am invoking context like this:
  
  texexec --xtx --pdf test-jp.tex
  
  Below is the context macro source file and below that the compilation 
  output from ConTeXt
  %
  % Simple test file.
  %
  \enableregime[utf-8]
  \mainlanguage[ja]
  \usemodule[japanese]
  \usemodule[simplefonts]
  
  \starttext
  Hello, World! 
  世界、今日は!
  \stoptext
 
 I suggest to use MkIV instead of MkII because it makes it easier to select a 
 font.
 
 \mainlanguage[ja]
 
 \usemodule[simplefonts]
 
 \setmainfont[Meiryo] % replace Meiryo with a font available on your system
 
 \setscript[nihongo]
 
 \starttext
 Hello, World! 
 世界、今日は!
 \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] bold symbols in formula don't work

2013-03-14 Thread Hans Hagen

On 3/14/2013 1:14 AM, Jonathan Barchi wrote:

For what it's worth, that example compiled properly for me (with bold
where it should be) using beta 0.60 build 2013.03.11 00:17


The current context will only work with a luatex 0.75+ so what is 0.60 
here?



Was this bug already fixed in that beta build?


Indeed. There is also some speedup e.g. in logging (pending further 
speedup in the engine, which makes a difference when using the windows 
console that has a high update rate which is not that nice for 
one-by-one char tex output, esp when running rdp on a headless server).


Hans

btw, luatex/mkiv is in many cases now faster than pdftex/mkii

-
  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] Bug in \start (Re: reStructuredText module)

2013-03-14 Thread Aditya Mahajan
Reposting this, as I think that it was missed in the previous thread. It 
is still present in the current beta.


On Tue, 12 Mar 2013, Aditya Mahajan wrote:


@Hans, there is a bug in core-sys.mkiv: There is a missing \expandafter, and
currentstartstop should be changed to m_syst_start_stop.

\def\syst_start_yes[#1]%
 {\edef\m_syst_start_stop{#1}%
  \ifx\m_syst_start_stop\empty
\let\syst_stop_indeed\donothing
  \else\ifcsname\e!start\m_syst_start_stop\endcsname

\expandafter\let\expandafter\syst_stop_indeed\csname\e!stop\m_syst_start_stop\endcsname

\csname\e!start\m_syst_start_stop\expandafter\expandafter\expandafter\endcsname
  \else
\let\syst_stop_indeed\donothing
  \fi\fi}

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] Bug in \start (Re: reStructuredText module)

2013-03-14 Thread Hans Hagen

On 3/14/2013 5:02 PM, Aditya Mahajan wrote:

Reposting this, as I think that it was missed in the previous thread. It
is still present in the current beta.

On Tue, 12 Mar 2013, Aditya Mahajan wrote:


@Hans, there is a bug in core-sys.mkiv: There is a missing
\expandafter, and
currentstartstop should be changed to m_syst_start_stop.

\def\syst_start_yes[#1]%
 {\edef\m_syst_start_stop{#1}%
  \ifx\m_syst_start_stop\empty
\let\syst_stop_indeed\donothing
  \else\ifcsname\e!start\m_syst_start_stop\endcsname

\expandafter\let\expandafter\syst_stop_indeed\csname\e!stop\m_syst_start_stop\endcsname


\csname\e!start\m_syst_start_stop\expandafter\expandafter\expandafter\endcsname

  \else
\let\syst_stop_indeed\donothing
  \fi\fi}


you can check again

-
  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] reStructuredText module

2013-03-14 Thread Philipp Gesang
···date: 2013-03-12, Tuesday···from: Aditya Mahajan···

 On Tue, 12 Mar 2013, Philipp Gesang wrote:
 
 ···date: 2013-03-12, Tuesday···from: Aditya Mahajan···
 
 On Tue, 12 Mar 2013, Philipp Gesang wrote:
 
 A better way to handle this is to provide macros \startRSTcontainer
 ... \stopRSTcontainer and translate the above to
 
 I considered adding a generator \defineRSTcontainer with the
 usual interface (e.g. [command=\framed,frame=on]). This won’t
 work because the output is supposed to be a self-contained
 document. The goal is for the output to consist of ordinary
 Context macros only so it can be imported without loading further
 code. (I’m undecided regarding the requirement of the “\RST...”
 prefix, though.)
 
 Personally, I think that it is reasonable to expect the users to
 import a module.
 
 Honestly, I have no idea. Depending on the style sheet a div can
 be a float or aligned or have a shaded background. The current
 approach leaves the implementation to the user.
 
 Another option is to change the generated output to
 
 \start[xyzzy]
 
 \stop
 
 When the environment xyzzy exists, this is (supposed to be, see
 below) equivalent to
 
 \startxyzzy
 
 \stopxyzzy
 
 otherwise, this is equivalent to
 
 \bgroup
 
 \egroup

Now that it’s fixed: Thanks for the pointer. I’ve been using
\start...\stop as a synonym for grouping for ages but never
realized it could take an argument.

Philipp



pgpyRRBUxxI42.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] reStructuredText module

2013-03-14 Thread Marco Patzer
On 2013–03–14 Philipp Gesang wrote:

 I’ve been using \start...\stop as a synonym for grouping for ages
 but never realized it could take an argument.

You're not alone :)

Marco


signature.asc
Description: Digital 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] reStructuredText module

2013-03-14 Thread Hans Hagen

On 3/14/2013 6:40 PM, Marco Patzer wrote:

On 2013–03–14 Philipp Gesang wrote:


I’ve been using \start...\stop as a synonym for grouping for ages
but never realized it could take an argument.


You're not alone :)


I'm pretty sure that there's more that is unknown ...

-
  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] reStructuredText module

2013-03-14 Thread Aditya Mahajan

On Thu, 14 Mar 2013, Marco Patzer wrote:


On 2013–03–14 Philipp Gesang wrote:


I’ve been using \start...\stop as a synonym for grouping for ages
but never realized it could take an argument.


You're not alone :)


What! You guys don't the most comprehensive documentation of ConTeXt! The 
source code :)


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] bold symbols in formula don't work

2013-03-14 Thread Xenia
On 14.03.2013 01:14, Jonathan Barchi wrote:
[…]
 On 13.03.2013 21:52, Xenia wrote:

 Hello context list,

 is there a bug in the mathbold-feature? I tried the several things, for
 example the attached example, without success.


 Thanks for noticing. There's a macro being overloaded ... fixed in next beta
 (later tonight).

Hm, with the new version 2013.03.14 17:31, it works, but I still get an
error message, see log-file.

Thanks,
Xenia

(/home/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.03.14 17:31 MKIV  fmt: 2013.3.14  int: english/english

system   cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   files  jobname 'bold_in_math', input 'bold_in_math', result 'bold_in_math'
fontslatin modern fonts are not preloaded
languageslanguage en is active
(bold_in_math.tex{/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
system   lua  compiling '/home/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/lmroman12-regular.tma' into '/home/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/lmroman12-regular.tmc'
system   lua  fatal error in file '/home/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/lmroman12-regular.tma'
system   lua  compiling '/home/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/latinmodern-math.tma' into '/home/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/latinmodern-math.tmc'
system   lua  fatal error in file '/home/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otf/latinmodern-math.tma'
fontsfallback modern rm 12pt is loaded
backend  xmp  using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
 ) )/home/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf

system   files  start used files

used files  1: filename=cont-yes.mkiv filetype=tex foundname=/home/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used files  2: filename=cont-new.mkiv filetype=tex foundname=/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used files  3: filename=lang-us.lua filetype=lua foundname=/home/context/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used files  4: filename=bold_in_math.tex foundname=bold_in_math.tex usedmethod=direct
used files  5: filename=mkiv-base.map filetype=map format=map foundname=/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used files  6: filename=lm.lfg filetype=tex foundname=/home/context/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used files  7: filename=lm-math.lfg filetype=tex foundname=/home/context/tex/texmf-context/tex/context/fonts/lm-math.lfg usedmethod=database
used files  8: filename=lm-math.map filetype=map format=map foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used files  9: filename=lm-rm.map filetype=map format=map foundname=/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used files 10: filename=lmroman12-regular filetype=otf format=otf foundname=/home/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used files 11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files 12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/home/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files 13: filename=lpdf-pdx.xml filetype=tex foundname=/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system   files  stop used files


system   structure  start used structure

used structure   text: bold_in_math

system   structure  stop used structure


system   files  start used files

used file   1: filename=cont-yes.mkiv filetype=tex foundname=/home/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file   2: filename=cont-new.mkiv filetype=tex 

Re: [NTG-context] bold symbols in formula don't work

2013-03-14 Thread Jonathan Barchi
On Thursday, March 14, 2013, Hans Hagen wrote:

 On 3/14/2013 1:14 AM, Jonathan Barchi wrote:

 For what it's worth, that example compiled properly for me (with bold
 where it should be) using beta 0.60 build 2013.03.11 00:17


 The current context will only work with a luatex 0.75+ so what is 0.60 here


This is context (mkiv) 0.60, which I've been keeping up-to-date from
contextgarden as betas are released; my luaTeX is also current (from
minimals as well).


  Was this bug already fixed in that beta build?


 Indeed. There is also some speedup e.g. in logging (pending further
 speedup in the engine, which makes a difference when using the windows
 console that has a high update rate which is not that nice for one-by-one
 char tex output, esp when running rdp on a headless server).

 Hans

 btw, luatex/mkiv is in many cases now faster than pdftex/mkii


I'm impressed with the speed of mkiv, coming directly from pdfLaTeX. I
skipped right over mkii; the last time I considered this question (back in
~2008) recommendations seemed to be to stick with LaTeX, but this time (I
think) the MacTeX install docs recommended starting out with
ConTeXt/LuaTeX. I'm certainly glad that I did; my only wish if for better
documentation, and I'll try to help with this on the wiki.


 --**--**-
   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] bold symbols in formula don't work

2013-03-14 Thread Hans Hagen

On 3/14/2013 11:31 PM, Xenia wrote:

On 14.03.2013 01:14, Jonathan Barchi wrote:
[…]

On 13.03.2013 21:52, Xenia wrote:


Hello context list,

is there a bug in the mathbold-feature? I tried the several things, for
example the attached example, without success.



Thanks for noticing. There's a macro being overloaded ... fixed in next beta
(later tonight).


Hm, with the new version 2013.03.14 17:31, it works, but I still get an
error message, see log-file.


i uploaded a fix

-
  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] new trickery

2013-03-14 Thread Hans Hagen

Hi,

There is a new experimental feature and (at least for now) it's also 
called \feature (maybe not the best name).


Many fonts have language dependent features. There are also features 
that one only wants to enable in small text snippets. For this we have 
\addff etc but these don't accumulate. The next example demonstrates an 
accumulator.


\setupbodyfont[pagella]

\starttext

% When the (again experimental) setup for 'font' is used, the
% features will also adapt themselves to the language. I'm
% still considering on how to deal with the main language.

% \definefontfeature[nl][language=nld,script=latn]
\setuplanguages[font=auto]
% \setuplanguage [default][font=auto]
% \setuplanguage [nl][font=auto]

% We need to make a nice set of 'simple' switchers.

\definefontfeature[f:smallcaps][smcp=yes]
\definefontfeature[f:nocaps]   [smcp=no]
\definefontfeature[f:oldstyle] [onum=yes]
\definefontfeature[f:newstyle] [onum=no]

% watch how features accumulate

\startTEXpage[offset=10pt]
fijn fietsen 123
\feature{f:oldstyle}
fijn fietsen 123
\feature{f:smallcaps}
fijn fietsen 123
\feature{f:oldstyle}
fijn fietsen 123
\start
\nl % \feature{nl}
fijn fietsen 123
\de
fijn fietsen 123
\stop
fijn fietsen 123
\feature{f:newstyle}
fijn fietsen 123
\feature{f:nocaps}
fijn fietsen 123
\stopTEXpage

% watch how lm has contextual lookups for ligatures
% that depend on the language

\startTEXpage[offset=10pt]
\definedfont[lmroman10-regular*default]
fijn fietsen
\nl
fijn fietsen
\de
fijn fietsen
\stopTEXpage

\stoptext

This mechanism is (just as \addff cum suis) somewhat slower but as long 
as it's used grouped, performance is quite ok.


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] new trickery

2013-03-14 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Hans,

This is interesting, because I was thinking about this issue this past  
weak, and was planning to send a test file:


On Thu, 14 Mar 2013 17:39:50 -0600, Hans Hagen pra...@wxs.nl wrote:

There is a new experimental feature and (at least for now) it's also  
called \feature (maybe not the best name).


\stack might be better, for the following reason:

 Many fonts have language dependent features. There are also features  
that one only wants to enable in small text snippets. For this we have  
\addff etc but these don't accumulate.


We used to have \addfs{feature} and \subfs{feature}, meaning add  
feature to the stack and subtract feature from the stack. But those  
have been broken for a very long time.


To round it off I guess we need a replacement for \subfs as well.

Thanks for this wonderful new feature (pun intended) and

Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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