Re: [NTG-context] MKIV caption separator, revisited

2014-04-22 Thread Wolfgang Schuster

Am 22.04.2014 um 02:57 schrieb Rik Kabel cont...@rik.users.panix.com:

 Has any progress been made in the past few years implementing modifiable 
 separators for captions under MKIV? This was raised as an issue by (at least) 
 Mojca Miklavec in December 2010 
 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and by Andy 
 Thomas 18 months later 
 (http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html). (Their 
 issues with stopper have been resolved. In MKIV it is numberstopper.)
 
 Here is an MWE demonstrating the problem. It compiles cleanly, but the 
 separator remains the default period. With MKII, it generates a figure with a 
 hyphen and not a period.
 \setupcaptions[separator=-]

\setupcaptions[prefixconnector=-]

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] MKIV caption separator, revisited

2014-04-22 Thread Rik Kabel

On 2014-04-22 02:25, Wolfgang Schuster wrote:


Am 22.04.2014 um 02:57 schrieb Rik Kabel cont...@rik.users.panix.com 
mailto:cont...@rik.users.panix.com:


Has any progress been made in the past few years implementing 
modifiable separators for captions under MKIV? This was raised as an 
issue by (at least) Mojca Miklavec in December 2010 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and 
by Andy Thomas 18 months later 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html 
http://www.mail-archive.com/ntg-context@ntg.nl/msg63937.html). 
(Their issues with stopper have been resolved. In MKIV it is 
numberstopper.)


Here is an MWE demonstrating the problem. It compiles cleanly, but 
the separator remains the default period. With MKII, it generates a 
figure with a hyphen and not a period.


\setupcaptions[separator=-]


\setupcaptions[prefixconnector=-]

Wolfgang



As always, thank you.

I have updated the wiki page for setupcaptions. The updated includes a 
reworded description of the suffix key and new descriptions for the 
stopper/numberstopper and separator/prefixconnector keys.


(There are many other keys that are not documented, and a few at least 
that differ between MKII and MKIV, but I do not have the time at the 
moment to test all of them.)


--
Rik Kabel

___
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] MKIV caption separator, revisited

2014-04-21 Thread Rik Kabel
Has any progress been made in the past few years implementing modifiable 
separators for captions under MKIV? This was raised as an issue by (at 
least) Mojca Miklavec in December 2010 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg51542.html) and by 
Andy Thomas 18 months later 
(http://www.mail-archive.com/ntg-context%40ntg.nl/msg63937.html). (Their 
issues with stopper have been resolved. In MKIV it is numberstopper.)


Here is an MWE demonstrating the problem. It compiles cleanly, but the 
separator remains the default period. With MKII, it generates a figure 
with a hyphen and not a period.


   \setupcaptions[separator=-]
   \setupexternalfigures[location=default]
   \starttext
   \chapter{Chaptername}
   \section{Sectionname}
   \placefigure[here][fig:1]{Caption}{\externalfigure[cow.pdf]}
   \in{See Figure}{.}[fig:1]
   \stoptext

--
Rik Kabel
___
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] \triangledown placed too low in Palatino

2014-04-11 Thread Otared Kavian
Hi,

The \triangle operator is used for instance in the « symmetric difference » of 
two subsets: if $E$ is a set and $A \subset E$, and $B \susbet E$, then one 
defines
\startformula
A \triangle B := (A \cup B) \setminus (A \cap B).
\stopformula
Then the mapping $(A,B) \mapsto A \triangle B$ is a commutative, associative 
binary operator on the subsets of $E$.

Some people use instead $A \Delta B$, but this is not the traditional, nor the 
correct way, to write this « symmetric difference » of two sets. This is why, I 
guess, in TeX \triangle is an operator.
I have seen also \triangledown as an operator, but I don’t recall the context 
in which it was used…

Regarding the notation \nabla to denote the gradient, and \Delta, to denote the 
Laplace operator (which by the way can be defined as $\Delta u := \nabla \cdot 
(\nabla u)$), Mikael Sundqvist gave the correct observations.

Best regards: OK

On 11 avr. 2014, at 05:48, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 10 Apr 2014, Sanjoy Mahajan wrote:
 
 Jannik,
 
 You are right.  \nabla looks much nicer and is placed correctly.  (I
 still think the \triangledown placement is slightly off.)
 
 My environment files from MkII days have \def\nabla{\triangledown}, so I
 never tried the true \nabla until your suggestion.
 
 In MkIV: \triangledown is mapped to 0x25BD while nabla is mapped to 0x2207. 
 These are different glyphs.
 
 IIUC, the difference in placement is because \triangledown is defined as a 
 mathop (and hence centered on the math-axis) while \nabla is defined as a 
 mathord. Compare:
 
 \startformula
  \nabla T
  \quad
  \triangledown T
  \quad
  \mathop{\nabla} T
 \stopformula
 
 From what I remember, I was the one who added the mappings for triangledown 
 as a mathop based on, I believe, unicode-math package in LaTeX. I don't 
 understand what all the triangle operators are supposed to do. As such, I 
 cannot say whether the wrong placement is due to the wrong font metrics or 
 the wrong mapping (mathop vs mathord) by ConTeXt.
 
 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
 ___

___
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] \triangledown placed too low in Palatino

2014-04-10 Thread Sanjoy Mahajan
Jannik,

You are right.  \nabla looks much nicer and is placed correctly.  (I
still think the \triangledown placement is slightly off.)

My environment files from MkII days have \def\nabla{\triangledown}, so I
never tried the true \nabla until your suggestion.

Thank you.

-Sanjoy

Jannik Voges researchj...@icloud.com writes:

 I think you are using the wrong symbol. Or at least I would prefer
 \nabla as gradient operator.


 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] \triangledown placed too low in Palatino

2014-04-10 Thread Aditya Mahajan

On Thu, 10 Apr 2014, Sanjoy Mahajan wrote:


Jannik,

You are right.  \nabla looks much nicer and is placed correctly.  (I
still think the \triangledown placement is slightly off.)

My environment files from MkII days have \def\nabla{\triangledown}, so I
never tried the true \nabla until your suggestion.


In MkIV: \triangledown is mapped to 0x25BD while nabla is mapped to 
0x2207. These are different glyphs.


IIUC, the difference in placement is because \triangledown is defined as a 
mathop (and hence centered on the math-axis) while \nabla is defined as a 
mathord. Compare:


\startformula
  \nabla T
  \quad
  \triangledown T
  \quad
  \mathop{\nabla} T
\stopformula

From what I remember, I was the one who added the mappings for 
triangledown as a mathop based on, I believe, unicode-math package in 
LaTeX. I don't understand what all the triangle operators are supposed 
to do. As such, I cannot say whether the wrong placement is due to the 
wrong font metrics or the wrong mapping (mathop vs mathord) by ConTeXt.


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] Multiple bibliographies (bib-module, mkiv)

2014-04-07 Thread Robert Blackstone

On 7 Apr 2014, at 12:00 , Peng Zhang pczh...@gmail.com wrote

 I am searching for a solution where I can use two different sources of 
 bib files separately. I found that the same question was asked before at 
 this mail list. Since it was few years old, could I ask if there is any 
 new work done towards it?
 
 Thanks!
 Peng
 
 http://www.ntg.nl/pipermail/ntg-context/2010/048290.html

Hello Peng,
For a Bibliography with  separate sections you can use the following 
work-around:
Suppose you want a section primary sources, for which you have the bibfile, 
say, ps.bib, and a section secundary sources, for which have the bibfile 
ss.bib.
The first step is tro to make for each of them a .bbl-file with, what I would 
call, a  bbl-generator.tex:

\setupbibtex[database=ps.bib,sort=author]
%\setupbibtex[database=ss.bib,sort=author]

\setuppublications[alternative=apa] %or any other style

\starttext 

\stoptext 
++
This can be processed with mkii or mkiv. It generates a lot of auxiliary files, 
including an empty pdf, but the only important one is bbl-generator.bbl, 
which you rename to ps.bbl or ss.bbl according to which of the two bib-files 
you used.(= did not comment out)

The other files you need are two .tex-files with the complete set of 
\nocite[]'s of the two databases. Personally I never used \nocite{*}. If you 
use a Mac with BibDesk it is quite easy to make such a file. It gives you some 
extra flexibility.

You can then generate the sectioned bibliography with:
++
\input(Your setups, including those for your Bibliography setup)
\starttext 
\startchapter[bookmark=,label=,list=,marking=,reference=Bibliography,title={Bibliography}
\section{Primary sources}

\input ps.bbl
\input ps-nocite.tex
\placepublications[criterium=cite]

\section{Secundary sources}

\input ss.bbl
\input ss-nocite.tex
\placepublications[criterium=cite]

\stopchapter
\stoptext 
+++
That's all.

I hope it works for you.
Best regards,
Robert Blackstone___
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] Multiple bibliographies (bib-module, mkiv)

2014-04-07 Thread Peng Zhang

Hi Robert,

Thank you very much for this workaround! It does work. Would it be 
possible that I can make two fake/invisible sections? (without showing 
primary sources and secondary sources in your example)


I am doing my CV. I just want two separate reference lists, one for 
journal and one for published abstracts.


I am copying the CV template from wiki.

\definehead[CVHEAD][subject]

\setuphead[subject][style=\bfa,after={\blank[medium]}]


\definehead[SUBCVHEAD][subsubject]

\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]


I want something like
\CVHEAD{References}
\SUBCVHEAD{Pulished Journal Articles}

list 1
\SUBCVHEAD{Pulished Abstracts}
list 2


Could I put two fake/invisible sections within those subcvhead?


Thanks,
Peng


On 04/07/2014 10:34 AM, Robert Blackstone wrote:


On 7 Apr 2014, at 12:00 , Peng Zhang pczh...@gmail.com 
mailto:pczh...@gmail.com wrote



I am searching for a solution where I can use two different sources of
bib files separately. I found that the same question was asked before at
this mail list. Since it was few years old, could I ask if there is any
new work done towards it?

Thanks!
Peng

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


Hello Peng,
For a Bibliography with  separate sections you can use the following 
work-around:
Suppose you want a section primary sources, for which you have the 
bibfile, say, ps.bib, and a section secundary sources, for which 
have the bibfile ss.bib.
The first step is tro to make for each of them a .bbl-file with, what 
I would call, a  bbl-generator.tex:


\setupbibtex[database=ps.bib,sort=author]
%\setupbibtex[database=ss.bib,sort=author]

\setuppublications[alternative=apa] %or any other style

\starttext

\stoptext
++
This can be processed with mkii or mkiv. It generates a lot of 
auxiliary files, including an empty pdf, but the only important one is 
bbl-generator.bbl, which you rename to ps.bbl or ss.bbl according to 
which of the two bib-files you used.(= did not comment out)


The other files you need are two .tex-files with the complete set of 
\nocite[]'s of the two databases. Personally I never used \nocite{*}. 
If you use a Mac with BibDesk it is quite easy to make such a file. It 
gives you some extra flexibility.


You can then generate the sectioned bibliography with:
++
\input(Your setups, including those for your Bibliography setup)
\starttext
\startchapter[bookmark=,label=,list=,marking=,reference=Bibliography,title={Bibliography}
\section{Primary sources}

\input ps.bbl
\input ps-nocite.tex
\placepublications[criterium=cite]

\section{Secundary sources}

\input ss.bbl
\input ss-nocite.tex
\placepublications[criterium=cite]

\stopchapter
\stoptext
+++
That's all.

I hope it works for you.
Best regards,
Robert Blackstone


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

[NTG-context] page reference to figure fails when figure location is none

2014-04-06 Thread Sanjoy Mahajan
Using a recent MkIV beta (2014.03.27), it seems that a page reference to
a figure fails if the figure location is none.  Here is a minimal
example:

  \starttext

  \input knuth

  \placefigure[none][regularref]{}{\pagereference[workaroundref]
  \externalfigure[cow.pdf]}

  \input knuth

  See \at{page}[workaroundref]  or \at{page}[regularref]

  \stoptext

The log file has

  references   unknown reference '[][regularref]'

and the .pdf file has

  See page 1 or page ??

That is, the \at{page}[regularref] doesn't work.  (But the workaround
reference does work.)

If the figure's location key is changed from none to nonumber or
just deleted, then the regularref page reference works.

It also works with MkII (with or without none), so I am guessing that
it is a bug in MkIV.

-Sanjoy
___
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] page reference to figure fails when figure location is none

2014-04-06 Thread Hans Hagen

On 4/6/2014 12:14 PM, Sanjoy Mahajan wrote:

Using a recent MkIV beta (2014.03.27), it seems that a page reference to
a figure fails if the figure location is none.  Here is a minimal
example:

   \starttext

   \input knuth

   \placefigure[none][regularref]{}{\pagereference[workaroundref]
   \externalfigure[cow.pdf]}

   \input knuth

   See \at{page}[workaroundref]  or \at{page}[regularref]

   \stoptext

The log file has

   references   unknown reference '[][regularref]'

and the .pdf file has

   See page 1 or page ??

That is, the \at{page}[regularref] doesn't work.  (But the workaround
reference does work.)

If the figure's location key is changed from none to nonumber or
just deleted, then the regularref page reference works.

It also works with MkII (with or without none), so I am guessing that
it is a bug in MkIV.


more a side effect .. in mkii we store refs independently, in mkiv they 
can also travel with other properties (like lists and here we have no 
list entry


in the next beta this will work ok

\starttext

\placefigure
  [none]
  [regularref-1]
  {}
  {\hbox{\pagereference[workaroundref-1]\externalfigure[cow.pdf]}}

\placefigure
  [here]
  [regularref-2]
  {}
  {\hbox{\pagereference[workaroundref-2]\externalfigure[cow.pdf]}}

See \at{page}[workaroundref-1] or \at{page}[regularref-1]

See \at{page}[workaroundref-2] or \at{page}[regularref-2]

\blank

\placelist[figure][criterium=text]

\stoptext




-
  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] page reference to figure fails when figure location is none

2014-04-06 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes:

 more a side effect .. in mkii we store refs independently, in mkiv they 
 can also travel with other properties (like lists and here we have no 
 list entry

 in the next beta this will work ok

That make sense.  I will try it out.

I have found a few other buglets with placefigure for which I will make
minimal examples.

-- 
-Sanjoy
___
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] \definelabel

2014-04-01 Thread Hans Hagen

On 3/31/2014 4:55 PM, Herbert Voss wrote:

Hi all,

this worked some time ago:

\definelabel[video][text=Video,location=inmargin]

\starttext
\video foo
\nextvideo bar
\currentvideo[video1] baz
\page
see \at[video1].
\incrementvideo
\video foobar
\resetvideo
\video foobarbaz
\stoptext

now \currentvideo and \incrementvideo are undefined


in mkii labels were also used for some mechanisms but that has changed 
which is why i rmeoved some of these auto-generated commands


in fact, \current* is somewhat dangerous as there can be other 
\current's already


i've added the current one for labels but increment is the same as next 
so that one is gone


\incrementcounter[video]
\decrementcounter[video]

are of course also there

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] mirrored leftmarginwidth in enumerations

2014-03-30 Thread Sanjoy Mahajan
If anyone has a suggestion for putting enumeration texts toward the
right edge of the left margin, I would be grateful.

In MkII enumerations, I would put a triangle (fig.2) in the left margin
using

\defineenumeration
  [pause]
  [title=no,
text={\externalfigure[fig.2][height=1em]},
location=inleft,
number=no,
  ]

The triangle was automatically aligned toward the right side of the left
margin (fill glue on the left), which was what I wanted, on even and odd
pages.

In MkIV, the marginal text is automatically aligned to the left side.
I restored the MkII effect using this hack (using a  instead of the
triangle, to make the example more self contained):

\defineenumeration
  [pause]
  [title=no,
   text={\hbox to \leftmarginwidth{\hfil $$}},
number=no,
alternative=inleft,
  ]

But I just realized that the hack doesn't work for double-sided layouts.

Using the leftmarginwidth is correct on the odd pages, but it is too big
for the even pages.  Thus, on page 2 of the example below, the 
overlaps the question text.

Is there a more idiomatic MkIV replacement for my hack?  Or is my hack
okay, but ConTeXt should be updated to interpret leftmarginwidth to mean
the leftmarginwidth, as appropriate for an odd or an even page?

Here is the example:

\setuplayout[marking=on,location=middle,
  backspace=1.25in,
  leftmargindistance=0.125in, leftmargin=0.625in,
  width=4.75in,
  rightmargindistance=0.25in, rightmargin=0.25in,
 ]

\setuppagenumbering[alternative={doublesided}]

\defineenumeration
  [pause]
  [title=no,
   text={\hbox to \leftmarginwidth{\hfil $$}},
number=no,
alternative=inleft,
  ]
  
\def\question#1{\startpause\relax #1 \stoppause}

\showframe

\starttext
\question{hello}
\page
\question{hello}
\stoptext
___
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] mirrored leftmarginwidth in enumerations

2014-03-30 Thread Wolfgang Schuster

Am 30.03.2014 um 20:00 schrieb Sanjoy Mahajan san...@mit.edu:

 If anyone has a suggestion for putting enumeration texts toward the
 right edge of the left margin, I would be grateful.
 
 In MkII enumerations, I would put a triangle (fig.2) in the left margin
 using
 
 \defineenumeration
  [pause]
  [title=no,
text={\externalfigure[fig.2][height=1em]},
location=inleft,
number=no,
  ]
 
 The triangle was automatically aligned toward the right side of the left
 margin (fill glue on the left), which was what I wanted, on even and odd
 pages.
 
 In MkIV, the marginal text is automatically aligned to the left side.
 I restored the MkII effect using this hack (using a  instead of the
 triangle, to make the example more self contained):
 
 \defineenumeration
  [pause]
  [title=no,
   text={\hbox to \leftmarginwidth{\hfil $$}},
number=no,
alternative=inleft,
  ]
 
 But I just realized that the hack doesn't work for double-sided layouts.
 
 Using the leftmarginwidth is correct on the odd pages, but it is too big
 for the even pages.  Thus, on page 2 of the example below, the 
 overlaps the question text.
 
 Is there a more idiomatic MkIV replacement for my hack?  Or is my hack
 okay, but ConTeXt should be updated to interpret leftmarginwidth to mean
 the leftmarginwidth, as appropriate for an odd or an even page?
 
 Here is the example:
 
 \setuplayout[marking=on,location=middle,
  backspace=1.25in,
  leftmargindistance=0.125in, leftmargin=0.625in,
  width=4.75in,
  rightmargindistance=0.25in, rightmargin=0.25in,
 ]
 
 \setuppagenumbering[alternative={doublesided}]
 
 \defineenumeration
  [pause]
  [title=no,
   text={\hbox to \leftmarginwidth{\hfil $$}},
number=no,
alternative=inleft,
  ]
 
 \def\question#1{\startpause\relax #1 \stoppause}
 
 \showframe
 
 \starttext
 \question{hello}
 \page
 \question{hello}
 \stoptext

