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
___

[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] ConTeXt for Android?

2011-07-24 Thread Piotr Kopszak
I'll try to find out how to do that. Actually I was thinking about all
sort of short documents I need to print quickly.

Piotr

2011/7/21 Mojca Miklavec :
> On Thu, Jul 21, 2011 at 15:05, Piotr Kopszak wrote:
>> Hello list,
>>
>> I was wondering if anybody  thinks about porting ConTeXt to Android.
>
> First you need to be able to compile luatex there.
>
> If you manage to do that, we can help you further.
>
> Mojca
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___



-- 
http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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: formula alignment: confusion about `left` and `right` alignment

2011-07-24 Thread Ondřej Hošek
On 24.07.2011, at 16:37, Paul Menzel  wrote:

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

Nothing; the reasons are historical. When defining "left" and "right", the 
author thought of "raggedleft" (the text is ragged on the left) instead of 
"flushleft".

To avoid confusion, you may want to use "flushleft" and "flushright" explicitly.

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

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