[NTG-context] Averaged integrals

2014-04-14 Thread Janne Junnila
Hi,

Is there a command to produce an averaged integral sign ($\int$ with a
slash drawn across it)?

On a related note: It seems to me that \ointclockwise and
\ointctrclockwise produce results opposite to what their names would
indicate.

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

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


[NTG-context] Bug with \left( \right) in current beta

2013-08-20 Thread Janne Junnila
Hey,

The following does not work correctly in the current beta. It seems
like the 1 is parsed as a part of (. Inserting a space between (
and 1 makes the example work.

\starttext
\startformula
\left(1 - \right)
\stopformula
\stoptext

Most of the fonts produce nothing for \left(1, cambria produces some
weird symbol.

-- Janne
___
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] Cambria math broken in current beta

2013-04-16 Thread Janne Junnila
Hi,

After updating, I'm getting error messages like the following:

fontsdefining  font with asked name 'cambriamath' is not
found using lookup 'name'
fontsdefining  unknown font 'cambriamath', loading aborted
fontsdefining  unable to define 'cambriamath' as
'cambria-12pt-mm-mr--3'

The relevant files seem to be loaded, however:

mkiv lua stats   loaded fonts: 4 files: cambria.ttc cambriab.ttf
cambriai.ttf cambriaz.ttf

- Janne
___
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] Cambria math broken in current beta

2013-04-16 Thread Janne Junnila
Upon closer inspection \setupbodyfont[cambria,cambria-m,12pt] works
for me while plain \setupbodyfont[cambria,12pt] does not anymore.
Minimal example would be:

\setupbodyfont[cambria,12pt]

\starttext
\startformula
\log x + \log y = \log(xy)
\stopformula
\stoptext

Janne


On Tue, Apr 16, 2013 at 11:40 AM, Hans Hagen pra...@wxs.nl wrote:
 On 4/16/2013 9:57 AM, Janne Junnila wrote:

 Hi,

 After updating, I'm getting error messages like the following:

 fontsdefining  font with asked name 'cambriamath' is not
 found using lookup 'name'
 fontsdefining  unknown font 'cambriamath', loading aborted
 fontsdefining  unable to define 'cambriamath' as
 'cambria-12pt-mm-mr--3'

 The relevant files seem to be loaded, however:

 mkiv lua stats   loaded fonts: 4 files: cambria.ttc cambriab.ttf
 cambriai.ttf cambriaz.ttf


 hard to say what's happening .. no test file ... works ok here

 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] Cambria math broken in current beta

2013-04-16 Thread Janne Junnila
Thanks, that solved the issue!

Janne

On Tue, Apr 16, 2013 at 11:57 AM, Hans Hagen pra...@wxs.nl wrote:
 On 4/16/2013 10:51 AM, Janne Junnila wrote:

 Upon closer inspection \setupbodyfont[cambria,cambria-m,12pt] works
 for me while plain \setupbodyfont[cambria,12pt] does not anymore.
 Minimal example would be:

 \setupbodyfont[cambria,12pt]

 \starttext
 \startformula
 \log x + \log y = \log(xy)
 \stopformula
 \stoptext


 that works here, maybe run mtxrun --script font --reload --force


 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] FiXme and ConTeXt mkiv

2013-03-04 Thread Janne Junnila
On Sun, Mar 3, 2013 at 7:45 PM, Wolfgang Schuster
wolfgang.schus...@gmail.com wrote:
 I put a new version of the module on the server but I suggest to
 use the annotation module which has more options and let you
 create your own commands/environments to print notes etc.

Thank you very much! I'll take a look at the annotations module, too.

- Janne
___
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] FiXme and ConTeXt mkiv

2013-03-02 Thread Janne Junnila
Hi all,

I was trying to use the FiXme module today, but it seems like it is
using some macros that are only available in mkii. Does anyone know of
any alternatives? (Or is anyone planning on porting FiXme to mkiv?)

Thanks,
Janne Junnila
___
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 typesetting problems

2013-01-28 Thread Janne Junnila
Indeed it seems like the alignment is good with \dfrac, but this does
not solve my problem, since I wish to also use fractions with
script-size or scriptscript-size (\xfrac, \xxfrac). The specific
formula I have is

\startformula
f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) +
U(t-s)) + \frac{(S(u-t) +
U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}}
\stopformula