\defineenumeration
  [pause]
  [title=no,
   text={\symbol[triangle]},
   width=fit,
   number=no,
   alternative=inleft]

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] lower superscripts in MkIV -- too low?

2014-03-28 Thread Sanjoy Mahajan
 we have a more modern implementation in the next beta

I tested the following with various flavors:

$
 x\mathstrut_{3} x_{3} 
 x^3 x\mathstrut^3 
 x^\circ x\mathstrut^\circ 
 20\mathstrut^\circ 20^\circ
$

Flavors that I tried: 

2014.03.27 MkIV
2014.02.14 MkIV
2013.06.07 MkII (from latest beta)
pdfTeX 1.40.14 (from Debian TL 2013)

(wrapping in \(start|stop)text or ending with \bye, as appropriate).

My observations:

The MkII and pdftex subscripts look too high.  I know that's
sacreligious, since it is what Knuth must have intended, and I am
surprised that I didn't notice it before.

The 2014.02.14 MkIV subscript with the strut looks too low, although the
x^3 with the strut looks reasonable, or is maybe just slightly too high.
The x^\circ looks fine.  The x\mathstrut^\circ is too high.  But the
20\mathstrut^\circ looks right (and looks too low without the strut).

In 2014.03.27 MkIV, the subscript- and subscript heights are unchanged
by the strut.  The subscript heights look right.  The superscript
heights all look okay, except for the 20\mathstrut^\circ, which is too
low (same height as without the strut).  In earlier versions, one could
raise the \circ using a \mathstrut, but that no longer has an effect.

The other change, and maybe I am hallucinating this one, is that the
horizontal spacing between the x and the 3 is now slightly different
with and without the strut: It is tighter with the strut.  I think it
looks better without the strut, but am not sure.

So, overall I think it has improved.  I also wonder:

1. about the right horizontal spacing (how tight it should be)

2. how to raise the \circ in 20^\circ

-Sanjoy
___
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] what happened to hangaround?

2014-03-24 Thread Henning Hraban Ramm
Am 2014-03-24 um 12:09 schrieb Philipp Gesang 
philipp.ges...@alumni.uni-heidelberg.de:

 Hi again,
 I’d like to flow some text around a picture.
 
 There was undocumented \starthangaround (it’s still in cont-new.mkiv in the 
 garden), but it’s unknown in latest beta. 
 Is there a replacement?
 
 Try the hanging environment:
 
\setupexternalfigures [location=default]
\starttext
  \starthanging{\externalfigure [cow.pdf][width=3.141cm]}
\input ward
  \stophanging
\stoptext
 
 I think it is supposed to be the successor to hangaround.

Dankeschön!

I updated the wiki page: 
http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture

There are some issues:

- \starthanging doesn’t accept parameters (using \setuphanging for every second 
picture is evil)
- As you can see in wiki, the picture stands on the first line of the text. 
This is a MkII problem, it works with MkIV.
- If you try several paragraphs or \startlines, then only the first paragraph 
flows.

Greetlings, 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] what happened to hangaround?

2014-03-24 Thread Wolfgang Schuster

Am 24.03.2014 um 09:02 schrieb Henning Hraban Ramm te...@fiee.net:

 Am 2014-03-24 um 12:09 schrieb Philipp Gesang 
 philipp.ges...@alumni.uni-heidelberg.de:
 
 Hi again,
 I’d like to flow some text around a picture.
 
 There was undocumented \starthangaround (it’s still in cont-new.mkiv in the 
 garden), but it’s unknown in latest beta. 
 Is there a replacement?
 
 Try the hanging environment:
 
   \setupexternalfigures [location=default]
   \starttext
 \starthanging{\externalfigure [cow.pdf][width=3.141cm]}
   \input ward
 \stophanging
   \stoptext
 
 I think it is supposed to be the successor to hangaround.
 
 Dankeschön!
 
 I updated the wiki page: 
 http://wiki.contextgarden.net/Using_Graphics#Flow_text_around_a_picture
 
 There are some issues:
 
 - \starthanging doesn’t accept parameters (using \setuphanging for every 
 second picture is evil)
 - As you can see in wiki, the picture stands on the first line of the text. 
 This is a MkII problem, it works with MkIV.
 - If you try several paragraphs or \startlines, then only the first paragraph 
 flows.

The hanging environment in MkII isn’t the same as the hanging in MkIV. The 
original name for the environment
was hang around but when Hans added a few new features (e.g. to move the 
picture to the right side) he changed
in MKIV the name to hanging, a command which all already existed.

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] what happened to hangaround?

2014-03-24 Thread Henning Hraban Ramm

Am 2014-03-24 um 14:11 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 - \starthanging doesn’t accept parameters (using \setuphanging for every 
 second picture is evil)
 - As you can see in wiki, the picture stands on the first line of the text. 
 This is a MkII problem, it works with MkIV.
 - If you try several paragraphs or \startlines, then only the first 
 paragraph flows.
 
 The hanging environment in MkII isn’t the same as the hanging in MkIV. The 
 original name for the environment
 was hang around but when Hans added a few new features (e.g. to move the 
 picture to the right side) he changed
 in MKIV the name to hanging, a command which all already existed.

Thanks for the explanation.

But is there a way to flow several paragraphs (or „lines“) around a picture?
I tried a vbox, but then the picture moves down into the following paragraph.


Greetlings, 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] what happened to hangaround?

2014-03-24 Thread Aditya Mahajan


On Mar 24, 2014, at 4:43 AM, Henning Hraban Ramm te...@fiee.net wrote:

 
 Am 2014-03-24 um 14:11 schrieb Wolfgang Schuster 
 schuster.wolfg...@gmail.com:
 
 - \starthanging doesn’t accept parameters (using \setuphanging for every 
 second picture is evil)
 - As you can see in wiki, the picture stands on the first line of the text. 
 This is a MkII problem, it works with MkIV.
 - If you try several paragraphs or \startlines, then only the first 
 paragraph flows.
 
 The hanging environment in MkII isn’t the same as the hanging in MkIV. The 
 original name for the environment
 was hang around but when Hans added a few new features (e.g. to move the 
 picture to the right side) he changed
 in MKIV the name to hanging, a command which all already existed.
 
 Thanks for the explanation.
 
 But is there a way to flow several paragraphs (or „lines“) around a picture?
 I tried a vbox, but then the picture moves down into the following paragraph.
 
Why not use \placefigure[left,none]{}{}

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] lower superscripts in MkIV -- too low?

2014-03-22 Thread Otared Kavian
Hi Sanjoy,

I agree with you to say that the position of subscripts and superscripts in 
mkiv is not perfect: the same remark applies to the position of the derivative 
sign « prime » as $u’(t)$.

Actually in mkii (and also in plain TeX) the positions of the superscripts in 
your example are the same, but this is not the case with subscripts:
$x_{3}\ x\mathstrut_{3}$
that is in mkii the latter $x\mathstrut_{3}$ gives a lower subscript, while in 
plain TeX both subscripts are positioned at an identical depth.

I would say the position of subscripts and superscripts in mkiv should be 
identical with one gets with the latest beta (version 2014.03.20 16:59) in the 
following example
\starttext
$x\mathstrut_{3}$ and $x\mathstrut^{3}$
\stoptext

However as Hans pointed out, regarding maths typesetting in mkiv there are also 
some font related issues.

Best regards: OK


On 21 mars 2014, at 17:34, Sanjoy Mahajan san...@mit.edu wrote:

 Dear math typesetting aficianados,
 
 In the following example,
 
 \starttext
 $x^3\ x\mathstrut^3$
 \stoptext
 
 the superscript without the strut is about 2pt lower than with the
 strut, using MkIV.  With MkII or plain TeX, they are the same height
 (at the higher position obtained by using the \mathstrut in MkIV).
 
 My eye tells me that the higher position looks more right.  Do others
 agree?  Or, if it's a matter of taste, is the difference configurable
 so that one can get the MkII behavior even without the \mathstrut?
 
 -- 
 -Sanjoy
 ___
 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] lower superscripts in MkIV -- too low?

2014-03-22 Thread Hans Hagen

On 3/22/2014 8:17 AM, Otared Kavian wrote:

Hi Sanjoy,

I agree with you to say that the position of subscripts and superscripts in 
mkiv is not perfect: the same remark applies to the position of the derivative 
sign « prime » as $u’(t)$.

Actually in mkii (and also in plain TeX) the positions of the superscripts in 
your example are the same, but this is not the case with subscripts:
$x_{3}\ x\mathstrut_{3}$
that is in mkii the latter $x\mathstrut_{3}$ gives a lower subscript, while in 
plain TeX both subscripts are positioned at an identical depth.

I would say the position of subscripts and superscripts in mkiv should be 
identical with one gets with the latest beta (version 2014.03.20 16:59) in the 
following example
\starttext
$x\mathstrut_{3}$ and $x\mathstrut^{3}$
\stoptext

However as Hans pointed out, regarding maths typesetting in mkiv there are also 
some font related issues.


we have a more modern implementation in the next beta

-
  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] Placing arbitrary pdf bookmarks

2014-03-22 Thread Jean-Philippe Rey
Hi Pablo,

Le 22 mars 2014 à 17:31, Pablo Rodriguez oi...@gmx.es a écrit :

 On 03/22/2014 04:35 PM, Jean-Philippe Rey wrote:
 Hello all,
 
 I am willing to use ConTeXt to produce a bunch of stickers. My
 stickers are grouped into categories but I don't want any headers or
 titles to interfere with the layout of the stickers, so I didn't use
 \startchapter and the likes.
 
 I think there is workaround for your case: not placing heads in document.

Very good hint, thank you. It works perfectly fine with MkII. With MkIV, 
although the head is not printed, some whitespace is added that disturbs the 
layout. I tried

\setuphead[chapter,section][placehead=hidden]

and got rid of the spurious whitespace ... but also of the pdf bookmarks :-(

\setuphead[chapter,section][placehead=no,page=no,before=,after=]

don't work either.

Here is an example to demonstrate the problem (again, it works fine with MkII, 
unfortunately I am using lua to compose my stickers).


\setupinteraction[state=start]
\placebookmarks[chapter,section]
\setuphead[chapter,section][placehead=no]
\starttext

\chapter{B1}
\section{A1}

Sticker 1

Sticker 2

\page

Sticker 3

\section{A2}

Sticker 4

\page
\chapter{B2}

Sticker 5

\section{A3}

Sticker 6

\stoptext




-- 
Jean-Philippe Rey Professeur - École Centrale Paris
jean-philippe@ecp.fr  92295 Châtenay-Malabry Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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] Placing arbitrary pdf bookmarks

2014-03-22 Thread Pablo Rodriguez
On 03/22/2014 07:11 PM, Jean-Philippe Rey wrote:
 [...]
 Very good hint, thank you. It works perfectly fine with MkII. With
 MkIV, although the head is not printed, some whitespace is added that
 disturbs the layout. I tried
 
   \setuphead[chapter,section][placehead=hidden]
 
 and got rid of the spurious whitespace ... but also of the pdf bookmarks :-(
 
   \setuphead[chapter,section][placehead=no,page=no,before=,after=]
 
 don't work either.

Jean-Philippe,

my fault, this is the right head configuration:

\setuphead[chapter,section][placehead=empty,before=,after=,]

This should work now:

\showgrid
\setupinteraction[state=start]
\placebookmarks[chapter,section]
\setuphead[chapter,section][placehead=empty,before=,after=,]
\starttext

\chapter{B1}
\section{A1}

Sticker 1

Sticker 2

\page

Sticker 3

\section{A2}

Sticker 4

\page
\chapter{B2}

Sticker 5

\section{A3}

Sticker 6

\stoptext

I hope it helps now,


Pablo
-- 
http://www.ousia.tk
___
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] lower superscripts in MkIV -- too low?

2014-03-21 Thread Sanjoy Mahajan
Dear math typesetting aficianados,

In the following example,

\starttext
$x^3\ x\mathstrut^3$
\stoptext

the superscript without the strut is about 2pt lower than with the
strut, using MkIV.  With MkII or plain TeX, they are the same height
(at the higher position obtained by using the \mathstrut in MkIV).

My eye tells me that the higher position looks more right.  Do others
agree?  Or, if it's a matter of taste, is the difference configurable
so that one can get the MkII behavior even without the \mathstrut?

-- 
-Sanjoy
___
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] Euler with fallback

2014-03-03 Thread Sanjoy Mahajan
Aditya Mahajan adit...@umich.edu writes:

 This is to announce that the latest beta supports creating virtual math 
 fonts with fallback. The main test case is to use Euler font with missing 
 characters taken from Pagella but the mechanism is general and can be used 
 to replace a specific set of math glyphs from a font.

 This feature is not extensively tested. As such it will be useful if 
 everyone interested in math fallback mechanism could test this out and 
 report any bugs or inconsistencies.

One inconsistency or maybe bug is that text subscripts come out in Euler
instead of Palatino.  

Here's an example (using 2014.02.14 beta).  The Sun subscript using
_{\tf Sun} or _{\rm Sun} was in Palatino in the corresponding MkII
setup, but is in Euler now.  The workaround of an hbox with \tfxx or
\tfx doesn't get quite the right size.

\usetypescriptfile[euler]

\definetypeface [mainface] [rm] [serif] [pagella]  [default]
\definetypeface [mainface] [tt] [mono]  [dejavu]   [default]
[rscale=0.9]
\definetypeface [mainface] [mm] [math]  [pagellaovereuler] [default]

\setupbodyfont[mainface]

\appendtoks \rm \to \everymathematics
\setupmathematics[lcgreek=normal, ucgreek=normal]

\starttext

\placeformula\startformula
M_{\rm Sun}\quad M_{\hbox{\tfx Sun}} \quad M_{\hbox{\tfxx Sun}} \quad M_{\tf 
Sun}
\stopformula

\stoptext
___
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] Euler with fallback

2014-03-03 Thread Aditya Mahajan

On Mon, 3 Mar 2014, Sanjoy Mahajan wrote:


Aditya Mahajan adit...@umich.edu writes:


This is to announce that the latest beta supports creating virtual math
fonts with fallback. The main test case is to use Euler font with missing
characters taken from Pagella but the mechanism is general and can be used
to replace a specific set of math glyphs from a font.

This feature is not extensively tested. As such it will be useful if
everyone interested in math fallback mechanism could test this out and
report any bugs or inconsistencies.


One inconsistency or maybe bug is that text subscripts come out in Euler
instead of Palatino.

Here's an example (using 2014.02.14 beta).  The Sun subscript using
_{\tf Sun} or _{\rm Sun} was in Palatino in the corresponding MkII
setup, but is in Euler now.  The workaround of an hbox with \tfxx or
\tfx doesn't get quite the right size.


That is because in math mode, \rm is symonym with \mathrm etc. The 
standard way to write this is _{\text{Sun}}.


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] Euler with fallback

2014-03-03 Thread Sanjoy Mahajan
Aditya,

 Here's an example (using 2014.02.14 beta).  The Sun subscript using
 _{\tf Sun} or _{\rm Sun} was in Palatino in the corresponding MkII
 setup, but is in Euler now.  The workaround of an hbox with \tfxx or
 \tfx doesn't get quite the right size.

 That is because in math mode, \rm is symonym with \mathrm etc. The 
 standard way to write this is _{\text{Sun}}.

I agree about \rm.  However, _{\tf blah} once (in MkII) selected the
text font.  e.g.

\starttext
\placeformula\startformula
M_{\tf Sun}
\stopformula
\stoptext

Is the II-IV change in \tf semantics intended?  It's not hard to adjust
for by using 'sed'.  I raise the issue only in case the change is not
intended.

Actually, the example just as above (i.e. using modern fonts) works fine
works in MkII and MkIV.  It also works if \setupbodyfont[palatino] is
inserted as the first line.

It's fails only when using Palatino with Euler (at least, in the way
that I did it).

That data doesn't say what the right behavior is.  But it may help you
decide.

-Sanjoy
___
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] how to set the CropBox in MkIV?

2014-02-23 Thread Sanjoy Mahajan
What is the MkIV/LuaTeX way to set the CropBox?
In MkII/PDFTeX, I used

  \pdfpagesattr = {/CropBox [54 72 558 720]}

With MkIV, I've tried 

  \pdfcompresslevel 0
  \pdfbackendsetpagesattribute{CropBox}{[54 72 558 720]}
  \starttext
  \input knuth
  \stoptext

but that set the CropBox as a string, and didn't override the A4 setting:

  /Type/Pages /CropBox ([54 72 558 720])/Count 1/Kids[16 0 R]

I also tried

  \pdfcompresslevel 0
  \startluacode
  local box = lpdf.array{54, 72, 558, 720}
  lpdf.addtopagesattributes(CropBox,box)
  \stopluacode

  \starttext
  \input knuth
  \stoptext

and that produced an improved line in the Pages object:

  /Type/Pages /CropBox [ 54 72 558 720 ]/Count 1/Kids[16 0 R]

but the actual cropbox for the page is unchanged (A4), probably because
the page object itself (object #16) overrides the CropBox with this:

  /CropBox [ 0. 0. 595.2756 841.8898 ]

(This is all with the 2014.02.14 beta.)

Regards,
-Sanjoy
___
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] [Math in ConTeXt]

2014-02-18 Thread Matthias Weber
Thanks Otared for the offer to look into math issues.

Here are a few I noticed when TeXing an MK2 set of notes with MK4.

Matthias

