Re: [NTG-context] Euler Constant and limit

2012-11-25 Thread Wolfgang Schuster

Am 25.11.2012 um 02:13 schrieb Kip Warner k...@thevertigo.com:

 Hey list,
 
 I am trying to typeset the Verhulst equation which contains a Euler
 constant which I cannot get to display correctly:
 
 \placeformula[formula:Verhulst equation]
 \startformula
 \math{P(t) = \frac{K P_0 \Eulerconst^{rt}}
  {K + P_0(\Eulerconst^{r t} - 1)}}
 \stopformula
 
 The location for the \Eulerconst just shows up blank with nothing there,
 so I am assuming this is the wrong command. I am using ConTeXt
 2012.11.16 under Ubuntu Precise.

You need a font which has the symbol, e.g. Cambria or Lucida OT.

 In addition, the following formula does not typeset correctly. There is
 no arrow linking 't' to infinity symbol:
 
 \placeformula[formula:Limit of Verhulst equation]
 \startformula
 \math{\lim_{t\to\infty} P(t) = K.\,}
 \stopformula

Works for me (Version 2012.11.23).

BTW: Why do you use \math inside of \startformula because it’s the command for 
inline math in normal text?

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

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


Re: [NTG-context] Narrower paragraphs

2012-11-25 Thread Procházka Lukáš

On Fri, 23 Nov 2012 20:23:44 +0100, Aditya Mahajan adit...@cim.mcgill.ca 
wrote:


... I probably found it (how easy!):


\definestartstop
[Rek]
[before={\blank\setupnarrower[left=\parindent,right=\parindent]\startnarrower},
 after={\stopnarrower\blank},
 style=\em,
]



(Untested, as I don't know if narrower accepts indent and style keys; if
not this should serve as a feature request :))

\definenarrower
 [Rek]
 [left=\parindent,
 right=\parindent,
 indenting=next,
 after={\blank},
 style=em]


Aditya


Thanks Aditya,

it works excluding the style key, so the font change must be performed in the 
before scope:


\definenarrower
  [Rek]
  [left=\parindent,
   right=\parindent,
   indenting=next,
   before=\blank\bf,
   after=\blank,
   style=em,
  ]

\starttext
  \input tufte
  \startRek
\input knuth
  \stopRek
  \input tufte
\stoptext


Best regards,

Lukas

t-Nar.mkiv
Description: Binary data


t-Nar.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] A problem with units

2012-11-25 Thread Marco Patzer
Hi Hans,

since you are working on the \unit code at the moment, I want to
remind you about an issue I reported a while ago.

Any thoughts on that one?

http://article.gmane.org/gmane.comp.tex.context/79275


Marco

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

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

2012-11-25 Thread Marco Patzer
Hi,

in one of the last few betas the MetaPost instance
mechanism broke.

\defineMPinstance
  [myinstance]
  [metafun]

\startuseMPgraphic{mympgraphic}
  fill fullsquare scaled 1cm withcolor blue;
\stopuseMPgraphic

\starttext\null
  \useMPgraphic{myinstance::mympgraphic}
\stoptext


Marco

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 instance mechanism broken

2012-11-25 Thread Wolfgang Schuster

Am 25.11.2012 um 18:11 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 in one of the last few betas the MetaPost instance
 mechanism broke.
 
 \defineMPinstance
  [myinstance]
  [metafun]
 
 \startuseMPgraphic{mympgraphic}
  fill fullsquare scaled 1cm withcolor blue;
 \stopuseMPgraphic
 
 \starttext\null
  \useMPgraphic{myinstance::mympgraphic}
 \stoptext


The problem lies in the \uniqueMPgraphic and \useMPgrpahic commands. There is a 
commented
line in each command which is the correct setting and the next line is wrong.