Thanks,
Janne

Roland wrote:
 With \dfrac it looks good.
 With \fraction the minus sign is on the top of the fraction.
 Best regards, Roland
___
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 typesetting problems

2013-01-27 Thread Janne Junnila
Hi all,

I've run into a couple of problems with math typesetting. (I'm using the
latest ConTeXt standalone beta.) The following doesn't print [x,x] at all:

\startformula
[x,x]_t = x
\stopformula

It can be fixed by using \left[x,x\right]_t, but I find the behaviour weird.

Another problem I have is related to the positioning of minus signs in
front of fractions. I would expect the minus sign to align with the
horizontal line of the fraction, as it does on LaTeX. Below is an example
formula to illustrate my point. The result seems to be independent of the
font in use.

\startformula
-\frac{e^{\frac{4}{5}}}{4}
\stopformula


Janne
___
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 typesetting problems

2013-01-27 Thread Janne Junnila
Hi Sietse,

Sietse wrote:
 This is because \startformula can take one optional argument in square
 brackets, and [x,x] is interpreted as that argument. You can make
 \startformula stop looking for [...] either by telling it to `\relax`,
 or by giving it an empty `[]` of its own to chew on.

Thanks for the explanation, this makes sense. Should have seen that myself. :)

Janne
___
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 operators broken in current beta

2012-07-28 Thread Janne Junnila
It seems like the issue has been fixed. Maybe I just happened to
update at a wrong time.

Thanks,
Janne Junnila

On Fri, Jul 27, 2012 at 12:03 PM, Janne Junnila janne.junn...@gmail.com wrote:
 Hi,

 Unless I have managed to somehow mess up my installation, math
 operators don't seem to render in the latest beta. The following code
 produces only $x$ for me. Any ideas?

 \starttext
 \startformula
 \log x
 \stopformula
 \stoptext

 Best regards,
 Janne Junnila
___
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 operators broken in current beta

2012-07-27 Thread Janne Junnila
Hi,

Unless I have managed to somehow mess up my installation, math
operators don't seem to render in the latest beta. The following code
produces only $x$ for me. Any ideas?

\starttext
\startformula
\log x
\stopformula
\stoptext

Best regards,
Janne Junnila
___
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] Spacing for {\cal P} in XITS

2012-05-29 Thread Janne Junnila
Hi,

I just noticed that the spacing after ${\cal P}$ looks a bit too tight
(non-existent?) while using XITS fonts.

\setupbodyfont[xits]
\starttext
The spacing of ${\cal P}$ looks like this.
\stoptext

I'm not sure if the other calligraphic letters are totally fine
either, but this one caught my eye. I suppose it's a font issue. Any
ideas?

Best regards,
Janne Junnila
___
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] Spacing for {\cal P} in XITS

2012-05-29 Thread Janne Junnila
Doesn't seem to be only macs, I'm on Linux using the latest beta. The
PDF I get is like the one Michael sent earlier. I tried other
calligraphic letters with the vrules, and it seems that some of them
have similar issues, just not as striking as with P.

- Janne
___
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] Is alternative=serried broken in enumerations?

2012-02-22 Thread Janne Junnila
Hi!

I'm using the current beta, and I get the following error when trying to use 
alternative=serried. (The minimal example is included in the error message.)

error
system   tex  error on line 6 in file test.tex: Undefined control 
sequence ...

 1 \defineenumeration[myenumeration][alternative=serried]
 2 
 3 \starttext
 4 
 5 \startmyenumeration
 6   This is a test.
 7 \stopmyenumeration
 8 
 9 \stoptext
10 


\12:144:serried ...onstructionlocationparameter 
  \c!width }\doifsetupselse ...
\139construction ...parameter \c!renderingsetup }
  \relax \dostoptagged \dost...
\dodogotopar ...andler \v!construction \endcsname 
  \BeforePar \emptytoks 
to be read again 
   T
l.6 T
 his is a test.
/error

Any ideas?

- Janne Junnila
___
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] A bug in latin modern fonts?

2012-02-04 Thread Janne Junnila
Hi,

I would like to my previous message that also Asana-Math seems to have problems.

\setupbodyfont[asana]
\starttext

The function $f \colon \reals \to \reals$ is given by $x \mapsto x -
3$. Its derivative is
$f'(x) = 1$.