\starttext
\startformula
\text{\bf R}^n = R^n ={\bf R}^n= \mathbb{R}^n
\stopformula
%spacing of  exponent is in Mk4 wider than in Mk2

\startformula
\left| \int_{a_{i-1}}^b e^x\, dx \right|
\stopformula
% lower bound runs into \left|
% space between integral sign and integrand too wide


\startformula
r'=r''
\stopformula

This $\int_{a}^b e^x\, dx $ is not good. 
% Inline math integrals need limits at the side. Spacing with lines below and 
above is awkward otherwise.

\startformula
area(f) = \iint_{\Omega} |{f_u\times f_v}|\, du dv
\stopformula

% limit not centered over double integral
\placeformula[-]

\stoptext


On Feb 16, 2014, at 5:30 AM, Otared Kavian ota...@gmail.com wrote:

 Hi all,
 
 After a series of exchanges on the list, on the topic of how mathematics 
 typesetting is and should be in ConTeXt, I am writing you this message to ask 
 all those who use ConTeXt to typeset mathematics and who encounter various 
 types of difficulties, or shortcomings, to send me their remarks, either on 
 list or off list. 
 I will check the problems with Aditya Mahajan and Mikael Sundqvist, and then 
 submit feature requests or bug reports to Hans and Aditya who will try to fix 
 the issues (I have asked these people about this, and they all agree…).
 
 In order to help me manage efficiently the task, please add the following tag 
 
   [Math on ConTeXt]
 
 to the Subject field of your message.
 
 The issues which may be addressed are of the following categories:
 
   1. Differences in the output of ConTeXt mkiv vs mkii (due to 
 differences in engine)
 
   2.  Differences in the output of ConTeXt mkiv vs LuaLaTeX + Opentype 
 math fonts (due to differences in macro package)
 
   3. Differences in the output of ConTeXt mkiv vs PDFLaTeX + AMSMath (due 
 to differences in expectation)
 
   4. Bug reports (regarding commands of plain TeX missing in ConTeXt, the 
 position of math accents, etc…)
 
 Indeed some of the issues may have their origin in the fonts (therefore not 
 easy to fix thouroughly), but others may be fixed once the expectations are 
 clearly expressed. 
 As usual, please give minimal examples imbedded in 
 
   \starttext
   ………
\stoptext 
 
 so that we can test the issue you are reporting.
 Thanks for your attention and cooperation,
 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
 ___

___
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] Euler with fallback

2014-02-17 Thread Aditya Mahajan

On Mon, 17 Feb 2014, Sanjoy Mahajan wrote:


 \project testproject
 \startcomponent test

 \input knuth

 \stopcomponent

Because of font loading, is this recommended way to use components
(rather than the old way of the \project line after \startcomponent)?
If so, I'll make a note on the wiki.


Yes. This is one of the changes from MkII to MkIV. I think that Hans had a 
This Way document on this.


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
___


[NTG-context] [Math in ConTeXt]

2014-02-16 Thread Otared Kavian
Hi all,

After a series of exchanges on the list, on the topic of how mathematics 
typesetting is and should be in ConTeXt, I am writing you this message to ask 
all those who use ConTeXt to typeset mathematics and who encounter various 
types of difficulties, or shortcomings, to send me their remarks, either on 
list or off list. 
I will check the problems with Aditya Mahajan and Mikael Sundqvist, and then 
submit feature requests or bug reports to Hans and Aditya who will try to fix 
the issues (I have asked these people about this, and they all agree…).

In order to help me manage efficiently the task, please add the following tag 

[Math on ConTeXt]

to the Subject field of your message.

The issues which may be addressed are of the following categories:

1. Differences in the output of ConTeXt mkiv vs mkii (due to 
differences in engine)

2.  Differences in the output of ConTeXt mkiv vs LuaLaTeX + Opentype 
math fonts (due to differences in macro package)

3. Differences in the output of ConTeXt mkiv vs PDFLaTeX + AMSMath (due 
to differences in expectation)

4. Bug reports (regarding commands of plain TeX missing in ConTeXt, the 
position of math accents, etc…)

Indeed some of the issues may have their origin in the fonts (therefore not 
easy to fix thouroughly), but others may be fixed once the expectations are 
clearly expressed. 
As usual, please give minimal examples imbedded in 

\starttext
………
 \stoptext 

so that we can test the issue you are reporting.
Thanks for your attention and cooperation,
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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-13 Thread Mikael P. Sundqvist
On Wed, Feb 12, 2014 at 10:01 AM, Keith J. Schultz schul...@uni-trier.dewrote:

 Hi Mikael,

 Basically, I see your problem with ConTeXts handling of math as a matter
 of taste!
 That is you want LaTeX syntax.

 It is easy enough to get the results you want.

 The only place where I see a bug is that a single prime is set larger than
 multple
 primes.

 regards
 Keith


Hi Keith,

I do not agree with you. It is not so important to have the same syntax as
in LaTeX (exception: it would be nice to get double bars from \| since it
does not make sense to have \| yield a single bar since | does), but to be
able to write very common formulas (look at the example with double
derivative with respect to x in my examples above, and tell me how to do
that correctly in ConTeXt!) in an acceptable way.

Best regards, Mikael




 Am 11.02.2014 um 14:18 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Tue, Feb 11, 2014 at 11:33 AM, Keith J. Schultz 
 schul...@uni-trier.dewrote:


 Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:

 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:

 Hi,

 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.

 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).

 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.


 In mkiv we follow some alternative approaches compared to mkii (and
 probably other tex macro packages) and some aspects indeed might need
 tuning (or more configuration options) .. I try hard to get away from
 hackery solutions (for several reasons).


 I agree it is good to avoid hackery as long as possible, and I for sure
 is ready to relearn how to write some things. With the examples I gave in
 the previous email in mind:

  * How am I supposed to write first derivative (f') and second derivative
 (f'') in such a way that they have the same type of prime (the prime in the
 first derivative is the one I prefer)?

 No sure if to call this a bug! It seems that a single prime is always
 larger than multiple ones!
 You can always change its size!


 I think the user should not have to change its size. All primes should
 have the same size, independent if they are one or several.



 * How am I supposed to write f_xx'' to get the output as in the LaTeX
 example (i.e. so that the primes are over the xx)?

 have to switch things around: f''_xx or f''_{xx}  depending on the actual
 result you want.


 I know about the grouping. Please have a look at my example files in my
 earlier post in this thread.




 * Could the default placement of limits in integrals be changed
 (integral=nolimits)? This is how it is done in almost all math books).

  Not sure what you want here! example? can be LateX


 As above, I gave examples...

 Best regards, Mikael



 * What about the size and finetuning of placement of indices in integrals
 and sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous
 thread on this list. Is there any drawback in giving double bars for \|? Of
 course I can relearn and use \lVert and \rVert, but I have a feeling that
 if we want people moving from LaTeX to ConTeXt, then this is the kind of
 things that should just work as expected...

 Best regards, Mikael


 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

 ___



 ___
 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

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-12 Thread Keith J. Schultz
Hi Mikael,

Basically, I see your problem with ConTeXts handling of math as a matter of 
taste!
That is you want LaTeX syntax. 

It is easy enough to get the results you want.

The only place where I see a bug is that a single prime is set larger than 
multple
primes. 

regards
Keith


Am 11.02.2014 um 14:18 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Tue, Feb 11, 2014 at 11:33 AM, Keith J. Schultz schul...@uni-trier.de 
 wrote:
 
 Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:
 
 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:
 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:
 Hi,
 
 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.
 
 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).
 
 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.
 
 In mkiv we follow some alternative approaches compared to mkii (and probably 
 other tex macro packages) and some aspects indeed might need tuning (or more 
 configuration options) .. I try hard to get away from hackery solutions (for 
 several reasons).
 
 I agree it is good to avoid hackery as long as possible, and I for sure is 
 ready to relearn how to write some things. With the examples I gave in the 
 previous email in mind:
 
 * How am I supposed to write first derivative (f') and second derivative 
 (f'') in such a way that they have the same type of prime (the prime in the 
 first derivative is the one I prefer)?
 
   No sure if to call this a bug! It seems that a single prime is always 
 larger than multiple ones!
   You can always change its size!
 
 I think the user should not have to change its size. All primes should have 
 the same size, independent if they are one or several.
  
 
 * How am I supposed to write f_xx'' to get the output as in the LaTeX 
 example (i.e. so that the primes are over the xx)?
   
 have to switch things around: f''_xx or f''_{xx}  depending on the actual 
 result you want.
 
 I know about the grouping. Please have a look at my example files in my 
 earlier post in this thread.
  
  
 * Could the default placement of limits in integrals be changed 
 (integral=nolimits)? This is how it is done in almost all math books).
   
 Not sure what you want here! example? can be LateX
 
 As above, I gave examples...
 
 Best regards, Mikael
  
 
 * What about the size and finetuning of placement of indices in integrals 
 and sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous thread 
 on this list. Is there any drawback in giving double bars for \|? Of course 
 I can relearn and use \lVert and \rVert, but I have a feeling that if we 
 want people moving from LaTeX to ConTeXt, then this is the kind of things 
 that should just work as expected...
 
 Best regards, Mikael
 
 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
 ___
 
 ___
 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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Mikael P. Sundqvist
On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:

 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:

 Hi,

 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.

 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).

 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.


 In mkiv we follow some alternative approaches compared to mkii (and
 probably other tex macro packages) and some aspects indeed might need
 tuning (or more configuration options) .. I try hard to get away from
 hackery solutions (for several reasons).


I agree it is good to avoid hackery as long as possible, and I for sure is
ready to relearn how to write some things. With the examples I gave in the
previous email in mind:

* How am I supposed to write first derivative (f') and second derivative
(f'') in such a way that they have the same type of prime (the prime in the
first derivative is the one I prefer)?
* How am I supposed to write f_xx'' to get the output as in the LaTeX
example (i.e. so that the primes are over the xx)?
* Could the default placement of limits in integrals be changed
(integral=nolimits)? This is how it is done in almost all math books).
* What about the size and finetuning of placement of indices in integrals
and sums (and probably products, unions, ...)?
* I remember I suggested that \| should be double bars in a previous thread
on this list. Is there any drawback in giving double bars for \|? Of course
I can relearn and use \lVert and \rVert, but I have a feeling that if we
want people moving from LaTeX to ConTeXt, then this is the kind of things
that should just work as expected...

Best regards, Mikael




  When it comes to math environments, I think that thanks to the
 environments in http://dl.contextgarden.net/myway/mathalign.pdf
 http://dl.contextgarden..net/myway/mathalign.pdf we are OK. I

 sometimes miss the multline(d) environment from LaTeX.

 Best regards, Mikael

 [1]
 The attachments were too big, so I decided to put the pdf files on
 http://www.maths.lth.se/~mickep/l.pdf
 and
 http://www.maths.lth.se/~mickep/c.pdf




 On Sun, Feb 9, 2014 at 8:09 PM, Jaroslav Hajtmar hajt...@gyza.cz
 mailto:hajt...@gyza.cz wrote:

 Hello ConTeXist.
 I am very sorry for this OFF TOPIC contribution.

 For writing of this text led me several hours of searching on
 internet. I was looking for ways to typing of non-elementary math in
 ConTeXt

 Already a long time I use ConTeXt typesetting lot of different
 things and I am very satisfied. In the many things, of which I
 typed, was maths represented only marginally and minimally. Now I
 need to type some mathematics (at secondary school level) and I
 found that I came across borders of my knowledge of ConTeXt, or on
 possibilities of ConTeXt for typesetting of mathematics.
 I do not in any way call into question the ability of ConTeXt
 typesetting mathematics, although I think that who wants to type
 mathematics then use LaTeX.
 I want find experience of users of ConTeXt for real using of ConTeXt
 for typesetting of mathematics. I wonder how users use possible math
 modules (exist anything?) to be usable results.

 I have a few questions:

 0. Do you think that this is only a problem for beginners of ConText
 or it is a general problem of ConTeXt?
 1. How many of ConTeXt users use this tool for typesetting of
 non-elementary mathematics?
 2. Are you satisfied with the results, which produces ConTeXt
 (thinking in the field of mathematics rate)?
 3. What things do you need to have in ConTeXt study that one could
 bet mathematics at a reasonable level?
 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g.
 in the future)?
 5. Can you think of any more questions that should be here?


 I hope that my question will help other beginners who would like to
 typing of mathematics use ConText - this unique and useful tool.

 Thanks for all the answers.

 Jaroslav Hajtmar


 
 ___

 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

 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/

 http://foundry.supelec.fr

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Fabrice Couvreur
Hi,
Unless I am mistaken, Cambria is a font available for Windows. I'm using
Linux, is it possible to install ? Is it free ? If yes, where can I download
it ?

Xits, I do not know.

Is it possible to put the uppercase = right  in math mode with Pagella ?
thank you,
Fabrice


2014-02-11 9:57 GMT+01:00 Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:

 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:

 Hi,

 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.

 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).

 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.


 In mkiv we follow some alternative approaches compared to mkii (and
 probably other tex macro packages) and some aspects indeed might need
 tuning (or more configuration options) .. I try hard to get away from
 hackery solutions (for several reasons).


 I agree it is good to avoid hackery as long as possible, and I for sure is
 ready to relearn how to write some things. With the examples I gave in the
 previous email in mind:

 * How am I supposed to write first derivative (f') and second derivative
 (f'') in such a way that they have the same type of prime (the prime in the
 first derivative is the one I prefer)?
 * How am I supposed to write f_xx'' to get the output as in the LaTeX
 example (i.e. so that the primes are over the xx)?
 * Could the default placement of limits in integrals be changed
 (integral=nolimits)? This is how it is done in almost all math books).
 * What about the size and finetuning of placement of indices in integrals
 and sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous
 thread on this list. Is there any drawback in giving double bars for \|? Of
 course I can relearn and use \lVert and \rVert, but I have a feeling that
 if we want people moving from LaTeX to ConTeXt, then this is the kind of
 things that should just work as expected...

 Best regards, Mikael




  When it comes to math environments, I think that thanks to the
 environments in http://dl.contextgarden.net/myway/mathalign.pdf
 http://dl.contextgarden..net/myway/mathalign.pdf we are OK. I

 sometimes miss the multline(d) environment from LaTeX.

 Best regards, Mikael

 [1]
 The attachments were too big, so I decided to put the pdf files on
 http://www.maths.lth.se/~mickep/l.pdf
 and
 http://www.maths.lth.se/~mickep/c.pdf




 On Sun, Feb 9, 2014 at 8:09 PM, Jaroslav Hajtmar hajt...@gyza.cz
 mailto:hajt...@gyza.cz wrote:

 Hello ConTeXist.
 I am very sorry for this OFF TOPIC contribution.

 For writing of this text led me several hours of searching on
 internet. I was looking for ways to typing of non-elementary math in
 ConTeXt

 Already a long time I use ConTeXt typesetting lot of different
 things and I am very satisfied. In the many things, of which I
 typed, was maths represented only marginally and minimally. Now I
 need to type some mathematics (at secondary school level) and I
 found that I came across borders of my knowledge of ConTeXt, or on
 possibilities of ConTeXt for typesetting of mathematics.
 I do not in any way call into question the ability of ConTeXt
 typesetting mathematics, although I think that who wants to type
 mathematics then use LaTeX.
 I want find experience of users of ConTeXt for real using of ConTeXt
 for typesetting of mathematics. I wonder how users use possible math
 modules (exist anything?) to be usable results.

 I have a few questions:

 0. Do you think that this is only a problem for beginners of ConText
 or it is a general problem of ConTeXt?
 1. How many of ConTeXt users use this tool for typesetting of
 non-elementary mathematics?
 2. Are you satisfied with the results, which produces ConTeXt
 (thinking in the field of mathematics rate)?
 3. What things do you need to have in ConTeXt study that one could
 bet mathematics at a reasonable level?
 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g.
 in the future)?
 5. Can you think of any more questions that should be here?


 I hope that my question will help other beginners who would like to
 typing of mathematics use ConText - this unique and useful tool.

 Thanks for all the answers.

 Jaroslav Hajtmar


 
 ___

 If your question is of interest to others as well, please add

Re: [NTG-context] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Keith J. Schultz

Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:
 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:
 Hi,
 
 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.
 
 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).
 
 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.
 
 In mkiv we follow some alternative approaches compared to mkii (and probably 
 other tex macro packages) and some aspects indeed might need tuning (or more 
 configuration options) .. I try hard to get away from hackery solutions (for 
 several reasons).
 
 I agree it is good to avoid hackery as long as possible, and I for sure is 
 ready to relearn how to write some things. With the examples I gave in the 
 previous email in mind:
 
 * How am I supposed to write first derivative (f') and second derivative 
 (f'') in such a way that they have the same type of prime (the prime in the 
 first derivative is the one I prefer)?
No sure if to call this a bug! It seems that a single prime is always 
larger than multiple ones!
You can always change its size!

 * How am I supposed to write f_xx'' to get the output as in the LaTeX example 
 (i.e. so that the primes are over the xx)?
have to switch things around: f''_xx or f''_{xx}  depending on the 
actual result you want.
 
 * Could the default placement of limits in integrals be changed 
 (integral=nolimits)? This is how it is done in almost all math books).
Not sure what you want here! example? can be LateX
 * What about the size and finetuning of placement of indices in integrals and 
 sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous thread 
 on this list. Is there any drawback in giving double bars for \|? Of course I 
 can relearn and use \lVert and \rVert, but I have a feeling that if we want 
 people moving from LaTeX to ConTeXt, then this is the kind of things that 
 should just work as expected...
 
 Best regards, Mikael

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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Mikael P. Sundqvist
On Tue, Feb 11, 2014 at 11:33 AM, Keith J. Schultz schul...@uni-trier.dewrote:


 Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:

 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:

 Hi,

 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.

 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).

 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.


 In mkiv we follow some alternative approaches compared to mkii (and
 probably other tex macro packages) and some aspects indeed might need
 tuning (or more configuration options) .. I try hard to get away from
 hackery solutions (for several reasons).


 I agree it is good to avoid hackery as long as possible, and I for sure is
 ready to relearn how to write some things. With the examples I gave in the
 previous email in mind:

 * How am I supposed to write first derivative (f') and second derivative
 (f'') in such a way that they have the same type of prime (the prime in the
 first derivative is the one I prefer)?

 No sure if to call this a bug! It seems that a single prime is always
 larger than multiple ones!
 You can always change its size!


I think the user should not have to change its size. All primes should have
the same size, independent if they are one or several.



 * How am I supposed to write f_xx'' to get the output as in the LaTeX
 example (i.e. so that the primes are over the xx)?

 have to switch things around: f''_xx or f''_{xx}  depending on the actual
 result you want.


I know about the grouping. Please have a look at my example files in my
earlier post in this thread.




 * Could the default placement of limits in integrals be changed
 (integral=nolimits)? This is how it is done in almost all math books).

 Not sure what you want here! example? can be LateX