\def\meta_unique_page_graphic#1#2%
  {\meta_begin_graphic_group{#1}%
   \let\overlaystamp\overlaypagestamp
   \setupMPvariables[\m_meta_page_prefix:\currentMPgraphicname][#2]% prefix is 
new here
%\getvalue{\??mpgraphic\m_meta_page_prefix:\currentMPgraphicname}{}%
   \getvalue{\??mpgraphic\m_meta_page_prefix:#1}{}%
   \meta_end_graphic_group}

\def\meta_use_graphic#1#2%
  {\meta_begin_graphic_group{#1}%
   \doifsomething{#2}{\setupMPvariables[\currentMPgraphicname][#2]}%
  %\getvalue{\??mpgraphic\currentMPgraphicname}\empty
   \getvalue{\??mpgraphic#1}\empty
   \meta_end_graphic_group}

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

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


Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Aditya Mahajan

On Sun, 25 Nov 2012, Marco Patzer wrote:


Hi,

in one of the last few betas the MetaPost instance
mechanism broke.

\defineMPinstance
 [myinstance]
 [metafun]

\startuseMPgraphic{mympgraphic}
 fill fullsquare scaled 1cm withcolor blue;
\stopuseMPgraphic

\starttext\null
 \useMPgraphic{myinstance::mympgraphic}
\stoptext


I am still using the old 2012.11.16 version, but now you have to specify 
the instance in the \startuseMPgraphic as well (Hans had announced this 
on the mailing list a few weeks ago):


\startuseMPgraphic{instance::mygraphic}
...
\stopuseMPgraphic


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

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


Re: [NTG-context] MetaPost instance mechanism broken

2012-11-25 Thread Marco Patzer
2012-11-25 Aditya Mahajan:


 I am still using the old 2012.11.16 version, but now you have to specify 
 the instance in the \startuseMPgraphic as well (Hans had announced this 
 on the mailing list a few weeks ago):

I missed that.

 \startuseMPgraphic{instance::mygraphic}
 ...
 \stopuseMPgraphic

This works. Thanks to both of you, Wolfgang and Aditya.


Marco

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

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

2012-11-25 Thread Bernd Kosubek
Hallo,

I use:
ConTeXt  ver: 2012.11.23 17:35 MKIV  fmt: 2012.11.25  int: english/english

Problem:
\product do not work:

Main-file a.tex:

\startproject a
\environment e
1
\product b
3
\stopproject

Environment-file e.tex

\startenvironment e
\setupbodyfont[sans,12pt]
\stopenvironment

Sub-file b

\startproduct b
\project a
2
\stopproduct

gives as a ressult: 1 3

The environment-file works fine, but the sub-file seems to be ignored.

What is the matter?


Mit freundlichen Grüßen
Bernd Kosubek

--

DATENSCHUTZ geht alle an!
eMails sind wie Postkarten!
JEDER kann sie LESEN und ÄNDERN, daher:

Nur GPG-(PGP-)signierte eMails stammen von uns!
Unsere öffentlichen Schlüssel können von den
üblichen Schlüsselservern geladen werden.
Bitte teilen Sie uns mit, ob auch Sie einen
öffentlichen Schlüssel bereitstellen.
Nachrichten können dann verschlüsselt werden.

Besuchen Sie www.bsi.bund.de -- es lohnt sich!


signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Problem with \product

2012-11-25 Thread Wolfgang Schuster

Am 25.11.2012 um 20:16 schrieb Bernd Kosubek kosu...@sksatz.com:

 Hallo,
 
 I use:
 ConTeXt  ver: 2012.11.23 17:35 MKIV  fmt: 2012.11.25  int: english/english
 
 Problem:
 \product do not work:
 
 Main-file a.tex:
 
 \startproject a
 \environment e
 1
 \product b
 3
 \stopproject
 
 Environment-file e.tex
 
 \startenvironment e
 \setupbodyfont[sans,12pt]
 \stopenvironment
 
 Sub-file b
 
 \startproduct b
 \project a
 2
 \stopproduct
 
 gives as a ressult: 1 3
 
 The environment-file works fine, but the sub-file seems to be ignored.
 
 What is the matter?

Use the product file as main file and put a sub files in components.

For more information read this: http://www.pragma-ade.com/show-mag-13.htm

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

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


Re: [NTG-context] Euler Constant and limit

2012-11-25 Thread Kip Warner
On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote:
 You need a font which has the symbol, e.g. Cambria or Lucida OT.

Hey Wolfgang. Thanks for pointing that out. I had suspected as much,
which leads me to my next question: What is the setup for selecting a
new font, but just for math?

  In addition, the following formula does not typeset correctly. There is
  no arrow linking 't' to infinity symbol:
  
  \placeformula[formula:Limit of Verhulst equation]
  \startformula
  \math{\lim_{t\to\infty} P(t) = K.\,}
  \stopformula
 
 Works for me (Version 2012.11.23).

It's probably the font I am using.

 BTW: Why do you use \math inside of \startformula because it’s the command 
 for inline math in normal text?

I haven't any explanation. I just thought that that was how you were
suppose to do it from reading the manuals. How should it be?

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


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

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

Re: [NTG-context] Euler Constant and limit

2012-11-25 Thread Wolfgang Schuster

Am 25.11.2012 um 21:46 schrieb Kip Warner k...@thevertigo.com:

 On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote:
 You need a font which has the symbol, e.g. Cambria or Lucida OT.
 
 Hey Wolfgang. Thanks for pointing that out. I had suspected as much,
 which leads me to my next question: What is the setup for selecting a
 new font, but just for math?

You have to define a typeface and enable it but Latin Modern as text font with 
patella etc.
for math doesn’t look very nice.

\definetypeface[mainface][rm][serif][modern] [default][designsize=auto]
\definetypeface[mainface][ss][sans] [modern] [default][designsize=auto]
\definetypeface[mainface][tt][mono] [modern] [default][designsize=auto]
\definetypeface[mainface][mm][math] [pagella]

\setupbodyfont[mainface]

 In addition, the following formula does not typeset correctly. There is
 no arrow linking 't' to infinity symbol:
 
 \placeformula[formula:Limit of Verhulst equation]
 \startformula
 \math{\lim_{t\to\infty} P(t) = K.\,}
 \stopformula
 
 Works for me (Version 2012.11.23).
 
 It's probably the font I am using.
 
 BTW: Why do you use \math inside of \startformula because it’s the command 
 for inline math in normal text?
 
 I haven't any explanation. I just thought that that was how you were
 suppose to do it from reading the manuals. How should it be?

\setupbodyfont[pagella]

\starttext

left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms

\blank

before
\startformula
1 + 2 = 3
\stopformula
after

\stoptext

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

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


Re: [NTG-context] Euler Constant and limit

2012-11-25 Thread Wolfgang Schuster

Am 25.11.2012 um 21:46 schrieb Kip Warner k...@thevertigo.com:

 On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote:
 You need a font which has the symbol, e.g. Cambria or Lucida OT.
 
 Hey Wolfgang. Thanks for pointing that out. I had suspected as much,
 which leads me to my next question: What is the setup for selecting a
 new font, but just for math?

You have to define a typeface and enable it but Latin Modern as text font with 
patella etc.
for math doesn’t look very nice.

\definetypeface[mainface][rm][serif][modern] [default][designsize=auto]
\definetypeface[mainface][ss][sans] [modern] [default][designsize=auto]
\definetypeface[mainface][tt][mono] [modern] [default][designsize=auto]
\definetypeface[mainface][mm][math] [pagella]

\setupbodyfont[mainface]

 In addition, the following formula does not typeset correctly. There is
 no arrow linking 't' to infinity symbol:
 
 \placeformula[formula:Limit of Verhulst equation]
 \startformula
 \math{\lim_{t\to\infty} P(t) = K.\,}
 \stopformula
 
 Works for me (Version 2012.11.23).
 
 It's probably the font I am using.
 
 BTW: Why do you use \math inside of \startformula because it’s the command 
 for inline math in normal text?
 
 I haven't any explanation. I just thought that that was how you were
 suppose to do it from reading the manuals. How should it be?

\setupbodyfont[pagella]

\starttext

left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms

\blank

before
\startformula
1 + 2 = 3
\stopformula
after

\stoptext

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

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