\stoptext

In the above the ' in f'(x) looks wrong and there's hyphen instead of
minus at x - 3.
The problems arise in the current standalone, the latest stable one
worked OK at least
for the latin modern fonts.

Janne Junnila

On Sun, Jan 29, 2012 at 12:42 PM, Janne Junnila janne.junn...@gmail.com wrote:
 Hi!

 The following example seems to have some troubles with the latin modern fonts:

 \starttext

 The function $f \colon \reals \to \reals$ is given by $x \mapsto x - 3$.

 \stoptext

 The colon is printed fine, but the blackboard bold Rs don't look
 correct. The \mapsto symbol is missing and there's a hyphen instead of
 minus.

 Are others having the same issue? I tried to do a fresh install, but
 the problem persisted. There were some messages like

 fonts            otf loading  skipping cyclic reference U+00028 in
 math variant U+00028

 during compiling. I don't know if they are related to the problem.

 Thanks,
 Janne Junnila
___
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] A bug in latin modern fonts?

2012-01-29 Thread Janne Junnila
Hi!

The following example seems to have some troubles with the latin modern fonts:

\starttext

The function $f \colon \reals \to \reals$ is given by $x \mapsto x - 3$.

\stoptext

The colon is printed fine, but the blackboard bold Rs don't look
correct. The \mapsto symbol is missing and there's a hyphen instead of
minus.

Are others having the same issue? I tried to do a fresh install, but
the problem persisted. There were some messages like

fontsotf loading  skipping cyclic reference U+00028 in
math variant U+00028

during compiling. I don't know if they are related to the problem.

Thanks,
Janne Junnila
___
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] Gnuplot and the dollar sign

2012-01-28 Thread Janne Junnila
Hi!

I'm having trouble while trying to make the following work:

\usemodule[gnuplot]

\startGNUPLOTscript[distr_simple_1]

plot 2_simple_1.out using
(0.01*floor($1/0.01)):(0.870456/10/0.01) smooth frequency with
boxes, (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x)
\stopGNUPLOTscript

\useGNUPLOTgraphic[distr_simple_1]

The problem seems to be that the single dollar sign gets interpreted
as the start of a math environment. I tried to look through the source
code to see how I could tell context to bypass checking for certain
characters, but I couldn't figure it out.

Thanks for any hints!
Janne Junnila
___
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] Gnuplot and the dollar sign

2012-01-28 Thread Janne Junnila
Thank you for your reply!

I was actually able to find a workaround for my problem at least in
this case. Digging through the gnuplot documentation revealed that
instead of using $n to refer to the column n in a data file one can
also use column(n). The ConTeXt parser accepts this of course.

Janne Junnila

On Sat, Jan 28, 2012 at 12:23 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 On Sat, Jan 28, 2012 at 09:16, Janne Junnila wrote:
 Hi!

 I'm having trouble while trying to make the following work:

 \usemodule[gnuplot]

 \startGNUPLOTscript[distr_simple_1]

 plot 2_simple_1.out using
 (0.01*floor($1/0.01)):(0.870456/10/0.01) smooth frequency with
 boxes, (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x)
 \stopGNUPLOTscript

 \useGNUPLOTgraphic[distr_simple_1]

 The problem seems to be that the single dollar sign gets interpreted
 as the start of a math environment.

 On one hand that is the intended default behaviour. It is very handy
 to be able to use

 plot (cos(2*x)*sin(0.5*x) + 1)*exp(-0.4*x) title '$\left(\cos(2x)
 \cdot \sin(0.5x)\right+1) e^{-0.4x}$'

 to get nice result. On the other hand I'm not exactly sure how to
 reliably print whatever gets passed to ConTeXt. The only option that
 comes to my mind is some modification of
    \sometxt{\starttyping floor($1/0.01) \stoptyping}
 where \starttyping would generate a single line. But one would need a
 special option for that. (The command \type{...} would not be reliable
 enough: in MKII it stops working at the second underscore and it is a
 problem if one has curly braces in text.)

 I tried to look through the source
 code to see how I could tell context to bypass checking for certain
 characters, but I couldn't figure it out.

 Currently the only option is to provide an explicit title. But if
 there's a request to support literal output and if somebody can help
 me figure out how exactly I should output the given text into
 metapost, so that it will be reliably printed out literally.

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