As above, I gave examples...

Best regards, Mikael



 * What about the size and finetuning of placement of indices in integrals
 and sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous
 thread on this list. Is there any drawback in giving double bars for \|? Of
 course I can relearn and use \lVert and \rVert, but I have a feeling that
 if we want people moving from LaTeX to ConTeXt, then this is the kind of
 things that should just work as expected...

 Best regards, Mikael


 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

 ___

___
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: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-11 Thread Fabrice Couvreur
Hi Martin,
Sorry, but I do not find fonts cambria and cambria math to install with
Debian.
thank you,
Fabrice


2014-02-11 14:18 GMT+01:00 Mikael P. Sundqvist mic...@gmail.com:

 On Tue, Feb 11, 2014 at 11:33 AM, Keith J. Schultz 
 schul...@uni-trier.dewrote:


 Am 11.02.2014 um 09:57 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Mon, Feb 10, 2014 at 6:57 PM, Hans Hagen pra...@wxs.nl wrote:

 On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:

 Hi,

 I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
 worked just fine.

 At the moment I write some exams and hand-outs using ConTeXt, but
 research using LaTeX (since the journals do not really accept ConTeXt
 and my collaborators dont know ConTeXt).

 It certainly works OK to write math in ConTeXt, but I have a feeling
 that there are some things that are somewhat broken or not finetuned to
 output what mathematicians expect. Look at the attached pdf files [1]
 l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
 source l.tex and c.tex for some examples.


 In mkiv we follow some alternative approaches compared to mkii (and
 probably other tex macro packages) and some aspects indeed might need
 tuning (or more configuration options) .. I try hard to get away from
 hackery solutions (for several reasons).


 I agree it is good to avoid hackery as long as possible, and I for sure
 is ready to relearn how to write some things. With the examples I gave in
 the previous email in mind:

  * How am I supposed to write first derivative (f') and second derivative
 (f'') in such a way that they have the same type of prime (the prime in the
 first derivative is the one I prefer)?

 No sure if to call this a bug! It seems that a single prime is always
 larger than multiple ones!
 You can always change its size!


 I think the user should not have to change its size. All primes should
 have the same size, independent if they are one or several.



 * How am I supposed to write f_xx'' to get the output as in the LaTeX
 example (i.e. so that the primes are over the xx)?

 have to switch things around: f''_xx or f''_{xx}  depending on the actual
 result you want.


 I know about the grouping. Please have a look at my example files in my
 earlier post in this thread.




 * Could the default placement of limits in integrals be changed
 (integral=nolimits)? This is how it is done in almost all math books).

  Not sure what you want here! example? can be LateX


 As above, I gave examples...

 Best regards, Mikael



 * What about the size and finetuning of placement of indices in integrals
 and sums (and probably products, unions, ...)?
 * I remember I suggested that \| should be double bars in a previous
 thread on this list. Is there any drawback in giving double bars for \|? Of
 course I can relearn and use \lVert and \rVert, but I have a feeling that
 if we want people moving from LaTeX to ConTeXt, then this is the kind of
 things that should just work as expected...

 Best regards, Mikael


 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

 ___




 ___
 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] OT: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-10 Thread Mikael P. Sundqvist
Hi,

I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
worked just fine.

At the moment I write some exams and hand-outs using ConTeXt, but research
using LaTeX (since the journals do not really accept ConTeXt and my
collaborators dont know ConTeXt).

It certainly works OK to write math in ConTeXt, but I have a feeling that
there are some things that are somewhat broken or not finetuned to output
what mathematicians expect. Look at the attached pdf files [1] l.pdf (from
LaTeX) and c.pdf (from latest standalone ConTeXt), with source l.tex and
c.tex for some examples.

When it comes to math environments, I think that thanks to the environments
in http://dl.contextgarden.net/myway/mathalign.pdf we are OK. I sometimes
miss the multline(d) environment from LaTeX.

Best regards, Mikael

[1]
The attachments were too big, so I decided to put the pdf files on
http://www.maths.lth.se/~mickep/l.pdf
and
http://www.maths.lth.se/~mickep/c.pdf




On Sun, Feb 9, 2014 at 8:09 PM, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello ConTeXist.
 I am very sorry for this OFF TOPIC contribution.

 For writing of this text led me several hours of searching on internet. I
 was looking for ways to typing of non-elementary math in ConTeXt

 Already a long time I use ConTeXt typesetting lot of different things and
 I am very satisfied. In the many things, of which I typed, was maths
 represented only marginally and minimally. Now I need to type some
 mathematics (at secondary school level) and I found that I came across
 borders of my knowledge of ConTeXt, or on possibilities of ConTeXt for
 typesetting of mathematics.
 I do not in any way call into question the ability of ConTeXt typesetting
 mathematics, although I think that who wants to type mathematics then use
 LaTeX.
 I want find experience of users of ConTeXt for real using of ConTeXt for
 typesetting of mathematics. I wonder how users use possible math modules
 (exist anything?) to be usable results.

 I have a few questions:

 0. Do you think that this is only a problem for beginners of ConText or it
 is a general problem of ConTeXt?
 1. How many of ConTeXt users use this tool for typesetting of
 non-elementary mathematics?
 2. Are you satisfied with the results, which produces ConTeXt (thinking in
 the field of mathematics rate)?
 3. What things do you need to have in ConTeXt study that one could bet
 mathematics at a reasonable level?
 4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g. in the
 future)?
 5. Can you think of any more questions that should be here?


 I hope that my question will help other beginners who would like to typing
 of mathematics use ConText - this unique and useful tool.

 Thanks for all the answers.

 Jaroslav Hajtmar


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



c.tex
Description: TeX document


l.tex
Description: TeX document
___
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: Reflections on usability ConTeXt for typesetting of mathematics

2014-02-10 Thread Hans Hagen

On 2/10/2014 9:24 AM, Mikael P. Sundqvist wrote:

Hi,

I used ConTeXt (mkii) to write my PhD thesis in Mathematics in 2008. It
worked just fine.

At the moment I write some exams and hand-outs using ConTeXt, but
research using LaTeX (since the journals do not really accept ConTeXt
and my collaborators dont know ConTeXt).

It certainly works OK to write math in ConTeXt, but I have a feeling
that there are some things that are somewhat broken or not finetuned to
output what mathematicians expect. Look at the attached pdf files [1]
l.pdf (from LaTeX) and c.pdf (from latest standalone ConTeXt), with
source l.tex and c.tex for some examples.


In mkiv we follow some alternative approaches compared to mkii (and 
probably other tex macro packages) and some aspects indeed might need 
tuning (or more configuration options) .. I try hard to get away from 
hackery solutions (for several reasons).



When it comes to math environments, I think that thanks to the
environments in http://dl.contextgarden.net/myway/mathalign.pdf
http://dl.contextgarden..net/myway/mathalign.pdf we are OK. I
sometimes miss the multline(d) environment from LaTeX.

Best regards, Mikael

[1]
The attachments were too big, so I decided to put the pdf files on
http://www.maths.lth.se/~mickep/l.pdf
and
http://www.maths.lth.se/~mickep/c.pdf




On Sun, Feb 9, 2014 at 8:09 PM, Jaroslav Hajtmar hajt...@gyza.cz
mailto:hajt...@gyza.cz wrote:

Hello ConTeXist.
I am very sorry for this OFF TOPIC contribution.

For writing of this text led me several hours of searching on
internet. I was looking for ways to typing of non-elementary math in
ConTeXt

Already a long time I use ConTeXt typesetting lot of different
things and I am very satisfied. In the many things, of which I
typed, was maths represented only marginally and minimally. Now I
need to type some mathematics (at secondary school level) and I
found that I came across borders of my knowledge of ConTeXt, or on
possibilities of ConTeXt for typesetting of mathematics.
I do not in any way call into question the ability of ConTeXt
typesetting mathematics, although I think that who wants to type
mathematics then use LaTeX.
I want find experience of users of ConTeXt for real using of ConTeXt
for typesetting of mathematics. I wonder how users use possible math
modules (exist anything?) to be usable results.

I have a few questions:

0. Do you think that this is only a problem for beginners of ConText
or it is a general problem of ConTeXt?
1. How many of ConTeXt users use this tool for typesetting of
non-elementary mathematics?
2. Are you satisfied with the results, which produces ConTeXt
(thinking in the field of mathematics rate)?
3. What things do you need to have in ConTeXt study that one could
bet mathematics at a reasonable level?
4. Is ConTeXt able to substitute LaTeX to typesetting of math (e.g.
in the future)?
5. Can you think of any more questions that should be here?


I hope that my question will help other beginners who would like to
typing of mathematics use ConText - this unique and useful tool.

Thanks for all the answers.

Jaroslav Hajtmar



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

Re: [NTG-context] getting text outside cropmarks to work

2014-02-06 Thread Wolfgang Schuster

Am 05.02.2014 um 17:30 schrieb Lars Huttar lars_hut...@sil.org:

 On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
 Am 05.02.2014 um 16:45 schrieb Lars Huttar lars_hut...@sil.org:
 
 Hello,
 
 Under mkii we used to have a running footer that appeared below the crop
 marks. Under mkiv I can't get that to work.
 
 The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):
 
 \def\TopText { Top Text }
 
 \def\BottomText { Bottom Text }
 
 \def\pagecutmarksymbol {\the\realpageno}
 
 \def\pagecutmarklength {.5cm}
 
 \let\pagecutmarktoptext \TopText
 
 \let\pagecutmarkbottomtext \BottomText
 
 \setuplayout[marking=text]
 
 %\setuplayout[marking=on]
 
 \starttext
 
 \input knuth
 
 \stoptext
 
 Code like this used to work for us in mkii.
 Redefining internal commands isn’t a good solution, what you can do is to 
 use a layer to place your texts.
 
 
 Thanks for your reply.
 
 When you say redefining internal commands, is that referring to
 statements like
 
  \let\pagecutmarktoptext \TopText
 
 ?
 
 AFAICT this is the recommended solution, both on the current wiki 
 (http://wiki.contextgarden.net/Imposition#Cut_marks) and by Hans 
 (http://context.markmail.org/thread/kpayudrtabsti76i) albeit several years 
 ago; the current ref man (section 3.4 Page design / page composition) also 
 lists marking=TEXT as an option for \setuplayout. If this is correct, how is 
 one supposed to specify the text to display?
 
 Am I misunderstanding the documentation, or is it just obsolete?
 
 If we need to implement this using layers, does anyone have a recent
 example of using a layer to place a running footer outside the crop marks?

\setuppapersize[A4][A3]

\setuplayout[location=middle,marking=on]

\setupbodyfont[modern]

\definelayer[cropmark][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=cropmark]

\setlayer[cropmark][preset=middlebottom,y=-\lineheight]{Bottom Text}
\setlayer[cropmark][preset=middletop,y=-\lineheight]{Top Text}

\starttext
\input knuth
\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] getting text outside cropmarks to work

2014-02-05 Thread Lars Huttar
Hello,

Under mkii we used to have a running footer that appeared below the crop
marks. Under mkiv I can't get that to work.

The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):

\def\TopText { Top Text }

\def\BottomText { Bottom Text }

\def\pagecutmarksymbol {\the\realpageno}

\def\pagecutmarklength {.5cm}

\let\pagecutmarktoptext \TopText

\let\pagecutmarkbottomtext \BottomText

\setuplayout[marking=text]

%\setuplayout[marking=on]

\starttext

\input knuth

\stoptext


Code like this used to work for us in mkii.


I tried it with both marking=text and marking=on, but in either case, I
get neither crop marks nor the text.
(In our real document, I was able to get crop marks with [marking=on].
But not text. And haven't figured out how to get crop marks in a MWE.)


Relevant guidance I've been trying to follow:
http://wiki.contextgarden.net/Imposition#Cut_marks
http://context.markmail.org/thread/kpayudrtabsti76i

Thanks for any help on how to get text (pagecutmarkbottomtext) to appear
outside the crop marks.

Lars

___
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] getting text outside cropmarks to work

2014-02-05 Thread Wolfgang Schuster

Am 05.02.2014 um 16:45 schrieb Lars Huttar lars_hut...@sil.org:

 Hello,
 
 Under mkii we used to have a running footer that appeared below the crop
 marks. Under mkiv I can't get that to work.
 
 The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):
 
 \def\TopText { Top Text }
 
 \def\BottomText { Bottom Text }
 
 \def\pagecutmarksymbol {\the\realpageno}
 
 \def\pagecutmarklength {.5cm}
 
 \let\pagecutmarktoptext \TopText
 
 \let\pagecutmarkbottomtext \BottomText
 
 \setuplayout[marking=text]
 
 %\setuplayout[marking=on]
 
 \starttext
 
 \input knuth
 
 \stoptext
 
 Code like this used to work for us in mkii.

Redefining internal commands isn’t a good solution, what you can do is to use a 
layer to place your texts.

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] getting text outside cropmarks to work

2014-02-05 Thread Lars Huttar
On 2/5/2014 11:03 AM, Wolfgang Schuster wrote:
 Am 05.02.2014 um 16:45 schrieb Lars Huttar lars_hut...@sil.org:

 Hello,

 Under mkii we used to have a running footer that appeared below the crop
 marks. Under mkiv I can't get that to work.

 The MWE I'm trying (with ConTeXt mkiv from the TeXLive 2013 CD):

 \def\TopText { Top Text }

 \def\BottomText { Bottom Text }

 \def\pagecutmarksymbol {\the\realpageno}

 \def\pagecutmarklength {.5cm}

 \let\pagecutmarktoptext \TopText

 \let\pagecutmarkbottomtext \BottomText

 \setuplayout[marking=text]

 %\setuplayout[marking=on]

 \starttext

 \input knuth

 \stoptext

 Code like this used to work for us in mkii.
 Redefining internal commands isn’t a good solution, what you can do is to use 
 a layer to place your texts.


Thanks for your reply.

When you say redefining internal commands, is that referring to
statements like

  \let\pagecutmarktoptext \TopText

?

AFAICT this is the recommended solution, both on the current wiki 
(http://wiki.contextgarden.net/Imposition#Cut_marks) and by Hans 
(http://context.markmail.org/thread/kpayudrtabsti76i) albeit several years ago; 
the current ref man (section 3.4 Page design / page composition) also lists 
marking=TEXT as an option for \setuplayout. If this is correct, how is one 
supposed to specify the text to display?

Am I misunderstanding the documentation, or is it just obsolete?

If we need to implement this using layers, does anyone have a recent
example of using a layer to place a running footer outside the crop marks?

Thanks,
Lars

___
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] Metafun: numeric=color

2014-01-30 Thread Hans Hagen

On 1/29/2014 9:41 PM, Otared Kavian wrote:

Hi,

With the latest beta,

ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.1.29

in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) 
which used to typeset correctly until last week, I get an error message saying:

Preloading the plain mem file, version 1.004 for metafun ii  cyan  
(0,1,1) ! Equation cannot be performed (numeric=color).

Unfortunately I cannot reproduce this error message in a minimal example, but 
can anyone tell me whether something has changed in MetaPost?


fixed

-
  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] Metafun: numeric=color

2014-01-29 Thread Otared Kavian
Hi,

With the latest beta,

ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.1.29

in a file typeset with mkii I have a bunch of metapost macros (drawing a logo…) 
which used to typeset correctly until last week, I get an error message saying:

Preloading the plain mem file, version 1.004 for metafun ii  cyan  
(0,1,1) ! Equation cannot be performed (numeric=color). 

Unfortunately I cannot reproduce this error message in a minimal example, but 
can anyone tell me whether something has changed in MetaPost?

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] Change the default text colour for entire document

2014-01-27 Thread Hans Hagen

On 1/27/2014 12:24 AM, Wolfgang Schuster wrote:


Am 22.01.2014 um 02:15 schrieb Thangalin thanga...@gmail.com:


Hi,

In ConTeXt to change the default text colour for the entire document,
there are at least two settings that need to be configured:

  \setupcolors[textcolor=red]
  \setupinmargin[line=13,color=red,style=slanted,]

The border colour for tables remains black:

\setupcolors[textcolor=red]
\setupinmargin[color=red]

\starttext
{\bTABLE
\bTR \bTD One \eTD \bTD Two \eTD \eTR
\eTABLE}
\stoptext

How can you override *all* instances of black? (Ideally there would be
a single setting that is inherited by all.) That is, it is difficult
to know all the various aspects of a ConTeXt document that use the
default black colour -- margins, body text, table borders, and
possibly more that I don't know about.


Notes (local notes excluded because they use a different placement system)
and margin texts ignore the global text color because both mechanism reset
colors and many other settings to avoid unwanted output from local changes
in the main text etc.

Even though there is a comment about this problem for margin notes in
the source it wasn’t fixed yet but I think it makes sense to to so.


\appendtoks
\inheritmaintextcolor
\to \everybeforenoteinsert

\appendtoks
\inheritmaintextcolor
\to \everymargindatacontent

could work, but it needs testing as we cannot predict side effects


The problem with the black frames for natural tables are a result of the 
explicit
framecolor setup for it (I guess to avoid problems when you use metapost
backgrounds which use the framecolor value). A possible way to fix this is to
add a framecolor setup to \setupcolors which argument is now used as default
color for the frame of natural tables, this way can use this color also in other
commands (core functions as well as third party modules) to set a default value.


needs some thinking

\setupTABLE
  [framecolor=\maintextcolor]

some settings date from mkii times but again we need to think of side 
effects


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] Change the default text colour for entire document

