[NTG-context] math: too big space between function and argument

2011-05-24 Thread Paul Menzel
Dear ConTeXt folks,


to markup the probability measure and the parenthesis around the
argument, I defined the following command.

\define[1]\P{{\mathbf P}\left( #1 \right)}

Unfortunately the space between the P and the left ( is a little big in
my opinion. Is that correct or should/can I fix that somehow?


Thanks,

Paul


mathbold.pdf
Description: Adobe PDF document
\define[1]\P{{\mathbf P}\left( #1 \right)}
\starttext
The following equation contains probabilities.

\placeformula
\startformula
\P{A ∪ B} = \P{A} + \P{B} - \P{A ∩ B}
\stopformula
\stoptext


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

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

[NTG-context] math: using bold charaters for number sets

2011-05-24 Thread Paul Menzel
Dear ConTeXt folks,


according to [1] the number sets were originally set using bold
characters and only on the blackboard the double strokes were used.

ConTeXt defines for example `\naturalnumbers` or `\reals` [2] which are
set using double strokes.

How can I redefine those to be just bold?


Thanks,

Paul


PS: Does somebody actually use these commands (`\naturalnumbers`, …`) or
do you define for example `\N`?


[1] http://projekte.dante.de/DanteFAQ/MathematischerFormelsatz#22
[2] http://wiki.contextgarden.net/Blackboard_bold


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

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

[NTG-context] Why is `\P` used for not often used ¶? (was: math: too big space between function and argument)

2011-05-25 Thread Paul Menzel
On Di, 2011-05-24 at 15:25 +0200, Wolfgang Schuster wrote:
 Am 24.05.2011 um 13:14 schrieb Paul Menzel:

  to markup the probability measure and the parenthesis around the
  argument, I defined the following command.
  
  \define[1]\P{{\mathbf P}\left( #1 \right)}
  
  Unfortunately the space between the P and the left ( is a little big in
  my opinion. Is that correct or should/can I fix that somehow?
 
 You can insert negative kerning with “\!”.
 
 \define[1]\P{{\mathbf P}\!\left(#1\right)}

Thank you for the quick reply.

 BTW: You redefine the already existing \P (expands to ¶) command.

I should read the log to notice such problems. I guess I will use `\Pr`
then.

But seriously does somebody really need a lot of ¶ in there texts? (If
yes I would be interested when.) If not, why is such a nice command name
reserved for such a purpose?

I guess this has been there for a long time, so redefining would break
too much?


Thanks,

Paul


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

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

Re: [NTG-context] math: too big space between function and argument

2011-05-25 Thread Paul Menzel
On Di, 2011-05-24 at 09:56 -0400, Aditya Mahajan wrote:
 On Tue, 24 May 2011, Paul Menzel wrote:

  to markup the probability measure and the parenthesis around the
  argument, I defined the following command.
 
  \define[1]\P{{\mathbf P}\left( #1 \right)}
 
  Unfortunately the space between the P and the left ( is a little big in
  my opinion. Is that correct or should/can I fix that somehow?
 
 Getting these spaces is tricky; especially if you consider spaces before 
 and after the definition. Choose your pick:
 
 \starttext
   \startformula
A{\mathbf P}\left( ABC \right)B \quad
A\mathop{\kern\zeropoint\mathbf P}\left( ABC \right)B \quad
A{\mathbf P}\mathopen{}\left( ABC \right)\mathclose{}B \quad
A\mathop{\kern\zeropoint\mathbf P}\mathopen{}\left( ABC 
 \right)\mathclose{}B \quad
   \stopformula
 \stoptext

That looks tricky and complex.

 Some information from the mathsets module (which does not work with MkIV).

I hope you or somebody will have time to port that module to MkIV.

 The entry is the latex bug database is not viewable now.
 
 %D The \type{\left} and \type{\right} generate a math atom of type inner,
 %D while for math sets, we want a math open atom. To see the difference,
 %D consider
 %D
 %D \startbuffer
 %D \startformula
 %D  2\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad
 %D  2\biggl( \frac {3}{4} \biggr)
 %D \stopformula
 %D
 %D and
 %D
 %D \startformula
 %D  \Pr\left(\frac {3}{4} \right) \qquad \hbox{ vs } \qquad
 %D  \Pr\biggl( \frac {3}{4} \biggr)
 %D \stopformula
 %D \stopbuffer
 %D \typebuffer
 %D
 %D which gives (notice the spacing before the parenthesis)
 %D
 %D \getbuffer
 %D
 %D I will assume that if \type{text} is something, then
 %D the default behaviour is desirable, if \type{text} is empty, then I add
 %D \type{\mathopen} and \type{\mathclose}.  Using \type{\mathopen} to correct
 %D the spacing is due to Frank Mittelbach, see
 %D 
 \hyphenatedurl{http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/3853}
 %D
 %D Mathset module ensures that we get the correct spacing in both cases
 %D \startbuffer
 %D \definemathset[SET][left=(,right=)]
 %D \startformula
 %D  2\SET{\frac{3}{4}} \qquad \hbox{ and } \qquad
 %D  \PR{ \frac{3}{4} }
 %D \stopformula
 %D \stopbuffer
 %D \getbuffer[PR] \getbuffer which was typed as \typebuffer
 %D
 %D Also, if its argument is a single character, \type{\mathop} centers it 
 to
 %D with respect to the math||axis. Compare the outputs of
 %D
 %D \startbuffer
 %D \ruledhbox{$\mathop{y}\nolimits_x\left\{A\,\middle|\,B\right\}$}
 %D \ruledhbox{$\mathop{\kern\zeropoint 
 y}\nolimits_x\left\{A\,\middle|\,B\right\}$}
 %D \stopbuffer
 %D
 %D \typebuffer
 %D \getbuffer
 %D
 %D I have added a \type{\kern\zeropoint} to prevent that.

Could you explain the advantage over `\!` which Wolfgang suggested at
least for the space after the definition.

In addition, I think AMSTeX defines a command `\DeclareMathOperator` [1]
which takes care of these things.


Thanks,

Paul


[1] http://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics#Custom_operators


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

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

Re: [NTG-context] bibliography: @ELECTRONIC entries not shown in references section

2011-05-25 Thread Paul Menzel
On So, 2011-05-22 at 19:12 +0200, Hans Hagen wrote:
 On 22-5-2011 6:57, Paul Menzel wrote:
 
  The question still remains if `@ELECTRONIC` are not allowed or if this
  is an error.
 
 it's more that @ELECTRONIC is not defined

Ok, neither does it appear in the Wikipedia article [1].

Who is responsible for updating the example BibTeX file [2] in the
Minimal distribution then?


Thanks,

Paul


[1] https://secure.wikimedia.org/wikipedia/en/wiki/BibTeX#Entry_Types
[2] /tex/texmf-context/tex/context/bib/sample.bib


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

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

Re: [NTG-context] [solved] t-filter: no table created when Unicode characters are included

2011-05-27 Thread Paul Menzel
Am Montag, den 02.05.2011, 17:30 +0200 schrieb Paul Menzel:
 Am Sonntag, den 01.05.2011, 15:09 -0400 schrieb Aditya Mahajan:
  On Sun, 1 May 2011, Aditya Mahajan wrote:
  
   On Sun, 1 May 2011, Peter Münster wrote:
  
   So, whatever the original enviroment is, context and/or luatex sets
   LC_COLLATE=C
   LC_CTYPE=C
   LC_NUMERIC=C
  
   Confirmed. Now the question is, why does this cause pandoc to behave 
   strangely.
  
  Perhaps due to a old bug in pandoc
  http://code.google.com/p/pandoc/issues/detail?id=233
  http://www.readmespot.com/question/f/163755/pandoc-locale-problems
  
  This was fixed in pandoc 1.6 that is why I don't see it. Paul, you will 
  have to manually update pandoc.
 
 Thank you very much for all your help. I will wait for the updated
 Pandoc and retest. In the mean time I am going to use t-rst.

Pandoc 1.8.1.1 is available in the Debian Sid/unstable repositories [1]
now. I tested the minimal example and after adding the

\setupbodyfont[times]

as you did, everything works as expected.

Thank you very much and sorry for noise, because this was an external
problem.


Thanks,

Paul


[1] http://packages.qa.debian.org/p/pandoc/news/20110526T214713Z.html


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

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

[NTG-context] math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.

2011-06-04 Thread Paul Menzel
Dear ConTeXt folks,


I want to define `\abs` as the command for the absolute value. The
following minimal example is also attached.

\define\abs[1]{\lvert #1 \rvert}
\starttext
$\lvert 2 \rvert$

$\abs{2}$
\stoptext

This does not work though.

$ context abs
[…]
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) 
 \write18 enabled.
(abs.tex

ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: 
english/english
[…]
! Missing $ inserted.

system   tex  error on line 1 in file abs.tex: Missing $ 
inserted ...

1   \define\abs[1]{\lvert #1 \rvert}
2 \starttext
3 $\lvert 2 \rvert$
4 
5 $\abs{2}$
6 \stoptext
7 

inserted text 
$
to be read again 
   \Udelimiter 
\lvert -\Udelimiter 
 4 0 7C 
l.1 \define\abs[1]{\lvert
  #1 \rvert}
?

How should I do that correctly? I took that example from the user’s
guide of the amsmath package (`texdoc amsldoc`).


Thanks,

Paul
\define\abs[1]{\lvert #1 \rvert}
\starttext
$\lvert 2 \rvert$

$\abs{2}$
\stoptext


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

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

[NTG-context] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)

2011-06-05 Thread Paul Menzel
Dear Otared,


Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian:

 I think the error comes from your way of using \define: you use
\define\abs[1]{\lvert #1 \rvert}
 instead of
   \define[1]\abs{\lvert#1\rvert}
 
  the following works fine for me:
 
 \starttext
 
 %\define[1]\abs{|#1|} % this works
 
 \define[1]\abs{\lvert#1\rvert} % this works too
 
 $\abs{-1} = 1$
 \stoptext

thank you very much for the solution. I took my definition from the Wiki
[1].

Could the developers please clarify the correct syntax so that it can be
updated in the source or the Wiki.


Thanks,

Paul


[1] http://wiki.contextgarden.net/Reference/en/define


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

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

Re: [NTG-context] [solved] \define[1]\command or \define\command[1]? (was: math: command for absolute value: `\define\abs[1]{\lvert #1 \rvert}` throws `\lvert -\Udelimiter`.)

2011-06-05 Thread Paul Menzel
Dear ConTeXt folks,


Am Sonntag, den 05.06.2011, 12:11 +0200 schrieb Paul Menzel:

 Am Samstag, den 04.06.2011, 23:59 +0200 schrieb Otared Kavian:
 
  I think the error comes from your way of using \define: you use
   \define\abs[1]{\lvert #1 \rvert}
  instead of
  \define[1]\abs{\lvert#1\rvert}
  
   the following works fine for me:
  
  \starttext
  
  %\define[1]\abs{|#1|} % this works
  
  \define[1]\abs{\lvert#1\rvert} % this works too
  
  $\abs{-1} = 1$
  \stoptext
 
 thank you very much for the solution. I took my definition from the Wiki
 [1].
 
 Could the developers please clarify the correct syntax so that it can be
 updated in the source or the Wiki.

I am sorry. I messed up and confused the LaTeX syntax (?) (`texdoc
amsldoc`) and the one in the Wiki.


I am sorry for the noise.


Thanks,

Paul


 [1] http://wiki.contextgarden.net/Reference/en/define


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

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

[NTG-context] ∫ is not displayed correctly compared to $\int$.

2011-06-12 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: english/english

the following example produces different integral signs.

--- minimal example ---
\starttext
Using the NEO keyboard layout several math symbols can be inserted directly 
like $∫$ or $∩$.

But $\int$ and $∫$ look differently.
\stoptext
--- minimal example ---

Please find all files attached.


Thanks,

Paul


[1] http://neo-layout.org/


int.pdf
Description: Adobe PDF document
\starttext
Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$.

But $\int$ and $∫$ look differently.
\stoptext


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

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

[NTG-context] math: using `align` ⁺ and ⁻ not displayed

2011-06-13 Thread Paul Menzel
Dear ConTeXt folks,


using the Neo keyboard layout [1] I am able to insert the superscript +
and - directly: ^+=⁺ and ^-=⁻.

[…]
ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: 
english/english
[…]
mkiv lua stats   math script replacements  - U+0207A:⁺ U
+0207B:⁻ (n=4)
[…]

The following minimal example demonstrates the problem which is visible
when ⁺ or ⁻ is used between `\{start,stop}align`.

--- minimal example ---
\starttext
\placeformula
\startformula
a⁺ \quad b⁻
\stopformula
\placeformula
\startformula\startalign
a⁺ \NC≠ \NC b⁻ \NR
a^+ \NC≠ \NC b^- \NR
\stopalign\stopformula

It should work though $a⁺$ and $b⁻$.
\stoptext
--- minimal example ---

Please find all files attached.


Thanks,

Paul


[1] http://neo-layout.org/


superscript.pdf
Description: Adobe PDF document
\starttext
\placeformula
\startformula
	a⁺ \quad b⁻
\stopformula
\placeformula
\startformula\startalign
	a⁺ \NC≠ \NC b⁻ \NR
	a^+ \NC≠ \NC b^- \NR
\stopalign\stopformula

It should work though $a⁺$ and $b⁻$.
\stoptext


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

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

[NTG-context] netiquette (was: measuring alphabet length)

2011-06-13 Thread Paul Menzel
Dear Christoph,


Am Montag, den 13.06.2011, 14:43 +0200 schrieb Christoph Redecker:

[…]

please do not top post when the people helping you use interleaved style
[1].

 And why does my email client display this thread as a reply to the fit 
 to width by negative letterspacing or narrowing thread started by Henning?

You used the Reply-To function of your mail client (Thunderbird) instead
of creating a new message (by for example clicking on the email address
of the ConTeXt list).

References: 2baef00e-f2ae-4e30-9f86-548bb2a7b...@fiee.net
 4dd261bd.60...@wxs.nl 
23bf6f68-2a11-45a8-936a-1cba0536c...@fiee.net
In-Reply-To: 23bf6f68-2a11-45a8-936a-1cba0536c...@fiee.net


Thanks,

Paul


[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette


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

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

[NTG-context] math: how to display ≔?

2011-06-14 Thread Paul Menzel
Dear ConTeXt folks,


probably this is again a font problem, but I just want to report that
the definition symbol ≔ (colon equal) [1] I am able to insert directly
using Neo layout [2] is not displayed.

--- minimal example ---
\starttext
The definition symbol := is not shown: $≔$.
\stoptext
--- minimal example ---

I am using the following ConTeXt version.

ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: 
english/english


Thanks,

Paul


[1] http://www.unicode.org/charts/PDF/U2200.pdf
[2] http://neo-layout.org/


colonequal.pdf
Description: Adobe PDF document
\starttext
The definition symbol := is not shown: $≔$.
\stoptext


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

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

Re: [NTG-context] [solved] math: using `align` ⁺ and ⁻ not displayed

2011-06-14 Thread Paul Menzel
Am Dienstag, den 14.06.2011, 16:28 +0200 schrieb Hans Hagen:
 On 13-6-2011 2:58, Paul Menzel wrote:

  using the Neo keyboard layout [1] I am able to insert the superscript +
  and - directly: ^+=⁺ and ^-=⁻.
 
 took me a while to figure it out for those cases but it should work in 
 the next upload

These are great news. Thank you very much!


Thanks,

Paul


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

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

Re: [NTG-context] math: how to display ≔?

2011-06-19 Thread Paul Menzel
Am Dienstag, den 14.06.2011, 16:18 +0200 schrieb Hans Hagen:
 On 14-6-2011 12:51, Paul Menzel wrote:

  probably this is again a font problem, but I just want to report that
  the definition symbol ≔ (colon equal) [1] I am able to insert directly
  using Neo layout [2] is not displayed.
 
 The virtual lm does not has that symbol so I've added it.

Testing this it looks like the composed := is used, since both are not
aligned vertically. Is that correct? (I do not know anything about lm or
fonts in general.)


Thanks,

Paul


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

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

[NTG-context] netiquette (was: \star not working)

2011-06-20 Thread Paul Menzel
Dear Adam,


Am Montag, den 20.06.2011, 15:49 +0100 schrieb Reviczky, Adam:

could you please use a mail program which sets the correct header fields
so that threading is working [1]?

  Use $\star$ or \symbol[star].

Reading this quoted line, I am guessing you are using the reply to
feature of your mail program, but it is not threaded correctly.

[…]


Thanks,

Paul


PS: Thank you for using interleaved posting style already!


[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette


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

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

[NTG-context] ConTeXt Minimals: How to install fonts?

2011-06-20 Thread Paul Menzel
Dear ConTeXt folks,


I want to use Neo Euler (euler-otf) and was wondering if there is an
option for `first-setup.sh` to install fonts? What is the recommended
way to install fonts? Using a GNU/Linux distribution should I use those
tools to install fonts?

I read [2], [3] and [4] but could not find a definite way besides
copying the files to the corresponding directories. 


Thanks,

Paul


[1] https://github.com/khaledhosny/euler-otf
[2] http://wiki.contextgarden.net/ConTeXt_Minimals/Structure#fonts
[3] http://wiki.contextgarden.net/Fonts
[4] http://www.ntg.nl/pipermail/ntg-context/2010/052632.html


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

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

Re: [NTG-context] Bibliography is not working: entries not shown

2011-06-22 Thread Paul Menzel
Am Mittwoch, den 22.06.2011, 23:28 +0200 schrieb yoraxe:
 Am 22.06.2011 23:15, schrieb Pontus Lurcock:
  On Wed 22 Jun 2011, yoraxe wrote:
  
  \setupbibtex[database=bib]
 
  \starttext
  \completepublications
  \stoptext
  
  You want \completepublications[criterium=all], if you wish to list
  publications even when they're not referenced in the text. Perhaps you
  were misled by the name -- \completepublications (as opposed to
  \placepublications) just means you get the title ‘References’
  at the top of the page. The ‘criterium’ argument controls which
  publications are actually included.
 
 Thanks for the information. I really didn't know that. But unfortunately
 this does not change anything.

Please attach your TeX, output and log files.


Thanks,

Paul


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

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

[NTG-context] Netiquette (was: Repeated Hyphens in URL Cause Fatal Error)

2011-06-29 Thread Paul Menzel
Dear Raymond,


please do not blindly reply to some message when you want to create a
new message. Despite editing the subject line the mail client sets some
fields in the message header so that the message is displayed as a reply
never the less and threading using those fields is messed up.

Your method seems to result from using Web clients where it is not easy
to just click on an address to compose a new one and to save oneself
typing the address into the field. Since you are using Apple Mail you
can just click an the ConTeXt email address in any message to compose a
new message.

Further tips on what to consider when dealing with lists are written
down by openSUSE [1].


Thanks,

Paul


[1] http://en.opensuse.org/openSUSE:Mailing_list_netiquette


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

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

[NTG-context] unicode: math: ʹ U+02B9 MODIFIER LETTER PRIME not displayed and U+2032 PRIME and \prime not displayed correctly

2011-07-06 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.21  int: 
english/english

the derivative symbol is not displayed correctly and U+02B9 is not
displayed at all.

--- 8 --- minimal example --- 8 ---
\starttext
\startitemize
\item U+02B9 MODIFIER LETTER PRIME
\startformula
f(x) = x ⇒ fʹ(x) = 1
\stopformula

\item U+2032 PRIME
\startformula
f(x) = x ⇒ f′(x) = 1
\stopformula

\item \backslash prime
\startformula
f(x) = x ⇒ f\prime(x) = 1
\stopformula
\stopitemize
\stoptext
--- 8 --- minimal example --- 8 ---

I hope it is not a font issue.


Thanks,

Paul


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

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

Re: [NTG-context] unicode: math: ʹ U+02B9 MODIFIER LETTER PRIME not displayed and U+2032 PRIME and \prime not displayed correctly

2011-07-06 Thread Paul Menzel
Dear ConTeXt folks,


Am Mittwoch, den 06.07.2011, 15:22 +0200 schrieb Paul Menzel:

 using
 
 ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.21  int: 
 english/english
 
 the derivative symbol is not displayed correctly and U+02B9 is not
 displayed at all.
 
 --- 8 --- minimal example --- 8 ---
 \starttext
 \startitemize
 \item U+02B9 MODIFIER LETTER PRIME
 \startformula
 f(x) = x ⇒ fʹ(x) = 1
 \stopformula
 
 \item U+2032 PRIME
 \startformula
 f(x) = x ⇒ f′(x) = 1
 \stopformula
 
 \item \backslash prime
 \startformula
 f(x) = x ⇒ f\prime(x) = 1
 \stopformula
 \stopitemize
 \stoptext
 --- 8 --- minimal example --- 8 ---
 
 I hope it is not a font issue.

I forgot to attach the example files.


Thanks,

Paul


derive.pdf
Description: Adobe PDF document
\starttext
\startitemize
\item U+02B9 MODIFIER LETTER PRIME
\startformula
f(x) = x ⇒ fʹ(x) = 1
\stopformula

\item U+2032 PRIME
\startformula
f(x) = x ⇒ f′(x) = 1
\stopformula

\item \backslash prime
\startformula
f(x) = x ⇒ f\prime(x) = 1
\stopformula
\stopitemize
\stoptext


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

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

[NTG-context] math: `\ref` does not work for referencing formulae (ConTeXt ver: 2011.06.19)

2011-07-10 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.21  int: 
english/english

the following minimal example taken from the Wiki page [1] does not work
as expected.

--- 8 --- minimal example --- 8 ---
\starttext
The famous result (and again) is given by
\placeformula[formulalabel]
\startformula
c^2 = a^2 + b^2.
\stopformula
And now we can refer to formula \ref[formulalabel] (ref).
And now we can refer to formula \in[formulalabel] (in).
\stoptext
--- 8 --- minimal example --- 8 ---

`\ref` does not seem to find the label for the equation. `\in` does
work.


Thanks,

Paul


[1] http://wiki.contextgarden.net/Math/Display#Referencing_formulae


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

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

Re: [NTG-context] math: `\ref` does not work for referencing formulae (ConTeXt ver: 2011.06.19)

2011-07-10 Thread Paul Menzel
Dear ConTeXt folks,


Am Sonntag, den 10.07.2011, 21:55 +0200 schrieb Paul Menzel:

 using
 
 ConTeXt  ver: 2011.06.19 14:17 MKIV  fmt: 2011.6.21  int: 
 english/english
 
 the following minimal example taken from the Wiki page [1] does not work
 as expected.
 
 --- 8 --- minimal example --- 8 ---
 \starttext
 The famous result (and again) is given by
 \placeformula[formulalabel]
 \startformula
 c^2 = a^2 + b^2.
 \stopformula
 And now we can refer to formula \ref[formulalabel] (ref).
 And now we can refer to formula \in[formulalabel] (in).
 \stoptext
 --- 8 --- minimal example --- 8 ---
 
 `\ref` does not seem to find the label for the equation. `\in` does
 work.

I forgot to attach the example files.


Thanks,

Paul


 [1] http://wiki.contextgarden.net/Math/Display#Referencing_formulae


ref.pdf
Description: Adobe PDF document
\starttext
The famous result (and again) is given by
\placeformula[formulalabel]
\startformula
c^2 = a^2 + b^2.
\stopformula
And now we can refer to formula \ref[formulalabel] (ref).
And now we can refer to formula \in[formulalabel] (in).
\stoptext


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

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

Re: [NTG-context] General suggestion: Unit tests for ConText

2011-07-18 Thread Paul Menzel
Dear Peter,


Am Montag, den 18.07.2011, 19:51 +0200 schrieb Peter Schorsch:

[…]

 I realize that they have the same functionality like unit-tests -
 just instead of comparing classes and variables - a pdf-output is
 visually compared.
 
 So I like to suggest to introduce unit tests for context. It would
 
   a) increase the quality of context as it makes the
   testing easier for the developer
 
   b) it also would be a great source of minihowtos for learning
   context.
 
 Before I write my technical ideas about this I would like to know what
 are you thinking about this idea?

not being a developer I like that idea very much.

Could the PDF output be converted to a picture and some routine be used
to determine a difference between the template picture and the created
one?


Thanks,

Paul


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

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

Re: [NTG-context] [solved] math: using bold charaters for number sets

2011-07-23 Thread Paul Menzel
Am Dienstag, den 24.05.2011, 22:52 +0200 schrieb Hans Hagen:
 On 24-5-2011 9:46, Aditya Mahajan wrote:
 
  I will prefer something more verbose than rendering=1. Perhaps,
  numbersets=blackboard and numbersets=bold.
 
 Sure, but I needed a quick test -)

Just to close this topic. The current syntax(?)/command is the
following.

\setupmathematics
   [symbolset=blackboard-to-bold]

  A bit tricky. Is \reals == ℝ? That is, what if I type ℝ should the
  output be bold R, or should ℝ always map to the corresponding slot in
  the unicode math font?
 
 - the export is the original (but \reals becomes ℝ)
 - the rendering becomes ℝ or bold-R

I prefer that ℝ is rendered as bold-R.

[…]


Thanks,

Paul


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

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

[NTG-context] \setupmathematics: autopunctuation only for certain symbols like . or ,

2011-07-24 Thread Paul Menzel
Dear ConTeXt folks,


if I am not mistaken `autopunctuation` [1] should prevent the space
after the decimal mark [2] like in »1,23« or »1.23«.

The following minimal example, which is also attached, indicates that
the space is also not added for semicolon »;«.

--- 8 --- minimal example --- 8 ---
\starttext
\setupformulas[align=right]

\startformula
ℕ ≔ \left\{ 0; 1; 2; 3; … \right\}
\stopformula

\setupmathematics[autopunctuation=no]
\startformula
ℕ ≔ \left\{ 0; 1; 2; 3; … \right\}
\stopformula
\stoptext
--- 8 --- minimal example --- 8 ---

I wonder if this is on purpose because the Wiki page [2] does not list
the semicolon as a decimal mark.

Would it be possible to take the semicolon out of the handling of
`autopunctuation`?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Math_setups
[2] https://secure.wikimedia.org/wikipedia/en/wiki/Decimal_mark


menge.pdf
Description: Adobe PDF document
\starttext
\setupformulas[align=right]

\startformula
ℕ ≔ \left\{0; 1; 2; 3; … \right\}
\stopformula

\setupmathematics[autopunctuation=no]
\startformula
ℕ ≔ \left\{0; 1; 2; 3; … \right\}
\stopformula
\stoptext


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

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

[NTG-context] math: formula alignment: confusion about `left` and `right` alignment

2011-07-24 Thread Paul Menzel
Dear ConTeXt folks,


looking at the Wiki page about changing the formula alignment [1] and
testing the following minimal example, which is also attached, I would
have thought that `align=right` would mean, that the formula is put to
the right side. But is aligned to the left side instead.

--- 8 --- minimal example --- 8 ---
\starttext

Right align.
\setupformulas[align=right]
\startformula
ℕ ⊂ ℝ
\stopformula

Left align.
\setupformulas[align=left]
\startformula
ℝ ⊂ ℂ
\stopformula
\stoptext
--- 8 --- minimal example --- 8 ---

What is wrong with the way I am looking at this?

Searching for »latex align formula left right« I could not find an
answer either.


Thanks,

Paul


[1] http://wiki.contextgarden.net/Math/Display#Changing_Formula_alignment


align.pdf
Description: Adobe PDF document
\starttext

Right align.
\setupformulas[align=right]
\startformula
ℕ ⊂ ℝ
\stopformula

Left align.
\setupformulas[align=left]
\startformula
ℝ ⊂ ℂ
\stopformula
\stoptext


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

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

[NTG-context] minimals: How to prevent that core and modules become incompatible?

2011-07-24 Thread Paul Menzel
Dear ConTeXt folks,


I just experienced a situation that I wanted to try a module, in this
case TikZ [1][2], and I only had run `./first-setup.sh`, so the module
and “core” were diverted and I got an error message.

! Undefined control sequence.

system   tex  error on line 396 in file tikz.tex: 
Undefined control sequence ...



\pgfutil@addpdfresource@colorspaces ...olorspaces
  {#1}
l.396 ...rspaces{ /pgfprgb [/Pattern /DeviceRGB] }

Running `./first-setup.sh --extras=all` fixed the problem for me, but
not wanting to install all extras it is quite hard to insert/remember
all extras installed on the system.

Is there a command to prevent these kind of things or should an option
`upgrade` be introduced?


Thanks,

Paul


[1] http://modules.contextgarden.net/
[2] http://wiki.contextgarden.net/TikZ


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

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

Re: [NTG-context] theorem environment: Is *enumeration* or the `annotation` module recommended?

2011-07-24 Thread Paul Menzel
Dear Wolfgang,


Am Mittwoch, den 13.07.2011, 15:11 +0200 schrieb Wolfgang Schuster:
 Am 13.07.2011 um 07:15 schrieb Andreas Richter:

[…]

  After browsing the documentation on the web, focussing
  on \defineenummeration, I'm still nowhere near the solution.
  Could anyone please give examples of how to do this?
 
 You can change the style, color and spacing with \setupenumerations
 but for the rules etc. you need other commands.
 
 \defineenumeration[theorem][text=Theorem,title=yes]
 \defineenumeration[example][text=Example]
 \defineenumeration[remark] [text=Remark]
 
 \setupenumerations
   [theorem]
   [   
 before={\startframedtext[frame=off,topframe=on,bottomframe=on,width=broad,offset=.5ex]},
after=\stopframedtext,
inbetween={\blank[small]}]

the first off topic question is, what editor do you use and what
commands to align the options at the »=«?

 \setupenumerations
   [example]
   [  command=\textrule,
after=\textrule,
inbetween={\blank[nowhite]}]
 
 \setupenumerations
   [remark]
   [style=italic]

[…]

My second question is, what is the recommended way to define theorems?
The Wiki [1] says `\setupenumarations` as you did, but if I am not
mistaken there was a thread where your module `annotations` was used.
What is more “future proof” and recommended?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Latex_Packages#theorem


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

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

Re: [NTG-context] minimals: How to prevent that core and modules become incompatible?

2011-07-25 Thread Paul Menzel
Am Montag, den 25.07.2011, 09:06 +0200 schrieb Hans Hagen:
 On 25-7-2011 12:26, Paul Menzel wrote:

  I just experienced a situation that I wanted to try a module, in this
  case TikZ [1][2], and I only had run `./first-setup.sh`, so the module
  and “core” were diverted and I got an error message.
 
   ! Undefined control sequence.
 
   system  tex  error on line 396 in file tikz.tex: 
  Undefined control sequence ...
 
 
 
   \pgfutil@addpdfresource@colorspaces ...olorspaces
 {#1}
   l.396 ...rspaces{ /pgfprgb [/Pattern /DeviceRGB] }
 
  Running `./first-setup.sh --extras=all` fixed the problem for me, but
  not wanting to install all extras it is quite hard to insert/remember
  all extras installed on the system.
 
 the updater/installer remembers what you've installed so the next time 
 the extras will be synchronized along with the core (all or the 
 selection you've chosen)

Well, then this somehow failed for me. The TikZ module was still from
May 2011 and the core July 2011.


Thanks,

Paul


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

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

Re: [NTG-context] minimals: How to prevent that core and modules become incompatible?

2011-07-25 Thread Paul Menzel
Am Montag, den 25.07.2011, 12:14 +0200 schrieb Wolfgang Schuster:
 Am 25.07.2011 um 12:10 schrieb Paul Menzel:
 
  the updater/installer remembers what you've installed so the next time 
  the extras will be synchronized along with the core (all or the 
  selection you've chosen)
  
  Well, then this somehow failed for me. The TikZ module was still from
  May 2011 and the core July 2011.
 
 The name of the parameter has changed from “extras” to “modules”.
 
 To install all modules you have to type “first-setup.sh --modules=all”.

Thanks, but I think this was not the problem at my end.
`~/.first-setup.sh` is still the one from January, so `extras` worked
for me.


Thanks,

Paul


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

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

Re: [NTG-context] markdown

2011-07-26 Thread Paul Menzel
Am Dienstag, den 26.07.2011, 14:43 +0200 schrieb Hans Hagen:
 On 26-7-2011 2:37, Vyatcheslav Yatskovsky wrote:
  I'm curious, what is markdown and why one ever needs to print it? ;)
 
 Some kind of simple ascii tagging.

Markdown is also referred to as a markup language. There is also a
Wikipedia article about Markdown [1].

[…]


Thanks,

Paul


[1] https://secure.wikimedia.org/wikipedia/en/wiki/Markdown


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

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

[NTG-context] `\setupinterlinespace` and `\{start, stop}standardmakeup`

2011-07-26 Thread Paul Menzel
Dear ConTeXt folks,


following Wolfgang’s advise [1] (Thank you, Wolfgang!) I learned about `
\{start,stop}standardmakeup`.

Am Samstag, den 05.02.2011, 19:34 +0100 schrieb Wolfgang Schuster:

[…]

 \starttext
 
 \startstandardmakeup[align=middle]
 \definedfont[Serif at 30pt]Titlepage
 \stopstandardmakeup
 
 …
 
 \stoptext

Now I am having a title consisting of more than one line and I noticed
the space between those lines seems to be too small. Trying to increase
the space using `\setupinterlinespace` [2] it did not work. I had to use
`\blank` in between. Is that expected? Is it documented somewhere when
`setupinterlinespace` has no effect?

Please find my tests attached.


Thanks,

Paul



[1] http://www.ntg.nl/pipermail/ntg-context/2011/056536.html
[2] http://wiki.contextgarden.net/Reference/en/setupinterlinespace


space.pdf
Description: Adobe PDF document
\starttext
\startlines[align=flushright,style={\switchtobodyfont[36pt,ss]}]
Very long title which

should cover two lines
\stoplines

\startstandardmakeup
\startlines[align=flushright,style={\switchtobodyfont[36pt,ss]}]
Very long title which

should cover two lines
\stoplines
\stopstandardmakeup

\startstandardmakeup[align=middle]
\setupinterlinespace[medium]
\definedfont[Serif at 30pt]Very long title which should cover two lines
\stopstandardmakeup

\startstandardmakeup[align=middle]
\setupinterlinespace[big]
\definedfont[Serif at 30pt]Very long title which should cover two lines
\stopstandardmakeup

\startstandardmakeup[align=middle]
\setupinterlinespace[big]
\definedfont[Serif at 30pt]Very long title which should cover\blank
two lines
\stopstandardmakeup

\startstandardmakeup[align=middle]
\setupinterlinespace[big]
\definedfont[Serif at 30pt]Very long title which should cover\blank
two lines
\stopstandardmakeup

\setupinterlinespace[medium]
\definedfont[Serif at 30pt]Very long title which should cover\blank
two lines

\setupinterlinespace[big]
\definedfont[Serif at 30pt]Very long title which should cover\blank
two lines
\stoptext


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

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

[NTG-context] [punknova][PATCH] README.md: Fix typos

2011-08-17 Thread Paul Menzel
Date: Wed, 17 Aug 2011 12:41:03 +0200

1. No dots are used for »et al« according to Merriam Webster [1].
2. Use capitalization consitently.

[1] http://www.merriam-webster.com/dictionary/et%20al
---
You can apply this patch saving this message as an mbox file and using `git am 
savedfilename.mbox`.
---
 README.md |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index bf1a465..b4ab2e8 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,8 @@ The Punk Nova font
 This is an OpenType implementation of Donald Knuth's
 [Punk font](http://tug.org/TUGboat/Articles/tb09-2/tb21knut.pdf).
 
-The Original Metafont sources were adapted to a more Metapost friendly
-form by Taco Hoekwater et. al.
+The original Metafont sources were adapted to a more MetaPost friendly
+form by Taco Hoekwater et al.
 
 Punk is a dynamic font, every time a glyph is requested Matafont draws
 a unique instance of it. On the other hand, OpenType is static, glyph
@@ -17,13 +17,13 @@ Alternate shapes are mapped to the base character using 
OpenType
 feature (rand), which tells the renderer to select glyphs randomly from
 the list of alternate shapes.
 
-The PostScript outlines of the glyphs are generated by Matapost, a
-Python script then used FontForge to import the glyphs into an OpenType
+The PostScript outlines of the glyphs are generated by MetaPost, a
+Python script then uses FontForge to import the glyphs into an OpenType
 CFF font. Since this year is the 2^5 anniversary of TeX, each lower case
 letter have 2^5 variants, 2^4 for each upper case and 2^3 for the rest.
 
 This font is free software, you can do whatever you want with it as long
-as you use different font and file name. The exact copyright statement is:
+as you use different font and file names. The exact copyright statement is:
 
  Unlimited copying and redistribution of this file are permitted as long
   as this file is not modified. Modifications are permitted, but only if
@@ -38,7 +38,7 @@ The MetaPost source has the following notice:
   Font inspired by Gerard and Marjan Unger's lectures,
   Feb 1985
 
-The regular punk files are part of TeXLive and in metafont format. All
+The regular punk files are part of TeXLive and in Metafont format. All
 errors introduced are ours. We also changed the encoding to unicode. In
 due time we might add a few more more characters. We still need to
 improve some of the metrics which involves a bit of trial and error. The
-- 
1.7.5.4


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

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

[NTG-context] [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]

2011-08-17 Thread Paul Menzel
Date: Wed, 17 Aug 2011 12:46:52 +0200

[1] http://www.ntg.nl/maps/37/
---
Somehow the README on CTAN [2] is not converted to HTML. So the links which 
would be created by Markdown cannot be used usable.

[2] 
http://sunsite.informatik.rwth-aachen.de/ftp/pub/mirror/ctan/fonts/punknova/README
---
 README.md |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index b4ab2e8..8cecb0d 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ The MetaPost source has the following notice:
 
 2008, Taco Hoekwater  Hans Hagen
 
-
+The MAPS article is [available online](http://www.ntg.nl/maps/37/).
 
 
 Khaled Hosny
-- 
1.7.5.4



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

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

Re: [NTG-context] OT: [punknova][PATCH] README.md: Add link to article from Hans and Taco in MAP 37 [1]

2011-08-17 Thread Paul Menzel
Am Mittwoch, den 17.08.2011, 16:48 +0200 schrieb Khaled Hosny:
 On Wed, Aug 17, 2011 at 12:51:18PM +0200, Paul Menzel wrote:
  Date: Wed, 17 Aug 2011 12:46:52 +0200
  
  [1] http://www.ntg.nl/maps/37/
 
 Thanks for both patches, it'd be better to open issues in github

I have no account at GitHub.

 or send me mails directly, to not bother the list with offtopic mails.

I will mark them as off topic next time or send it to you directly.

Just one question. Can you give me the reason why you did not use `git
am`?


Thanks,

Paul


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

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

[NTG-context] Fifth International ConTeXt User Meeting from September 19th until 24th

2011-09-22 Thread Paul Menzel
Dear ConTeXt folks,


for those wondering why the traffic on this list is quite low during the
last few days, I guess the reason is most of the developers and active
supporters are attending the fifth International ConTeXt User Meeting
[1].

I wish a great time to everybody attending the meeting.


Thanks,

Paul


[1] http://meeting.contextgarden.net/2011/


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

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

Re: [NTG-context] math signs in itemize

2011-09-26 Thread Paul Menzel
Am Montag, den 26.09.2011, 11:01 +0200 schrieb Wolfgang Schuster:
 \definefontfeature[frac][frac=yes,script=latn]
 
 \setupbodyfont[cambria]

Is there a font in Standalone which can be used to demonstrate the
behavior?

 \starttext
 1/40 {\setff{frac}1/40} \m{\frac{1}{40}}

With `{\setff{frac}1/40}` the output is like ¼0. Using `{40}` also does
not help.

 \stoptext


Thanks,

Paul


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

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

[NTG-context] Plotting a graph of a function f, like f(x) = e^x, with MetaPost

2011-10-11 Thread Paul Menzel
Dear ConTeXt folks,


I finally chose MetaPost/MetaFun [1] because of the native integration
with ConTeXt and hopefully easy font handling. I want to use that
throughout my document.

Of course I hit the first problem. Wanting to draw a “simple” function f
like f(x) = e^x, seems hard to accomplish. I guess I should stress that
MetaPost does not have a high accuracy so it might not be the best
solution [5].

There seem to be quite a lot of solutions (mostly macros) on the Web for
this problem so I am wondering if one of them is integrated in MetaFun.

Here are some of my findings.

1. Reading about the graph package by John D. Hobby [2] and which is
also included in ConTeXt [3]. Especially I liked the automatic
coordinate systems. The package seems to only be able to plot graphs
with data points saved in files. So one solution would be to manually
create data files with data points of the relevant function.

2. There is an example in the Drexel Physics Wiki [4].

3. Anthony Phan has also created some macros in his `mps` [5 (currently
not accessible)].

4. André Heck uses the macro packages `courbes` and `grille` from
Jean-Michel Sarlat to show some nice examples in his tutorial »Learning
Metapost by Doing« [6].


So what do you suggest?


Thanks,

Paul


[1] http://www.ntg.nl/pipermail/ntg-context/2011/058527.html
[2] http://tug.org/docs/metapost/mpgraph.pdf
[3] http://wiki.contextgarden.net/Metapost
[4] http://einstein.drexel.edu/liki/index.php/Metapost#Graphing_Functions
[5] http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf
[6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf


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

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

Re: [NTG-context] Plotting a graph of a function f, like f(x) = e^x, with MetaPost

2011-10-11 Thread Paul Menzel
Dear ConTeXt folks,


Am Mittwoch, den 12.10.2011, 00:45 +0200 schrieb Paul Menzel:
 Dear ConTeXt folks,
 
 
 I finally chose MetaPost/MetaFun [1] because of the native integration
 with ConTeXt and hopefully easy font handling. I want to use that
 throughout my document.
 
 Of course I hit the first problem. Wanting to draw a “simple” function f
 like f(x) = e^x, seems hard to accomplish. I guess I should stress that
 MetaPost does not have a high accuracy so it might not be the best
 solution [5].
 
 There seem to be quite a lot of solutions (mostly macros) on the Web for
 this problem so I am wondering if one of them is integrated in MetaFun.
 
 Here are some of my findings.

I just want to add that there seems to be work going on in ConTeXt to
solve these issues as the talk at this years ConTeXt User Meeting of
Alan Braslau suggests [7].

 1. Reading about the graph package by John D. Hobby [2] and which is
 also included in ConTeXt [3]. Especially I liked the automatic
 coordinate systems. The package seems to only be able to plot graphs
 with data points saved in files. So one solution would be to manually
 create data files with data points of the relevant function.
 
 2. There is an example in the Drexel Physics Wiki [4].
 
 3. Anthony Phan has also created some macros in his `mps` [5 (currently
 not accessible)].
 
 4. André Heck uses the macro packages `courbes` and `grille` from
 Jean-Michel Sarlat to show some nice examples in his tutorial »Learning
 Metapost by Doing« [6].
 
 
 So what do you suggest?


Thanks,

Paul


 [1] http://www.ntg.nl/pipermail/ntg-context/2011/058527.html
 [2] http://tug.org/docs/metapost/mpgraph.pdf
 [3] http://wiki.contextgarden.net/Metapost
 [4] http://einstein.drexel.edu/liki/index.php/Metapost#Graphing_Functions
 [5] http://www-math.univ-poitiers.fr/~phan/downloads/metapost/statsman.pdf
 [6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf
[7] 
http://meeting.contextgarden.net/2011/talks/day1_06_alan_plotting/BassangeBraslau.pdf


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

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

[NTG-context] metafun manual: Typo on page 382, section 9.3 drawing functions

2011-10-12 Thread Paul Menzel
Dear ConTeXt folks,


I am sorry to bother you with these kind of messages.

On page 382 of the Metafun manual [1] (Fr 08 Okt 2010 13:44:26 CEST) it
should be

In this case the pairs (log(x), x) and …

so (log(x), x) instead of (x, x).


Thanks,

Paul


[1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf


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

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

Re: [NTG-context] Plotting a graph of a function f, like f(x) = e^x, with MetaPost

2011-10-12 Thread Paul Menzel
Dear Alan,


Am Mittwoch, den 12.10.2011, 07:36 +0200 schrieb Alan Braslau:

 Metapost can now perform calculations in double precision floating point.
 At this time, it is in the svn version and does not work yet as
 such integrated in ConTeXt (through mplib). Taco promises this for soon...

great to hear that. Just to clarify, with »now« you mean MetaPost v2, do
not you? Taco, I hope you get there without a lot of problems showing
up. If you need testers a good option would be to integrate that into
ConTeXt Standalone as an option.

 The graph package is pretty clever, and I am working on proposals on
 how to extend/rewrite this taking advantage of the new metapost
 handling of large and small numbers.

Perfect!

 To plot a function, you can create a path, as in
 path p ; p := 
   for i=0 upto 1000:
   hide (x := i/1000 ;) 
   if (i0) -- fi (x,exp(x))
   endfor ;
 gplot p ;

What module do I need for `gplot`?

Looking at the MetaFun manual [8] I found out MetaFun even provides a
macro `function` which probably does exactly what you do above with the
for loop.

draw function(2,x,x**(-0.5),1,10,1) xyscaled (2cm,2cm)
withpen pencircle scaled 5mm withcolor
transparent(1,.5,yellow) ;

 One proposal will be to make this even easier with new macros.

Another perfect!

One thing coming to my mind though that hopefully the wheel is not
reimplemented. I guess Gnuplot can do a lot already, but on the other
probably not as neat as Metapost when we want to color certain areas.


Thanks,

Paul


[8] http://www.pragma-ade.com/general/manuals/metafun-s.pdf


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

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

Re: [NTG-context] Plotting a graph of a function f, like f(x) = e^x, with MetaPost

2011-10-12 Thread Paul Menzel
Am Donnerstag, den 13.10.2011, 00:28 +0200 schrieb Mojca Miklavec:
 On Thu, Oct 13, 2011 at 00:13, Paul Menzel wrote:
  Am Mittwoch, den 12.10.2011, 07:36 +0200 schrieb Alan Braslau:
 
  Metapost can now perform calculations in double precision floating point.
  At this time, it is in the svn version and does not work yet as
  such integrated in ConTeXt (through mplib). Taco promises this for soon...
 
  great to hear that. Just to clarify, with »now« you mean MetaPost v2, do
  not you?
 
 No, 1.750. The version 2 is not quite ready yet, but the version 1.750
 already deals with floating point numbers.

Thank you for the clarification/correction.

  Taco, I hope you get there without a lot of problems showing
  up. If you need testers a good option would be to integrate that into
  ConTeXt Standalone as an option.
 
 It will become part of distribution as soon as it gets out, but Taco
 was busy enough organizing conference and dozens of other things. Just
 give him some time. I bet that he also wants to update documentation,
 do final bugfixing etc. instead of just releasing a random snapshot.

Of course the user would have to make a conscious decision by enabling
this “beta” release. If people could test this and with the right
announcement I hope that some people would step up to test and
contribute by submitting bug reports or writing documentation.

  One thing coming to my mind though that hopefully the wheel is not
  reimplemented. I guess Gnuplot can do a lot already, but on the other
  probably not as neat as Metapost when we want to color certain areas.
 
 Can you please specify your question more precisely?

I meant coloring part of the area below a graph. For example if you look
at the graphic for Riemann sums on page 51 of the document »Learning
MetaPost by Doing« [6].

 Gnuplot terminal uses metapost output. Gnuplot has some support for
 transparency, even though I'm not exactly sure if one can specify
 transparent colors for lines, only for fills. But you can always
 simply redefine line type colors to be transparent.
 
 Gnuplot brings all kinds of other problems like dependency on external
 tool. If you have enough time to create nice plots in metapost, it is
 better to avoid external dependency as a general rule. But if you have
 more questions about it, feel free to ask. I might be able to help
 you.

Well my only question would be, why should someone use Gnuplot then? Is
it only for people already knowing Gnuplot? Or also because it is a
little less work to define the coordinate system and legends?

Otherwise MetaPost seems to include all functionality Gnuplot offers and
seems to offer more possibilities, does not it?

 The ConTeXt terminal was almost included until developers
 realized that they wanted me to throw away some code for handling
 units and replace that code with something buggy (like size 10cm,10
 - (10cm,10cm); size 10,10cm - (0.35cm,10cm) or (25.40cm,10.00cm)
 depending on weather). Now I need to either rewrite part of my code or
 rewrite part of core code or convince them why keeping the old code.

I remember a thread about that [9].


Thanks,

Paul


[6] http://staff.science.uva.nl/~heck/Courses/mptut.pdf
[9] http://www.ntg.nl/pipermail/ntg-context/2010/054196.html


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

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

[NTG-context] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`

2011-10-14 Thread Paul Menzel
Dear ConTeXt folks,


trying to draw a grid and label it, I get an error when using the (alsa
attached) example from the MetaFun manual [1].

\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20,1, 20cm, 10cm) ;
draw vloggrid(0, 10,1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20,5, 20cm, @3e) ;
draw vlogtext.bot(0, 10,9, 10cm, @3e) ;
\stopMPcode
\stoptext

I am using an older version of ConTeXt Standalone.

ConTeXt  ver: 2011.07.22 17:23 MKIV  fmt: 2011.7.25  int: 
english/english

Looking at the log output I could not figure out the original error.
Please find the log file attached.

Searching the Web I found other threads dealing with this issue. But adding

\forceMPTEXgraphictrue

as suggested in [2] it does not solve the problem either.


Thanks,

Paul


[1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf
[2] http://www.ntg.nl/pipermail/ntg-context/2004/005007.html
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20,1, 20cm, 10cm) ;
draw vloggrid(0, 10,1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20,5, 20cm, @3e) ;
draw vlogtext.bot(0, 10,9, 10cm, @3e) ;
\stopMPcode
\stoptext


test.log.7z
Description: application/7z-compressed


testwithforceMPTEX.7z
Description: application/7z-compressed


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

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

[NTG-context] hybrid-italics.pdf: Small corrections (was: beta)

2011-10-15 Thread Paul Menzel
Dear Hans,


Am Freitag, den 14.10.2011, 23:26 +0200 schrieb Hans Hagen:

 A new beta has been uploaded. Nothing new apart from some experimental 
 code and a few bugfixes. I also uploaded
 
 http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf

I read your document and not being able to contribute anything having to
do with programming below you can find the thing which should be
corrected in my opinion. Not being a native English speaker they could
be wrong though.

1. s/motto’s/mottos/
2. s/cambria/Cambria/
3. `\par` not used everywhere
4. … *at* a boundary …
5. … by not passing the italic information *to* the font machinery …
6. For math italics I do not see a difference in the output when the
value is `2` and `3`.

 Files in that path will come and go.


Thanks,

Paul


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

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

[NTG-context] OT: Neo keyboard layout for entering math characters (was: luatex math font)

2011-10-15 Thread Paul Menzel
Dear Andreas,


Am Samstag, den 15.10.2011, 14:02 +0200 schrieb Andreas Richter:

 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext

since you seem to be a German native speaker, this is just a shameless
plug to recommend to you the Neo2 layout [1] with which you easily can
type the following.

\startformula
J \colon ℝ^∞ → ℝ, f ↦ J[f]
\stopformula

[…]


Thanks,

Paul


[1] http://neo-layout.org/


bb.pdf
Description: Adobe PDF document
\starttext
\startformula
J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
\stopformula

Correct use of `\blackboard`
\startformula
J:{\blackboard R}^\infty \rightarrow {\blackboard R},f \mapsto J[f]
\stopformula

Neo is great.
\startformula
J \colon ℝ^∞ → ℝ, f ↦ J[f]
\stopformula
\stoptext


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

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

Re: [NTG-context] [solved] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`

2011-10-15 Thread Paul Menzel
Dear Hans,


Am Freitag, den 14.10.2011, 15:16 +0200 schrieb Hans Hagen:
 On 14-10-2011 08:02, Paul Menzel wrote:

  trying to draw a grid and label it, I get an error when using the (alsa
  attached) example from the MetaFun manual [1].
 
 Fixed in next beta

as always thank you very much for this fast fix. I confirm that this is
fixed in current ConTeXt Standalone or latest Beta.

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

 (however, instead of mp formatting lua formatting is used, a prelude
 to the graph rewrite that Alan and I have in mind).

Not that I know the syntax of it. I hope the article FormattingNumbers
[2] in the lua-users Wiki is the correct place to look. Reading other
sources [3] it seems to be the same syntax as the `printf()`
implementation of the respective system.


Thanks,

Paul


[2] http://lua-users.org/wiki/FormattingNumbers
[3] 
http://stackoverflow.com/questions/1133639/how-can-i-print-a-huge-number-in-lua-without-using-scientific-notation


test.pdf
Description: Adobe PDF document
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20,1, 20cm, 10cm) ;
draw vloggrid(0, 10,1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20,5, 20cm, @3e) ;
draw vlogtext.bot(0, 10,9, 10cm, @3e) ;
\stopMPcode
\stoptext


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

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

[NTG-context] `\usemodule[graph]` causes error `! Unable to make mpx file.` with ConTeXt ver: 2011.10.14 22:47 MKIV

2011-10-18 Thread Paul Menzel
Dear ConTeXt folks,


using the following minimal example

\usemodule[graph]

\starttext
\startMPcode
draw unitsquare scaled 1cm;
\stopMPcode
\stoptext

causes the following error.

$ context graph

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

[…]

metapost initializing instance 'metafun' using format
'metafun'
metapost loading
'metafun': /context/tex/texmf-context/metapost/context/base/metafun.mpiv
! terminal:
(/context/tex/texmf-context/metapost/context/base/mp-spec.mpii)
(/context/tex/texmf/metapost/base/graph.mp
(/context/tex/texmf/metapost/base/marith.mp
(/context/tex/texmf/metapost/base/string.mp))
(/context/tex/texmf/metapost/base/format.mp
(/context/tex/texmf/metapost/base/string.mp)
(/context/tex/texmf/metapost/base/troffnum.mp
 troffnum.mp
 troffnum.mpx
! Unable to make mpx file.
l.7 init_numbers(btex
 $-$etex, btex$1$etex, btex$ times 10$etex,
[…]

Removing `\usemodule[graph]` make the example work. The used terminal(?)
and use of `mp-spec.mpii` looks suspicious.

Using the ConTeXt version in Debian Sid/unstable the example works.

$ context graph

[…]

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: 
english/english

[…]

structuresectioning  section @ level 3 : 0.0.1 - Test
metapost initializing instance 'metafun' using format 'metafun'
metapost loading 'metafun.mp' (experimental metapost version 
two)
backend  xmp  using file 
'/usr/share/texmf/tex/context/base/lpdf-pdx.xml'


Thanks,

Paul
\usemodule[graph]

\starttext
\startMPcode
draw unitsquare scaled 1cm;
\stopMPcode
\stoptext


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

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

[NTG-context] MetaFun: Confusion with `function()` and `xyscaled`

2011-10-20 Thread Paul Menzel
Dear ConTeXt/MetaFun folks,


looking at the example for grid and functions in the MetaFun manual [1]
section 9.3

drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20, 1, 20cm, 10cm) ;
draw vloggrid(0, 10, 1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20, 5, 20cm, @3e) ;
draw vlogtext.bot(0, 10, 9, 10cm, @3e) ;

draw
function(1,log(x),x,1,10,1) xyscaled (10cm,2cm)
withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;

I am confused how the resulting function is scaled correctly. The
resulting dimensions seem to be 10cm and 18 cm. So I guess the 2 cm mean
to shift it up some how.

Could someone please explain to me how `xyscaled` works in this case
please. I though `xyscaled (αcm, ζcm)` would set the object/path to a
width of α cm and a height of ζ cm.


Thanks,

Paul


[1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf


test.pdf
Description: Adobe PDF document
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20, 1, 20cm, 10cm) ;
draw vloggrid(0, 10, 1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20, 5, 20cm, @3e) ;
draw vlogtext.bot(0, 10, 9, 10cm, @3e) ;

draw
function(1,log(x),x,1,10,1) xyscaled (10cm,2cm)
withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;
draw fullsquare xyscaled (10cm,2cm);
\stopMPcode

\startMPcode
draw fullsquare xyscaled (1cm,1cm);
\stopMPcode
\startMPcode
draw fullsquare xyscaled (2cm,1cm);
\stopMPcode
\startMPcode
draw fullsquare xyscaled (1cm,2cm);
\stopMPcode
\startMPcode
draw fullsquare xyscaled (1,2);
\stopMPcode
\stoptext


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

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

Re: [NTG-context] MetaFun: Confusion with `function()` and `xyscaled`

2011-10-21 Thread Paul Menzel
Am Freitag, den 21.10.2011, 01:14 +0200 schrieb Paul Menzel:
 Dear ConTeXt/MetaFun folks,
 
 
 looking at the example for grid and functions in the MetaFun manual [1]
 section 9.3
 
 drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
 draw hlingrid(0, 20, .2, 20cm, 10cm) ;
 draw vloggrid(0, 10, .5, 10cm, 20cm) ;
 drawoptions(withpen pencircle scaled .50pt) ;
 draw hlingrid(0, 20, 1, 20cm, 10cm) ;
 draw vloggrid(0, 10, 1, 10cm, 20cm) ;
 
 fmt_pictures := false ; % use TeX as formatting engine
 textextoffset := ExHeight ; % a variable set by ConTeXt
 draw hlintext.lft(0, 20, 5, 20cm, @3e) ;
 draw vlogtext.bot(0, 10, 9, 10cm, @3e) ;
 
 draw
 function(1,log(x),x,1,10,1) xyscaled (10cm,2cm)
 withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;
 
 I am confused how the resulting function is scaled correctly. The
 resulting dimensions seem to be 10cm and 18 cm. So I guess the 2 cm mean
 to shift it up some how.
 
 Could someone please explain to me how `xyscaled` works in this case
 please. I though `xyscaled (αcm, ζcm)` would set the object/path to a
 width of α cm and a height of ζ cm.

Looking up the definition of the macro `xyscaled` it is indeed just a
short version of `xscaled αcm yscaled ζcm`.

$ more mp-tool.mp
[…]
%D More robust:

% let  normalscaled =  scaled ;
% let normalxscaled = xscaled ;
% let normalyscaled = yscaled ;
%
% def  scaled expr s =  normalscaled (s) enddef ;
% def xscaled expr s = normalxscaled (s) enddef ;
% def yscaled expr s = normalyscaled (s) enddef ;

%D Shorter

primarydef p xyscaled q =
  begingroup ; save qq ; pair qq ; qq = paired(q) ;
( p
  if xpart qq0 : xscaled (xpart qq) fi
  if ypart qq0 : yscaled (ypart qq) fi )
  endgroup
enddef ;
[…]

I am still confused though what happens in the above example scaling the
path of the function.

Trying

\starttext
\startMPcode
  draw fullsquare xscaled 10cm yscaled 2cm;
\stopMPcode
\stoptext

the resulting rectangle has the dimensions of 10 cm width and 2 cm
height but the path of the function above does not.


Thanks,

Paul


 [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf


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

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

Re: [NTG-context] MetaPost: Confusion with `function()` and `xyscaled`

2011-10-21 Thread Paul Menzel
Dear Peter,


thank you for your answer.

Am Freitag, den 21.10.2011, 17:02 +0200 schrieb Peter Rolf:

 I agree, this is confusing on the first sight. But scaling is not meant
 as 'scaling to' a dimension. In fact is is just a simple multiplication.
 The reason why it seems to work this way with
 'fullsquare' and such predefined paths is, that they have a 'neutral'
 size/scale (bounding box size of filled path is (1pt,1pt)).

So how can I find out what the dimension of the path of a function is?
Not scaling it, it also looked pretty small, so I am guessing (1pt,1pt).

 Multiplying such a path with (x,y) gives an object with size (1*x,1*y).
 In general: if the bounding box of an object has the size (a,b) and you
 scale it with (x,y), the resulting object has a size of (ax,by). That's
 all the magic.

but if you use numbers with a unit than it should not be multiplied but
expanded to that value, should not it? Otherwise I am unsure how
multiplication works with a unit.

 I must admit that this wasn't clear to me before you came up with your
 question. So thanks for that. :-)

Thank you for your answer. As written above it is still not entirely
clear to me. I hope you can remedy my last confusion.


Thanks a lot,

Paul


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

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

[NTG-context] MetaFun manual: Incorrect label of ordinate axis on page 382, section 9.3 drawing functions (was: Confusion with `function()` and `xyscaled`)

2011-10-23 Thread Paul Menzel
Dear MetaFun folks,


Am Freitag, den 21.10.2011, 01:14 +0200 schrieb Paul Menzel:

 looking at the example for grid and functions in the MetaFun manual [1]
 section 9.3
 
 drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
 draw hlingrid(0, 20, .2, 20cm, 10cm) ;
 draw vloggrid(0, 10, .5, 10cm, 20cm) ;
 drawoptions(withpen pencircle scaled .50pt) ;
 draw hlingrid(0, 20, 1, 20cm, 10cm) ;
 draw vloggrid(0, 10, 1, 10cm, 20cm) ;
 
 fmt_pictures := false ; % use TeX as formatting engine
 textextoffset := ExHeight ; % a variable set by ConTeXt
 draw hlintext.lft(0, 20, 5, 20cm, @3e) ;
 draw vlogtext.bot(0, 10, 9, 10cm, @3e) ;
 
 draw
 function(1,log(x),x,1,10,1) xyscaled (10cm,2cm)
 withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;

the labeling of the vertical axis (y-coordinate) is not incorrect.

The maximum value is 10 and therefore it should probably be corrected as
follows.

- draw hlingrid(0, 20, 1, 20cm, 10cm) ;
+ draw hlingrid(0, 20, 2, 20cm, 10cm) ;

- draw hlintext.lft(0, 20, 5, 20cm, @3e) ;
+ draw hlintext.lft(0, 10, 5, 20cm, @3e) ;

Furthermore on the bottom labels seem to be incorrect in the figure, it
goes from 1 to 0, but this seems to be a bug in the used ConTeXt
version, since I do not have that problem when compiling(?) that example
locally.

Please find the corrected example attached.

[…]


Thanks and I hope I did not mess up,

Paul


 [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf


function.pdf
Description: Adobe PDF document
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20, 2, 20cm, 10cm) ;
draw vloggrid(0, 10, 1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 10, 5, 20cm, @3e) ;
draw vlogtext.bot(0, 10, 9, 10cm, @3e) ;

draw
function(1,log(x),x,1,10,1) xyscaled (10cm,2cm)
withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;
\stopMPcode
\stoptext


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

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

Re: [NTG-context] MetaPost: Confusion with `function()` and `xyscaled`

2011-10-23 Thread Paul Menzel
Am Freitag, den 21.10.2011, 18:08 +0200 schrieb Peter Rolf:
 Am 21.10.2011 17:26, schrieb Paul Menzel:

  Am Freitag, den 21.10.2011, 17:02 +0200 schrieb Peter Rolf:
  
  I agree, this is confusing on the first sight. But scaling is not meant
  as 'scaling to' a dimension. In fact is is just a simple multiplication.
  The reason why it seems to work this way with
  'fullsquare' and such predefined paths is, that they have a 'neutral'
  size/scale (bounding box size of filled path is (1pt,1pt)).
  
  So how can I find out what the dimension of the path of a function is?
  Not scaling it, it also looked pretty small, so I am guessing (1pt,1pt).
 
 I guess in this case its size is (10,log(10)) + pen size when drawn.

That was it kind of. Probably the most of my confusion resulting from
the use of the inverse function.

So all in all the width is 1 – the x-coordinates seem to be scaled to
the width of 1 – and the height is 10, as ten is the highest value.
Therefore the width has to be multiplied with 10cm to get it to 10cm and
since the height it 10 already multiplying it with 2cm gets it to 20cm.

  Multiplying such a path with (x,y) gives an object with size (1*x,1*y).
  In general: if the bounding box of an object has the size (a,b) and you
  scale it with (x,y), the resulting object has a size of (ax,by). That's
  all the magic.
  
  but if you use numbers with a unit than it should not be multiplied but
  expanded to that value, should not it? Otherwise I am unsure how
  multiplication works with a unit.

 1pt is the base unit in MP (used if no dimension is given; probably
 stored as 65536sp (scaled point) units).

In the manual I only found bp for »big point«, which equal PostScript
points equaling 1/72 of an inch.

 Now if you use pure numerics for scale, such as 'xscaled 2', this is
 interpreted as '2pt' (or 2*65536sp). If you use any dimension, it is
 also converted into scaled points. All the same for MP.
 
 If I'm right this should all be the same (untested)
 
 xscaled 2
 xscaled 2pt

This gives the same result.

 xscaled (2*65536sp)

I could not test the above because the numbers got too big and MetaPost
complained.

 1 = 1pt = 65536sp

[…]


Thanks,

Paul


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

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

Re: [NTG-context] xtables-mkiv: Metadata of manual not stored in PDF metadata (was: beta)

2011-10-29 Thread Paul Menzel
Dear Hans,


Am Freitag, den 28.10.2011, 16:24 +0200 schrieb Hans Hagen:

 I uploaded a new beta. The biggest new thing is that there is yet 
 another table mechanism: extreme tables.

thank you for this new table.

 There is a manual too:
 
 http://www.pragma-ade.com/general/manuals/xtables-mkiv.pdf

I just wanted to note that displaying the PDF properties (in Evince
using Alt + return) the title is just the file name and the author is
set to unknown.

Seeing that there is a colophon storing that metadata at the right place
should not be a problem, I guess.

[…]


Thanks,

Paul


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

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

[NTG-context] `\reference` does not print number

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

the example from the Wiki page for `\reference` [1] does not work.

\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext

The numbers are not printed into the resulting file. Please find the
source file and resulting PDF file attached.


Thanks,

Paul


[1] http://wiki.contextgarden.net/Reference/en/reference


test.pdf
Description: Adobe PDF document
\starttext
See page \ref[p][myref 1] and \ref[p][myref 2].
\page
\reference[myref 1]{} This is the first reference.
\page
\reference[myref 2]{} This is the second one.
\stoptext


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

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

[NTG-context] ⅛ not displayed

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


some fractions (input using Compose) are not displayed in the resulting
PDF files.

\starttext
⅛ ist $\frac18$.

½, ⅓, ¼, ⅕, ⅙, ⅛
\stoptext

I guess this is a font problem, but maybe fall backs could be added?


Thanks,

Paul


eigths.pdf
Description: Adobe PDF document
\starttext
⅛ ist $\frac18$.

½, ⅓, ¼, ⅕, ⅙, ⅛
\stoptext


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

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

Re: [NTG-context] ⅛ not displayed in Latin Modern

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


Am Samstag, den 29.10.2011, 18:27 +0200 schrieb Paul Menzel:

 some fractions (input using Compose) are not displayed in the resulting
 PDF files.
 
 \starttext
 ⅛ ist $\frac18$.
 
 ½, ⅓, ¼, ⅕, ⅙, ⅛
 \stoptext
 
 I guess this is a font problem,

using XITS [1][2] (Is that the also the fonts name?), everything is
shown correctly.

\setupbodyfont[xits]

\starttext
⅛ ist $\frac18$.

½, ⅓, ¼, ⅕, ⅙, ⅛
\stoptext

 but maybe fall backs could be added?

Since I am wondering why ½ should work but not for example ⅛.


Thanks,

Paul


eigths.pdf
Description: Adobe PDF document
\setupbodyfont[xits]

\starttext
⅛ ist $\frac18$.

½, ⅓, ¼, ⅕, ⅙, ⅛
\stoptext


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

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

Re: [NTG-context] ⅛ not displayed in Latin Modern

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


I forgot to append the links.

Am Samstag, den 29.10.2011, 23:12 +0200 schrieb Paul Menzel:

 Am Samstag, den 29.10.2011, 18:27 +0200 schrieb Paul Menzel:
 
  some fractions (input using Compose) are not displayed in the resulting
  PDF files.
  
  \starttext
  ⅛ ist $\frac18$.
  
  ½, ⅓, ¼, ⅕, ⅙, ⅛
  \stoptext
  
  I guess this is a font problem,
 
 using XITS [1][2] (Is that the also the fonts name?), everything is
 shown correctly.
 
 \setupbodyfont[xits]
 
 \starttext
 ⅛ ist $\frac18$.
 
 ½, ⅓, ¼, ⅕, ⅙, ⅛
 \stoptext
 
  but maybe fall backs could be added?
 
 Since I am wondering why ½ should work but not for example ⅛.


Thanks,

Paul


[1] https://github.com/khaledhosny/xits-math
[2] https://en.wikipedia.org/wiki/XITS_font_project


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

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

[NTG-context] No numbers with `\ref` and floats like `\placetable`

2011-10-29 Thread Paul Menzel
Dear ConTeXt folks,


I am sorry for another reference related question. Using

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

the following example does not work. Either no number is shown or »??«.

\starttext

Table \ref[][tab:reference] is a nice table. But referencing does not 
work \ref[tab:reference].

\placetable[][tab:reference]
{The table should be set up better.}
{
\startluacode
context.bTABLE()
  context.bTR()
context.bTD() context(n) context.eTD()
for j=1,10 do
  context.bTD() context($10^{ .. j .. }$) context.eTD()
end
  context.eTR()
  t = { 1, 2, 4, 8 }
  for index, i in ipairs(t) do
context.bTR()
context.bTD() context($n^{ .. -i .. }$) context.eTD()
for j=1,10 do
  context.bTD() context(\%.4f, 10^(-j/i)) context.eTD()
end
context.eTR()
  end
context.eTABLE()
\stopluacode
}
\stoptext

Please find the source file and the resulting PDF file attached.


Thanks,

Paul


ref.pdf
Description: Adobe PDF document
\starttext

Table \ref[][tab:reference] is a nice table. But referencing does not work \ref[tab:reference].

\placetable[][tab:reference]
{The table should be set up better.}
{
\startluacode
context.bTABLE()
  context.bTR()
context.bTD() context(n) context.eTD()
for j=1,10 do
  context.bTD() context($10^{ .. j .. }$) context.eTD()
end
  context.eTR()
  t = { 1, 2, 4, 8 }
  for index, i in ipairs(t) do
context.bTR()
context.bTD() context($n^{ .. -i .. }$) context.eTD()
for j=1,10 do
  context.bTD() context(\%.4f, 10^(-j/i)) context.eTD()
end
context.eTR()
  end
context.eTABLE()
\stopluacode
}
\stoptext


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

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

Re: [NTG-context] [solved] No numbers with `\ref` and floats like `\placetable`

2011-10-30 Thread Paul Menzel
Am Sonntag, den 30.10.2011, 08:30 +0100 schrieb Wolfgang Schuster:
 Am 29.10.2011 um 23:47 schrieb Paul Menzel:

  I am sorry for another reference related question. Using
  
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english
  
  the following example does not work. Either no number is shown or »??«.
  
 \starttext
  
 Table \ref[][tab:reference] is a nice table. But referencing does 
  not work \ref[tab:reference].
 
 Use “\in[tab:reference]” to refer to the table number of give “\ref” a 
 keyword (in your case “number”) for the first argument.

That indeed solved this issue. Thank you very much!


Thanks,

Paul


ref.pdf
Description: Adobe PDF document
\starttext

Table \ref[number][tab:reference] is a nice table. But referencing does not work \in[tab:reference].

\placetable[][tab:reference]
{The table should be set up better.}
{
\startluacode
context.bTABLE()
  context.bTR()
context.bTD() context(n) context.eTD()
for j=1,10 do
  context.bTD() context($10^{ .. j .. }$) context.eTD()
end
  context.eTR()
  t = { 1, 2, 4, 8 }
  for index, i in ipairs(t) do
context.bTR()
context.bTD() context($n^{ .. -i .. }$) context.eTD()
for j=1,10 do
  context.bTD() context(\%.4f, 10^(-j/i)) context.eTD()
end
context.eTR()
  end
context.eTABLE()
\stopluacode
}
\stoptext


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

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

[NTG-context] Wiki: Procedure to update the reference (was: `\reference` does not print number)

2011-10-30 Thread Paul Menzel
Am Samstag, den 29.10.2011, 18:10 +0200 schrieb Wolfgang Schuster:
 Am 29.10.2011 um 18:03 schrieb Paul Menzel:

  using
  
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english
  
  the example from the Wiki page for `\reference` [1] does not work.
  
 \starttext
 See page \ref[p][myref 1] and \ref[p][myref 2].
 \page
 \reference[myref 1]{} This is the first reference.
 \page
 \reference[myref 2]{} This is the second one.
 \stoptext
  
  The numbers are not printed into the resulting file. Please find the
  source file and resulting PDF file attached.
 
 Use “page” as keyword for the first argument or get the pagenumber with 
 “\at[myref 1]”.

Thank you as always for the quick solution to my problem!

Is the command reference in the Wiki auto generated or do I just expand
or improve the article for `\reference`?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Reference/en/reference


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

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

[NTG-context] http://modules.contextgarden.net/vim: invalid link for documentation

2011-11-02 Thread Paul Menzel
Dear ConTeXt folks,


the URL [1] in the Module details for the vim module [2] returns an
error.

URL not supported


Thanks,

Paul


[1] http://modules.contextgarden.net/doc/context/third/vim/vim.txt
[2] http://modules.contextgarden.net/vim


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

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

[NTG-context] [t-vim] [PATCH] vim-README.md: Correct some typos

2011-11-02 Thread Paul Menzel
Date: Wed, 2 Nov 2011 20:06:35 +0100
Subject: [PATCH] vim-README.md: Correct some typos
---
You can use `git am pathtosavedmboxfile` to apply the patch.

diff --git a/vim-README.md b/vim-README.md
index 557cf8f..5853aa2 100644
--- a/vim-README.md
+++ b/vim-README.md
@@ -4,9 +4,9 @@ The vim module
 This module highlights code snippets using vim as a syntax
 highlighter. Such a task may appear pointless at first glance. After all,
 ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML,
-and a few other langauges. And in MkIV, you can specify the grammer to parse a
+and a few other languages. And in MkIV, you can specify the grammar to parse a
 language, and get syntax highlighting for a new language. But writing such
-grammers is difficult. More importantly, why reinvent the wheel? Most
+grammars is difficult. More importantly, why reinvent the wheel? Most
 editors, and many other syntax highlighting programs, already syntax highlight
 many programming languages. Why not just leverage these external programs to
 generate syntax highlighting? This module does exactly that.
@@ -188,7 +188,7 @@ The default color scheme is `pscolor`.
 Line numbering
 ---
 
-To eanble line numbering for a particular snippet, use:
+To enable line numbering for a particular snippet, use:
 
 \startvimtyping[numbering=yes]
   ...
-- 
1.7.7.1


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

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

Re: [NTG-context] [t-vim] [PATCH] vim-README.md: Correct some typos

2011-11-02 Thread Paul Menzel
Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel:
 Date: Wed, 2 Nov 2011 20:06:35 +0100
 Subject: [PATCH] vim-README.md: Correct some typos

[…]

Please find the patch also attached.


Thanks,

Paul
From c59fea981e66c0f271a2dc85f589c043e9b96bc5 Mon Sep 17 00:00:00 2001
From: Paul Menzel paulepan...@users.sourceforge.net
Date: Wed, 2 Nov 2011 20:06:35 +0100
Subject: [PATCH] vim-README.md: Correct some typos


diff --git a/vim-README.md b/vim-README.md
index 557cf8f..5853aa2 100644
--- a/vim-README.md
+++ b/vim-README.md
@@ -4,9 +4,9 @@ The vim module
 This module highlights code snippets using vim as a syntax
 highlighter. Such a task may appear pointless at first glance. After all,
 ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML,
-and a few other langauges. And in MkIV, you can specify the grammer to parse a
+and a few other languages. And in MkIV, you can specify the grammar to parse a
 language, and get syntax highlighting for a new language. But writing such
-grammers is difficult. More importantly, why reinvent the wheel? Most
+grammars is difficult. More importantly, why reinvent the wheel? Most
 editors, and many other syntax highlighting programs, already syntax highlight
 many programming languages. Why not just leverage these external programs to
 generate syntax highlighting? This module does exactly that.
@@ -188,7 +188,7 @@ The default color scheme is `pscolor`.
 Line numbering
 ---
 
-To eanble line numbering for a particular snippet, use:
+To enable line numbering for a particular snippet, use:
 
 \startvimtyping[numbering=yes]
   ...
-- 
1.7.7.1



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

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

[NTG-context] [t-vim] [PATCH] vim.txt: Correct some typos

2011-11-02 Thread Paul Menzel
Am Mittwoch, den 02.11.2011, 15:39 -0400 schrieb Aditya Mahajan:
 On Wed, 2 Nov 2011, Paul Menzel wrote:
 
  Am Mittwoch, den 02.11.2011, 20:29 +0100 schrieb Paul Menzel:
  Date: Wed, 2 Nov 2011 20:06:35 +0100
  Subject: [PATCH] vim-README.md: Correct some typos
 
  […]
 
  Please find the patch also attached.
 
 Thanks. Applied.

Thanks! I have not understood the repository layout yet. For example
will the branches be merged to the master branch eventually or are those
separate modules?

Please find a patch for `vim.txt` attached.


Thanks,

Paul
From d8e6d56e25610773a1f27b5275e79c4726ee2634 Mon Sep 17 00:00:00 2001
From: Paul Menzel paulepan...@users.sourceforge.net
Date: Wed, 2 Nov 2011 22:43:54 +0100
Subject: [PATCH] vim.txt: Correct some typos

This patch includes commit fd67c931 [1].

[1] https://github.com/adityam/filter/commit/fd67c931b44af27f0d1f7b1b5e845a577079e103
---
 doc/context/third/vim/vim.txt |8 
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/context/third/vim/vim.txt b/doc/context/third/vim/vim.txt
index a7fc912..a5a677f 100644
--- a/doc/context/third/vim/vim.txt
+++ b/doc/context/third/vim/vim.txt
@@ -4,9 +4,9 @@ The vim module
 This module highlights code snippets using vim as a syntax
 highlighter. Such a task may appear pointless at first glance. After all,
 ConTeXt provides excellent syntax highlighting features for TeX, Metapost, XML,
-and a few other langauges. And in MkIV, you can specify the grammer to parse a
+and a few other languages. And in MkIV, you can specify the grammar to parse a
 language, and get syntax highlighting for a new language. But writing such
-grammers is difficult. More importantly, why reinvent the wheel? Most
+grammars is difficult. More importantly, why reinvent the wheel? Most
 editors, and many other syntax highlighting programs, already syntax highlight
 many programming languages. Why not just leverage these external programs to
 generate syntax highlighting? This module does exactly that.
@@ -200,7 +200,7 @@ The default color scheme is `pscolor`.
 Line numbering
 ---
 
-To eanble line numbering for a particular snippet, use:
+To enable line numbering for a particular snippet, use:
 
 \startvimtyping[numbering=yes]
   ...
@@ -314,7 +314,7 @@ indent the TeX code. For example:
 
 Although, the source code is easy to read, the output will not be. This is
 because, unlike regular TeX,  `\startvimtyping` ... `\stopvimtyping`
-environment does not ignore whote space. So, the output is the same as 
+environment does not ignore white space. So, the output is the same as 
 
 \startitemize
 \item A hello world example in C
-- 
1.7.7.1



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

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

[NTG-context] idea: Module to automatically extract and insert information from Wikipedia

2011-11-12 Thread Paul Menzel
Dear ConTeXt folks,


just now I thought of the following and I am wondering if there exists
already a solution.

Writing a text which includes people I want to add information about
these peoples as footnotes. The first sentence in a Wikipedia article is
most of the time good enough for that.

A macro `\infofromwikipedia{Donald Knuth}` would be nice which gets the
first sentence of the article and puts an item into the bibliography.

There is even an API to access articles [2]. Besides coding that up I
see the following problems.

1. The output [3] needs to be converted to ConTeXt.
2. An Internet connection would be necessary. But that is just a note
and not a problem.


Thanks,

Paul


[1] https://en.wikipedia.org/wiki/Donald_Knuth
[2] http://www.mediawiki.org/wiki/API
[3] http://www.mediawiki.org/wiki/API:Data_formats#Output


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

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

[NTG-context] url: Add macros to the ConTeXt core

2011-11-13 Thread Paul Menzel
Dear ConTeXt folks,


looking into typesetting URLs I find typesetting URLs quite cumbersome.

Maybe I have not used that feature that often so I am not seeing the
advantage to first define a URL somewhere and give it a name

\useURL[aurl]   [http://xkcd.com/149/] [] [I prefer hot
dogs.]

and then later use it.

\url[aurl]

The proposed macros(?) in the section »Tipps and Tricks« [2]

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}
\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}

seem quite useful. Could they be added to the ConTeXt core(?)?


Thanks,

Paul


[1] http://wiki.contextgarden.net/url
[2] http://wiki.contextgarden.net/url#Tipps_and_Tricks


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

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

[NTG-context] Project structure: Do macros go into the environment?

2011-11-13 Thread Paul Menzel
Dear ConTeXt folks,


I am using the project layout [1] and have a file `env.tex` which gets
loaded.

\startenvironment env

\mainlanguage[de]

\setupinteraction
[title=Titel,
author=John Doe,
keyword={keyword}]

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}
\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}

[…]
\stopenvironment

My question is if all macro definitions (and setups like for
interaction) should go in there?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Project_structure


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

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

Re: [NTG-context] [solved] Project structure: Do macros go into the environment?

2011-11-13 Thread Paul Menzel
Am Sonntag, den 13.11.2011, 20:09 +0100 schrieb Wolfgang Schuster:
 Am 13.11.2011 um 20:05 schrieb Paul Menzel:

  I am using the project layout [1] and have a file `env.tex` which gets
  loaded.
  
 \startenvironment env
  
 \mainlanguage[de]
  
 \setupinteraction
  [title=Titel,
  author=John Doe,
  keyword={keyword}]
  
 \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
 \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}
 \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
 \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
 \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}
  
 […]
 \stopenvironment
  
  My question is if all macro definitions (and setups like for
  interaction) should go in there?
 
 Yes.

As always, thank you for the fast response!


Thanks,

Paul


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

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

[NTG-context] \in: incorrect space in example in reference

2011-11-16 Thread Paul Menzel
Dear ConTeXt folks,


in the example for `\in` in the reference [1] there is a space after the
»(«.

\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula

This is explained in \in{Equation (}{)}[eq:pythagoras].

Normally this space is useful since the suffix is something like Table
or Figure.

Can `\in` be used with brackets or does another command have to be
defined/used for that?


Thanks,

Paul


[1] http://wiki.contextgarden.net/Reference/en/in


in.pdf
Description: Adobe PDF document
\starttext
\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula

This is explained in \in{Equation (}{)}[eq:pythagoras].
\stoptext


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

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

[NTG-context] Edid of reference in Wiki (was: \in: incorrect space in example in reference)

2011-11-16 Thread Paul Menzel
Dear ConTeXt folks,


Am Mittwoch, den 16.11.2011, 11:20 +0100 schrieb Wolfgang Schuster:
 Am 16.11.2011 um 10:44 schrieb Paul Menzel:

  in the example for `\in` in the reference [1] there is a space after the
  »(«.
  
 \placeformula[eq:pythagoras]
 \startformula
   a^2+b^2=c^2
 \stopformula
  
 This is explained in \in{Equation (}{)}[eq:pythagoras].
  
  Normally this space is useful since the suffix is something like Table
  or Figure.
  
  Can `\in` be used with brackets or does another command have to be
  defined/used for that?
 
 Use \definereferenceformat to create your own command.

to correct this in the reference do I just edit the Wiki article or is
the reference automatically created?


Thanks,

Paul


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

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

Re: [NTG-context] Edid of reference in Wiki (was: \in: incorrect space in example in reference)

2011-11-17 Thread Paul Menzel
Am Donnerstag, den 17.11.2011, 16:32 +0100 schrieb Christian:
 Same here. ConTeXt  ver: 2011.11.09 20:58 MKIV.
 Referencing formulas with a number is not possible, due to the number not 
 being typeset. Must be some sort of bug.
 Log says:
 references   unknown reference [][eq:gamma]

There is another thread were Wolfgang wrote he is aware of this but it
takes time fixing. He even offered a work around [1].

Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`


Thanks,

Paul


PS: Please you should all follow the netiquette [2]. Mikael, especially
regarding subject lines.


[1] http://www.ntg.nl/pipermail/ntg-context/2011/062930.html
[2] http://en.opensuse.org/openSUSE:Mailing_list_netiquette


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

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

Re: [NTG-context] equation refs broken?

2011-11-20 Thread Paul Menzel
Dear Hans,


Am Sonntag, den 20.11.2011, 12:29 +0100 schrieb Hans van der Meer:
 Can someone confirm this? It seems that the equation reference mechanism is 
 broken some time in the recent past.
 I have a small example done in
 (1) ConTeXt  ver: 2011.07.13 20:14 MKIV
 (2) ConTeXt  ver: 2011.11.17 23:31 MKIV
 These are respectively the first and last pdf's below.
 
 
 If true, it is very serious for me, because the I cannot prepare the upcoming 
 texts for my students!

this is a known problem. Please take a look at [1]

Re: [NTG-context] No numbers with `\ref` and floats like `\placetable`

where Wolfgang proposed a quick fix if you are not using sub formulas
and

Re: [NTG-context] Edid of reference in Wiki

where Hans responded he wanted to take a look this weekend.

 Furthermore: \pagereference now introduces spurious white.

Please open a now thread for this.

 For the bad vertical spacing on the left I have submitted a tentative bugfix 
 to Hans Hagen.

Thank you for cooking up a patch!


Thanks,

Paul


[1] http://www.ntg.nl/pipermail/ntg-context/2011/062930.html


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

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

[NTG-context] \right)² not recognized as \right)^2

2011-11-20 Thread Paul Menzel
Dear ConTeXt folks,


is it expected that \right)² is not recognized as \right)^2?

\starttext

Using ^2:

\placeformula
\startformula
\left( a + b \right)^2 = a² + 2ab + b²
\stopformula

\placeformula
\startformula
\left( a + \frac72 \right)^2
\stopformula

Using ². The first example does not display the problem that well 
because the parenthesis are too small:
\placeformula
\startformula
\left( a + b \right)² = a² + 2ab + b²
\stopformula

\placeformula
\startformula
\left( n + \frac72 \right)²
\stopformula
\stoptext

Please find the example also attached.


Thanks,

Paul


square.pdf
Description: Adobe PDF document
\starttext

Using ^2:

\placeformula
\startformula
\left( a + b \right)^2 = a² + 2ab + b²
\stopformula

\placeformula
\startformula
\left( a + \frac72 \right)^2
\stopformula

Using ². The first example does not display the problem that well because the parenthesis are too small:
\placeformula
\startformula
\left( a + b \right)² = a² + 2ab + b²
\stopformula

\placeformula
\startformula
\left( n + \frac72 \right)²
\stopformula
\stoptext


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

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

[NTG-context] [Regression] math: alignment parameters confused

2011-11-20 Thread Paul Menzel
Dear ConTeXt folks,


there must be a regression between

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: english/english

and

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english.

Using the minimal example

\starttext
\placeformula
\startformula
\startmathalignment[n=4, align={left, right, middle, left}]
\NC A \NC B \NC C \NC D \NR
\NC AA \NC BB \NC CC \NC DD \NR
\stopmathalignment
\stopformula
\stoptext

the last row is aligned like middle instead of left.


Thanks,

Paul


2011.05.18--align.pdf
Description: Adobe PDF document


2011.10.14--align.pdf
Description: Adobe PDF document
\starttext
\placeformula
\startformula
\startmathalignment[n=4, align={left, right, middle, left}]
\NC A \NC B \NC C \NC D \NR
\NC AA \NC BB \NC CC \NC DD \NR
\stopmathalignment
\stopformula
\stoptext


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

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

Re: [NTG-context] \right)² not recognized as \right)^2

2011-11-20 Thread Paul Menzel
Am Sonntag, den 20.11.2011, 19:58 +0100 schrieb Wolfgang Schuster:
 Am 20.11.2011 um 19:52 schrieb Paul Menzel:

  is it expected that \right)² is not recognized as \right)^2?
 
 Yes it is, to enable this feature you need the “mathcrap” module.

Thank you for the quick answer, but ² is still not put at the correct
height when used like `\right)²`.


Thanks,

Paul


square.pdf
Description: Adobe PDF document
\usemodule[mathcrap]
\starttext

Using ^2:

\placeformula
\startformula
\left( a + b \right)^2 = a² + 2ab + b²
\stopformula

\placeformula
\startformula
\left( a + \frac72 \right)^2
\stopformula

Using ². The first example does not display the problem that well because the parenthesis are too small:
\placeformula
\startformula
\left( a + b \right)² = a² + 2ab + b²
\stopformula

\placeformula
\startformula
\left( n + \frac72 \right)²
\stopformula
\stoptext


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

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

[NTG-context] Use ConTeXt standalone (was: current version?)

2011-11-23 Thread Paul Menzel
Dear Jon,


Am Dienstag, den 22.11.2011, 15:37 -0800 schrieb Jon Crump:

 Can someone help? By some incantation that I cannot now seem to
 reproduce, I was able to obtain and install:
 mtx-context | current version: 2011.11.14 16:17
 
 In an attempt to update this version, I ran first-setup.sh found at
 http://minimals.contextgarden.net/setup/first-setup.sh and what got
 installed was:
 mtx-context | current version: 2011.05.18 18:04

This looks like the ConTeXt version in Debian.

 Can anyone tell me how to get back to 2011.11.14 or to the latest version?

At the end of `first-setup.sh` a command is shown you need to executed
to update your environment variables so that the manually installed
version is found.

. /your/installed/context/tex/setuptex


Thanks,

Paul


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

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

[NTG-context] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


having upgraded

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english.

to

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english

With

\starttext
\placeformula
\startformula
A^\prime
\stopformula
\stoptext

I get the following error.

fontsfallback modern rm 12pt is loaded
! Missing { inserted.

system   tex  error on line 4 in file 
exponent-regression.tex: Missing { inserted ...

1 \starttext
2   \placeformula
3   \startformula
4 A^\prime
5   \stopformula
6 \stoptext
7 

to be read again 
   ^
\prime ...char \textfont \zerocount FE325\relax ^
  \bgroup \expandafter 
\dodo...
l.4 A^\prime
  
?

As a workaround `A^{\prime}` can be used.


Thanks,

Paul
\starttext
	\placeformula
	\startformula
		A^\prime
	\stopformula
\stoptext


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

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

[NTG-context] BibTeX files for ConTeXt books?

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


there are some ConTeXt related books for sale [1]. Are there BibTeX
files for those available?


Thank,

Paul


[1] http://www.h2o-books.com/catalog/5


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

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

[NTG-context] url: subscripts not displayed

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: english/english

in the following “minimal” example the subscript in H₂O Books is not
displayed in the *URL*.

\setupinteraction[state=start]

% Define \Site[id][url]{description} to put in a clickable link
% with footnoted URL

\def\Site[#1][#2]#3{\useURL[#1][#2][][#3]\from[#1]\footnote[#1]{\tt\hyphenatedurl{#2}}}

\setupbibtex[database=bib]
\starttext
Everybody should read the \MetaFun\ manual \cite{hh2010}. Buy it at 
\Site[h2obooks][http://www.h2o-books.com/]{H₂O Books}.

I like \Site[context][http://www.contextgarden.net]{\ConTeXt}. This 
sentence has a footnote.\footnote{This is a footnote.}

\completepublications[criterium=all]
\stoptext


Thanks,

Paul
@BOOK{hh2010,
  title = {MetaFun manual},
  year = 2010,
  month = 10,
  isbn = {978-94-90688-02-8},
  author = {Hans Hagen},
  publisher = {H₂O Books},
  pages = 375,
}


coloring-references.pdf
Description: Adobe PDF document
\setupinteraction[state=start]

% Define \Site[id][url]{description} to put in a clickable link
% with footnoted URL
\def\Site[#1][#2]#3{\useURL[#1][#2][][#3]\from[#1]\footnote[#1]{\tt\hyphenatedurl{#2}}}

\setupbibtex[database=bib]
\starttext
Everybody should read the \MetaFun\ manual \cite{hh2010}. Buy it at \Site[h2obooks][http://www.h2o-books.com/]{H₂O Books}.

I like \Site[context][http://www.contextgarden.net]{\ConTeXt}. This sentence has a footnote.\footnote{This is a footnote.}

\completepublications[criterium=all]
\stoptext


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

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

[NTG-context] Fonts with subscripts (was: url: subscripts not displayed)

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 13:31 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 13:07 schrieb Paul Menzel:

  using
  
 ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
  english/english
  
  in the following “minimal” example the subscript in H₂O Books is not
  displayed in the *URL*.
 
 It’s not in the font:
 
 \starttext
 H₂O Books
 \stoptext

Thank you again. And I am sorry that I always forget about that.

It is also not in XITS.

Neither

\setupbodyfont[xits]

or

\setupbodyfont[euler]

or

\usetypescript[palatino] \setupbodyfont[palatino,10pt,rm]

worked. Is there a font having subscripts included?


Thanks,

Paul


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

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

Re: [NTG-context] [solved] Fonts with subscripts

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 13:43 schrieb Paul Menzel:

[…]

 Is there a font having subscripts included?
 
 \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
 
 \starttext
 \ShowSubscript[dejavu]
 \ShowSubscript[antykwa-torunska]
 \ShowSubscript[antykwa-poltawskiego]
 \ShowSubscript[iwona]
 \ShowSubscript[cambria]
 \ShowSubscript[libertine]
 \stoptext

Nice! So in this set only cambria and libertine cannot display
subscripts. (Please find the output attached.)

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english


Thanks,

Paul
\def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}

\starttext
\ShowSubscript[dejavu]
\ShowSubscript[antykwa-torunska]
\ShowSubscript[antykwa-poltawskiego]
\ShowSubscript[iwona]
\ShowSubscript[cambria]
\ShowSubscript[libertine]
\stoptext


showsubscript.pdf
Description: Adobe PDF document


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

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

Re: [NTG-context] [solved] Fonts with subscripts

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 14:56 +0100 schrieb Wolfgang Schuster:
 Am 24.11.2011 um 14:48 schrieb Paul Menzel:
 
  Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
  Am 24.11.2011 um 13:43 schrieb Paul Menzel:
  
  […]
  
  Is there a font having subscripts included?
  
  \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
  
  \starttext
  \ShowSubscript[dejavu]
  \ShowSubscript[antykwa-torunska]
  \ShowSubscript[antykwa-poltawskiego]
  \ShowSubscript[iwona]
  \ShowSubscript[cambria]
  \ShowSubscript[libertine]
  \stoptext
  
  Nice! So in this set only cambria and libertine cannot display
  subscripts. (Please find the output attached.)
 
 No, I get subscripts for all listed fonts but it’s possible we use different 
 versions of the them.

Even more trivial. I do not have Cambria installed and Libertine is also
not found although I have the Debian package (fonts-linuxlibertine,
5.1.3-1) installed. I guess I need to update the cache somehow.


Thanks,

Paul


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

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

Re: [NTG-context] [solved] Regression: A^\prime causes `Missing { inserted ...`

2011-11-24 Thread Paul Menzel
Am Donnerstag, den 24.11.2011, 15:59 +0100 schrieb Hans Hagen:
 On 24-11-2011 11:46, Paul Menzel wrote:

  having upgraded
 
   ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
  english/english.
 
  to
 
   ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
  english/english
 
  With
 
   \starttext
  \placeformula
  \startformula
  A^\prime
  \stopformula
   \stoptext
 
  I get the following error.
 
   fonts  fallback modern rm 12pt is loaded
   ! Missing { inserted.
 
   system  tex  error on line 4 in file exponent-regression..tex: 
  Missing { inserted ...
 
   1 \starttext
   2  \placeformula
   3  \startformula
   4A^\prime
   5  \stopformula
   6 \stoptext
   7
 
   to be read again
  ^
   \prime ...char \textfont \zerocount FE325\relax ^
 \bgroup 
  \expandafter \dodo...
   l.4A^\prime
 
   ?
 
  As a workaround `A^{\prime}` can be used.
 
 Forget about superscripting prime .. that's a traditional tex thing as 
 in cm/lm fonts the prime is so big that it has to be (super)scripted to 
 look okay.
 
 The prime in unicode is a normal one so that's what we now support, also 
 for the lm fonts. Just compare:
 
 \startformula
  A\prime
  \hbox spread 1em{\hss or\hss}
  A^{\prime}
  \hbox spread 1em{\hss or\hss}
  A'
 \stopformula
 
 Keep in mind that most users expect ' to be a prime.

Interesting. Thank you for the clarification. I will use A' from now on
I guess.


Thanks,

Paul


prime.pdf
Description: Adobe PDF document
\starttext
\startformula
 A\prime
 \hbox spread 1em{\hss or\hss}
 A^{\prime}
 \hbox spread 1em{\hss or\hss}
 A'
\stopformula
\stoptext


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

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

Re: [NTG-context] [Regression] math: alignment parameters confused

2011-11-24 Thread Paul Menzel
Dear ConTeXt folks,


Am Sonntag, den 20.11.2011, 20:09 +0100 schrieb Paul Menzel:

 there must be a regression between
 
 ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.24  int: english/english
 
 and
 
 ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: english/english.
 
 Using the minimal example
 
 \starttext
 \placeformula
 \startformula
 \startmathalignment[n=4, align={left, right, middle, left}]
 \NC A \NC B \NC C \NC D \NR
 \NC AA \NC BB \NC CC \NC DD \NR
 \stopmathalignment
 \stopformula
 \stoptext
 
 the last row is aligned like middle instead of left.

I can also reproduce this using the following version.

ConTeXt  ver: 2011.11.23 18:58 MKIV  fmt: 2011.11.24  int: 
english/english


Thanks,

Paul
\starttext
\placeformula
\startformula
\startmathalignment[n=4, align={left, right, middle, left}]
\NC A \NC B \NC C \NC D \NR
\NC AA \NC BB \NC CC \NC DD \NR
\stopmathalignment
\stopformula
\stoptext


2011.05.18--align.pdf
Description: Adobe PDF document


2011.11.24--align.pdf
Description: Adobe PDF document


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

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

Re: [NTG-context] context terminal now in gnuplot's CVS

2011-11-29 Thread Paul Menzel
Dear Mojca,


Am Sonntag, den 06.11.2011, 15:19 +0100 schrieb Mojca Miklavec:

 After 5 years (actually almost 6 - the first t-gnuplot.tex code has
 been sent to me by Peter Münster on 2nd January 2006) gnuplot
 developers finally included context terminal into their CVS repository
 today.
 
 (temporary link, but probably slightly more clear than linking to CVS
 repository)
 
 https://github.com/gnuplot/gnuplot-new/commit/62737451bb138f0e679b5a57e0042b42e06f0a5c

these were great news indeed! Thank you for your effort.

 The release of gnuplot 4.4.4 was initially planned for around October,
 which means that it should probably be out sometime soon.

Unfortunately it looks like the ConTeXt terminal was not included in
version 4.4.4 released on November 14th [1] and is just planned for
version 4.5 [2]. Can you confirm this?

 Documentation:
  
 https://github.com/mojca/context-gnuplot/tree/master/texmf/doc/context/third/gnuplot

[…]


Thanks,

Paul


[1] http://gnuplot.info/announce.4.4.4
[2] http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/NEWS?view=markup


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

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

[NTG-context] OT: Replying to messages from archive (was: Lua script not registered)

2011-12-03 Thread Paul Menzel
Dear John,


Am Freitag, den 02.12.2011, 22:56 -0500 schrieb John Kitzmiller:
 Replying to the list in this manner--having to retype the subject--is
 unusual to me, and I hope it does not create problems for the list. Please
 help me on how to reply within the mail archive to make more efficient.
 Many thanks to those who have replied on the topic!

are you subscribed to the list? If yes, have you set up to get the
digest mode?

In either way, when participating in a discussion it is a good thing to
subscribe [1] and then configure the list to send you all messages. Then
you can reply to the list like you are used to and the threading is
kept.

To get the reference you can also download the archive as a mbox file
[3] and get the reference there or configure the correct message headers
(In-Reply-To, References).


Thanks,

Paul


[1] http://www.ntg.nl/mailman/listinfo/ntg-context
[2] http://en.opensuse.org/openSUSE:Mailing_list_netiquette
[3] http://www.ntg.nl/pipermail/ntg-context/
(last column)


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

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

[NTG-context] Title page for diploma thesis

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks,


I am trying to format the title page for a diploma thesis. Looking at
the Wiki most of the title or cover pages just have the title centered
and maybe a subtitle right below [1].

\starttext
\definemakeup[titlepage][align=middle]

\starttitlepagemakeup
{\definedfont[Serif at 20pt]University}
\blank[big]
{\definedfont[Serif at 20pt]\sc Institute}
\vfill
{\definedfont[Serif at 20pt]Diploma thesis}
\blank[big]
{\definedfont[Serif at 30pt] \setstrut \strut Interesting topic}
\vfill
by John Doe
\stoptitlepagemakeup
\stoptext

1. Is using `\blank` the recommended way to format the page? Or is using
boxes and placing them manually “better”?

2. Looking at the output it is not centered exactly and a little bit to
the left. Why is this the default? Does anyone know? Looking at the
manual [2] in chapter page design (p. 29, screen version) this seems to
be the backspace value. Is there an easy way to center it according to
the whole paper width? Additionally I would have guessed it to be more
on the right when glueing or trussing up(?) (German binden) the pages.


Thanks and I am sorry for the sleight off-topic second question,

Paul


[1] http://wiki.contextgarden.net/Simple_Cover_Page
[2] http://www.pragma-ade.com/general/manuals/cont-eni.pdf


test.pdf
Description: Adobe PDF document
\starttext
\definemakeup[titlepage][align=middle]

\starttitlepagemakeup
{\definedfont[Serif at 20pt]University}
\blank[big]
{\definedfont[Serif at 20pt]\sc Institute}
\vfill
{\definedfont[Serif at 20pt]Diploma thesis}
\blank[big]
{\definedfont[Serif at 30pt] \setstrut \strut Interesting topic}
\vfill
by John Doe
\stoptitlepagemakeup
\stoptext


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

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

[NTG-context] Define `\luatexversion` similar to `\contextversion`

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks,


thanks to Robin’s example documents I found out about the following last
two commands

\Context\ \contextmark\ \contextversion

allowing to put the used components and versions into the document.

Then I found `\luaversion` to display the version of Lua. But I could
not find `\luatexversion`. Is there something similar? Can this command
be defined?


Thanks,

Paul


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

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

Re: [NTG-context] [solved – `\texengineversion`] Define `\luatexversion` similar to `\contextversion`

2011-12-03 Thread Paul Menzel
Am Samstag, den 03.12.2011, 19:28 +0100 schrieb Wolfgang Schuster:
 Am 03.12.2011 um 19:23 schrieb Paul Menzel:

  thanks to Robin’s example documents I found out about the following last
  two commands
  
 \Context\ \contextmark\ \contextversion
  
  allowing to put the used components and versions into the document.
  
  Then I found `\luaversion` to display the version of Lua. But I could
  not find `\luatexversion`. Is there something similar? Can this command
  be defined?
 
 
 \starttext
 \starttabulate
 \NC Engine  \EQ \texenginename\NC\NR
 \NC Version \EQ \texengineversion \NC\NR
 \stoptabulate
 \stoptext

As always thank you very much for the fast response with the solution.


Thanks,

Paul


test.pdf
Description: Adobe PDF document
\starttext
\starttabulate
\NC Engine  \EQ \texenginename\NC\NR
\NC Version \EQ \texengineversion \NC\NR
\stoptabulate
\stoptext


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

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

[NTG-context] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks,


using the following minimal example

\starttext
Using \type{\choose} in text $n \choose \frac{n}2$.

\startformula
n \choose \frac{n}2
\stopformula

\CONTEXT\ \contextmark\ \contextversion\ with \texenginename\
\texengineversion
\stoptext

the parentheses of the binomial in the text or too short. I guess this
is because the parentheses are not scaled when inlined and that this is
also a TeX limitation and therefore expected?

ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1


Thanks,

Paul



choose.pdf
Description: Adobe PDF document
\starttext
Using \type{\choose} in text $n \choose \frac{n}2$.

\startformula
n \choose \frac{n}2
\stopformula

\CONTEXT\ \contextmark\ \contextversion\ with \texenginename\ \texengineversion
\stoptext


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

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

[NTG-context] Parse error when using `\define`

2011-12-03 Thread Paul Menzel
Dear ConTeXt folks,


could some please try to parse the following minimal example and report
back if a parse problem occurs. Please find the protocols attached.

\define[1]\abs{\lvert #1 \rvert}

\define\Ew{{\mathbf E}}
\define[1]\ew{\Ew \left[ #1 \right]}

\starttext
a
\starttext

I am using ConTEXt MKIV 2011.11.25 21:29 with LuaTeX 0.70.1 and I have
to insert `/end` manually.

$ context 20111203--parse-error.tex 

mtx-context | run 1: luatex 
--fmt=/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en
 
--lua=/opt/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui
 --backend=pdf ./20111203--parse-error.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) 
 \write18 enabled.
(20111203--parse-error.tex

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: 
english/english

system   cont-new.mkiv loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   20111203--parse-error.top loaded
(20111203--parse-error.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found

{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
)

*\end
system   don't use \end to finish a document
backend  xmp  using file 
'/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
[…]

Afterward changing anything in the file like removing the defines the
error will still appear.


Thanks,

Paul
(20111203--parse-error.tex

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: english/english

system   cont-new.mkiv loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   20111203--parse-error.top loaded

system   options  start used options

used options % runtime options files (command line driven)
used options \unprotect
used options % feedback and basic job control
used options % handy for special styles
used options \startluacode
used options document = document or { }
used options document.arguments={
used options }
used options document.files={
used options  20111203--parse-error.tex,
used options }
used options \stopluacode
used options % process info
used options \setupsystem[inputfile=20111203--parse-error.tex]
used options \setupsystem[\c!n=2,\c!m=3]
used options % modes
used options % options (not that important)
used options \startsetups *runtime:options
used options \stopsetups
used options % styles and modules
used options \startsetups *runtime:modules
used options \stopsetups
used options % done
used options \protect \endinput

system   options  stop used options

(20111203--parse-error.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/opt/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/opt/context/tex/texmf-context/tex/context/base/type-otf.mkiv)
filesreadfile  asked name: 'loc', not found
{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
)
*\end
system   don't use \end to finish a document
backend  xmp  using file '/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
/opt/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf

system   files  start used files

used files  1: filename=mult-mps.lua | filetype=tex | format=tex | foundname=/opt/context/tex/texmf-context/tex/context/base/mult-mps.lua | usedmethod=database
used files  2: filename=20111203--parse-error.tex | foundname=20111203--parse-error.tex | usedmethod=direct
used files  3: 

Re: [NTG-context] [solved] Parse error when using `\define`

2011-12-04 Thread Paul Menzel
Am Samstag, den 03.12.2011, 20:09 +0100 schrieb Wolfgang Schuster:
 Am 03.12.2011 um 20:06 schrieb Paul Menzel:

  could some please try to parse the following minimal example and report
  back if a parse problem occurs. Please find the protocols attached.
  
 \define[1]\abs{\lvert #1 \rvert}
  
 \define\Ew{{\mathbf E}}
 \define[1]\ew{\Ew \left[ #1 \right]}
  
 \starttext
 a
 \starttext
 
 End your document with \stoptext.

That is really embarrassing. I now also figured out my other error I
originally looked into.


Thank you and sorry for wasting everyone’s time,

Paul


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

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

Re: [NTG-context] [solved] Fractions and binomial inlined in text ($n \choose \frac{n}2$): Parentheses not scaled

2011-12-04 Thread Paul Menzel
Am Sonntag, den 04.12.2011, 09:52 +0100 schrieb Wolfgang Schuster:
 Am 03.12.2011 um 19:56 schrieb Paul Menzel:

  using the following minimal example
  
 \starttext
 Using \type{\choose} in text $n \choose \frac{n}2$.
  
 \startformula
 n \choose \frac{n}2
 \stopformula
  
 \CONTEXT\ \contextmark\ \contextversion\ with \texenginename\
 \texengineversion
 \stoptext
  
  the parentheses of the binomial in the text or too short. I guess this
  is because the parentheses are not scaled when inlined and that this is
  also a TeX limitation and therefore expected?
 
 
 Instead if \choose you can use \binom which is the recommended way in context.
 
 The \dbinom command sets the content in display style while \tbinom use 
 textstyle.
 
 \starttext
 
 Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$.
 
 Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$.
 
 Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$.
 
 \startformula
 \binom{n}{\frac{n}{2}}
 \stopformula
 
 \stoptext

As always that did the trick. Thank you a lot Wolfgang and Dalyoung!


Thanks,

Paul


binom.pdf
Description: Adobe PDF document
\starttext

Using \tex{binom} in text $\binom{n}{\frac{n}{2}}$.

Using \tex{dbinom} in text $\dbinom{n}{\frac{n}{2}}$.

Using \tex{tbinom} in text $\tbinom{n}{\frac{n}{2}}$.

\startformula
\binom{n}{\frac{n}{2}}
\stopformula

\stoptext


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

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

Re: [NTG-context] Math align in mkiv

2011-12-07 Thread Paul Menzel
Dear Otared,


Am Mittwoch, den 07.12.2011, 05:11 +0100 schrieb Otared Kavian:

 Thank you having tested the file I sent.

did the example work for you with MKIV in the past?

 As I suspected, your testing confirms that the change or the bug has been 
 introduced in a recent version of ConTeXt mkiv, some time between October and 
 late November.
 The version I am running is
   ConTeXt  ver: 2011.11.29 23:11 MKIV  fmt: 2011.12.2  int: 
 english/english

I can also reproduce that behavior using

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: 
english/english

 I think at some time in November Hans did some changes in math alignment 
 after someone reported a bug, and Aditya said he wouldn't have time to (or 
 could not) fix it.

There were two issues and the corresponding messages in the archive
[1][2]. So if these are related it should work for you using the version
from November 24th.


Thanks,

Paul


[1] http://www.ntg.nl/pipermail/ntg-context/2011/063428.html
[2] http://www.ntg.nl/pipermail/ntg-context/2011/063451.html


align-mkiv.pdf
Description: Adobe PDF document
%%% align-mkiv.tex
% defining an alignment structure
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{\;},
right={\right.},
style=\displaystyle]

\starttext

\startformula
\startalignedcases
\NC -\partial_t \Delta \psi + \Delta^2 \psi - \Delta \psi   \NC = 0 \NC \quad \mbox{in }\, (0,\infty)\times \Omega  \NR
\NC \psi (0,x) \NC= \psi_0(x) \NC \quad \mbox{in }\, \Omega \NR
\NC \psi (t,\sigma ) \NC= 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega \NR
\NC {\partial \psi  \over  \partial {\bf n}}(t,\sigma ) \NC = 0 \NC \quad \mbox{on }\, (0,\infty)\times \partial\Omega. 
\stopalignedcases
\stopformula

\CONTEXT\ \contextmark\ \contextversion
\stoptext


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

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

[NTG-context] `\{start, stop}MPpage`: MetaPost figure does not fit canvas(?) in resulting PDF file

2011-12-07 Thread Paul Menzel
Dear ConTeXt folks,


using the following example

\starttext
\startMPpage
draw (0,0)--(10,10)--(15,5)--(20,10);
draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) withcolor 
blue;
\stopMPpage
\stoptext

it looks like the bottom is not included in the resulting PDF file and
at the top there is too much room. (So it looks like the figure is moved
too far to the bottom.)

Using the examples from the Wiki [1] with circles works though.

I am using ConTeXt Standalone.

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: english/english


Thanks,

Paul


[1] http://wiki.contextgarden.net/Mpgraphic


test.pdf
Description: Adobe PDF document
\starttext
\startMPpage
draw (0,0)--(10,10)--(15,5)--(20,10);
draw (0,0)--(0,10)--(10,10)--(10,5)--(15,5)--(15,10)--(20,10) withcolor blue;
\stopMPpage

\startMPpage
 draw fullcircle scaled 2cm;
 dotlabel.bot(textext((0,0)),origin);
\stopMPpage

\startMPpage
 draw fullcircle scaled 2cm;
 drawarrow (0,0)--(1cm,0);
 label.bot(textext($r$),(5mm,0));
\stopMPpage
\stoptext


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

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

[NTG-context] math: root sign an square brackets set too closely

2011-12-07 Thread Paul Menzel
Dear ConTeXt folks,


using the root sign √ `\sqrt` and the square brackets [] the distance
does not seem to be optimal.

\starttext

\type{$\left[ \sqrt{x} \right]$}: $\left[ \sqrt{x} \right]$

Without \type{\left} and \type{\right}: $[\sqrt{x}]$

\type{$\left( \sqrt{x} \right)$}: $\left( \sqrt{x} \right)$

With \type{\,}: \type{$\left[ \sqrt{x}\, \right]$}: $\left[ \sqrt{x}\, 
\right]$

\placeformula
\startformula
\left[ \sqrt{x} \right]
\stopformula

\CONTEXT\ \contextmark\ \contextversion
\stoptext

I am using the following version.

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: 
english/english

Is that a TeX limitation or should that be type set “correctly” automatically?


Thanks,

Paul


root-and-brackets.pdf
Description: Adobe PDF document
\starttext

\type{$\left[ \sqrt{x} \right]$}: $\left[ \sqrt{x} \right]$

Without \type{\left} and \type{\right}: $[\sqrt{x}]$

\type{$\left( \sqrt{x} \right)$}: $\left( \sqrt{x} \right)$

With \type{\,}: \type{$\left[ \sqrt{x}\, \right]$}: $\left[ \sqrt{x}\, \right]$

\placeformula
\startformula
\left[ \sqrt{x} \right]
\stopformula

\CONTEXT\ \contextmark\ \contextversion
\stoptext


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

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

[NTG-context] naming of labels: Is »()« allowed?

2011-12-07 Thread Paul Menzel
Dear ConTeXt folks,


in ConTeXt I like how I can choose arbitrary names for label and
reference them. I think some time ago it was possible to also use »()«.
This does not work anymore with

ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: 
english/english

and the following message is in the log file.

references   unknown reference [][(N)]


\definereferenceformat[eqref][left=(,right=)]

\starttext
\placeformula[(N)]
\startformula
\Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = 
p_n^{(1)}
\stopformula

Is it working? \eqref[(N)]

\CONTEXT\ \contextmark\ \contextversion
\stoptext


Thanks,

Paul


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

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

Re: [NTG-context] naming of labels: Is »()« allowed?

2011-12-07 Thread Paul Menzel
Dear ConTeXt folks,


Am Donnerstag, den 08.12.2011, 02:18 +0100 schrieb Paul Menzel:

 in ConTeXt I like how I can choose arbitrary names for label and
 reference them. I think some time ago it was possible to also use »()«.
 This does not work anymore with
 
 ConTeXt  ver: 2011.11.25 21:29 MKIV  fmt: 2011.11.25  int: 
 english/english
 
 and the following message is in the log file.
 
 references   unknown reference [][(N)]
 
 
 \definereferenceformat[eqref][left=(,right=)]
 
 \starttext
 \placeformula[(N)]
 \startformula
   \Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = 
 p_n^{(1)}
 \stopformula
 
 Is it working? \eqref[(N)]
 
 \CONTEXT\ \contextmark\ \contextversion
 \stoptext

please find the minimal example and the output attached.


Thanks,

Paul


ref.pdf
Description: Adobe PDF document
\definereferenceformat[eqref][left=(,right=)]

\starttext
\placeformula[(N)]
\startformula
	\Pr\{N = n\} = \Pr\left\{ \min_{1 ≤ k ≤ n} S_k  0 \right\} = p_n^{(1)}
\stopformula

Is it working? \eqref[(N)]

\CONTEXT\ \contextmark\ \contextversion
\stoptext


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

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

Re: [NTG-context] Keep struggling with old style numerals!

2011-12-08 Thread Paul Menzel
Dear Gerard,


Am Donnerstag, den 08.12.2011, 10:56 +0100 schrieb Verhaag, G.C.H.M.:

 A few days ago I installed the latest ConTeXt version but now my 
 oldstyle settings don't seem to work any more!

what version did you use before?

 I use the following settings in my preamble:
 
 \usetypescript[schola]
 \setupbodyfont[schola,10pt]
 
 \definefontfeature [oldstyle] [default] [onum=yes]
 \addff{oldstyle}
 
 Perhaps something changed that I missed! Thanks in advance!

Do you get an error message or are the settings just not applied? An
output file from a working ConTeXt version and one from the current one
would be nice too.


Thanks,

Paul


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

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

  1   2   >