2014-01-27 Thread Keith J. Schultz
Hi Everybody,

If I remember right colors can be defined in ConTeXt, right?

So why not just redefine black!

If this is stupid, the defaults get initialize before a redefined occurs!

forget it!

Just a stupid simplistic idea!

regards
Keith.
 
Am 27.01.2014 um 12:10 schrieb Hans Hagen pra...@wxs.nl:

 On 1/27/2014 12:24 AM, Wolfgang Schuster wrote:
 
 Am 22.01.2014 um 02:15 schrieb Thangalin thanga...@gmail.com:
 
 Hi,
 
 In ConTeXt to change the default text colour for the entire document,
 there are at least two settings that need to be configured:
 
  \setupcolors[textcolor=red]
  \setupinmargin[line=13,color=red,style=slanted,]
 
 The border colour for tables remains black:
 
 \setupcolors[textcolor=red]
 \setupinmargin[color=red]
 
 \starttext
 {\bTABLE
 \bTR \bTD One \eTD \bTD Two \eTD \eTR
 \eTABLE}
 \stoptext
 
 How can you override *all* instances of black? (Ideally there would be
 a single setting that is inherited by all.) That is, it is difficult
 to know all the various aspects of a ConTeXt document that use the
 default black colour -- margins, body text, table borders, and
 possibly more that I don't know about.
 
 Notes (local notes excluded because they use a different placement system)
 and margin texts ignore the global text color because both mechanism reset
 colors and many other settings to avoid unwanted output from local changes
 in the main text etc.
 
 Even though there is a comment about this problem for margin notes in
 the source it wasn’t fixed yet but I think it makes sense to to so.
 
 \appendtoks
\inheritmaintextcolor
 \to \everybeforenoteinsert
 
 \appendtoks
\inheritmaintextcolor
 \to \everymargindatacontent
 
 could work, but it needs testing as we cannot predict side effects
 
 The problem with the black frames for natural tables are a result of the 
 explicit
 framecolor setup for it (I guess to avoid problems when you use metapost
 backgrounds which use the framecolor value). A possible way to fix this is to
 add a framecolor setup to \setupcolors which argument is now used as default
 color for the frame of natural tables, this way can use this color also in 
 other
 commands (core functions as well as third party modules) to set a default 
 value.
 
 needs some thinking
 
 \setupTABLE
  [framecolor=\maintextcolor]
 
 some settings date from mkii times but again we need to think of side effects
 
 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
___

[NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Otared Kavian
Hi Hans,

It seems that with the latest beta mkiv, version

ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  

\widetilde and \widehat in mathmode are misplaced (and this is so in any of the 
fonts I tried).
Please compare the result of the following in mkii (where everything is 
correct) and in mkiv:
 begin tilde-hat.tex
\starttext

We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := \int_{{\Bbb 
R}}\exp(-{\rm i}x\xi)f(x)dx$.

\stoptext
 end tilde-hat.tex
The attached PDF is obtained with mkiv.
Best regards: OK



bug-widetilde.pdf
Description: Adobe PDF document
___
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] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Jannik Voges
The minimal example works fine with the latest beta (ConTeXt  ver: 2014.01.24 
10:20 MKIV beta  fmt: 2014.1.24).


Am 23.01.2014 um 21:52 schrieb Otared Kavian otared.kav...@gmail.com:

 Hi Hans,
 
 It seems that with the latest beta mkiv, version
 
   ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  
 
 \widetilde and \widehat in mathmode are misplaced (and this is so in any of 
 the fonts I tried).
 Please compare the result of the following in mkii (where everything is 
 correct) and in mkiv:
  begin tilde-hat.tex
 \starttext
 
 We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := \int_{{\Bbb 
 R}}\exp(-{\rm i}x\xi)f(x)dx$.
 
 \stoptext
  end tilde-hat.tex
 The attached PDF is obtained with mkiv.
 Best regards: OK
 
 bug-widetilde.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
 ___

___
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] Misplaced \widehat and \widetilde in mkiv?

2014-01-24 Thread Otared Kavian
Yes that’s correct!
Thanks Hans for the quick fix (I tried a dozen different fonts, and they are 
all fine).

Best regards: OK

On 24 janv. 2014, at 13:09, Jannik Voges researchj...@icloud.com wrote:

 The minimal example works fine with the latest beta (ConTeXt  ver: 2014.01.24 
 10:20 MKIV beta  fmt: 2014.1.24).
 
 
 Am 23.01.2014 um 21:52 schrieb Otared Kavian otared.kav...@gmail.com:
 
 Hi Hans,
 
 It seems that with the latest beta mkiv, version
 
  ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  
 
 \widetilde and \widehat in mathmode are misplaced (and this is so in any of 
 the fonts I tried).
 Please compare the result of the following in mkii (where everything is 
 correct) and in mkiv:
  begin tilde-hat.tex
 \starttext
 
 We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := 
 \int_{{\Bbb R}}\exp(-{\rm i}x\xi)f(x)dx$.
 
 \stoptext
  end tilde-hat.tex
 The attached PDF is obtained with mkiv.
 Best regards: OK
 
 bug-widetilde.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
 ___
 
 ___
 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
___


[NTG-context] Misplaced \widehat and \widetilde in mkiv?

2014-01-23 Thread Otared Kavian
Hi Hans,

It seems that with the latest beta mkiv, version

ConTeXt  ver: 2014.01.23 01:55 MKIV beta  fmt: 2014.1.23  

\widetilde and \widehat in mathmode are misplaced (and this is so in any of the 
fonts I tried).
Please compare the result of the following in mkii (where everything is 
correct) and in mkiv:
 begin tilde-hat.tex
\starttext

We set ${\widetilde n}(t) := n(1 - t)$, and ${\widehat u}(\xi) := \int_{{\Bbb 
R}}\exp(-{\rm i}x\xi)f(x)dx$.

\stoptext
 end tilde-hat.tex
The attached PDF is obtained with mkiv.
Best regards: OK



bug-widetilde.pdf
Description: Adobe PDF document
___
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] unknown library 'loc'

2014-01-13 Thread Keith J. Schultz
Hi Hans,

Suppressing the message of a loc that is not needed would be the cleanest
method. 

IMHO, it should not be even causing a warning. 

regards
Keith.

Am 12.01.2014 um 23:50 schrieb Hans Hagen pra...@wxs.nl:

 On 1/12/2014 11:23 AM, Keith J. Schultz wrote:
 Hi Hans,
 
 Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:
 
 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 Has someone an idee what causes the unknown library message as in the
 log below? Is it harmful?
 
 fontstypescripts  unknown library 'loc'
 
 you can add a file type-loc.mkiv someplace in your local tree with
 
 % dummy file
 
 \endinput
 
 this file can be used for local overrides (just some mkii compatible 
 feature).
  If this is the case, should not the the dummy-file be in the 
 distribution!
  That way if somebody has local overrides they can modify it if needed,
  and the rest of have one lees message we need to worry, about?
 
 It depends ... there are some more loc files, like cont-loc.mkiv and we don't 
 ship these either. Normally users would put such files in texmf-local 
 nowadays but in the past that tree has changes positions in texlive (loading 
 order) so we make no assumptions i.e. it can even be in the main base path 
 which in turn means that we need to make sure it doesn't get overwritten. 
 Easier is probably to suppress the message (ugly but doable).
 
 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] unknown library 'loc'

2014-01-12 Thread Keith J. Schultz
Hi Hans,

Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:

 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 Has someone an idee what causes the unknown library message as in the
 log below? Is it harmful?
 
 fontstypescripts  unknown library 'loc'
 
 you can add a file type-loc.mkiv someplace in your local tree with
 
 % dummy file
 
 \endinput
 
 this file can be used for local overrides (just some mkii compatible feature).
If this is the case, should not the the dummy-file be in the 
distribution!
That way if somebody has local overrides they can modify it if needed,
and the rest of have one lees message we need to worry, about?

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] unknown library 'loc'

2014-01-12 Thread Hans Hagen

On 1/12/2014 11:23 AM, Keith J. Schultz wrote:

Hi Hans,

Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:


On 1/3/2014 2:33 PM, H. van der Meer wrote:

Has someone an idee what causes the unknown library message as in the
log below? Is it harmful?

fontstypescripts  unknown library 'loc'


you can add a file type-loc.mkiv someplace in your local tree with

% dummy file

\endinput

this file can be used for local overrides (just some mkii compatible feature).

If this is the case, should not the the dummy-file be in the 
distribution!
That way if somebody has local overrides they can modify it if needed,
and the rest of have one lees message we need to worry, about?


It depends ... there are some more loc files, like cont-loc.mkiv and we 
don't ship these either. Normally users would put such files in 
texmf-local nowadays but in the past that tree has changes positions in 
texlive (loading order) so we make no assumptions i.e. it can even be in 
the main base path which in turn means that we need to make sure it 
doesn't get overwritten. Easier is probably to suppress the message 
(ugly but doable).


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] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian

On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello Otared.
 I will throw this one... Thanx.
 
 Once I was using exercise-answer package for LaTeX.
 Is there anything like this to use in ConTeXt?
 
 Thanx
 Jaroslav Hajtmar

Hello Jaroslav,

I have something like the following which was given to me by Hans a long time 
ago: unfortunately for some reason this does not work anymore with ConTeXt 
mkiv, but it is quite fine with mkii:

%%% begin question-hint-answer.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question][location=hanging,text={Question},stopper={.}]
\defineenumeration[hint][location=hanging,text={Hint for question},stopper={.}]
\defineenumeration[answer][location=hanging,text={Answer to 
question},stopper={.}]

\hideblocks[hint]
\hideblocks[answer]

\starttext
\section{Questions}

\beginquestion
\question Compute $4\times 5$.

\beginhint
\hint Use the fact that $2\times 5 = 10$.
\endhint

\beginanswer
\answer $20$.
\endanswer

\endquestion

\beginquestion
\question What is the value of $100 / 10$?

\beginhint
\hint Remember that $10\times 10 = 100$.
\endhint

\beginanswer
\answer $10$
\endanswer

\endquestion

\section{Hints}
\useblocks[hint]

\section{Answers}
\useblocks[answer]

\stoptext
%%% end question-hint-answer.tex

Best regards: OK



 
 
 Dne 9.1.2014 15:19, Otared Kavian napsal(a):
 %%% begin example-exercise.tex
 %%%
 % defining \startexo, \stopexo as an enumeration:
 \startsetups style:simple
 \defineenumeration[exo]
  [alternative=hanging,
  width=fit,
  stopper={.},
  text=Exercise,
 %between=,
  before=,
  after=\blank]
 \stopsetups % style:simple
 
 \startsetups style:textrule
 \definenumber[MyExoNumber][way=bysection,sectionumber=yes]
 \setuptextrules[rulecolor=darkred]
 \define\ExoCommand{\incrementnumber[MyExoNumber]
  \textrule[top]{Exercise \getnumber[MyExoNumber]}
  \startbackground[frame=off,leftframe=on,backgroundcolor=white,
  framecolor=darkred]}
 
 \defineenumeration[exo]
  [alternative=hanging,
  width=fit,
  text={},
  number=hide,
  number=no,
  before={\ExoCommand},
  after={\stopbackground\blank}]
 \stopsetups % style:textrule
 
 % end defining \startexo, \stopexo as an enumeration
 %%%
 
 %defining  numbered questions
 \defineconversion[exercise][\numbers]
 %\setupitemize[packed]
 \def\StartQuestions{%
  \startitemize[exercise][width=2em,packed,style=bold,stopper=,right=)]}
 \def\StopQuestions{\stopitemize}
 \def\q{\item}
 
 % trye each of the following
 \setups[style:simple]
 %\setups[style:textrule]
 
 \starttext
 \startexo
 Prove that for all $a,b\in {\Bbb K}$, a field of characteristic 2, one has 
 $(a+b)^2  = a^2  + b^2$.
 \stopexo
 
 
 \startexo
 Prove that for all $a,b\in {\Bbb K}$, a field of characteristic 2, one has 
 $(a+b)^4  = a^4  + b^4$.
 \stopexo
 
 \startexo
 \StartQuestions
 \q Prove that
 \startformula
 \sum_{n=1}^\infty{1 \over n^2} = {\pi^2  \over 6}.
 \stopformula
 
 \q Prove that for any $n \geq 1$ integer one has
 \startformula
 \sum_{k=1}^n k^3  = \left({n(n+1) \over 2}\right)^2.
 \stopformula
 \StopQuestions
 \stopexo
 
 \stoptext
 %%% end example-exercise.tex
 
 ___
 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] setuphead for in-paragraph head ?

2014-01-09 Thread Aditya Mahajan

On Thu, 9 Jan 2014, Otared Kavian wrote:



On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote:


Hello Otared.
I will throw this one... Thanx.

Once I was using exercise-answer package for LaTeX.
Is there anything like this to use in ConTeXt?

Thanx
Jaroslav Hajtmar


Hello Jaroslav,

I have something like the following which was given to me by Hans a long 
time ago: unfortunately for some reason this does not work anymore with 
ConTeXt mkiv, but it is quite fine with mkii:


(Untested): Change location=hanging to alternative=hanging.


%%% begin question-hint-answer.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question][location=hanging,text={Question},stopper={.}]
\defineenumeration[hint][location=hanging,text={Hint for question},stopper={.}]
\defineenumeration[answer][location=hanging,text={Answer to 
question},stopper={.}]



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] setuphead for in-paragraph head ?

2014-01-09 Thread Wolfgang Schuster

Am 09.01.2014 um 16:36 schrieb Otared Kavian ota...@gmail.com:

 
 On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote:
 
 Hello Otared.
 I will throw this one... Thanx.
 
 Once I was using exercise-answer package for LaTeX.
 Is there anything like this to use in ConTeXt?
 
 Thanx
 Jaroslav Hajtmar
 
 Hello Jaroslav,
 
 I have something like the following which was given to me by Hans a long time 
 ago: unfortunately for some reason this does not work anymore with ConTeXt 
 mkiv, but it is quite fine with mkii:

Add \keepblocks[question].

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] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
Hi Wolfgang, Hi Aditya,

Thanks for your attention.
Unfortunately adding 
\keepblocks[question] 
the example I sent before does not work in mkiv, and changing 
location=hanging
to
alternative=hanging
does not help neither…
The error message in mkiv is:
\dostopnormalblock ...meter \c!after \par \egroup 
  
argument ...fact that $2\times 5 = 10$. \dostopnormalblock 
  \dostartnormalblock {hint}...
\dodowithpar ...dler \v!construction \endcsname #1
  \csname \??constructionsto…

So I don’t know what to do if one has to use mkiv.

Best regards: OK

On 9 janv. 2014, at 18:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 
 Am 09.01.2014 um 16:36 schrieb Otared Kavian ota...@gmail.com:
 
 
 On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote:
 
 Hello Otared.
 I will throw this one... Thanx.
 
 Once I was using exercise-answer package for LaTeX.
 Is there anything like this to use in ConTeXt?
 
 Thanx
 Jaroslav Hajtmar
 
 Hello Jaroslav,
 
 I have something like the following which was given to me by Hans a long 
 time ago: unfortunately for some reason this does not work anymore with 
 ConTeXt mkiv, but it is quite fine with mkii:
 
 Add \keepblocks[question].
 
 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] unknown library 'loc'

2014-01-06 Thread Hans Hagen

On 1/3/2014 2:33 PM, H. van der Meer wrote:

Has someone an idee what causes the unknown library message as in the
log below? Is it harmful?

fontstypescripts  unknown library 'loc'


you can add a file type-loc.mkiv someplace in your local tree with

% dummy file

\endinput

this file can be used for local overrides (just some mkii compatible 
feature).



(/Users/hansm/tex/context-16/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/hansm/tex/context-16/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/hansm/tex/context-16/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/hansm/tex/context-16/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map})

ConTeXt  ver: 2013.12.26 12:50 MKIV beta  fmt: 2013.12.29  int:
english/english

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
___




--

-
  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 hyphenation patterns for Indic languages

2013-12-18 Thread Rajeesh K Nambiar


 i uploaded a beta that has the patterns and language definitions .. but
 up
 to you to check it and provide better settings if needed


Thanks, Hans!
Now mkiv correctly loads the patterns and hyphenation works (though
even with \language[ml], log says language 'en' is active).

Is there a way to also enable mkii/texexec to load the patterns?
I did copy-paste the section from lang-def.mkiv to lang-ind.mkii and
also added an entry in lang-def.lua but the log does not show pattern
for ml loaded, in addition to mentioning language ml is undefined.


 Okay, is the best way to install beta to use the Standalone ConTeXt
 mechanism? Is it advisable to uninstall ConTeXt from TeXLive if so?
 (wiki says Context Standalone for Linux 32 bit is complied with
 glibc-2.3.6 while I have glibc-2.17).


 just install it in a different place and it will run independently from
 texlive

Installed on a separate location and works fine.


___
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 hyphenation patterns for Indic languages

2013-12-18 Thread Hans Hagen

On 12/18/2013 11:17 PM, Rajeesh K Nambiar wrote:




i uploaded a beta that has the patterns and language definitions .. but
up
to you to check it and provide better settings if needed




Thanks, Hans!
Now mkiv correctly loads the patterns and hyphenation works (though
even with \language[ml], log says language 'en' is active).


\language is a local command, use \mainlanguage instead


Is there a way to also enable mkii/texexec to load the patterns?
I did copy-paste the section from lang-def.mkiv to lang-ind.mkii and


probably some more is needed, but in mkii you then also need tp use utf 
8 i guess and have the right 8 bit fonts



also added an entry in lang-def.lua but the log does not show pattern
for ml loaded, in addition to mentioning language ml is undefined.


forget about mkii, using 8 bit tex is a bit of a nightmare for ml i think

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 hyphenation patterns for Indic languages

2013-12-18 Thread Rajeesh K Nambiar
On Wed, Dec 18, 2013 at 11:25 PM, Hans Hagen pra...@wxs.nl wrote:
 On 12/18/2013 11:17 PM, Rajeesh K Nambiar wrote:



 i uploaded a beta that has the patterns and language definitions .. but
 up
 to you to check it and provide better settings if needed



 Thanks, Hans!
 Now mkiv correctly loads the patterns and hyphenation works (though
 even with \language[ml], log says language 'en' is active).


 \language is a local command, use \mainlanguage instead

Does not seem to have an effect here. MWE:

\starttext
%\language[ml]
\mainlanguage[ml]
\definedfont[file:rachana*default]
കോണ്‍ടെക്സ്റ്റില്‍ മലയാളം ടൈപ്പ്സെറ്റ് ചെയ്തത്
\stoptext

The font, Rachana, could be found here:
http://download.savannah.gnu.org/releases/smc/fonts/malayalam-fonts-6.0/Rachana/Rachana.ttf



 Is there a way to also enable mkii/texexec to load the patterns?
 I did copy-paste the section from lang-def.mkiv to lang-ind.mkii and


 probably some more is needed, but in mkii you then also need tp use utf 8 i
 guess and have the right 8 bit fonts


 also added an entry in lang-def.lua but the log does not show pattern
 for ml loaded, in addition to mentioning language ml is undefined.


 forget about mkii, using 8 bit tex is a bit of a nightmare for ml i think

Indeed, but I am using mkii with XeTeX backend (texexec --xetex). I'm
trying to make Malayalam shaping work on mkiv (taking Devanagari
font-odv.lua as example) but it is quite complex, till then I'm
depending on mkii+xetex.



___
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] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure

2013-12-12 Thread Xan
 Am 09.12.2013 um 11:19 schrieb Xan dxpublica at telefonica.net:
 
  Hi,
  
  When I use:
  
  \startpagefigure[file.pdf][page=X]\stoppagefigure
  
  with page = 2 does not work. Always it puts the first page.
  
  I run MKIV.
  
  Is it a bug?
 
 It’s a change of the behavior of the command and I won’t say it’s a bad 
 change.
 
 To understand the change you have to know that pagefigure is combination
 of \startTeXpage and \externalfigure and you get the same result with
 
 \startTEXpage
   \externalfigure[filename]
 \stopTEXpage
 
 
 The first parameter of the page figure command is the name of the graphic
 and the second argument let you change the values for TeXpage, in the old
 MkII code the second parameter was also used as second argument for
 \externalfigure. A problem in MkII was that you had something in the second
 parameter which was used by \startTEXpage *and* \externalfigure and the
 output wasn’t what you expected. I guess to avoid this Hans doesn’t pass
 the values of the second argument to \externalfigure anymore.
 
 
 To select now a certain page from your external document just use
 the \startTEXpage and \externalfigure combination:
 
 \startTEXpage
   \externalfigure[filename][page=number]
 \stopTEXpage
 
 Wolfgang

Thanks, Wolfgang, for all.
So there is a real bug with the command which previously I used. @Hans could be 
fix it

Thanks,
Xan
___
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] \startpagefigure[file.pdf][page=1, ...]\stoppagefigure

2013-12-09 Thread Wolfgang Schuster

Am 09.12.2013 um 11:19 schrieb Xan dxpubl...@telefonica.net:

 Hi,
 
 When I use:
 
 \startpagefigure[file.pdf][page=X]\stoppagefigure
 
 with page = 2 does not work. Always it puts the first page.
 
 I run MKIV.
 
 Is it a bug?

It’s a change of the behavior of the command and I won’t say it’s a bad change.

To understand the change you have to know that pagefigure is combination
of \startTeXpage and \externalfigure and you get the same result with

\startTEXpage
  \externalfigure[filename]
\stopTEXpage


The first parameter of the page figure command is the name of the graphic
and the second argument let you change the values for TeXpage, in the old
MkII code the second parameter was also used as second argument for
\externalfigure. A problem in MkII was that you had something in the second
parameter which was used by \startTEXpage *and* \externalfigure and the
output wasn’t what you expected. I guess to avoid this Hans doesn’t pass
the values of the second argument to \externalfigure anymore.


To select now a certain page from your external document just use
the \startTEXpage and \externalfigure combination:

\startTEXpage
  \externalfigure[filename][page=number]
\stopTEXpage

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] vertical square root upstroke (instead of having a slant)

2013-12-02 Thread Hans Hagen

On 12/1/2013 8:57 PM, Sanjoy Mahajan wrote:

With the following minimal file on MkIV (2013.05.28 00:36 MKIV current),
the upstroke of the square root is vertical instead of having the usual
slant toward the right.  With MkII it has the usual slant.

I see this problem only with certain arrangements of variables (that
recur often in my book chapter on springs and piano strings).  For
example, it goes away after changing the \rho to a b.

\starttext
\startformula
\sqrt{Tb^2\over \rho}.
\stopformula
\stoptext

I know that the big math symbols are constructed differently in MkIV
and MkII.  Does the example above show an intended difference?


a radical has a couple of increasing sizes (discrete steps, if they have 
a slant depends of the font designer) before it switches to an 
extensible that then normally has no slant


(in context one can hook in a mp variant that keeps the slant)

(if needed we can make it an option to omit steps and always use upright)

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] bibliography - maybeyear

2013-11-29 Thread Thomas A. Schmitz

On 11/28/2013 06:37 PM, Hans Hagen wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?


\setuppublicationlist
   [maybeyear=off]


maybeyear is one of the areas that need fixing. The simple on/off 
mechanism is not sufficient, because the behavior needs to be more complex:


1. If the citation style does not use the year as a key, do not append 
letters.


2. If the citation style uses year as key and only one publication/year 
of an author is quoted and listed (even if there are several in the bib 
file) do not append letter.


3. Append letter if citation style uses year AND more than one 
publication/year for given author is quoted and listed.


I assume that in order for this to work, Hans will have to rewrite the 
code which produces the .bbl file from the bib. Right now, AFAICS, the 
.bbl contains the entire .bib database. It should only contain the 
entries which are cited.


Alan, does that make sense to you?

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
___


Re: [NTG-context] Unexpected behaviour of enumeration in mkiv

2013-11-28 Thread Thomas Möbius
2013/11/19 Thomas Möbius kont...@thomasmoebius.de:
 2013/11/18 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 15.11.2013 um 17:02 schrieb Thomas Möbius kont...@thomasmoebius.de:

 Hi,

 please have a look at the minimal example at the bottom.  I am
 typesetting theorems and lemmata which are numbered consecutively
 within chapters in a book.  I used the same code for a document
 written in mkii, and I thought I could just reuse it in mkiv.
 Obviously, there is something I am missing.  Question: How do I get
 the same output when compiling the following code with 'context' as
 when compiled with 'texexec'.

 When compiled with 'context', the chapter number is missing in the
 numbering of theorems. Lemmas are not numbered at all.

 ~~~snip~~~
 \setupenumerations
[title=yes,
style=normal,
list=all,
before={\blank[big]},
after={\blank[big]},
location=serried,

 Change “location=serried” to “alternative=serried”.

width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=bold,
way=bychapter,
conversion=numbers]

 You have to change “conversion” to “numberconversion” but this isn’t
 necessary because numbers are the default conversion format.

 To have chapter numbers as part of the counter add “prefix=yes”.

 \defineenumeration
[theorem]
[text=Theorem, listtext={Theorem }]

 \defineenumeration
[lemma]
[text=Lemma, listtext={Lemma }, number=theorem]

 To use the counter of another enumeration use “counter=theorem”, not 
 “name=theorem”.

 Wolfgang


 Thanks Wolfgang for the quick answer.  I changed my code accordingly.
 The prefix=yes option, though, does not entirely do as I expect it.
 It adds the chapter+section number as a prefix to each theorem (and
 lemma).  As I have way=bychapter in my options, though, it doesn't
 reset after a new section started (which is what I want!). The effect
 is odd as you can see in the minimal example.

 I only want to have the chapter number as a prefix. It's probably
 simple? difficult?

 Minimal example:

 ~~~snip~~~
 \setupenumerations
 [title=yes,
 style=normal,
 list=all,
 before={\blank[big]},
 after={\blank[big]},
 alternative=serried,
 width=broad,
 distance=0.5em,
 headstyle=bold,
 titlestyle=bold,
 way=bychapter,
 prefix=yes]

 \defineenumeration
 [theorem]
 [text=Theorem, listtext={Theorem }]

 \defineenumeration
 [lemma]
 [text=Lemma, listtext={Lemma }, counter=theorem]

 \starttext

 \chapter{First chapter}

 \section{First section}

 \theorem Hello

 \theorem Hello

 \lemma Hello

 \theorem Hello

 \section{Second section}

 \lemma Hello

 \theorem Hello

 \chapter{Second chapter}

 \section{First section}

 \theorem Hello

 \lemma Hello

 \section{Second section}

 \lemma Hello

 \theorem Hello

 \stoptext
 ~~~snip~~~


To answer my own question, adding

way=bychapter,
prefixsegments=chapter,

did the job!
___
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] bibliography - maybeyear

2013-11-28 Thread Hans Hagen

On 11/20/2013 9:12 AM, Alan Braslau wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?


\setuppublicationlist
  [maybeyear=off]

you can deduce that from \bibtexpublicationsparameter which you can read as

\bibtexpublicationsparameter

i.e. it is bound to \setupbibtexpublications

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] bibliography - maybeyear

2013-11-20 Thread Alan Braslau
Hello,

Using
  \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
  \def\maybeyear#1{#1}
or
  \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
  \appendtoks
 \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
   {\let\maybeyear\gobbleoneargument}
   {\let\maybeyear\firstofoneargument}%
  \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
  \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?

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
___


Re: [NTG-context] bibliography - maybeyear

2013-11-20 Thread Hans Hagen

On 11/20/2013 9:12 AM, Alan Braslau wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?



example needed

-
  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 with mavericks: broken

2013-11-19 Thread Hans Hagen

On 11/19/2013 7:52 AM, Otared Kavian wrote:

Hi Andrea,

According to Wolfgang Schuster and some others removing the file
Skia.ttf may solve the problem.
Please read the thread


no, it's a ruby issue (mkii related)

switching to mkiv solves the problem



http://www.ntg.nl/pipermail/ntg-context/2013/075689.html

and more precisely

http://www.ntg.nl/pipermail/ntg-context/2013/075701.html

Best regards: OK

On 19 nov. 2013, at 00:59, Andrea Valle va...@di.unito.it
mailto:va...@di.unito.it wrote:


Dear,

long time since I have posted to the list but still a dedicated
ConTeXt user…

Now, I’ve upgraded to Mavericks. No way to use ConTeXt.
I’ve also installed texlive 2013 and I installed the available updates.
But still my ConTeXt is broken (I’m typesetting from TeXShop via GUI
menu).
I always get this:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
`require': 
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501:
invalid multibyte escape: /\xFF/ (SyntaxError)
from
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
 `require'
from
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in
`main’

I can understand it has something to do with ruby but nothing else.

?

Many thanks

Best
-a-


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.fonurgia.unito.it/andrea/
-- http://www.flickr.com/photos/vanderaalle/sets/
-- http://vimeo.com/vanderaalle
-- http://www.youtube.com/user/vanderaalle
-- andrea.va...@unito.it mailto:andrea.va...@unito.it
--

This is a very complicated case, Maude. You know, a lotta ins, a
lotta outs, a lotta what-have-yous.
(Jeffrey 'The Dude' Lebowski)



--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.fonurgia.unito.it/andrea/
-- http://www.flickr.com/photos/vanderaalle/sets/
-- http://vimeo.com/vanderaalle
-- http://www.youtube.com/user/vanderaalle
-- andrea.va...@unito.it mailto:andrea.va...@unito.it
--

This is a very complicated case, Maude. You know, a lotta ins, a
lotta outs, a lotta what-have-yous.
(Jeffrey 'The Dude' Lebowski)

___
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 with mavericks: broken

2013-11-19 Thread Taco Hoekwater

On 19 Nov 2013, at 10:25, Hans Hagen pra...@wxs.nl wrote:

 On 11/19/2013 7:52 AM, Otared Kavian wrote:
 Hi Andrea,
 
 According to Wolfgang Schuster and some others removing the file
 Skia.ttf may solve the problem.
 Please read the thread
 
 no, it's a ruby issue (mkii related)

Mavericks' ruby is:

$ ruby --version
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
___
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 with mavericks: broken

2013-11-19 Thread Andrea Valle
Akira Kakuto suggested me this:

Please add a line
#encoding: ASCII-8BIT
at the top of
/usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb 

that fixed my problem, which is related to the texlive distro according to 
Hans, which is older than current

thanks to all!

-a-

PS: btw, should I consider to switch to MkIV? I mean, at the moment I’m not 
interested into Lua capabilities, but is mkII intended as a leggy support?


--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.fonurgia.unito.it/andrea/
-- http://www.flickr.com/photos/vanderaalle/sets/
-- http://vimeo.com/vanderaalle
--  http://www.youtube.com/user/vanderaalle
-- andrea.va...@unito.it
--

This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous. 
(Jeffrey 'The Dude' Lebowski)

On 19 Nov 2013, at 11:19, Taco Hoekwater t...@elvenkind.com wrote:

 
 On 19 Nov 2013, at 10:25, Hans Hagen pra...@wxs.nl wrote:
 
 On 11/19/2013 7:52 AM, Otared Kavian wrote:
 Hi Andrea,
 
 According to Wolfgang Schuster and some others removing the file
 Skia.ttf may solve the problem.
 Please read the thread
 
 no, it's a ruby issue (mkii related)
 
 Mavericks' ruby is:
 
 $ ruby --version
 ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
 ___
 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 with mavericks: broken

2013-11-19 Thread Andrea Valle
 but is mkII intended as a leggy support?

legacy! :) damn corrector 


 
 
 --
 Andrea Valle
 --
 CIRMA - StudiUm
 Università degli Studi di Torino
 -- http://www.cirma.unito.it/andrea/
 -- http://www.fonurgia.unito.it/andrea/
 -- http://www.flickr.com/photos/vanderaalle/sets/
 -- http://vimeo.com/vanderaalle
 --  http://www.youtube.com/user/vanderaalle
 -- andrea.va...@unito.it
 --
 
 This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, 
 a lotta what-have-yous. 
 (Jeffrey 'The Dude' Lebowski)
 
 On 19 Nov 2013, at 11:19, Taco Hoekwater t...@elvenkind.com wrote:
 
 
 On 19 Nov 2013, at 10:25, Hans Hagen pra...@wxs.nl wrote:
 
 On 11/19/2013 7:52 AM, Otared Kavian wrote:
 Hi Andrea,
 
 According to Wolfgang Schuster and some others removing the file
 Skia.ttf may solve the problem.
 Please read the thread
 
 no, it's a ruby issue (mkii related)
 
 Mavericks' ruby is:
 
 $ ruby --version
 ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
 ___
 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
 ___

___
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 with mavericks: broken

2013-11-19 Thread Hans Hagen

On 11/19/2013 11:40 AM, Andrea Valle wrote:


PS: btw, should I consider to switch to MkIV? I mean, at the moment I’m
not interested into Lua capabilities, but is mkII intended as a leggy
support?


it will stay but unchanged ... eventually the minimals will default to 
luatex only (leaner and meaner)


so mkiv is the way to go

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] Unexpected behaviour of enumeration in mkiv

2013-11-19 Thread Thomas Möbius
2013/11/18 Wolfgang Schuster schuster.wolfg...@gmail.com:

 Am 15.11.2013 um 17:02 schrieb Thomas Möbius kont...@thomasmoebius.de:

 Hi,

 please have a look at the minimal example at the bottom.  I am
 typesetting theorems and lemmata which are numbered consecutively
 within chapters in a book.  I used the same code for a document
 written in mkii, and I thought I could just reuse it in mkiv.
 Obviously, there is something I am missing.  Question: How do I get
 the same output when compiling the following code with 'context' as
 when compiled with 'texexec'.

 When compiled with 'context', the chapter number is missing in the
 numbering of theorems. Lemmas are not numbered at all.

 ~~~snip~~~
 \setupenumerations
[title=yes,
style=normal,
list=all,
before={\blank[big]},
after={\blank[big]},
location=serried,

 Change “location=serried” to “alternative=serried”.

width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=bold,
way=bychapter,
conversion=numbers]

 You have to change “conversion” to “numberconversion” but this isn’t
 necessary because numbers are the default conversion format.

 To have chapter numbers as part of the counter add “prefix=yes”.

 \defineenumeration
[theorem]
[text=Theorem, listtext={Theorem }]

 \defineenumeration
[lemma]
[text=Lemma, listtext={Lemma }, number=theorem]

 To use the counter of another enumeration use “counter=theorem”, not 
 “name=theorem”.

 Wolfgang


Thanks Wolfgang for the quick answer.  I changed my code accordingly.
The prefix=yes option, though, does not entirely do as I expect it.
It adds the chapter+section number as a prefix to each theorem (and
lemma).  As I have way=bychapter in my options, though, it doesn't
reset after a new section started (which is what I want!). The effect
is odd as you can see in the minimal example.

I only want to have the chapter number as a prefix. It's probably
simple? difficult?

Minimal example:

~~~snip~~~
\setupenumerations
[title=yes,
style=normal,
list=all,
before={\blank[big]},
after={\blank[big]},
alternative=serried,
width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=bold,
way=bychapter,
prefix=yes]

\defineenumeration
[theorem]
[text=Theorem, listtext={Theorem }]

\defineenumeration
[lemma]
[text=Lemma, listtext={Lemma }, counter=theorem]

\starttext

\chapter{First chapter}

\section{First section}

\theorem Hello

\theorem Hello

\lemma Hello

\theorem Hello

\section{Second section}

\lemma Hello

\theorem Hello

\chapter{Second chapter}

\section{First section}

\theorem Hello

\lemma Hello

\section{Second section}

\lemma Hello

\theorem Hello

\stoptext
~~~snip~~~
___
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 with mavericks: broken

2013-11-19 Thread Andrea Valle
thanks, got it
-a-
--
Andrea Valle
--
CIRMA - StudiUm
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.fonurgia.unito.it/andrea/
-- http://www.flickr.com/photos/vanderaalle/sets/
-- http://vimeo.com/vanderaalle
--  http://www.youtube.com/user/vanderaalle
-- andrea.va...@unito.it
--

This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a 
lotta what-have-yous. 
(Jeffrey 'The Dude' Lebowski)

On 19 Nov 2013, at 13:17, Hans Hagen pra...@wxs.nl wrote:

 On 11/19/2013 11:40 AM, Andrea Valle wrote:
 
 PS: btw, should I consider to switch to MkIV? I mean, at the moment I’m
 not interested into Lua capabilities, but is mkII intended as a leggy
 support?
 
 it will stay but unchanged ... eventually the minimals will default to luatex 
 only (leaner and meaner)
 
 so mkiv is the way to go
 
 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
___

[NTG-context] Unexpected behaviour of enumeration in mkiv

2013-11-18 Thread Thomas Möbius
Hi,

please have a look at the minimal example at the bottom.  I am
typesetting theorems and lemmata which are numbered consecutively
within chapters in a book.  I used the same code for a document
written in mkii, and I thought I could just reuse it in mkiv.
Obviously, there is something I am missing.  Question: How do I get
the same output when compiling the following code with 'context' as
when compiled with 'texexec'.

When compiled with 'context', the chapter number is missing in the
numbering of theorems. Lemmas are not numbered at all.

~~~snip~~~
\setupenumerations
[title=yes,
style=normal,
list=all,
before={\blank[big]},
after={\blank[big]},
location=serried,
width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=bold,
way=bychapter,
conversion=numbers]

\defineenumeration
[theorem]
[text=Theorem, listtext={Theorem }]

\defineenumeration
[lemma]
[text=Lemma, listtext={Lemma }, number=theorem]

\starttext

\chapter{First chapter}

\theorem Hello

\theorem Hello

\lemma Hello

\theorem Hello

\stoptext
~~~snip~~~
___
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] Unexpected behaviour of enumeration in mkiv

2013-11-18 Thread Wolfgang Schuster

Am 15.11.2013 um 17:02 schrieb Thomas Möbius kont...@thomasmoebius.de:

 Hi,
 
 please have a look at the minimal example at the bottom.  I am
 typesetting theorems and lemmata which are numbered consecutively
 within chapters in a book.  I used the same code for a document
 written in mkii, and I thought I could just reuse it in mkiv.
 Obviously, there is something I am missing.  Question: How do I get
 the same output when compiling the following code with 'context' as
 when compiled with 'texexec'.
 
 When compiled with 'context', the chapter number is missing in the
 numbering of theorems. Lemmas are not numbered at all.
 
 ~~~snip~~~
 \setupenumerations
[title=yes,
style=normal,
list=all,
before={\blank[big]},
after={\blank[big]},
location=serried,

Change “location=serried” to “alternative=serried”.

width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=bold,
way=bychapter,
conversion=numbers]

You have to change “conversion” to “numberconversion” but this isn’t
necessary because numbers are the default conversion format.

To have chapter numbers as part of the counter add “prefix=yes”.

 \defineenumeration
[theorem]
[text=Theorem, listtext={Theorem }]
 
 \defineenumeration
[lemma]
[text=Lemma, listtext={Lemma }, number=theorem]

To use the counter of another enumeration use “counter=theorem”, not 
“name=theorem”.

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] Integral limits

2013-11-18 Thread Aditya Mahajan

Hi,

In MkII, it was possible to change the limits on integrals using

   \setupmathematics[integral=...] % limits, nolimits, displaylimits

that would affect how \int, \iint, \iiint, \oint, etc behaved.

I can see two ways of definining a similar feature in MkIV.

1. Define \intop, \iintop, etc in char-def.lua and then somewhere define:

   \define\int{\intop\intlimits}
   \define\iint{\intop\intlimits}

  etc.

2. Define a new mathclass intop and use that in char-def.lua. Then, in 
the appropriate math-*.lua file, map intop to the appropriate macro.


What would be the best way to go?

Thanks,
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] Integral limits

2013-11-18 Thread Hans Hagen

On 11/18/2013 9:41 PM, Aditya Mahajan wrote:

Hi,

In MkII, it was possible to change the limits on integrals using

\setupmathematics[integral=...] % limits, nolimits, displaylimits

that would affect how \int, \iint, \iiint, \oint, etc behaved.

I can see two ways of definining a similar feature in MkIV.

1. Define \intop, \iintop, etc in char-def.lua and then somewhere define:

\define\int{\intop\intlimits}
\define\iint{\intop\intlimits}

   etc.

2. Define a new mathclass intop and use that in char-def.lua. Then, in
the appropriate math-*.lua file, map intop to the appropriate macro.

What would be the best way to go?


i prefer 2 (as these set the defaults) and we can make a definer for 
specific variants if needed (at all)


is intop the best name? (we don't need to be sparse)

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] announcement and call

2013-11-15 Thread Keith J. Schultz
Hi Thomas,


Am 14.11.2013 um 21:55 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:

 On 11/14/2013 09:40 PM, Philipp Gesang wrote:
 What I’d consider the most pressing issue, pertaining both to
 Context and to TeX as a whole, would be text streams a.k.a.
 parallel typesetting. It was discussed on the list a couple times
 already and at one point someone collected examples [1]. Also, I
 sketched the current state of parallel texts elsewhere [2].
 
 For certain values of pressing :-) Two pessimistic remarks about that: (1) 
 I experimented with a mechanism that Hans build for mkii a while ago, and I 
 found it difficult to decide how to define what was expected of parallel 
 typesetting. In the end, I wasn't convinced that an entirely automated 
 version was possible at all. (2) I'm afraid that's not part of the present 
 project and is related neither to critical editions nor to bibliographies.

I have to strongly disagree with you here. A critical edition is only a 
specialized case of parallel texts! You two or more editions that are 
contrasted/compared to each other.
Naturally, it must be bibliographically annotated and there are the comments of 
the author of the critical edition.

The  editions have to be typeset in parallel. There are many ways how an author 
can lay this out. In the far past it was common just to stack the contrasted 
versions on top of
each other! Very very ugly. Lots of examples in libraries. More recent ways are 
to use column. Yet, the more editions involved the harder it is to place on one 
page. For such cases
it would be best to spread them across two facing pages. 

The problem with the two page setup is synchronizing the comments, notes, 
discussion of the critical edition's author. For a half way pleasing layout 
these should interplaced between the contrasted editions across the two pages. 
Yes, not an easy task.

I agree that it is hard to automate the synchronization of text passages. The 
only viable approach would be at the paragraph level. A line level approach can 
only be achieved by
interaction of the author of the critical edition with synchronization marks of 
some sort inside the editions.

Early, in my education in Computer Linguistics, decades ago, we had project 
where we wrote a program for entry of critical editions. The editions/texts and 
comments were
entered in parallel on the tty-terminal screen and stored in a database. At 
that time we where no interested in fancy output and used a simple stacked 
output.

As you probably know yourself, it is the entry and synchronization of the 
editions that  is the problem an not as much the layout itself, though that is 
hard enough by itself.
I do not see any way to do this in a normal linear single pass process. The 
question is in how far ConTeXt can support this task. 
1) provide possibilities of laying out the texts synchronized in columns, 
stacks and two page layouts. Footnotes, under, columns, pages or across
either. Another, nice feature would be the availability of marginals in 
a synchronized way.
This should be a generalized module or set of commands as it 
can be used in many other fields be critical editions.
In other words a parallel texts layout package:
\defineparalleltextlayout[name][…]
\setupparalleltextlayout[name][…]{…}
\defineparalleltextpart[name][..]
\setupparalleltextpart[name][…]{…}
\startparalleltext[name][…]
\stopparalleltext
  . . .
 

2) providing commands that define which parts belong together
I would suggest that this be done mostly on the Lua side as you 
can then develop a database of sorts and worry about
the layout/typesetting of the critical edition later.
A package for marking up the editions directly.
\defineeditionslayout[name][…]
\setupeditionslayout[name][…]{…}
\defineedition[name][..]
\setupedition[name][…]{…}
\starteditionsl[name][…]
\stopeditions
\starteditiontext{name}{text}
\stopeditiontext
\startauthorremarks
\stopauthorsremarks
 . . .

desired MWE:
% definitions and setups
\starttext
   % some text
\starteditions[style1]
\starteditiontext{edition1}
   % some text

Re: [NTG-context] announcement and call

2013-11-15 Thread Hans Hagen

On 11/15/2013 11:31 AM, Keith J. Schultz wrote:

Hi Thomas,


Am 14.11.2013 um 21:55 schrieb Thomas A. Schmitz thomas.schm...@uni-bonn.de:


On 11/14/2013 09:40 PM, Philipp Gesang wrote:

What I’d consider the most pressing issue, pertaining both to
Context and to TeX as a whole, would be text streams a.k.a.
parallel typesetting. It was discussed on the list a couple times
already and at one point someone collected examples [1]. Also, I
sketched the current state of parallel texts elsewhere [2].


For certain values of pressing :-) Two pessimistic remarks about that: (1) I 
experimented with a mechanism that Hans build for mkii a while ago, and I found it 
difficult to decide how to define what was expected of parallel typesetting. In the end, 
I wasn't convinced that an entirely automated version was possible at all. (2) I'm afraid 
that's not part of the present project and is related neither to critical editions nor to 
bibliographies.


I have to strongly disagree with you here. A critical edition is only a 
specialized case of parallel texts! You two or more editions that are 
contrasted/compared to each other.
Naturally, it must be bibliographically annotated and there are the comments of 
the author of the critical edition.

The  editions have to be typeset in parallel. There are many ways how an author 
can lay this out. In the far past it was common just to stack the contrasted 
versions on top of
each other! Very very ugly. Lots of examples in libraries. More recent ways are 
to use column. Yet, the more editions involved the harder it is to place on one 
page. For such cases
it would be best to spread them across two facing pages.

The problem with the two page setup is synchronizing the comments, notes, 
discussion of the critical edition's author. For a half way pleasing layout 
these should interplaced between the contrasted editions across the two pages. 
Yes, not an easy task.


a lot depends on proper coding ... typesetting parallel texts is not per 
se the same as multiple streams ... it all depends on what one wants to 
achieve


also, if  1 page is used then we should not limit to 2 pages (or 
columns) in parallel



I agree that it is hard to automate the synchronization of text passages. The 
only viable approach would be at the paragraph level. A line level approach can 
only be achieved by
interaction of the author of the critical edition with synchronization marks of 
some sort inside the editions.


indeed. one cannot have the best of all worlds (perfect justification, 
perfect note handling, perfect synchronization) because the solition 
space gets too small


(one thing Thomas and I discussed shortly is more advanced pdf's with 
more embedded info and so ... something for later)


we also need to look into ebook like things ...


Early, in my education in Computer Linguistics, decades ago, we had project 
where we wrote a program for entry of critical editions. The editions/texts and 
comments were
entered in parallel on the tty-terminal screen and stored in a database. At 
that time we where no interested in fancy output and used a simple stacked 
output.

As you probably know yourself, it is the entry and synchronization of the 
editions that  is the problem an not as much the layout itself, though that is 
hard enough by itself.
I do not see any way to do this in a normal linear single pass process. The 
question is in how far ConTeXt can support this task.

 ...

time, motivation, etc ...


I have just a brain stormed possible starting point. It as you can see it has 
quite some felixiblity as to how the texts
is entered and ConTeXt does some rearranging during typesetting.

One type of critical edition we have not discussed is when the author whats to 
work on a word basis. But, that is even a bigger can
of worms for collating the data/texts.

Most of what I have describe it probably obvious to you, yet


well, keep collecting demands and examples ... best that we know what is 
needed (and by how many people, for how many years to come, as it makes 
no sense to develop code that is used once and then discarded because 
one moves to newer technologies) ...


we also need to keep in mind that this kind of things are author driven 
as publishers are not paying for this kind of things nor willing to 
invest / support development of tools (if they are interested in 
anything else than 25-50% profits at all).


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

[NTG-context] how to reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Lars Huttar
As you know, in plain TeX, \lineskiplimit tunes the vertical glue
algorithm by specifying the minimum amount of space between the bottom
edge of one line and the top edge of the following line.

But in ConTeXt, it appears that \lineskiplimit is set to zero, at least
in grid mode.
We're using grid mode, and we have some occasional high ascenders, e.g.
capital letters with diacritics on top.
We have bodyfont size 8.1pt, and interlinespace = 9.3pt. We realize this
is less than the recommended ratio of 1.2.

Understandably, when those tall characters occur, we sometimes get a
blank line above them. It looks like the \lineskiplimit would be
violated if the 9.3pt interlinespace were enforced, so ConTeXt adds some
space (analogous to \lineskip in TeX?). But since we're on a grid, more
space has to be added in order to conform to the grid.

All that makes sense, but we would like to be able typeset the lines
closer together, and judge for ourselves whether it looks too bad. (When
we used to typeset the same text at 8.1pt/9.3pt using mkii, blank lines
did not occur.) Is there something similar to \lineskiplimit that we can
tweak? I've been reading section 5.5 Line Spacing in the context ref
manual, but I don't see anything there about changing a threshold
analogous to \lineskiplimit.

I tried setting \lineskiplimit=-2pt, but that caused a worse problem: a
blank line across both columns, instead of just one.

Thanks,
Lars
Version: mkiv luatex in Tex Live 2013.

___
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 reduce \lineskiplimit in ConTeXt grid layout

2013-11-15 Thread Hans Hagen

On 11/15/2013 9:49 PM, Lars Huttar wrote:

As you know, in plain TeX, \lineskiplimit tunes the vertical glue
algorithm by specifying the minimum amount of space between the bottom
edge of one line and the top edge of the following line.

But in ConTeXt, it appears that \lineskiplimit is set to zero, at least
in grid mode.
We're using grid mode, and we have some occasional high ascenders, e.g.
capital letters with diacritics on top.
We have bodyfont size 8.1pt, and interlinespace = 9.3pt. We realize this
is less than the recommended ratio of 1.2.

Understandably, when those tall characters occur, we sometimes get a
blank line above them. It looks like the \lineskiplimit would be
violated if the 9.3pt interlinespace were enforced, so ConTeXt adds some
space (analogous to \lineskip in TeX?). But since we're on a grid, more
space has to be added in order to conform to the grid.

All that makes sense, but we would like to be able typeset the lines
closer together, and judge for ourselves whether it looks too bad. (When
we used to typeset the same text at 8.1pt/9.3pt using mkii, blank lines
did not occur.) Is there something similar to \lineskiplimit that we can
tweak? I've been reading section 5.5 Line Spacing in the context ref
manual, but I don't see anything there about changing a threshold
analogous to \lineskiplimit.

I tried setting \lineskiplimit=-2pt, but that caused a worse problem: a
blank line across both columns, instead of just one.


you can try to choose a more strict grid snapping method (see 
spac-ver.mkiv line 1375 etc ... some methods have tolerance, some snap 
always ..)


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] announcement and call

2013-11-14 Thread Thomas A. Schmitz

On 11/14/2013 09:40 PM, Philipp Gesang wrote:

What I’d consider the most pressing issue, pertaining both to
Context and to TeX as a whole, would be text streams a.k.a.
parallel typesetting. It was discussed on the list a couple times
already and at one point someone collected examples [1]. Also, I
sketched the current state of parallel texts elsewhere [2].


For certain values of pressing :-) Two pessimistic remarks about that: 
(1) I experimented with a mechanism that Hans build for mkii a while 
ago, and I found it difficult to decide how to define what was expected 
of parallel typesetting. In the end, I wasn't convinced that an entirely 
automated version was possible at all. (2) I'm afraid that's not part of 
the present project and is related neither to critical editions nor to 
bibliographies.



Looking forward to status reports! Will the improvements be
directly merged into Context or do you prefer releasing it as a
self-contained module?


During development, we need to keep the code separate since we need to 
document what we do for our funding agency, but it will be part of ConTeXt.


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
___

Re: [NTG-context] installing a true-type font: can't find ttf2afm

2013-11-06 Thread Hans Hagen

On 11/5/2013 7:55 PM, Lars Huttar wrote:

On 11/4/2013 4:56 PM, Mojca Miklavec wrote:

On Mon, Nov 4, 2013 at 10:46 PM, Lars Huttar wrote:

On 11/4/2013 3:34 PM, Mojca Miklavec wrote:

- you can find Gentium at http://www.ctan.org/pkg/gentium-tug (also in
TeX Live and in the ConTeXt distribution)

Thank you ... that was key information I didn't have.
I was instead downloading the TTF files from sil.org.

That TTF should work as well. The only difference is that you might
need slightly different commands to set it up (there were recent
changes/improvements in that, other users should tell you how exactly
that can be done).


I will look for that, because it turns out that I still need to use a
TTF font. Gentium Plus does not include bold and bold-italic weights,
and Gentium Basic doesn't include all the characters ranges I need. We
have a customized version of Gentium Basic with bold weight, with an
extra character added, and it's a TTF. We had it working with mkii but
not yet with mkiv.


in that case yoiu can put the fonts somewhere and write a typescript .. 
see type-imp-mscore.mkiv for exmaples ... that way you have complete 
control over what gets loaded


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] installing a true-type font: can't find ttf2afm

2013-11-05 Thread Lars Huttar
On 11/4/2013 4:56 PM, Mojca Miklavec wrote:
 On Mon, Nov 4, 2013 at 10:46 PM, Lars Huttar wrote:
 On 11/4/2013 3:34 PM, Mojca Miklavec wrote:
 - you can find Gentium at http://www.ctan.org/pkg/gentium-tug (also in
 TeX Live and in the ConTeXt distribution)
 Thank you ... that was key information I didn't have.
 I was instead downloading the TTF files from sil.org.
 That TTF should work as well. The only difference is that you might
 need slightly different commands to set it up (there were recent
 changes/improvements in that, other users should tell you how exactly
 that can be done).

I will look for that, because it turns out that I still need to use a
TTF font. Gentium Plus does not include bold and bold-italic weights,
and Gentium Basic doesn't include all the characters ranges I need. We
have a customized version of Gentium Basic with bold weight, with an
extra character added, and it's a TTF. We had it working with mkii but
not yet with mkiv.

 When you say out of the box, I think you're referring to the
 gentium-tug package box, not the ConTeXt box... in other words, I should
 not expect Gentium to work just because I installed ConTeXt; I have to
 also install gentium-tug, right?
 The font is installed by default when installing the ConTeXt
 distribution. I thought it was also installed by default with the
 ConTeXt scheme in TeX Live, but apparently I was wrong. I can fix
 this. The scheme already contains a bunch of nice fonts and Gentium
 could/probably should be among them.


Just to confirm the above: After installing TeX Live context scheme on
Linux, Gentium was not in my names.tma. And when I tried to use
\setmainfont[Gentium], I got errors, 'simplefonts  font ''gentium'' not
found'. After installing the gentium-tug package (sudo
/usr/local/bin/tlmgr install gentium-tug), and compiling a .tex file
using \setmainfont[Gentium], the errors went away, and my names.tma now
includes several variants of Gentium. At no point did I run mtxrun
(knowingly).

On the other hand, on Windows, I had installed TeX Live context scheme
as well, and have not installed gentium-tug. But I did install Gentium
as an OS font (using TTF files). I then ran mtxrun --generate (as
suggested by Hans), and after that, gentium* showed up in names.tma, and
I was then able to successfully compile a .tex file using
\setmainfont[Gentium] with mkiv context. (But that didn't work before I
ran mtxrun --generate.)

Just a couple of data points in case they're relevant.

Lars

___
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] installing a true-type font: can't find ttf2afm

2013-11-04 Thread Mojca Miklavec
On Mon, Nov 4, 2013 at 8:55 PM, Lars Huttar wrote:
 Hi all,
 I'm following the instructions at
 http://wiki.contextgarden.net/Installing_a_TrueType_font,_step_by_step
 because I want to install a TTF (Gentium in fact) for ConTeXt to use.

Please note that:
- the top of the page says NOTE: The contents of this page are OLD /.../
- nobody in the ConTeXt community bothers about MKII (pdfTeX) any longer
- texfont.pl has always been a bit problematic and is definitely not
really maintained any longer
- you can find Gentium at http://www.ctan.org/pkg/gentium-tug (also in
TeX Live and in the ConTeXt distribution)
- Gentium works out-of-the-box in ConTeXt (see the documentation of gentium-tug)

 This is under TeX Live 2013, the context scheme, and I've been using
 ConTeXt mkiv.

So why bother about pdfTeX? The conversion is/was only ever needed
for MKII. In MKIV all fonts work out of the box. Other than what the
package provides, Wolfgang Schuster's new additions (is there any link
to point the users to?) make that even easier for users. It's probably
easiest to use the package now, but even if the package wasn't
provided, setting up the font in MKIV is relatively straightforward
without the need for any conversions of any kind.

 I can't find ttf2afm anywhere. Is it part of pdfTex? Do I have to have
 the pdftex scheme installed in order to install True-type fonts?

It's part of ttfutils, collection-fontutils. You cannot install an
additional scheme in TeX Live (or at least I think so, I'm not 100%
sure), but you can install an additional package or collection. But
really ... you don't need that program just for the sake of using
Gentium.

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] ConTeXt standalone - in what situations is it better?

2013-10-24 Thread Aditya Mahajan

On Thu, 24 Oct 2013, Lars Huttar wrote:


Hello,
I was looking into simplefonts
(http://wiki.contextgarden.net/simplefonts) and noticed the clause


if you’re running ConTeXt Standalone
http://wiki.contextgarden.net/ConTeXt_Standalone (which is a better
option)


Well I'm using TeXLive, but am happy to take good advice, so I looked at
http://wiki.contextgarden.net/ConTeXt_Standalone to see why it would be
a better option.
The basic reason I can see is that Standalone is updated more frequently.


Three or four years ago, when ConTeXt was moving from MkII to MkIV, 
you had to run through hoops to get context working with TL. Since the 
last two years, ConTeXt works out of the box in TL.



So if you're using bleeding-edge features of ConTeXt (including recent
fixes to simplefonts?), I can see wanting to use Standalone and have
access to the latest features and fixes.

On the other hand, if you're working on a large production project that
has to be careful of stability, is there any advantage to Standalone
over TeXLive? Sure, you can keep a standalone version frozen in place,
but then that seems equivalent to staying with an existing version of
TeXLive.


No. In some sense, it is better to use the frozen version that is part of 
TL rather than an arbitrary beta version from standalone. Every once in a 
while, the beta version has bugs (those are usually fixed in a matter of 
hours). But it can be tricky to decide which version to freeze for a long 
term production environment.


On the other hand, the version of ConTeXt that ships with TL is tested 
more thoroughly. So, there is some guarantee that it will not include any 
serious bugs.


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] \mframed not aligned in mkiv

2013-10-22 Thread Otared Kavian
Hi Aditya,

I wikified your remarks,


http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation

but unfortunately the snippet of code does not compile on ConTeXt Garden: is 
there a way to typeset mkiv code there?

Best regards: OK

On 21 oct. 2013, at 22:18, Aditya Mahajan adit...@umich.edu wrote:

 On Mon, 21 Oct 2013, Otared Kavian wrote:
 
 Dear Hans,
 
 I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
 seems that in mkiv the frame is not vertically aligned with the the + sign 
 in the following example (or rather it is not vertically centered, please 
 see the attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV).
 Does one have to use now a new key to require this sort of alignment?
 
 Best regard: OK
 
  begin mframed-example.tex
 \setupcolors[state=start]
 
 \def\graymath{\mframed[frame=off,
  background=color,
  backgroundcolor=lightgray,
  backgroundoffset=2pt
  ]}
 
 \starttext
 
 Since for $|x|  1$ we have
 \startformula
 \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
 \stopformula
 we may write $\log(1+x) = x + O(x^2)$.
 
 \stoptext
  end mframed-example.tex
 
 Search for Alignment in inmframed in the mailing list archives.
 
 % The next statement is part of the core. Included it here for % illustration.
 
 \definemathframed[mcframed] [location=mathematics]
 
 \starttext
 
 \startformula
\ln (1+x) = 
 \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x
  - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} +
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \startformula
\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + 
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \stoptext
 
 ___
 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
___


[NTG-context] \mframed not aligned in mkiv

2013-10-21 Thread Otared Kavian
Dear Hans,

I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
seems that in mkiv the frame is not vertically aligned with the the + sign in 
the following example (or rather it is not vertically centered, please see the 
attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV). 
Does one have to use now a new key to require this sort of alignment?

Best regard: OK

 begin mframed-example.tex
\setupcolors[state=start]

\def\graymath{\mframed[frame=off,
   background=color,
   backgroundcolor=lightgray,
   backgroundoffset=2pt
   ]}

\starttext

Since for $|x|  1$ we have
\startformula
\log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
\stopformula
we may write $\log(1+x) = x + O(x^2)$.

\stoptext
 end mframed-example.tex



mframe.pdf
Description: Adobe PDF document
___
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] \mframed not aligned in mkiv

2013-10-21 Thread Aditya Mahajan

On Mon, 21 Oct 2013, Otared Kavian wrote:


Dear Hans,

I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
seems that in mkiv the frame is not vertically aligned with the the + sign in 
the following example (or rather it is not vertically centered, please see the 
attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV).
Does one have to use now a new key to require this sort of alignment?

Best regard: OK

 begin mframed-example.tex
\setupcolors[state=start]

\def\graymath{\mframed[frame=off,
  background=color,
  backgroundcolor=lightgray,
  backgroundoffset=2pt
  ]}

\starttext

Since for $|x|  1$ we have
\startformula
\log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
\stopformula
we may write $\log(1+x) = x + O(x^2)$.

\stoptext
 end mframed-example.tex


Search for Alignment in inmframed in the mailing list archives.

% The next statement is part of the core. Included it here for 
% illustration.


\definemathframed[mcframed] [location=mathematics]

\starttext

\startformula
\ln (1+x) = 
\mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x 
- {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} +

\frac{x^3}{3}-\cdots.
\stopformula

\startformula
\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + 
\frac{x^3}{3}-\cdots.

\stopformula

\stoptext

___
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] \mframed not aligned in mkiv

2013-10-21 Thread Otared Kavian
Thanks Aditya!
I overlooked this change in mkiv…

Best regards: OK

On 21 oct. 2013, at 22:18, Aditya Mahajan adit...@umich.edu wrote:

 On Mon, 21 Oct 2013, Otared Kavian wrote:
 
 Dear Hans,
 
 I noticed a difference between mkii and mkiv in the behavior of \mframed: it 
 seems that in mkiv the frame is not vertically aligned with the the + sign 
 in the following example (or rather it is not vertically centered, please 
 see the attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV).
 Does one have to use now a new key to require this sort of alignment?
 
 Best regard: OK
 
  begin mframed-example.tex
 \setupcolors[state=start]
 
 \def\graymath{\mframed[frame=off,
  background=color,
  backgroundcolor=lightgray,
  backgroundoffset=2pt
  ]}
 
 \starttext
 
 Since for $|x|  1$ we have
 \startformula
 \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
 \stopformula
 we may write $\log(1+x) = x + O(x^2)$.
 
 \stoptext
  end mframed-example.tex
 
 Search for Alignment in inmframed in the mailing list archives.
 
 % The next statement is part of the core. Included it here for % illustration.
 
 \definemathframed[mcframed] [location=mathematics]
 
 \starttext
 
 \startformula
\ln (1+x) = 
 \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x
  - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} +
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \startformula
\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + 
 \frac{x^3}{3}-\cdots.
 \stopformula
 
 \stoptext
 
 ___
 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] Bug: Reloading Font

2013-10-13 Thread Khaled Hosny
 them.

 there's always xetex as alternative -)

Except I can’t use it :) even with MkII as there is zero support for
XeTeX’s (rudimentary) RTL model.

 (unless you're referring to wanting to use the microsoft word math
 renderer trickery -)

I never set math actually :) unless I’m testing a math font, but I can use
plain for that.

 One important aspect is that when using tex, one also wants
 flexibility and control and so a font system will have hooks and
 such. Using a mixed library / lua / tex approach would become pretty
 complex. Sure, the current lua code is not trivial either but can
 probably be simplified over time once settled down. One reason for
 me not to use xetex (plus its libs) is inflexibility. If we hadn't
 started luatex I might as well have opt out of tex altogether,
 especially because only with luatex i can do some of our projects
 within acceotable bounds (dev time, speed of machinery,
 flexibility).
 
 I don’t think much of LuaTeX’s flexibility (or XeTeX’s inflexibility) is
 related to the OpenType layout engine used.
 
 I can imagine cases where things happen before shaping that have to
 be taken into account when shaping, and also that shaping signals
 things to be done later ... once we start thinking out of the box
 ... but, i don't see a problem in having multiple shapers (dozens)
 as long as (in context) they can cooperate, be isolated, controlled,
 etc. My main point is that I don't like a hard coded choice in
 luatex (also performance wise). The current core components still
 resemble tex.

I absolutely agree. All I wanted to know is whether ConTeXt can consider
integrating an optional different font machinery, so to not waste time
on something that will be of little use to me.

Regards,
Khaled
___
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: Reloading Font

2013-10-13 Thread Hans Hagen
 was a big system, but nowadays the tds tree is relatively small;
unless something magic happens, i think that at some point the
complexity of all these big things will explode (one can according
to the evangelists get a ruby on rails app up and running in minutes
... but try to update one a few years later) ... with respect to
tex: the source tree/build is not trivial (how many folks know all
ins-and-outs?) and it makes me already feel quite dependent .. it's
the instability of the whole eco system that bothers me

well, the formats don't evolve that much, at least not with respect
to what we need in tex ... most features are rather generic, but tex
user demands evolve and those will always influence matters; also,
in the (context) machinery at some point i want to play with other
approaches and then the only thing that matters is having data
available (we already have some par optimizing code in place for
instance)

(i'm more worried about inconsistencies and a mess in fonts than in
the opentype standard ... many characters / scripts / languages have
well properties, so in fact designers could do with predefined sets
of features and rules ... sort of the reverse of making shapes and
then the features: instead of for each font reinventing the wheel,
choose a set of logic, make shapes etc ... positioning is probably
most of the issue then; but that's another disucssion)


There are already few parts of OpenType that I’m not able to use in my
fonts for years because they break the fonts with LuaTeX horribly. I
understand the priorities of the team, that is why I think that
offloading font support is beneficial to everyone.


break in what sense? what features (just curious) ... anyway,


The mark filtering sets we discussed few years ago, for instance; I had
to redo the whole font in a much more complex way with few more
thousands of glyphs to avoid using them so the font remains usable with
ConTeXt, and I still get crashes every now and then that I stopped
bothering with reporting them.


Well, I can't fix something if I don't know about it ... one thing I 
learned the last years, is that one needs examples of usage (and I'm 
pretty sure that some of the implementation of an opentype engine is not 
a direct consequence if the standards but of usage).


Teaser: if another app doesn't crash, it doesn't mean that it does it 
right. But its behaviour could become the standard expected. I'm not 
saying that this is true in your case, but we need to keep this option 
open. Also, when something is non trivial (and I've had enough 
discussions to know that the spec is not always that clear) one might 
wonder about the spec in the first place ... trial and error (due to 
lack of fonts and examples) is part of opentype implementation 
development (ok, for much other dev too).


Which reminds me: on the agenda is to have a few more fields in glyph 
nodes so that we can simplify some of the code, but that's a something 
we will look into end-of-year when some other backend cleanup has 
happened.


I still remember a talk at bachotex where someone went through all 
version of indesign pointing out in which ones ligatures did / didn't 
work, workes differently. And look at opentype math ... some reverse 
engineering is needed. To me opentype is not a real standard but m ore 
reversed application specification where we have to look at what the 
inventors do and try to adapt to that.



there's always xetex as alternative -)


Except I can’t use it :) even with MkII as there is zero support for
XeTeX’s (rudimentary) RTL model.


(unless you're referring to wanting to use the microsoft word math
renderer trickery -)


I never set math actually :) unless I’m testing a math font, but I can use
plain for that.


One important aspect is that when using tex, one also wants
flexibility and control and so a font system will have hooks and
such. Using a mixed library / lua / tex approach would become pretty
complex. Sure, the current lua code is not trivial either but can
probably be simplified over time once settled down. One reason for
me not to use xetex (plus its libs) is inflexibility. If we hadn't
started luatex I might as well have opt out of tex altogether,
especially because only with luatex i can do some of our projects
within acceotable bounds (dev time, speed of machinery,
flexibility).


I don’t think much of LuaTeX’s flexibility (or XeTeX’s inflexibility) is
related to the OpenType layout engine used.


I can imagine cases where things happen before shaping that have to
be taken into account when shaping, and also that shaping signals
things to be done later ... once we start thinking out of the box
... but, i don't see a problem in having multiple shapers (dozens)
as long as (in context) they can cooperate, be isolated, controlled,
etc. My main point is that I don't like a hard coded choice in
luatex (also performance wise). The current core components still
resemble tex.


I absolutely agree. All I wanted to know

Re: [NTG-context] fighting fonts

2013-10-10 Thread Hans Hagen

On 10/10/2013 1:15 AM, Ciro A. Soto wrote:

Hi everyone,
I am trying to reproduce a novel I wrote with context years ago. This
time is spanish.
I use context only for books, not daily, so now I can't figure out how
to use fonts.
I have been going around and around for days avoiding to look for help
here for such a simple thing, but I surrendered. My last attempt was
using the simplefonts module.
Here is what I get (linux-64 ubuntu):

* texexec --pdf novel.tex*


you mix up old an new (mkii an dmkiv)

run this:

 context novel.tex

-
  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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Marco Patzer
On 2013–10–10 Xan wrote:

 Minimal example:
 
 % Regime
 \enableregime[utf]

Not required if you use MkIV

 does not work.

It works here with 2013.10.09 10:36 using MkIV and MkII. At least I
don't get an error and a PDF with a few green blots is created.
What's the error message you get for that minimal example? Are you
running MkII or MkIV?

 Without \coordinate it works. What fails?

If you remove \coordinate it should fail actually, since the
coordinate for (F) is unknown. Or did you mean you replaced (F) with
a coordinate like (0,2)?

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] Possibly bug in ConTexT with TikZ

2013-10-10 Thread Xan
 On 2013–10–10 Xan wrote:
 
  Minimal example:
  
  % Regime
  \enableregime[utf]
 
 Not required if you use MkIV
 
  does not work.
 
 It works here with 2013.10.09 10:36 using MkIV and MkII. At least I
 don't get an error and a PDF with a few green blots is created.
 What's the error message you get for that minimal example? Are you
 running MkII or MkIV?
 

MKIV (read above)

[xan@rulot proves-context]$ context prova.tex 

mtx-context | run 1: luatex 
--fmt=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --jobname=prova 
--lua=/usr/local/bin/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
 --no-parse-first-line --c:currentrun=1 --c:fulljobname=./prova.tex 
--c:input=./prova.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.76.0-2013040516 (rev 4627) 
 \write18 enabled.
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.10.09 10:36 MKIV beta  fmt: 2013.10.10  int: english/english

system   'cont-new.mkiv' loaded
(/usr/local/bin/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'prova', input './prova', result 'prova'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/home/xan/fems/proves-context/prova.tex
resolversmodules  'tikz' is loaded
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/frontendlayer/t-tikz.tex
loading  ConTeXt User Module / tikz
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex
loading  ConTeXt User Module / pgf
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/basiclayer/t-pgfcor.tex
loading  ConTeXt User Module / pgfcor
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/systemlayer/t-pgfsys.tex
loading  ConTeXt User Module / pgfsys
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfrcs.tex
loading  ConTeXt User Module / pgfrcs
(/usr/local/bin/context/tex/texmf-modules/tex/context/pgf/utilities/t-pgfmod.tex
loading  ConTeXt User Module / pgfmodules
) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-common.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfrcs.code.tex))
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeys.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))
 (/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
 (prova.pgf)) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsysprotocol.code!
 .tex)) (/
usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcore.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmath.code.tex 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathcalc.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathutil.code.tex
fontsbeware: no fonts are loaded yet, using 'lm mono' in box
) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathparser.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.code.tex
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)))
 (/usr/local/bin/!
 context/t
ex/texmf-modules/tex/generic/pgf/math/pgfmathfloat.code.tex)) 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
 
(/usr/local/bin/context/tex/texmf-modules/tex/generic

<    5   6   7   8   9   10   11   12   13   14   >